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;this.first_scan=true;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=[];}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;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;}if(this.first_scan){this.first_scan=false;}else{this.sample();}}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();this.sample();},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(_8d/2))?"b":"t";_90+=(_8e>(_8c/2))?"r":"l";var _91=this.cfg.css_pos.main.h-30;if(_8f<_91&&_90.substr(0,1)==="b"&&(_8d-_8f)>(_91*1/2)){_90="t"+_90.substr(1,1);}_89=this.el_prop(_8b,"shot_parent")||_8b;if(!this.el_prop(_89,"markup")&&!this.is_valid_link(_89)){return;}if(this.div.main.style.visibility=="visible"){if(this.current_element!=_89){_87=_88;}else{return;}}this.timer_id.show=this.later(_87,this.show,_8b,_90);},show:function(_92,_93){var ex;var ey;if((this.cfg.trigger_position=="icon")&&this.el_prop(_92,"link_icon")){offset=this.getXY(this.el_prop(_92,"link_icon")||_92);ex=offset[0];ey=offset[1];}else{ex=this.current_ex;ey=this.current_ey;}var _96=this.get_shot_data(_92);if(this.other_bubbles){for(var i=0;i_b2){div.disable_a.style.width=_b1;}else{if(_b2>_b1){div.option_a.style.width=_b2;}}}},hideOptionMenu:function(_b3){if(_b3==null){var div=this.div;}else{var div=this.other_bubbles[_b3];}div.option_menu.style.visibility="hidden";},changePaletteImg:function(_b5,_b6,_b7){if(_b7==null){var div=this.div;}else{var div=this.other_bubbles[_b7];}var cfg=this.cfg;if(cfg.palette[_b6]==null){return;}var s=div[_b5].style;s.backgroundColor="transparent";s.backgroundImage="url("+cfg.img.palette+")";s.backgroundPosition=cfg.palette[_b6].loc;s.backgroundRepeat="no-repeat";s.width=cfg.palette[_b6].w+"px";s.height=cfg.palette[_b6].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(_be){var _bf="none",iframe="inline";if(_be=="preview"){_bf="inline";iframe="none";}this.div.preview.style.display=iframe;this.div.preview_img.style.display=_bf;this.div.url_a.style.display=_bf;},show_shot:function(_c0,_c1){var url,fragment,max,shot_url,shot_base,b,bimg,burl,cp,rand_rate,is_custom_shot=false;if(_c1==null){var div=this.div;var cfg=this.cfg;}else{var div=this.other_bubbles[_c1];var cfg=this.other_bubbles[_c1].cfg;}var _c5=0,shot=this,imgs=_c0.element.getElementsByTagName("img");for(var i=0;irand_rate)){_c8=true;cp="shot_banner_survey";bimg=cfg.banner.survey.img.replace(/#SIZE#/,cfg.size);burl=cfg.banner.survey.url;}else{if(!_c9&&cfg.banner.addon&&cfg.banner.addon.rate&&(this.isFirefox||this.isIE)&&!SNAP_COM.clientActive&&(cfg.search_box==true)&&(cfg.banner.addon.rate>=rand_rate)){_c8=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(!_c9&&cfg.banner.pluginOn&&cfg.banner.pluginOn.rate&&SNAP_COM.clientActive&&(cfg.search_box==true)&&(cfg.banner.pluginOn.rate>=rand_rate)){_c8=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(_c8){div.banner.href=burl;div.banner.style.backgroundImage="url("+bimg+")";div.banner.style.visibility="";}else{div.banner.style.visibility="hidden";}var _ca=this.rand_hash(_c0.url+_c0.svc+_c0.tag);shot_base="/?url="+encodeURIComponent(_c0.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="+_c0.trigger+"&po="+(cfg.preview_only?"1":"0")+"&rp="+encodeURIComponent(cfg.redirect_param)+"&has_img="+_c5+"&ol=0&ex=0"+"&ad="+(_c8?cp:"")+"&ip="+cfg.client_ip+"&ua="+cfg.user_agent+"&vid="+_ca+"&referrer="+encodeURIComponent(location.href)+"&svc="+encodeURIComponent(_c0.svc);this.shot_base=shot_base;this.pin_check(_c0);this.preview_viewed=false;this.iframe_viewed=false;if(_c0.is_preview){this.shot_type="preview";this.view.id=this.rand_hash(_c0.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[_c0.url]){div.preview_img.src=this.retry_url_list[_c0.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(_c0,_c1);}this.shot_data=_c0;if(!_c0.is_preview||cfg.shot_check==1){if(!_c0.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="+_c0.target+"&tag="+encodeURIComponent(_c0.tag)+"&goto="+encodeURIComponent(cfg.text.GoToURL)+"&sc="+(_c0.is_preview?"1":"0");if(_c0.auto){shot_url+="&as=1"+"&asp="+encodeURIComponent(_c0.auto.pattern)+"&aseid="+encodeURIComponent(_c0.auto.eid)+"&astid="+encodeURIComponent(_c0.auto.tid);}fragment="#rt"+this.now();if(_c1!==undefined&&_c1!==null){fragment+="#autoplay";}this.iframe_viewed=true;this.setPreviewIframeSrc(shot_url+fragment,_c1);if(_c7==div.preview_img.src){this.lower_loading_img();}if(_c0.svc&&_c0.svc.indexOf("Snap_Shot_RSS")!=-1){this.showTopLeftMenu();this.rss_toggle(null,"rss");}}this.shot_trigger_is_preview=_c0.is_preview;this.shot_url=shot_url;var _cb=cfg.prefix.spasense+"rk.php?key="+cfg.key+"&lang="+cfg.lang+"&th="+cfg.theme+"&rtl="+cfg.rtl+"&url="+_c0.url+"&html="+encodeURIComponent(_c0.element.innerHTML.substr(0,500))+"&cp="+this.campaign("spasense")+"&s="+cfg.size+"&svc="+encodeURIComponent(_c0.svc)+"&tag="+encodeURIComponent(_c0.tag)+"&src="+encodeURIComponent(cfg.source);if(is_custom_shot&&cfg.search_box==true){var _cc=80-cfg.css_pos.spasense_iframe.h;var _cd=(cfg.css_pos.main.h+_cc);if(_cd!=div.main.offsetHeight){div.main.style.height=_cd+"px";div.spasense_iframe.style.height=80+"px";this.draw_bubble();this.orientation(this.current_orientation);}_cb=shot_url;_cb=_cb.replace("&size=large","&size=bottom_large");_cb=_cb.replace("&size=small","&size=bottom_small");this.spasense_url=_cb;if(div.spasense_iframe.src!=_cb){try{div.spasense_iframe.contentWindow.location.replace(_cb);}catch(e){div.spasense_iframe.src=_cb;}}div.spasense_iframe.style.visibility="";div.banner.style.visibility="hidden";}else{div.main.style.height=cfg.css_pos.main.h+"px";div.spasense_iframe.style.height=cfg.css_pos["spasense_iframe"].h+"px";this.draw_bubble();if(cfg.search_type=="spasense"&&cfg.search_box==true&&!_c8){this.spasense_url=_cb;if(div.spasense_iframe.src!=_cb){try{div.spasense_iframe.contentWindow.location.replace(_cb);}catch(e){div.spasense_iframe.src=_cb;}}}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";}}div.spasense_iframe.style.visibility="hidden";}}},update_preview_links:function(_ce,_cf){var max,url;if(_cf==null){var div=this.div;var cfg=this.cfg;}else{var div=this.other_bubbles[_cf];var cfg=this.other_bubbles[_cf].cfg;}url=_ce.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=_ce.url;div.url_favicon.href=_ce.url;div.url_arrow.href=_ce.url;div.img_a.href=_ce.url;div.url_a.target=_ce.target;div.url_favicon.target=_ce.target;div.url_arrow.target=_ce.target;div.img_a.target=_ce.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,_d6){var _d7="";if(el.innerText!==undefined){_d7=el.innerText;}else{if(el.textContent!==undefined){_d7=el.textContent;}}if(_d6===undefined){return this.trim(_d7).substr(0);}else{return this.trim(_d7).substr(0,_d6);}},get_shot_data:function(el){var i,j,m,els;var _da;var key,val;var _dc=[];var _dd={"svc":"","tag":"","url":"","target":"","element":el,"trigger":"","auto":false};if(this.el_prop(el,"is_link_icon")){_dd.trigger="icon";}else{_dd.trigger="link";}el=this.el_prop(el,"shot_parent")||el;_dd.element=el;_dd.trigger=(this.el_prop(el,"trigger")=="both"?"both":"only")+"_"+_dd.trigger;if(el.href!==undefined){_dd.url=el.href;_dd.target=el.target;}if(typeof SNAP_COM!="undefined"&&SNAP_COM.translateURL){if(_dd.target.toLowerCase()=="_search"){_dd.target="_SELF";}_dd.url=SNAP_COM.translateURL(_dd.url);_dd.redir_url=_dd.url;}if(this.cfg.redirect_param){regexS="[\\?&]"+this.cfg.redirect_param+"=([^&#]*)";regex=new RegExp(regexS);m=_dd.url.match(regex);if(m){_dd.redir_url=decodeURIComponent(m[1]);}else{_dd.redir_url=_dd.url;}}else{_dd.redir_url=_dd.url;}if((el.innerText!==undefined)&&el.innerText.length){_dd.tag=this.trim(el.innerText).substr(0,500).replace(String.fromCharCode(164),"¤");}else{if(el.textContent!==undefined){_dd.tag=this.trim(el.textContent).substr(0,500);}else{_dd.tag=this.trim(el.innerHTML).substr(0,500);}}if(this.el_prop(el,"markup")){_dc.push(encodeURIComponent(el.className.match(/\bsnap_shots?_\S+/ig).join("|")));_da=el.firstChild;while(_da){if(_da.tagName){m=_da.className.match(/\bsnap_shots?_\S+/ig);if(m){key=encodeURIComponent(m.join("|"));val=encodeURIComponent(this.get_inner_text(_da,500));_dc.push(key+"="+val);}}_da=_da.nextSibling;}_dd.svc=_dc.join("&");}else{_dd.is_preview=this.is_preview_url(_dd.redir_url);}if(this.el_prop(el,"auto")){_dd.auto=this.el_prop(el,"autoshot_data");}return _dd;},confirm_shot_load:function(_de){if(this.view.id){this.div.arrow.src=this.cfg.prefix.image+"snip/arrow-contd/"+this.view.id+"/d/"+_de+"/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.width==1&&pi.height==2&&this.cfg.shot_check==1){this.view.id=this.rand_hash(this.shot_data.url);this.view.time=this.now();var _e1=this.shot_base+"&view_id="+this.view.id+"&goto="+encodeURIComponent(this.cfg.text.GoToURL);this.div.preview_img.src=this.cfg.prefix.preview+"preview"+_e1+"&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 _e4=1;var url=this.div.preview_img.src;var _e6=/retry=(\d+)/;var _e7=url.match(_e6);if(_e7){_e4=Number(_e7[1])+1;url=url.replace(_e6,"retry="+_e4);}else{url+="&retry="+_e4;}if(_e4>this.cfg.retry_interval.length){return;}if(_e4==this.cfg.retry_interval.length){url+="&final=1";}var _e8=this;var _e9=this.cfg.retry_interval[_e4-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(){_e8.div.preview_img.src=url;},_e9);}}}}},link_click:function(ev){var _eb;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 _ee=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=_ee+"&tol=url";this.div.url_favicon.href=_ee+"&tol=url_favicon";this.div.url_arrow.href=_ee+"&tol=url_arrow";this.div.img_a.href=_ee+"&tol=image";_eb=this;this.sto(function(){_eb.div.url_a.href=_eb.current_url;_eb.div.url_favicon.href=_eb.current_url;_eb.div.url_arrow.href=_eb.current_url;_eb.div.img_a.href=_eb.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_f5&&_f8<_f7&&_f9>top&&_f9<_f6);if(_fa){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(_fd){this.other_bubbles[_fd].pin_close_img.style.display="inline";this.orientation("pin",false,_fd);},destroy_bubble:function(ev,_ff){this.other_bubbles[_ff].main.style.display="none";this.other_bubbles[_ff].current_url=null;this.other_bubbles[_ff].current_tag=null;this.other_bubbles[_ff].main.parentNode.removeChild(this.other_bubbles[_ff].main);},pin_check:function(_100){this.hideFlashOverlay();try{try{var _101=this.current_url.split("//")[1].split("/")[0];var path=this.current_url.split("//")[1].split("/")[1];var tmp=this.current_url.split("?")[0].split(".");var _104=tmp[tmp.length-1];}catch(e){}if((_100.svc&&_100.svc.indexOf("Snap_Shot_")!=-1&&(_100.svc.indexOf("Video")!=-1||_100.svc.indexOf("Audio")!=-1))||(_101.toLowerCase().indexOf("youtube.com")!=-1&&path.indexOf("v")!=-1&&path.indexOf("view_play_list?")==-1)||(_101.toLowerCase().indexOf("video.google.com")!=-1&&path.indexOf("videoplay")!=-1)||(_101.toLowerCase().indexOf("metacafe.com")!=-1&&path.indexOf("watch")!=-1)||(_101.toLowerCase().indexOf("revver.com")!=-1&&path.indexOf("watch")!=-1)||(_101.toLowerCase().indexOf("video.xanga.com")!=-1)||(_101.toLowerCase().indexOf("photobucket.com")!=-1&&this.current_url.indexOf("action=view")!=-1)||(_101.toLowerCase().indexOf("veoh.com")!=-1&&path.indexOf("videos")!=-1)||(_101.toLowerCase().indexOf("vids.myspace.com")!=-1)||_104.toLowerCase()=="mp3"){this.showFlashOverlay();}}catch(e){}},cloneBubble:function(){var shot=this;var node=this.div.main.cloneNode(true);var body=document.getElementsByTagName("body")[0];body.insertBefore(node,this.div.main);var _108=this.other_bubbles.length;this.other_bubbles[_108]=new Object();this.other_bubbles[_108].main=node;this.get_all_shot_nodes(this.other_bubbles[_108].main,this.other_bubbles[_108]);this.other_bubbles[_108].current_url=this.current_url;this.other_bubbles[_108].current_tag=this.current_tag;this.other_bubbles[_108].cfg=this.cfg;var div=this.other_bubbles[_108];this.observe(div["submit"],"click",this.form_submit,_108);this.observe(div["box"],"keydown",this.form_submit,_108);var box=div["box"];this.observe(box,"focus",function(ev){if(box.value===shot.cfg.text.SearchTheWeb){box.value="";}});var divs=div.main.getElementsByTagName("input");for(var i=0;ileft&&_119<_118&&_11a>top&&_11a<_117);if(!_11b){this.hide_delay(null,this.cfg.delay.hide);}}if(this.drag_state!="start"){return;}var _11c=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=_11c.offsetLeft;var oby=_11c.offsetTop;var _121=obx-0+x;var _122=oby-0+y;var _123=-1*this.div.bubble.offsetLeft;if(_121<_123){_121=_123;}var _124=-1*this.div.bubble.offsetTop;if(_122<_124){_122=_124;}_11c.style.left=_121+"px";_11c.style.top=_122+"px";if(_121!=_123){this.dragStartX=this.pointerX(ev);}if(_122!=_124){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(_126){return _126.pageX||(_126.clientX+(document.documentElement.scrollLeft||document.body.scrollLeft));},pointerY:function(_127){return _127.pageY||(_127.clientY+(document.documentElement.scrollTop||document.body.scrollTop));},form_submit:function(ev,_129){if(_129==null){var div=this.div;}else{var div=this.other_bubbles[_129];}var _12b=false;var _12c="bsb";if(div.box.value===this.cfg.text.SearchTheWeb){_12c=this.campaign("defaulttext");if(this.cfg.search_type!="adult"){_12b=true;}}else{if(div.box.value===""){_12c=this.campaign("emptybox");_12b=true;}else{_12c=this.campaign("bsb");}}var _12d=this.cfg.prefix.search+"?source="+encodeURIComponent(this.cfg.source)+"&campaign="+_12c;if(_12b){if(this.cfg.search_type=="image"){_12d+="&query=sunflower";}}else{_12d+="&query="+encodeURIComponent(div.box.value);_12d+="&spa_key="+encodeURIComponent(this.cfg.key);if(this.cfg.search_type=="adult"){_12d+="&spa_adult=1";}}var tg=(window.event)?ev.srcElement:ev.target;if(tg==div.box){var _12f=ev.keyCode;if(_12f==13){ev.returnValue=false;if(ev.preventDefault){ev.preventDefault();}location.href=_12d;}return;}else{if(tg==div.submit){window.open(_12d,"_blank");ev.returnValue=false;if(ev.preventDefault){ev.preventDefault();}return false;}}},sendPrecrawlList:function(){var _130="?key="+this.cfg.key;for(var i=this.num_precrawl_sent;i1800){break;}_130+="url"+(i+1)+"="+encodeURIComponent(url);}this.num_precrawl_sent=i;_130+="&url_count="+this.thumbnail_precrawl_list.length;this.div.lg.src=this.cfg.prefix.preview+"thumbnail_precrawl.php"+_130;if(this.num_precrawl_sent!=this.thumbnail_precrawl_list.length){this.later(1000,this.sendPrecrawlList);}},logFeatureClick:function(_133){this.div.lg.src=this.cfg.prefix.preview+"halo_proxy.php?feature_type="+_133+"&img=1&r="+this.now();},setPreviewIframeSrc:function(_134,_135){if(_135==null){var div=this.div;}else{var div=this.other_bubbles[_135];}if(this.isSafari){if(div.preview){this.later(50,function(){div.preview.src=(_134);});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(_134);}}},sto:function(func,_138){if(this.cfg.flavor=="xanga"){if(window.restrictedSetTimeout){return window.restrictedSetTimeout(func,_138);}else{return window.setTimeout(func,_138);}}else{return window.setTimeout(func,_138);}},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 _13a=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];_13a=el.offsetParent;var _13d=(this.getStyle(el,"position")=="absolute");if(_13a!=el){while(_13a){pos[0]+=_13a.offsetLeft;pos[1]+=_13a.offsetTop;if(this.isSafari&&!_13d&&(this.getStyle(_13a,"position")=="absolute")){_13d=true;}_13a=_13a.offsetParent;}}if(this.isSafari&&_13d){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 _143=-1;var mode=document.compatMode;if((mode||this.isIE)&&!this.isOpera){if(mode==="CSS1Compat"){_143=document.documentElement.clientHeight;}else{_143=document.body.clientHeight;}}else{_143=self.innerHeight;}return _143;},getViewportWidth:function(){var _145=-1;var mode=document.compatMode;if(mode||this.isIE){if(mode==="CSS1Compat"){_145=document.documentElement.clientWidth;}else{_145=document.body.clientWidth;}}else{_145=self.innerWidth;}return _145;},getWidth:function(_147){var _148=parseInt(_147.offsetWidth);if(_147==document.body||_147==document||_147==window){return window.getWidth();}else{if(_147){var _148=parseInt(_147.offsetWidth);return (_148==0)?parseInt(_147.style.width):_148;}else{return null;}}},getHeight:function(_149){if(_149==document.body||_149==document||_149==window){return window.getHeight();}else{if(_149){var _14a=parseInt(_149.offsetHeight);return (_14a==0)?parseInt(_149.style.height):_14a;}else{return null;}}},getLeft:function(_14b){return _14b.offsetLeft;},getRight:function(_14c){return this.getLeft(_14c)+this.getWidth(_14c);},getTop:function(_14d){return _14d.offsetTop;},getBottom:function(_14e){return this.getTop(_14e)+this.getHeight(_14e);},trim:function(str){return str.replace(/^\s*|\s*$/g,"");},getStyle:function(el,_151){return el.style[_151];},getStyleW3C:function(el,_153){var _154=null;if(_153=="float"){_153="cssFloat";}var _155=(document.defaultView)?document.defaultView.getComputedStyle(el,""):null;if(_155){_154=_155[_153];}return el.style[_153]||_154;},getStyleIE:function(el,_157){switch(_157){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":_157="styleFloat";default:var _159=el.currentStyle?el.currentStyle[_157]:null;return (el.style[_157]||_159);}},Rescan:function(_15a){if(_15a===null){return;}if(this.div_added){this.shot_scan(_15a);}}};t.init();return t;};if(SNAP_COM.shot_config.version=="2.24.2"){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.2";SNAP_COM.vmiss.style.positions="absolute";SNAP_COM.vmiss.style.visibility="none";}