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.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.auto_shot_no_re=/^(A|AREA|H\d+)$/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");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,res=[],el,as_cfg=this.cfg.auto_shot,as=SNAP_COM.autoshot;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&&as.Results&&as.Results.Matches){len=as.Results.Matches.length;for(i=0;i20){_20.style.verticalAlign="top";}_20.style.display="inline";_20.style.visibility="visible";_20.style.zIndex=el.style.zIndex;this.el_prop(_20,"activated",true);this.el_prop(_20,"is_link_icon",true);this.el_prop(_20,"shot_parent",el);this.el_prop(el,"link_icon",_20);if(this.el_prop(el,"markup")&&(el.style.visibility=="hidden"||el.style.display=="none")){el.parentNode.insertBefore(_20,el.nextSibling);}else{el.appendChild(_20);}return _20;},activate:function(el){var _22,trigger,icon;if(this.el_prop(el,"done")){return;}_22=el.childNodes;var _23=false;for(var i=0;i<_22.length;i++){var n=_22[i];if(n.nodeType==3){var _26=n.nodeValue;_26=_26.replace(/[ \t\r\n]/g,"");if(_26.length!=0){_23=true;}}else{if(n.tagName!="IMG"){_23=true;}}}if(el.tagName.match(/^AREA$/i)||!_23){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,_28){if(this.el_prop(el,"done")||!this.is_valid_link(el)){this.el_prop(el,"done",true);return false;}if(_28.shot[0]&&el.href.indexOf("https://")==-1&&(this.cfg.show_internal||!this.is_internal_link(el))){this.activate(el);return true;}else{}return false;},scan_tree:function(_29,_2a){var m,i,len,is_markup=false,is_link,nn,tn,nv,am,re,prop={};if(this.auto_shot_re&&_29.nodeType==3&&_2a.in_body[0]&&!_2a.activated[0]&&_2a.auto_shot_ok[0]&&this.imp.auto10000){_31=10000;}_33+=_31;this.last_partial_check_count=_32;}}this.timer_id.partial=this.later(_33,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(_34,_35,_36){var els=_34.getElementsByTagName("*");for(var i=0;i=100){_42=60;div.submit.style.width=_42+"px";}var _44=_43-_42-38;if(_44>0){div.box.style.width=_44+"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";this.get_all_shot_nodes(this.div.main,this.div);this.set_css();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(_77/2))?"b":"t";_7a+=(_78>(_76/2))?"r":"l";var _7b=this.cfg.css_pos.main.h-30;if(_79<_7b&&_7a.substr(0,1)==="b"&&(_77-_79)>(_7b*1/2)){_7a="t"+_7a.substr(1,1);}_73=this.el_prop(_75,"shot_parent")||_75;if(!this.el_prop(_73,"markup")&&!this.is_valid_link(_73)){return;}if(this.div.main.style.visibility=="visible"){if(this.current_element!=_73){_71=_72;}else{return;}}this.timer_id.show=this.later(_71,this.show,_75,_7a);},show:function(_7c,_7d){if((this.cfg.trigger_position=="icon")&&this.el_prop(_7c,"link_icon")){offset=this.getXY(this.el_prop(_7c,"link_icon")||_7c);ex=offset[0];ey=offset[1];}else{ex=this.current_ex;ey=this.current_ey;}var _7e=this.get_shot_data(_7c);if(this.other_bubbles){for(var i=0;i_97){div.disable_a.style.width=_96;}else{if(_97>_96){div.option_a.style.width=_97;}}}},hideOptionMenu:function(_98){if(_98==null){var div=this.div;}else{var div=this.other_bubbles[_98];}div.option_menu.style.visibility="hidden";},changePaletteImg:function(_9a,_9b,_9c){if(_9c==null){var div=this.div;}else{var div=this.other_bubbles[_9c];}var cfg=this.cfg;if(cfg.palette[_9b]==null){return;}var s=div[_9a].style;s.backgroundColor="transparent";s.backgroundImage="url("+cfg.img.palette+")";s.backgroundPosition=cfg.palette[_9b].loc;s.backgroundRepeat="no-repeat";s.width=cfg.palette[_9b].w+"px";s.height=cfg.palette[_9b].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(_a3){var _a4="none",iframe="inline";if(_a3=="preview"){_a4="inline";iframe="none";}this.div.preview.style.display=iframe;this.div.preview_img.style.display=_a4;this.div.url_a.style.display=_a4;},show_shot:function(_a5,_a6){var url,fragment,max,shot_url,shot_base,b,bimg,cp;if(_a6==null){var div=this.div;var cfg=this.cfg;}else{var div=this.other_bubbles[_a6];var cfg=this.other_bubbles[_a6].cfg;}var _aa=0,shot=this,imgs=_a5.element.getElementsByTagName("img");for(var i=0;i=Math.random())){_ad=true;}if(_ad){if(this.isFirefox){b="ff";cp="banner_"+cfg.banner.id.ff;}else{b="ie";cp="banner_ie_"+cfg.banner.id.ie;}bimg=cfg.banner.img.replace(/#SIZE#/,cfg.size).replace(/#IMG#/,(b+"ao"+cfg.banner.id[b]+".gif"));div.banner.href=cfg.banner.url+"?source="+encodeURIComponent(cfg.source)+"&campaign="+this.campaign(cp);div.banner.style.backgroundImage="url("+bimg+")";div.banner.style.visibility="";}else{div.banner.style.visibility="hidden";}shot_base="/?url="+encodeURIComponent(_a5.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+"&act="+_a5.trigger+"&po="+(cfg.preview_only?"1":"0")+"&rp="+encodeURIComponent(cfg.redirect_param)+"&has_img="+_aa+"&ol=0&ex=0"+"&ad="+(_ad?cp:"")+"&referrer="+encodeURIComponent(location.href)+"&svc="+encodeURIComponent(_a5.svc);this.shot_base=shot_base;this.pin_check(_a5);this.preview_viewed=false;this.iframe_viewed=false;if(_a5.is_preview){this.shot_type="preview";this.view.id=this.rand_hash(_a5.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[_a5.url]){div.preview_img.src=this.retry_url_list[_a5.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(_a5,_a6);}this.shot_data=_a5;if(!_a5.is_preview||cfg.shot_check==1){if(!_a5.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="+_a5.target+"&tag="+encodeURIComponent(_a5.tag)+"&goto="+encodeURIComponent(cfg.text.GoToURL)+"&sc="+(_a5.is_preview?"1":"0");if(_a5.auto){shot_url+="&asp="+encodeURIComponent(_a5.auto.pattern)+"&aseid="+encodeURIComponent(_a5.auto.eid)+"&astid="+encodeURIComponent(_a5.auto.tid);}fragment="#rt"+this.now();if(_a6!==undefined&&_a6!==null){fragment+="#autoplay";}this.iframe_viewed=true;this.setPreviewIframeSrc(shot_url+fragment,_a6);if(_ac==div.preview.src){this.lower_loading_img();}if(_a5.svc&&_a5.svc.indexOf("Snap_Shot_RSS")!=-1){this.showTopLeftMenu();this.rss_toggle(null,"rss");}}this.shot_trigger_is_preview=_a5.is_preview;this.shot_url=shot_url;var _ae=cfg.prefix.spasense+"rk.php?key="+cfg.key+"&lang="+cfg.lang+"&th="+cfg.theme+"&rtl="+cfg.rtl+"&url="+_a5.url+"&html="+encodeURIComponent(_a5.element.innerHTML.substr(0,500))+"&cp="+this.campaign("spasense")+"&s="+cfg.size+"&svc="+encodeURIComponent(_a5.svc)+"&tag="+encodeURIComponent(_a5.tag)+"&src="+encodeURIComponent(cfg.source);if(cfg.search_type=="spasense"&&cfg.search_box==true&&!_ad){this.spasense_url=_ae;if(div.spasense_iframe.src!=_ae){try{div.spasense_iframe.contentWindow.location.replace(_ae);}catch(e){div.spasense_iframe.src=_ae;}}}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(_af,_b0){if(_b0==null){var div=this.div;var cfg=this.cfg;}else{var div=this.other_bubbles[_b0];var cfg=this.other_bubbles[_b0].cfg;}url=_af.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=_af.url;div.url_favicon.href=_af.url;div.url_arrow.href=_af.url;div.img_a.href=_af.url;div.url_a.target=_af.target;div.url_favicon.target=_af.target;div.url_arrow.target=_af.target;div.img_a.target=_af.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,_b6){var _b7="";if(el.innerText!==undefined){_b7=el.innerText;}else{if(el.textContent!==undefined){_b7=el.textContent;}}return this.trim(_b7).substr(0,_b6);},get_shot_data:function(el){var i,j,m,els;var _ba;var key,val;var _bc=[];var _bd={"svc":"","tag":"","url":"","target":"","element":el,"trigger":"","auto":false};if(this.el_prop(el,"is_link_icon")){_bd.trigger="icon";}else{_bd.trigger="link";}el=this.el_prop(el,"shot_parent")||el;_bd.element=el;_bd.trigger=(this.el_prop(el,"trigger")=="both"?"both":"only")+"_"+_bd.trigger;if(el.href!==undefined){_bd.url=el.href;_bd.target=el.target;}if(typeof SNAP_COM!="undefined"&&SNAP_COM.translateURL){if(_bd.target.toLowerCase()=="_search"){_bd.target="_SELF";}_bd.url=SNAP_COM.translateURL(_bd.url);_bd.redir_url=_bd.url;}if(this.cfg.redirect_param){regexS="[\\?&]"+this.cfg.redirect_param+"=([^&#]*)";regex=new RegExp(regexS);m=_bd.url.match(regex);if(m){_bd.redir_url=decodeURIComponent(m[1]);}else{_bd.redir_url=_bd.url;}}else{_bd.redir_url=_bd.url;}if((el.innerText!==undefined)&&el.innerText.length){_bd.tag=this.trim(el.innerText).substr(0,500).replace(String.fromCharCode(164),"¤");}else{if(el.textContent!==undefined){_bd.tag=this.trim(el.textContent).substr(0,500);}else{_bd.tag=this.trim(el.innerHTML).substr(0,500);}}if(this.el_prop(el,"markup")){_bc.push(encodeURIComponent(el.className.match(/\bSnap_Shot_.*?\b/g).join("|")));_ba=el.firstChild;while(_ba){if(_ba.tagName){m=_ba.className.match(/\bSnap_Shot_.*?\b/g);if(m){key=encodeURIComponent(m.join("|"));val=encodeURIComponent(this.get_inner_text(_ba,500));_bc.push(key+"="+val);}}_ba=_ba.nextSibling;}_bd.svc=_bc.join("&");}else{_bd.is_preview=this.is_preview_url(_bd.redir_url);}if(this.el_prop(el,"auto")){_bd.auto=this.el_prop(el,"autoshot_data");}return _bd;},confirm_shot_load:function(_be){if(this.view.id){this.div.arrow.src=this.cfg.prefix.image+"snip/arrow-contd/"+this.view.id+"/d/"+_be+"/p"+(this.now()-this.view.time)+"/arrow/";}this.view.id=null;},bg_img_loaded:function(){this.bg_img_is_loaded=true;if(this.showMainDivOnload){this.div.main.style.visibility="visible";this.showMainDivOnload=false;}},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 _c1=this.shot_base+"&view_id="+this.view.id+"&goto="+encodeURIComponent(this.cfg.text.GoToURL);this.div.preview_img.src=this.cfg.prefix.preview+"preview"+_c1+"&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{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 _c4=1;var url=this.div.preview_img.src;var _c6=/retry=(\d+)/;var _c7=url.match(_c6);if(_c7){_c4=Number(_c7[1])+1;url=url.replace(_c6,"retry="+_c4);}else{url+="&retry="+_c4;}if(_c4>this.cfg.retry_interval.length){return;}if(_c4==this.cfg.retry_interval.length){url+="&final=1";}var _c8=this;var _c9=this.cfg.retry_interval[_c4-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(){_c8.div.preview_img.src=url;},_c9);}}}}},link_click:function(ev){var _cb;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 _ce=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=_ce+"&tol=url";this.div.url_favicon.href=_ce+"&tol=url_favicon";this.div.url_arrow.href=_ce+"&tol=url_arrow";this.div.img_a.href=_ce+"&tol=image";_cb=this;this.sto(function(){_cb.div.url_a.href=_cb.current_url;_cb.div.url_favicon.href=_cb.current_url;_cb.div.url_arrow.href=_cb.current_url;_cb.div.img_a.href=_cb.current_url;},0);}},sample:function(){var i,n,as,rates=[],as_missing=[],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);for(i=0;i_d5&&_d8<_d7&&_d9>top&&_d9<_d6);if(_da){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(_dd){this.other_bubbles[_dd].pin_close_img.style.display="inline";this.orientation("pin",false,_dd);},destroy_bubble:function(ev,_df){this.other_bubbles[_df].main.style.display="none";this.other_bubbles[_df].current_url=null;this.other_bubbles[_df].current_tag=null;this.other_bubbles[_df].main.parentNode.removeChild(this.other_bubbles[_df].main);},pin_check:function(_e0){this.hideFlashOverlay();try{try{var _e1=this.current_url.split("//")[1].split("/")[0];var _e2=this.current_url.split("//")[1].split("/")[1];var tmp=this.current_url.split("?")[0].split(".");var _e4=tmp[tmp.length-1];}catch(e){}if((_e0.svc&&_e0.svc.indexOf("Snap_Shot_")!=-1&&(_e0.svc.indexOf("Video")!=-1||_e0.svc.indexOf("Audio")!=-1))||(_e1.toLowerCase().indexOf("youtube.com")!=-1&&_e2.indexOf("v")!=-1&&_e2.indexOf("view_play_list?")==-1)||(_e1.toLowerCase().indexOf("video.google.com")!=-1&&_e2.indexOf("videoplay")!=-1)||(_e1.toLowerCase().indexOf("metacafe.com")!=-1&&_e2.indexOf("watch")!=-1)||(_e1.toLowerCase().indexOf("revver.com")!=-1&&_e2.indexOf("watch")!=-1)||(_e1.toLowerCase().indexOf("video.xanga.com")!=-1)||(_e1.toLowerCase().indexOf("photobucket.com")!=-1&&this.current_url.indexOf("action=view")!=-1)||(_e1.toLowerCase().indexOf("veoh.com")!=-1&&_e2.indexOf("videos")!=-1)||(_e1.toLowerCase().indexOf("vids.myspace.com")!=-1)||_e4.toLowerCase()=="mp3"){this.showFlashOverlay();}}catch(e){}},cloneBubble:function(){var _e5=this;var _e6=this.div.main.cloneNode(true);var _e7=document.getElementsByTagName("body")[0];_e7.insertBefore(_e6,this.div.main);var _e8=this.other_bubbles.length;this.other_bubbles[_e8]=new Object();this.other_bubbles[_e8].main=_e6;this.get_all_shot_nodes(this.other_bubbles[_e8].main,this.other_bubbles[_e8]);this.other_bubbles[_e8].current_url=this.current_url;this.other_bubbles[_e8].current_tag=this.current_tag;this.other_bubbles[_e8].cfg=this.cfg;var div=this.other_bubbles[_e8];this.observe(div["search_form"],"submit",this.form_submit,_e8);var box=div["box"];this.observe(box,"focus",function(ev){if(box.value===_e5.cfg.text.SearchTheWeb){box.value="";}});var _ec=div.main.getElementsByTagName("input");for(var i=0;i<_ec.length;i++){if(_ec[i].tagName.toLowerCase()=="input"&&_ec[i].id.indexOf("box")==-1&&_ec[i].id.indexOf("submit")==-1&&_ec[i].id.indexOf("cancel")==-1){_ec[i].type="hidden";}}if(this.spasense_url&&div.spasense_iframe.src!=this.spasense_url){try{div.spasense_iframe.contentWindow.location.replace(this.spasense_url);}catch(e){div.spasense_iframe.src=this.spasense_url;}}else{div.spasense_iframe.src="about:blank";}return _e8;},startFlash:function(){this.showDragOverlay();var _ee=this.cloneBubble();var div=this.other_bubbles[_ee];this.observe(div["drag_overlay"],"mousedown",this.dragStart,_ee);this.observe(div["pin_close_img"],"click",this.destroy_bubble,_ee);this.observe(div["pin_close_img"],"mouseover",this.handleMenuRoll,"pin_close_img",true,_ee);this.observe(div["pin_close_img"],"mouseout",this.handleMenuRoll,"pin_close_img",false,_ee);this.addMenuEvents(div,_ee);var _f0=div["preview"];if(this.isSafari){if(this.div.preview){_f0.src="about:blank";this.later(0,function(){_f0.src=this.shot_url+"#autoplay";});}}else{_f0.contentWindow.location.replace(this.shot_url+"#autoplay");}this.pin(_ee);this.hide();},showFlashOverlay:function(){this.div.flash_overlay.style.display="";this.div.drag_overlay.style.display="none";},hideFlashOverlay:function(){this.div.flash_overlay.style.display="none";this.div.drag_overlay.style.display="none";},showDragOverlay:function(){this.div.flash_overlay.style.display="none";this.div.drag_overlay.style.display="";},dragStart:function(ev,_f2){var _f3=this;this.drag_state="start";this.dragged_bubble=_f2;this.dragStartX=this.pointerX(ev);this.dragStartY=this.pointerY(ev);this.other_bubbles[this.dragged_bubble].drag_overlay.style.left=(this.other_bubbles[this.dragged_bubble].cfg.css_pos.drag_overlay.x-300)+"px";this.other_bubbles[this.dragged_bubble].drag_overlay.style.top=(this.other_bubbles[this.dragged_bubble].cfg.css_pos.drag_overlay.y-300)+"px";this.other_bubbles[this.dragged_bubble].drag_overlay.style.width=(this.other_bubbles[this.dragged_bubble].cfg.css_pos.drag_overlay.w+600)+"px";this.other_bubbles[this.dragged_bubble].drag_overlay.style.height=(this.other_bubbles[this.dragged_bubble].cfg.css_pos.drag_overlay.h+600)+"px";},dragMove:function(ev){this.current_ex=this.getPageX(ev);this.current_ey=this.getPageY(ev);if(this.isOpera&&this.div.main.style.visibility=="visible"&&ev.target.tagName.toLowerCase()!="a"&&ev.target.className.indexOf("Snap_Shot_")==-1&&ev.target.className.indexOf("snap_preview_icon")==-1){var top=this.getTop(this.div.main);var _f6=this.getLeft(this.div.main);var _f7=this.getBottom(this.div.main);var _f8=this.getRight(this.div.main);var _f9=ev.pageX||(ev.clientX+(document.documentElement.scrollLeft||document.body.scrollLeft));var _fa=ev.pageY||(ev.clientY+(document.documentElement.scrollTop||document.body.scrollTop));var _fb=(_f9>_f6&&_f9<_f8&&_fa>top&&_fa<_f7);if(!_fb){this.hide_delay(null,this.cfg.delay.hide);}}if(this.drag_state!="start"){return;}var _fc=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=_fc.offsetLeft;var oby=_fc.offsetTop;var _101=obx-0+x;var _102=oby-0+y;var _103=-1*this.div.bubble.offsetLeft;if(_101<_103){_101=_103;}var _104=-1*this.div.bubble.offsetTop;if(_102<_104){_102=_104;}_fc.style.left=_101+"px";_fc.style.top=_102+"px";if(_101!=_103){this.dragStartX=this.pointerX(ev);}if(_102!=_104){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(_106){return _106.pageX||(_106.clientX+(document.documentElement.scrollLeft||document.body.scrollLeft));},pointerY:function(_107){return _107.pageY||(_107.clientY+(document.documentElement.scrollTop||document.body.scrollTop));},form_submit:function(ev,_109){if(_109==null){var div=this.div;}else{var div=this.other_bubbles[_109];}var tg=(window.event)?ev.srcElement:ev.target;if(tg!=div.search_form){return;}var _10c=false;if(div.box.value===this.cfg.text.SearchTheWeb){div.form_campaign.value=this.campaign("defaulttext");if(this.cfg.search_type!="adult"){_10c=true;}}else{if(div.box.value===""){div.form_campaign.value=this.campaign("emptybox");_10c=true;}else{div.form_campaign.value=this.campaign("bsb");}}if(_10c){var _10d=this.cfg.prefix.search+"?source="+encodeURIComponent(this.cfg.source)+"&campaign="+div.form_campaign.value;if(this.cfg.search_type=="image"){_10d+="&query=sunflower";}window.open(_10d,"_blank");ev.returnValue=false;if(ev.preventDefault){ev.preventDefault();}return false;}ev.cancelBubble=true;},sendPrecrawlList:function(){var _10e="?key="+this.cfg.key;for(var i=this.num_precrawl_sent;i1800){break;}_10e+="url"+(i+1)+"="+encodeURIComponent(url);}this.num_precrawl_sent=i;_10e+="&url_count="+this.thumbnail_precrawl_list.length;this.div.lg.src=this.cfg.prefix.preview+"thumbnail_precrawl.php"+_10e;if(this.num_precrawl_sent!=this.thumbnail_precrawl_list.length){this.later(1000,this.sendPrecrawlList);}},logFeatureClick:function(_111){this.div.lg.src=this.cfg.prefix.preview+"halo_proxy.php?feature_type="+_111+"&img=1&r="+this.now();},setPreviewIframeSrc:function(_112,_113){if(_113==null){var div=this.div;}else{var div=this.other_bubbles[_113];}if(this.isSafari){if(div.preview){this.later(50,function(){div.preview.src=(_112);});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(_112);}}},sto:function(func,_116){if(this.cfg.flavor=="xanga"){if(window.restrictedSetTimeout){return window.restrictedSetTimeout(func,_116);}else{return window.setTimeout(func,_116);}}else{return window.setTimeout(func,_116);}},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 _118=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];_118=el.offsetParent;var _11b=(this.getStyle(el,"position")=="absolute");if(_118!=el){while(_118){pos[0]+=_118.offsetLeft;pos[1]+=_118.offsetTop;if(this.isSafari&&!_11b&&(this.getStyle(_118,"position")=="absolute")){_11b=true;}_118=_118.offsetParent;}}if(this.isSafari&&_11b){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 _121=-1;var mode=document.compatMode;if((mode||this.isIE)&&!this.isOpera){if(mode==="CSS1Compat"){_121=document.documentElement.clientHeight;}else{_121=document.body.clientHeight;}}else{_121=self.innerHeight;}return _121;},getViewportWidth:function(){var _123=-1;var mode=document.compatMode;if(mode||this.isIE){if(mode==="CSS1Compat"){_123=document.documentElement.clientWidth;}else{_123=document.body.clientWidth;}}else{_123=self.innerWidth;}return _123;},getWidth:function(_125){var _126=parseInt(_125.offsetWidth);if(_125==document.body||_125==document||_125==window){return window.getWidth();}else{if(_125){var _126=parseInt(_125.offsetWidth);return (_126==0)?parseInt(_125.style.width):_126;}else{return null;}}},getHeight:function(_127){if(_127==document.body||_127==document||_127==window){return window.getHeight();}else{if(_127){var _128=parseInt(_127.offsetHeight);return (_128==0)?parseInt(_127.style.height):_128;}else{return null;}}},getLeft:function(_129){return _129.offsetLeft;},getRight:function(_12a){return this.getLeft(_12a)+this.getWidth(_12a);},getTop:function(_12b){return _12b.offsetTop;},getBottom:function(_12c){return this.getTop(_12c)+this.getHeight(_12c);},trim:function(str){return str.replace(/^\s*|\s*$/g,"");},getStyle:function(el,_12f){return el.style[_12f];},getStyleW3C:function(el,_131){var _132=null;if(_131=="float"){_131="cssFloat";}var _133=(document.defaultView)?document.defaultView.getComputedStyle(el,""):null;if(_133){_132=_133[_131];}return el.style[_131]||_132;},getStyleIE:function(el,_135){switch(_135){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":_135="styleFloat";default:var _137=el.currentStyle?el.currentStyle[_135]:null;return (el.style[_135]||_137);}},Rescan:function(_138){if(_138===null){return;}this.shot_scan(_138);}};t.init();return t;};SNAP_COM.shot=SNAP_COM.snap_shot_obj();