if(typeof SNAP_COM=="undefined"){SNAP_COM={};}SNAP_COM.snap_shot_obj=function(){var t={};t={div:null,timer_id:null,div_added:null,current_element:null,current_url:null,current_tag:null,current_orientation:"lr",other_bubbles:new Array,thumbnail_precrawl_list:new Array,num_precrawl_sent:0,retry_url_list:{},body_loaded:false,init:function(){var i,el;this.div={};this.observer_array=new Array;this.timer_id={show:null,partial:null};this.div_added=false;this.current_element=null;this.current_url=null;this.view={id:null,time:null};this.imp={icon:0,link:0,auto:0};this.domain=null;this.cfg=SNAP_COM.shot_config;this.host=this.get_domain(document.location.href);this.long_hide=false;this.autoshot_tag_exclude_re=/^(a|area|h\d+|script|style)$/i;if(this.cfg.rtl){for(i in this.cfg.rtl_css_pos){var _3=this.cfg.rtl_css_pos[i];if(this.cfg.css_pos[_3].x!=undefined&&this.cfg.css_pos[_3].x!=null){this.cfg.css_pos[_3].xr=this.cfg.css_pos[_3].x;this.cfg.css_pos[_3].x=null;}else{if(this.cfg.css_pos[_3].xr!=undefined&&this.cfg.css_pos[_3].xr!=null){this.cfg.css_pos[_3].x=this.cfg.css_pos[_3].xr;this.cfg.css_pos[_3].xr=null;}}}}if(!this.cfg.rich_shot_re){this.cfg.rich_shot_re=["."];}this.preview_re=new RegExp("("+this.cfg.rich_shot_re.join("|")+")","i");this.rich_shot_exceptions_re=new RegExp("("+this.cfg.rich_shot_exceptions+")","i");this.photo_shot_re=new RegExp("("+this.cfg.photo_shot_re.join("|")+")","i");if(SNAP_COM.window_loaded){this.onload();return;}this.observe(window,"load",this.onload);if(this.cfg.check_defer){el=document.getElementById("snap_preview_anywhere");if(!el||!el.defer){return;}}if(document.defaultView&&document.defaultView.getComputedStyle){this.getStyle=this.getStyleW3C;}else{if(document.documentElement.currentStyle&&this.isIE){this.getStyle=this.getStyleIE;}}this.timer_id.partial=this.later(this.cfg.partial_check.delay,this.partial_check);if(this.cfg.plugin){SNAP_COM.clientActive=true;}},autoshot_init:function(_4){var i,len,m,asm,res=[],el,as_cfg=this.cfg.auto_shot,as=SNAP_COM.autoshot;if(!as_cfg.list_tid===undefined){as_cfg.list_tid={};}if(!as_cfg.color&&as_cfg.color_opt=="site"){el=document.getElementsByTagName("a");if(el.length){el=el[0];as_cfg.color=this.getStyle(el,"color");}}if(!as_cfg.timestamp){as_cfg.timestamp=0;}if(SNAP_COM.autoshot_inspect){if(!as){as={};}if(!as.Results){as.Results={};}if(!as.Results.Matches){as.Results.Matches=[];}else{as.Results.Matches=as.Results.Matches.concat(SNAP_COM.autoshot_inspect);}}if(as&&as.Results&&as.Results.Matches){len=as.Results.Matches.length;for(i=0;i20){_24.style.verticalAlign="top";}_24.style.display="inline";_24.style.visibility="visible";_24.style.zIndex=el.style.zIndex;this.el_prop(_24,"activated",true);this.el_prop(_24,"is_link_icon",true);this.el_prop(_24,"shot_parent",el);this.el_prop(el,"link_icon",_24);if(this.el_prop(el,"markup")&&(el.style.visibility=="hidden"||el.style.display=="none")){el.parentNode.insertBefore(_24,el.nextSibling);}else{el.appendChild(_24);}return _24;},activate:function(el){var _26,trigger,icon;if(this.el_prop(el,"done")){return;}_26=el.childNodes;var _27=false;for(var i=0;i<_26.length;i++){var n=_26[i];if(n.nodeType==3){var _2a=n.nodeValue;_2a=_2a.replace(/[ \t\r\n]/g,"");if(_2a.length!=0){_27=true;}}else{if(n.tagName!="IMG"){_27=true;}}}if(el.tagName.match(/^AREA$/i)||!_27){this.el_prop(el,"trigger","link");}switch(this.el_prop(el,"trigger")){case "both":trigger=el;this.add_link_icon(el);this.imp.icon++;this.imp.link++;break;case "icon":trigger=this.add_link_icon(el);this.imp.icon++;break;default:trigger=el;this.imp.link++;break;}this.el_prop(trigger,"activated",true);if(this.cfg.observe_event=="link"){this.observe(trigger,"mouseover",this.show_delay,this.cfg.delay.show,this.cfg.delay.move);this.observe(trigger,"mouseout",this.hide_delay,this.cfg.delay.hide);this.observe(trigger,"click",this.hide_delay,0);}this.el_prop(el,"done",true);},conditional_activate:function(el,_2c){if(this.el_prop(el,"done")||!this.is_valid_link(el)){this.el_prop(el,"done",true);return false;}if(_2c.shot[0]&&el.href.indexOf("https://")==-1&&(this.cfg.show_internal||!this.is_internal_link(el))){this.activate(el);return true;}else{}return false;},autoshot_match:function(_2d,_2e){var as,m,i,len;var _30=[];if(!this.autoshot_re){return _30;}this.autoshot_re.lastIndex=0;len=this.cfg.auto_shot.list.length;while((m=this.autoshot_re.exec(_2d))!=null){for(i=0;i=this.cfg.auto_shot.limit){return _31;}nv=_31.nodeValue;nv_last=0;matches=this.autoshot_match(nv);len=matches.length;for(i=0;i10000){_3c=10000;}_3e+=_3c;this.last_partial_check_count=_3d;}}this.timer_id.partial=this.later(_3e,this.partial_check);this.cfg.partial_check.attempts--;},onload:function(){this.clear_timer("partial");this.cfg.partial_check.attempts=0;this.body_loaded=true;if(this.cfg.rescan_after_load){this.partial_check();}if(!this.div_added){this.add_main_div();}this.shot_scan();},get_all_shot_nodes:function(_3f,_40,_41){var els=_3f.getElementsByTagName("*");for(var i=0;i=100){_4d=60;div.submit.style.width=_4d+"px";}var _4f=_4e-_4d-38;if(_4f>0){div.box.style.width=_4f+"px";}if(this.isSafari){div.submit.style.height=15;}for(i=0;i\n\n\n\n\n\n\n\n\n\n\n\n\n
\n\n\n\n\n\n\n\n
\n\n
\n
 
\n
\n
\n
\n
\n
\n
\n
\n
\n \n \n \n
\n
\n
\n
\n \n
  
\n \n \n
\n \n \n
 
\n
\n \n
\n\n
\n
\n
\n
\n \n
\n";this.get_all_shot_nodes(this.div.main,this.div);this.set_css();this.div.flash_overlay.title=this.cfg.text.ClickToPlay;if(this.cfg.size=="large"){this.div.zoom_img.style.display="none";}this.raise_loading_img();this.observe(this.div.bubble,"mouseover",this.rollover);this.observe(this.div.bubble,"mouseout",this.rollout);this.observe(this.div.option_iframe,"mouseover",this.rollover);this.observe(this.div.option_iframe,"mouseout",this.rollout);for(i=0;i(_8a/2))?"b":"t";_8d+=(_8b>(_89/2))?"r":"l";var _8e=this.cfg.css_pos.main.h-30;if(_8c<_8e&&_8d.substr(0,1)==="b"&&(_8a-_8c)>(_8e*1/2)){_8d="t"+_8d.substr(1,1);}_86=this.el_prop(_88,"shot_parent")||_88;if(!this.el_prop(_86,"markup")&&!this.is_valid_link(_86)){return;}if(this.div.main.style.visibility=="visible"){if(this.current_element!=_86){_84=_85;}else{return;}}this.timer_id.show=this.later(_84,this.show,_88,_8d);},show:function(_8f,_90){var ex;var ey;if((this.cfg.trigger_position=="icon")&&this.el_prop(_8f,"link_icon")){offset=this.getXY(this.el_prop(_8f,"link_icon")||_8f);ex=offset[0];ey=offset[1];}else{ex=this.current_ex;ey=this.current_ey;}var _93=this.get_shot_data(_8f);if(this.other_bubbles){for(var i=0;i_af){div.disable_a.style.width=_ae;}else{if(_af>_ae){div.option_a.style.width=_af;}}}},hideOptionMenu:function(_b0){if(_b0==null){var div=this.div;}else{var div=this.other_bubbles[_b0];}div.option_menu.style.visibility="hidden";},changePaletteImg:function(_b2,_b3,_b4){if(_b4==null){var div=this.div;}else{var div=this.other_bubbles[_b4];}var cfg=this.cfg;if(cfg.palette[_b3]==null){return;}var s=div[_b2].style;s.backgroundColor="transparent";s.backgroundImage="url("+cfg.img.palette+")";s.backgroundPosition=cfg.palette[_b3].loc;s.backgroundRepeat="no-repeat";s.width=cfg.palette[_b3].w+"px";s.height=cfg.palette[_b3].h+"px";},rand_hash:function(a){var h=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],b=document.location.href,c=[],d=0,i;if(!a){a="";}while(a.length<32){a+=this.now();}while(b.length<32){b+=this.now();}var c=[];for(i=0;i<32;++i){d=a.charCodeAt(i)^b.charCodeAt(i)^(15*Math.random());c[i]=h[d&15];}return c.join("");},raise_shot:function(_bb){var _bc="none",iframe="inline";if(_bb=="preview"){_bc="inline";iframe="none";}this.div.preview.style.display=iframe;this.div.preview_img.style.display=_bc;this.div.url_a.style.display=_bc;},show_shot:function(_bd,_be){var url,fragment,max,shot_url,shot_base,b,bimg,burl,cp,rand_rate;if(_be==null){var div=this.div;var cfg=this.cfg;}else{var div=this.other_bubbles[_be];var cfg=this.other_bubbles[_be].cfg;}var _c2=0,shot=this,imgs=_bd.element.getElementsByTagName("img");for(var i=0;irand_rate)){_c5=true;cp="shot_banner_survey";bimg=cfg.banner.survey.img.replace(/#SIZE#/,cfg.size);burl=cfg.banner.survey.url;}else{if(!_c6&&cfg.banner.addon&&cfg.banner.addon.rate&&(this.isFirefox||this.isIE)&&!SNAP_COM.clientActive&&(cfg.search_box==true)&&(cfg.banner.addon.rate>=rand_rate)){_c5=true;if(this.isFirefox){b="ff";cp="banner_"+cfg.banner.addon.id.ff;}else{b="ie";cp="banner_ie_"+cfg.banner.addon.id.ie;}bimg=cfg.banner.addon.img.replace(/#SIZE#/,cfg.size).replace(/#IMG#/,(b+"ao"+cfg.banner.addon.id[b]+".gif"));burl=cfg.banner.addon.url+"?source="+encodeURIComponent(cfg.source)+"&campaign="+this.campaign(cp);}else{if(!_c6&&cfg.banner.pluginOn&&cfg.banner.pluginOn.rate&&SNAP_COM.clientActive&&(cfg.search_box==true)&&(cfg.banner.pluginOn.rate>=rand_rate)){_c5=true;cp="banner_plugin_"+cfg.banner.pluginOn.id;bimg=cfg.banner.pluginOn.img.replace(/#SIZE#/,cfg.size).replace(/#IMG#/,("addon-"+cfg.banner.pluginOn.id+".gif"));burl=cfg.prefix.preview+"redirect.php"+"?url="+cfg.banner.pluginOn.url+"&src="+encodeURIComponent(cfg.source)+"&cp="+this.campaign(cp)+"&key="+cfg.key+"&tol=banner&pv=1";}}}if(_c5){div.banner.href=burl;div.banner.style.backgroundImage="url("+bimg+")";div.banner.style.visibility="";}else{div.banner.style.visibility="hidden";}shot_base="/?url="+encodeURIComponent(_bd.redir_url)+"&key="+cfg.key+"&src="+encodeURIComponent(cfg.source)+"&cp="+cfg.campaign+"&sb="+(cfg.search_box?"1":"0")+"&v="+cfg.version+"&size="+cfg.size+"&lang="+cfg.lang+"&search_type="+cfg.search_type+"&origin=shots_bubble"+"&act="+_bd.trigger+"&po="+(cfg.preview_only?"1":"0")+"&rp="+encodeURIComponent(cfg.redirect_param)+"&has_img="+_c2+"&ol=0&ex=0"+"&ad="+(_c5?cp:"")+"&ip="+cfg.client_ip+"&ua="+cfg.user_agent+"&referrer="+encodeURIComponent(location.href)+"&svc="+encodeURIComponent(_bd.svc);this.shot_base=shot_base;this.pin_check(_bd);this.preview_viewed=false;this.iframe_viewed=false;if(_bd.is_preview){this.shot_type="preview";this.view.id=this.rand_hash(_bd.url);this.view.time=this.now();shot_url=shot_base+"&view_id="+this.view.id+"&goto="+encodeURIComponent(cfg.text.GoToURL);this.raise_shot("preview");this.clear_timer("retry");if(this.retry_url_list[_bd.url]){div.preview_img.src=this.retry_url_list[_bd.url];}else{if(cfg.shot_check==0){this.preview_viewed=true;div.preview_img.src=cfg.prefix.preview+"preview"+shot_url+"&direct=1&sc=0";}else{div.preview_img.src=cfg.prefix.cdn_image+"t.gif";}}div.rss_check.src=cfg.prefix.preview+"preview"+shot_url+"&sc=1&nl=1";this.update_preview_links(_bd,_be);}this.shot_data=_bd;if(!_bd.is_preview||cfg.shot_check==1){if(!_bd.is_preview){this.raise_shot("iframe");}shot_url=cfg.prefix.preview+"shot"+shot_base+"&w="+cfg.css_pos.preview_div.w+"&h="+cfg.css_pos.preview_div.h+"&target="+_bd.target+"&tag="+encodeURIComponent(_bd.tag)+"&goto="+encodeURIComponent(cfg.text.GoToURL)+"&sc="+(_bd.is_preview?"1":"0");if(_bd.auto){shot_url+="&as=1"+"&asp="+encodeURIComponent(_bd.auto.pattern)+"&aseid="+encodeURIComponent(_bd.auto.eid)+"&astid="+encodeURIComponent(_bd.auto.tid);}fragment="#rt"+this.now();if(_be!==undefined&&_be!==null){fragment+="#autoplay";}this.iframe_viewed=true;this.setPreviewIframeSrc(shot_url+fragment,_be);if(_c4==div.preview_img.src){this.lower_loading_img();}if(_bd.svc&&_bd.svc.indexOf("Snap_Shot_RSS")!=-1){this.showTopLeftMenu();this.rss_toggle(null,"rss");}}this.shot_trigger_is_preview=_bd.is_preview;this.shot_url=shot_url;var _c7=cfg.prefix.spasense+"rk.php?key="+cfg.key+"&lang="+cfg.lang+"&th="+cfg.theme+"&rtl="+cfg.rtl+"&url="+_bd.url+"&html="+encodeURIComponent(_bd.element.innerHTML.substr(0,500))+"&cp="+this.campaign("spasense")+"&s="+cfg.size+"&svc="+encodeURIComponent(_bd.svc)+"&tag="+encodeURIComponent(_bd.tag)+"&src="+encodeURIComponent(cfg.source);if(cfg.search_type=="spasense"&&cfg.search_box==true&&!_c5){this.spasense_url=_c7;if(div.spasense_iframe.src!=_c7){try{div.spasense_iframe.contentWindow.location.replace(_c7);}catch(e){div.spasense_iframe.src=_c7;}}}else{this.spasense_url="about:blank";if(div.spasense_iframe.src!="about:blank"){try{div.spasense_iframe.contentWindow.location.replace("about:blank");}catch(e){div.spasense_iframe.src="about:blank";}}}},update_preview_links:function(_c8,_c9){var max,url;if(_c9==null){var div=this.div;var cfg=this.cfg;}else{var div=this.other_bubbles[_c9];var cfg=this.other_bubbles[_c9].cfg;}url=_c8.redir_url.replace(/\w+:\/\/(www\.)?/,"");url=url.replace(/^([-\w.]*)\/$/,"$1");max=cfg.url_max?cfg.url_max:50;if(url.length>max){url=url.substr(0,max)+"...";}div.url.innerHTML=url;div.url_a.href=_c8.url;div.url_favicon.href=_c8.url;div.url_arrow.href=_c8.url;div.img_a.href=_c8.url;div.url_a.target=_c8.target;div.url_favicon.target=_c8.target;div.url_arrow.target=_c8.target;div.img_a.target=_c8.target;div.url_a.title=cfg.text.GoToURL.replace(/%URL/,url);div.url_favicon.title=cfg.text.GoToURL.replace(/%URL/,url);div.url_arrow.title=cfg.text.GoToURL.replace(/%URL/,url);div.img_a.title=div.url_a.title;},is_preview_url:function(url){if(this.cfg.rich_shot_exceptions!=""){if(url.match(this.rich_shot_exceptions_re)){return true;}}var m=url.match(/\w+:\/\/([^#]*)/);if(m&&m[1].match(this.preview_re)){return false;}return true;},get_inner_text:function(el,_d0){var _d1="";if(el.innerText!==undefined){_d1=el.innerText;}else{if(el.textContent!==undefined){_d1=el.textContent;}}if(_d0===undefined){return this.trim(_d1).substr(0);}else{return this.trim(_d1).substr(0,_d0);}},get_shot_data:function(el){var i,j,m,els;var _d4;var key,val;var _d6=[];var _d7={"svc":"","tag":"","url":"","target":"","element":el,"trigger":"","auto":false};if(this.el_prop(el,"is_link_icon")){_d7.trigger="icon";}else{_d7.trigger="link";}el=this.el_prop(el,"shot_parent")||el;_d7.element=el;_d7.trigger=(this.el_prop(el,"trigger")=="both"?"both":"only")+"_"+_d7.trigger;if(el.href!==undefined){_d7.url=el.href;_d7.target=el.target;}if(typeof SNAP_COM!="undefined"&&SNAP_COM.translateURL){if(_d7.target.toLowerCase()=="_search"){_d7.target="_SELF";}_d7.url=SNAP_COM.translateURL(_d7.url);_d7.redir_url=_d7.url;}if(this.cfg.redirect_param){regexS="[\\?&]"+this.cfg.redirect_param+"=([^&#]*)";regex=new RegExp(regexS);m=_d7.url.match(regex);if(m){_d7.redir_url=decodeURIComponent(m[1]);}else{_d7.redir_url=_d7.url;}}else{_d7.redir_url=_d7.url;}if((el.innerText!==undefined)&&el.innerText.length){_d7.tag=this.trim(el.innerText).substr(0,500).replace(String.fromCharCode(164),"¤");}else{if(el.textContent!==undefined){_d7.tag=this.trim(el.textContent).substr(0,500);}else{_d7.tag=this.trim(el.innerHTML).substr(0,500);}}if(this.el_prop(el,"markup")){_d6.push(encodeURIComponent(el.className.match(/\bSnap_Shot_.*?\b/g).join("|")));_d4=el.firstChild;while(_d4){if(_d4.tagName){m=_d4.className.match(/\bSnap_Shot_.*?\b/g);if(m){key=encodeURIComponent(m.join("|"));val=encodeURIComponent(this.get_inner_text(_d4,500));_d6.push(key+"="+val);}}_d4=_d4.nextSibling;}_d7.svc=_d6.join("&");}else{_d7.is_preview=this.is_preview_url(_d7.redir_url);}if(this.el_prop(el,"auto")){_d7.auto=this.el_prop(el,"autoshot_data");}return _d7;},confirm_shot_load:function(_d8){if(this.view.id){this.div.arrow.src=this.cfg.prefix.image+"snip/arrow-contd/"+this.view.id+"/d/"+_d8+"/p"+(this.now()-this.view.time)+"/arrow/";}this.view.id=null;},rss_check_loaded:function(ev){var pi=this.div.rss_check;if(pi.height==3&&pi.width==6){this.showTopLeftMenu();if(this.cfg.shot_check==1){this.rss_toggle(null,"rss");this.lower_loading_img();this.raise_shot("iframe");if(this.isSafari){this.later(300,this.lower_loading_img);}}else{this.rss_toggle(null,"preview");}}else{if(pi.height>1&&this.cfg.shot_check==1){this.view.id=this.rand_hash(this.shot_data.url);this.view.time=this.now();var _db=this.shot_base+"&view_id="+this.view.id+"&goto="+encodeURIComponent(this.cfg.text.GoToURL);this.div.preview_img.src=this.cfg.prefix.preview+"preview"+_db+"&direct=1&sc=0";}}},preview_img_loaded:function(ev){var pi=this.div.preview_img;if(pi.height==3&&pi.width==6){this.lower_loading_img();this.raise_shot("iframe");if(this.isSafari){this.later(300,this.lower_loading_img);}}else{if(!pi.src.match(/\/t.gif/)){this.lower_loading_img();}if(pi.height>1&&pi.width>1){this.confirm_shot_load("ps");}if(this.div.preview_img.width==274||this.div.preview_img.width==431){var _de=1;var url=this.div.preview_img.src;var _e0=/retry=(\d+)/;var _e1=url.match(_e0);if(_e1){_de=Number(_e1[1])+1;url=url.replace(_e0,"retry="+_de);}else{url+="&retry="+_de;}if(_de>this.cfg.retry_interval.length){return;}if(_de==this.cfg.retry_interval.length){url+="&final=1";}var _e2=this;var _e3=this.cfg.retry_interval[_de-1];if(this.retry_url_list[this.div.url_a.href]!=url){this.retry_url_list[this.div.url_a.href]=url;if(this.div.main.style.visibility=="visible"){this.clear_timer("retry");this.timer_id.retry=this.sto(function(){_e2.div.preview_img.src=url;},_e3);}}}}},link_click:function(ev){var _e5;var rw=false;switch(ev.type){case "mouseup":var b=0;if(typeof (ev.which)=="number"){b=ev.which;}else{if(typeof (ev.button)=="number"){b=ev.button;}}if((this.isIE&&b==4)||(!this.isIE&&b==2)){rw=true;}break;case "click":rw=true;break;}if(rw){var _e8=this.cfg.prefix.preview+"explore/"+Math.floor((Math.random()*100000))+"/?url="+encodeURIComponent(this.current_url)+"&key="+this.cfg.key+"&src="+encodeURIComponent(this.cfg.source)+"&cp="+this.cfg.campaign;this.div.url_a.href=_e8+"&tol=url";this.div.url_favicon.href=_e8+"&tol=url_favicon";this.div.url_arrow.href=_e8+"&tol=url_arrow";this.div.img_a.href=_e8+"&tol=image";_e5=this;this.sto(function(){_e5.div.url_a.href=_e5.current_url;_e5.div.url_favicon.href=_e5.current_url;_e5.div.url_arrow.href=_e5.current_url;_e5.div.img_a.href=_e5.current_url;},0);}},sample:function(){var i,n,as,rates=[],as_data=[],as_len=this.cfg.auto_shot.list.length;var r=Math.random();if(this.sampled){return;}this.sampled=true;if(this.cfg.srate){if(this.cfg.srate.main>=r){rates.push("m"+this.cfg.srate.main);}if(this.cfg.auto_shot.list.length&&(this.cfg.srate.auto>=r)){rates.push("a"+this.cfg.srate.auto);}if(this.cfg.auto_shot.inspect){rates.push("i"+this.cfg.srate.inspect);for(i=0;i_ef&&_f2<_f1&&_f3>top&&_f3<_f0);if(_f4){return;}}this.highlight(false);this.hide_delay(null,this.cfg.delay.hide);},title_mouseover:function(ev){this.div.url_a.style.color="#009933";},title_mouseout:function(ev){this.div.url_a.style.color="#003399";},pin:function(_f7){this.other_bubbles[_f7].pin_close_img.style.display="inline";this.orientation("pin",false,_f7);},destroy_bubble:function(ev,_f9){this.other_bubbles[_f9].main.style.display="none";this.other_bubbles[_f9].current_url=null;this.other_bubbles[_f9].current_tag=null;this.other_bubbles[_f9].main.parentNode.removeChild(this.other_bubbles[_f9].main);},pin_check:function(_fa){this.hideFlashOverlay();try{try{var _fb=this.current_url.split("//")[1].split("/")[0];var _fc=this.current_url.split("//")[1].split("/")[1];var tmp=this.current_url.split("?")[0].split(".");var _fe=tmp[tmp.length-1];}catch(e){}if((_fa.svc&&_fa.svc.indexOf("Snap_Shot_")!=-1&&(_fa.svc.indexOf("Video")!=-1||_fa.svc.indexOf("Audio")!=-1))||(_fb.toLowerCase().indexOf("youtube.com")!=-1&&_fc.indexOf("v")!=-1&&_fc.indexOf("view_play_list?")==-1)||(_fb.toLowerCase().indexOf("video.google.com")!=-1&&_fc.indexOf("videoplay")!=-1)||(_fb.toLowerCase().indexOf("metacafe.com")!=-1&&_fc.indexOf("watch")!=-1)||(_fb.toLowerCase().indexOf("revver.com")!=-1&&_fc.indexOf("watch")!=-1)||(_fb.toLowerCase().indexOf("video.xanga.com")!=-1)||(_fb.toLowerCase().indexOf("photobucket.com")!=-1&&this.current_url.indexOf("action=view")!=-1)||(_fb.toLowerCase().indexOf("veoh.com")!=-1&&_fc.indexOf("videos")!=-1)||(_fb.toLowerCase().indexOf("vids.myspace.com")!=-1)||_fe.toLowerCase()=="mp3"){this.showFlashOverlay();}}catch(e){}},cloneBubble:function(){var _ff=this;var node=this.div.main.cloneNode(true);var body=document.getElementsByTagName("body")[0];body.insertBefore(node,this.div.main);var _102=this.other_bubbles.length;this.other_bubbles[_102]=new Object();this.other_bubbles[_102].main=node;this.get_all_shot_nodes(this.other_bubbles[_102].main,this.other_bubbles[_102]);this.other_bubbles[_102].current_url=this.current_url;this.other_bubbles[_102].current_tag=this.current_tag;this.other_bubbles[_102].cfg=this.cfg;var div=this.other_bubbles[_102];this.observe(div["submit"],"click",this.form_submit,_102);this.observe(div["box"],"keydown",this.form_submit,_102);var box=div["box"];this.observe(box,"focus",function(ev){if(box.value===_ff.cfg.text.SearchTheWeb){box.value="";}});var divs=div.main.getElementsByTagName("input");for(var i=0;ileft&&_113<_112&&_114>top&&_114<_111);if(!_115){this.hide_delay(null,this.cfg.delay.hide);}}if(this.drag_state!="start"){return;}var _116=this.other_bubbles[this.dragged_bubble].main;var x=this.pointerX(ev);var y=this.pointerY(ev);x=x-this.dragStartX;y=y-this.dragStartY;var obx=_116.offsetLeft;var oby=_116.offsetTop;var _11b=obx-0+x;var _11c=oby-0+y;var _11d=-1*this.div.bubble.offsetLeft;if(_11b<_11d){_11b=_11d;}var _11e=-1*this.div.bubble.offsetTop;if(_11c<_11e){_11c=_11e;}_116.style.left=_11b+"px";_116.style.top=_11c+"px";if(_11b!=_11d){this.dragStartX=this.pointerX(ev);}if(_11c!=_11e){this.dragStartY=this.pointerY(ev);}if(!ev){var ev=window.event;}ev.cancelBubble=true;if(ev.stopPropagation){ev.stopPropagation();}},dragStop:function(ev){if(this.dragged_bubble==null){return;}this.drag_state="off";this.other_bubbles[this.dragged_bubble].drag_overlay.style.left=this.other_bubbles[this.dragged_bubble].cfg.css_pos.drag_overlay.x+"px";this.other_bubbles[this.dragged_bubble].drag_overlay.style.top=this.other_bubbles[this.dragged_bubble].cfg.css_pos.drag_overlay.y+"px";this.other_bubbles[this.dragged_bubble].drag_overlay.style.width=this.other_bubbles[this.dragged_bubble].cfg.css_pos.drag_overlay.w+"px";this.other_bubbles[this.dragged_bubble].drag_overlay.style.height=this.other_bubbles[this.dragged_bubble].cfg.css_pos.drag_overlay.h+"px";this.dragged_bubble=null;},pointerX:function(_120){return _120.pageX||(_120.clientX+(document.documentElement.scrollLeft||document.body.scrollLeft));},pointerY:function(_121){return _121.pageY||(_121.clientY+(document.documentElement.scrollTop||document.body.scrollTop));},form_submit:function(ev,_123){if(_123==null){var div=this.div;}else{var div=this.other_bubbles[_123];}var _125=false;var _126="bsb";if(div.box.value===this.cfg.text.SearchTheWeb){_126=this.campaign("defaulttext");if(this.cfg.search_type!="adult"){_125=true;}}else{if(div.box.value===""){_126=this.campaign("emptybox");_125=true;}else{_126=this.campaign("bsb");}}var _127=this.cfg.prefix.search+"?source="+encodeURIComponent(this.cfg.source)+"&campaign="+_126;if(_125){if(this.cfg.search_type=="image"){_127+="&query=sunflower";}}else{_127+="&query="+encodeURIComponent(div.box.value);_127+="&spa_key="+encodeURIComponent(this.cfg.key);if(this.cfg.search_type=="adult"){_127+="&spa_adult=1";}}var tg=(window.event)?ev.srcElement:ev.target;if(tg==div.box){var _129=ev.keyCode;if(_129==13){ev.returnValue=false;if(ev.preventDefault){ev.preventDefault();}location.href=_127;}return;}else{if(tg==div.submit){window.open(_127,"_blank");ev.returnValue=false;if(ev.preventDefault){ev.preventDefault();}return false;}}},sendPrecrawlList:function(){var _12a="?key="+this.cfg.key;for(var i=this.num_precrawl_sent;i1800){break;}_12a+="url"+(i+1)+"="+encodeURIComponent(url);}this.num_precrawl_sent=i;_12a+="&url_count="+this.thumbnail_precrawl_list.length;this.div.lg.src=this.cfg.prefix.preview+"thumbnail_precrawl.php"+_12a;if(this.num_precrawl_sent!=this.thumbnail_precrawl_list.length){this.later(1000,this.sendPrecrawlList);}},logFeatureClick:function(_12d){this.div.lg.src=this.cfg.prefix.preview+"halo_proxy.php?feature_type="+_12d+"&img=1&r="+this.now();},setPreviewIframeSrc:function(_12e,_12f){if(_12f==null){var div=this.div;}else{var div=this.other_bubbles[_12f];}if(this.isSafari){if(div.preview){this.later(50,function(){div.preview.src=(_12e);});if(this.shot_data&&!this.shot_data.is_preview){this.later(300,this.lower_loading_img);}}}else{if(div.preview.contentWindow){div.preview.contentWindow.location.replace(_12e);}}},sto:function(func,_132){if(this.cfg.flavor=="xanga"){if(window.restrictedSetTimeout){return window.restrictedSetTimeout(func,_132);}else{return window.setTimeout(func,_132);}}else{return window.setTimeout(func,_132);}},needs_png_fix:(navigator.userAgent.match(/msie (5\.5|6)/i)&&navigator.platform=="Win32"),isFirefox:(navigator.userAgent.match(/firefox/i)),isSafari:(/Safari|Konqueror|KHTML/gi).test(navigator.userAgent),isIE:(!this.isSafari&&!navigator.userAgent.match(/opera/gi)&&navigator.userAgent.match(/msie/gi)),isOpera:(navigator.userAgent.match(/Opera/gi)),getXY:function(el){var _134=null;var pos=[];var box,st,sl;if(el.getBoundingClientRect){box=el.getBoundingClientRect();st=Math.max(document.documentElement.scrollTop,document.body.scrollTop);sl=Math.max(document.documentElement.scrollLeft,document.body.scrollLeft);return [box.left+sl,box.top+st];}else{pos=[el.offsetLeft,el.offsetTop];_134=el.offsetParent;var _137=(this.getStyle(el,"position")=="absolute");if(_134!=el){while(_134){pos[0]+=_134.offsetLeft;pos[1]+=_134.offsetTop;if(this.isSafari&&!_137&&(this.getStyle(_134,"position")=="absolute")){_137=true;}_134=_134.offsetParent;}}if(this.isSafari&&_137){pos[0]-=document.body.offsetLeft;pos[1]-=document.body.offsetTop;}}return pos;},getPageX:function(ev){var x=ev.pageX;if(!x&&0!==x){x=ev.clientX||0;if(this.isIE){x+=this._getScrollLeft();if(document.body.clientLeft){x-=document.body.clientLeft;}}}return x;},getPageY:function(ev){var y=ev.pageY;if(y&&document.body.style&&this.getStyle(document.body,"position")=="relative"){y-=10;}if(!y&&0!==y){y=ev.clientY||0;if(this.isIE){y+=this._getScrollTop();if(document.body.clientTop){y-=document.body.clientTop;}}}return y;},_getScrollLeft:function(){return this._getScroll()[1];},_getScrollTop:function(){return this._getScroll()[0];},_getScroll:function(){var dd=document.documentElement,db=document.body;if(dd&&(dd.scrollTop||dd.scrollLeft)){return [dd.scrollTop,dd.scrollLeft];}else{if(db){return [db.scrollTop,db.scrollLeft];}else{return [0,0];}}},getViewportHeight:function(){var _13d=-1;var mode=document.compatMode;if((mode||this.isIE)&&!this.isOpera){if(mode==="CSS1Compat"){_13d=document.documentElement.clientHeight;}else{_13d=document.body.clientHeight;}}else{_13d=self.innerHeight;}return _13d;},getViewportWidth:function(){var _13f=-1;var mode=document.compatMode;if(mode||this.isIE){if(mode==="CSS1Compat"){_13f=document.documentElement.clientWidth;}else{_13f=document.body.clientWidth;}}else{_13f=self.innerWidth;}return _13f;},getWidth:function(_141){var _142=parseInt(_141.offsetWidth);if(_141==document.body||_141==document||_141==window){return window.getWidth();}else{if(_141){var _142=parseInt(_141.offsetWidth);return (_142==0)?parseInt(_141.style.width):_142;}else{return null;}}},getHeight:function(_143){if(_143==document.body||_143==document||_143==window){return window.getHeight();}else{if(_143){var _144=parseInt(_143.offsetHeight);return (_144==0)?parseInt(_143.style.height):_144;}else{return null;}}},getLeft:function(_145){return _145.offsetLeft;},getRight:function(_146){return this.getLeft(_146)+this.getWidth(_146);},getTop:function(_147){return _147.offsetTop;},getBottom:function(_148){return this.getTop(_148)+this.getHeight(_148);},trim:function(str){return str.replace(/^\s*|\s*$/g,"");},getStyle:function(el,_14b){return el.style[_14b];},getStyleW3C:function(el,_14d){var _14e=null;if(_14d=="float"){_14d="cssFloat";}var _14f=(document.defaultView)?document.defaultView.getComputedStyle(el,""):null;if(_14f){_14e=_14f[_14d];}return el.style[_14d]||_14e;},getStyleIE:function(el,_151){switch(_151){case "opacity":var val=100;try{val=el.filters["DXImageTransform.Microsoft.Alpha"].opacity;}catch(e){try{val=el.filters("alpha").opacity;}catch(e){}}return val/100;break;case "float":_151="styleFloat";default:var _153=el.currentStyle?el.currentStyle[_151]:null;return (el.style[_151]||_153);}},Rescan:function(_154){if(_154===null){return;}if(this.div_added){this.shot_scan(_154);}}};t.init();return t;};if(SNAP_COM.shot_config.version=="2.24"){SNAP_COM.shot=SNAP_COM.snap_shot_obj();}else{SNAP_COM.vmiss=document.createElement("img");SNAP_COM.vmiss.src="http://shots.snap.com/vmis.php?vcfg="+SNAP_COM.shot_config.version+"&vjs=2.24";SNAP_COM.vmiss.style.positions="absolute";SNAP_COM.vmiss.style.visibility="none";}