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|head|option|applet|code|link|input|map|textarea)$/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){_3d=10000;}_3f+=_3d;this.last_partial_check_count=_3e;}if(this.first_scan){this.first_scan=false;}else{this.sample();}}this.timer_id.partial=this.later(_3f,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(_40,_41,_42){var els=_40.getElementsByTagName("*");for(var i=0;i=100){_4e=60;div.submit.style.width=_4e+"px";}var _50=_4f-_4e-38;if(_50>0){div.box.style.width=_50+"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(_9a/2))?"b":"t";_9d+=(_9b>(_99/2))?"r":"l";var _9e=this.cfg.css_pos.main.h-30;if(_9c<_9e&&_9d.substr(0,1)==="b"&&(_9a-_9c)>(_9e*1/2)){_9d="t"+_9d.substr(1,1);}_96=this.el_prop(_98,"shot_parent")||_98;if(!this.el_prop(_96,"markup")&&!this.is_valid_link(_96)){return;}if(this.div.main.style.visibility=="visible"){if(this.current_element!=_96){_94=_95;}else{return;}}this.timer_id.show=this.later(_94,this.show,_98,_9d);},show:function(_9f,_a0){var ex;var ey;if((this.cfg.trigger_position=="icon")&&this.el_prop(_9f,"link_icon")){offset=this.getXY(this.el_prop(_9f,"link_icon")||_9f);ex=offset[0];ey=offset[1];}else{ex=this.current_ex;ey=this.current_ey;}var _a3=this.get_shot_data(_9f);if(this.other_bubbles){for(var i=0;i_bf){div.disable_a.style.width=_be;}else{if(_bf>_be){div.option_a.style.width=_bf;}}}},hideOptionMenu:function(_c0){if(_c0==null){var div=this.div;}else{var div=this.other_bubbles[_c0];}div.option_menu.style.visibility="hidden";},changePaletteImg:function(_c2,_c3,_c4){if(_c4==null){var div=this.div;}else{var div=this.other_bubbles[_c4];}var cfg=this.cfg;if(cfg.palette[_c3]==null){return;}var s=div[_c2].style;s.backgroundColor="transparent";s.backgroundImage="url("+cfg.img.palette+")";s.backgroundPosition=cfg.palette[_c3].loc;s.backgroundRepeat="no-repeat";s.width=cfg.palette[_c3].w+"px";s.height=cfg.palette[_c3].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(_cb,_cc){if(_cc==null){var div=this.div;}else{var div=this.other_bubbles[_cc];}var _ce="hidden",iframe="";if(_cb=="preview"){_ce="";iframe="hidden";}div.preview.style.visibility=iframe;div.preview_img.style.visibility=_ce;div.url_a.style.visibility=_ce;},show_shot:function(_cf,_d0,_d1){var url,fragment,max,shot_url,shot_base,b,bimg,burl,cp,rand_rate,is_custom_shot=false;if(_d0==null){var div=this.div;var cfg=this.cfg;}else{var div=this.other_bubbles[_d0];var cfg=this.other_bubbles[_d0].cfg;}var _d5=0,shot=this,imgs=_cf.element.getElementsByTagName("img");for(var i=0;irand_rate)){_d8=true;cp="shot_banner_survey";bimg=cfg.banner.survey.img.replace(/#SIZE#/,cfg.size);burl=cfg.banner.survey.url;}else{if(!_d9&&cfg.banner.addon&&cfg.banner.addon.rate&&(this.isFirefox||this.isIE)&&!SNAP_COM.clientActive&&(cfg.search_box==true)&&(cfg.banner.addon.rate>=rand_rate)){_d8=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(!_d9&&cfg.banner.pluginOn&&cfg.banner.pluginOn.rate&&SNAP_COM.clientActive&&(cfg.search_box==true)&&(cfg.banner.pluginOn.rate>=rand_rate)){_d8=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(_d8){div.banner.href=burl;div.banner.style.backgroundImage="url("+bimg+")";div.banner.style.visibility="";}else{div.banner.style.visibility="hidden";}var _da=this.rand_hash(_cf.url+_cf.svc+_cf.tag);if(_d1){_da="nolog";}shot_base="/?url="+encodeURIComponent(_cf.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="+_cf.trigger+"&po="+(cfg.preview_only?"1":"0")+"&rp="+encodeURIComponent(cfg.redirect_param)+"&has_img="+_d5+"&ol=0&ex=0"+"&ad="+(_d8?cp:"")+"&ip="+cfg.client_ip+"&ua="+cfg.user_agent+"&vid="+_da+"&nl="+(_d1?"1":"0")+"&referrer="+encodeURIComponent(location.href)+"&svc="+encodeURIComponent(_cf.svc);this.shot_base=shot_base;this.pin_check(_cf);this.preview_viewed=false;this.iframe_viewed=false;if(_cf.is_preview){this.shot_type="preview";this.view.id=this.rand_hash(_cf.url);this.view.time=this.now();shot_url=shot_base+"&view_id="+this.view.id+"&goto="+encodeURIComponent(cfg.text.GoToURL);this.raise_shot("preview",_d0);this.clear_timer("retry");if(this.retry_url_list[_cf.url]){div.preview_img.src=this.retry_url_list[_cf.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&rss=1";this.update_preview_links(_cf,_d0);}this.shot_data=_cf;if(!_cf.is_preview||cfg.shot_check==1){if(!_cf.is_preview){this.raise_shot("iframe",_d0);}shot_url=cfg.prefix.preview+"shot"+shot_base+"&w="+cfg.css_pos.preview_div.w+"&h="+cfg.css_pos.preview_div.h+"&target="+_cf.target+"&tag="+encodeURIComponent(_cf.tag)+"&goto="+encodeURIComponent(cfg.text.GoToURL)+(_d1?"&log=0":"")+"&sc="+(_cf.is_preview?"1":"0");if(_cf.auto){shot_url+="&as=1"+"&asp="+encodeURIComponent(_cf.auto.pattern)+"&aseid="+encodeURIComponent(_cf.auto.eid)+"&astid="+encodeURIComponent(_cf.auto.tid);}fragment="#rt"+this.now();if(_d0!==undefined&&_d0!==null){fragment+="#autoplay";}this.iframe_viewed=true;this.setPreviewIframeSrc(shot_url+fragment,_d0);if(_d7==div.preview_img.src){this.lower_loading_img();}if(_cf.svc&&_cf.svc.indexOf("Snap_Shot_RSS")!=-1){this.showTopLeftMenu(_d0);this.rss_toggle(null,"rss",_d0);}}this.shot_trigger_is_preview=_cf.is_preview;this.shot_url=shot_url;var _db=cfg.prefix.spasense+"rk.php?key="+cfg.key+"&lang="+cfg.lang+"&th="+cfg.theme+"&rtl="+cfg.rtl+"&url="+encodeURIComponent(_cf.url)+"&html="+encodeURIComponent(_cf.element.innerHTML.substr(0,500))+"&cp="+this.campaign("spasense")+"&s="+cfg.size+"&svc="+encodeURIComponent(_cf.svc)+"&tag="+encodeURIComponent(_cf.tag)+"&src="+encodeURIComponent(cfg.source);if(is_custom_shot&&cfg.search_box==true){var _dc=80-cfg.css_pos.spasense_iframe.h;var _dd=(cfg.css_pos.main.h+_dc);if(_dd!=div.main.offsetHeight){div.main.style.height=_dd+"px";div.spasense_iframe.style.height=80+"px";this.draw_bubble(_d0);this.orientation(this.current_orientation,_d0);}_db=shot_url;_db=_db.replace("&size=large&","&size=bottom_large&");_db=_db.replace("&size=small&","&size=bottom_small&");this.spasense_url=_db;if(div.spasense_iframe.src!=_db){try{div.spasense_iframe.contentWindow.location.replace(_db);}catch(e){div.spasense_iframe.src=_db;}}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&&!_d8){this.spasense_url=_db;if(div.spasense_iframe.src!=_db){try{div.spasense_iframe.contentWindow.location.replace(_db);}catch(e){div.spasense_iframe.src=_db;}}}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(_de,_df){var max,url;if(_df==null){var div=this.div;var cfg=this.cfg;}else{var div=this.other_bubbles[_df];var cfg=this.other_bubbles[_df].cfg;}url=_de.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=_de.url;div.url_favicon.href=_de.url;div.url_arrow.href=_de.url;div.img_a.href=_de.url;div.url_a.target=_de.target;div.url_favicon.target=_de.target;div.url_arrow.target=_de.target;div.img_a.target=_de.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,_e6){var _e7="";if(el.innerText!==undefined){_e7=el.innerText;}else{if(el.textContent!==undefined){_e7=el.textContent;}}if(_e6===undefined){return this.trim(_e7).substr(0);}else{return this.trim(_e7).substr(0,_e6);}},get_shot_data:function(el){var i,j,m,els;var _ea;var key,val;var _ec=[];var _ed={"svc":"","tag":"","url":"","target":"","element":el,"trigger":"","auto":false};if(this.el_prop(el,"is_link_icon")){_ed.trigger="icon";}else{_ed.trigger="link";}el=this.el_prop(el,"shot_parent")||el;_ed.element=el;_ed.trigger=(this.el_prop(el,"trigger")=="both"?"both":"only")+"_"+_ed.trigger;if(el.href!==undefined){_ed.url=el.href;_ed.target=el.target;}if(typeof SNAP_COM!="undefined"&&SNAP_COM.translateURL){if(_ed.target.toLowerCase()=="_search"){_ed.target="_SELF";}_ed.url=SNAP_COM.translateURL(_ed.url);_ed.redir_url=_ed.url;}if(this.cfg.redirect_param){regexS="[\\?&]"+this.cfg.redirect_param+"=([^&#]*)";regex=new RegExp(regexS);m=_ed.url.match(regex);if(m){_ed.redir_url=decodeURIComponent(m[1]);}else{_ed.redir_url=_ed.url;}}else{_ed.redir_url=_ed.url;}if((el.innerText!==undefined)&&el.innerText.length){_ed.tag=this.trim(el.innerText).substr(0,500).replace(String.fromCharCode(164),"¤");}else{if(el.textContent!==undefined){_ed.tag=this.trim(el.textContent).substr(0,500);}else{_ed.tag=this.trim(el.innerHTML).substr(0,500);}}if(this.el_prop(el,"markup")){_ec.push(encodeURIComponent(el.className.match(/\bsnap_shots?_\S+/ig).join("|")));_ea=el.firstChild;while(_ea){if(_ea.tagName){m=_ea.className.match(/\bsnap_shots?_\S+/ig);if(m){key=encodeURIComponent(m.join("|"));val=encodeURIComponent(this.get_inner_text(_ea,500));_ec.push(key+"="+val);}}_ea=_ea.nextSibling;}_ed.svc=_ec.join("&");}else{_ed.is_preview=this.is_preview_url(_ed.redir_url);}if(this.el_prop(el,"auto")){_ed.auto=this.el_prop(el,"autoshot_data");}return _ed;},confirm_shot_load:function(_ee){if(this.view.id){this.div.arrow.src=this.cfg.prefix.image+"snip/arrow-contd/"+this.view.id+"/d/"+_ee+"/p"+(this.now()-this.view.time)+"/arrow/";}this.view.id=null;},rss_check_loaded:function(ev,_f0){if(_f0==null){var div=this.div;}else{var div=this.other_bubbles[_f0];}if(ev.currentTarget){var pi=ev.currentTarget;}else{var pi=ev.srcElement;}if(pi.height==3&&pi.width==6){this.showTopLeftMenu(_f0);if(this.cfg.shot_check==1){this.rss_toggle(null,"rss",_f0);this.lower_loading_img();this.raise_shot("iframe",_f0);if(this.isSafari){this.later(300,this.lower_loading_img);}}else{this.rss_toggle(null,"preview",_f0);}}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 _f3=this.shot_base+"&view_id="+this.view.id+"&goto="+encodeURIComponent(this.cfg.text.GoToURL);div.preview_img.src=this.cfg.prefix.preview+"preview"+_f3+"&direct=1&sc=0";}}},preview_img_loaded:function(ev){if(ev.currentTarget){var pi=ev.currentTarget;}else{var pi=ev.srcElement;}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&&pi.src.indexOf("&vid=nolog")==-1){this.confirm_shot_load("ps");}if(this.div.preview_img.width==274||this.div.preview_img.width==431){var _f6=1;var url=this.div.preview_img.src;var _f8=/retry=(\d+)/;var _f9=url.match(_f8);if(_f9){_f6=Number(_f9[1])+1;url=url.replace(_f8,"retry="+_f6);}else{url+="&retry="+_f6;}if(_f6>this.cfg.retry_interval.length){return;}if(_f6==this.cfg.retry_interval.length){url+="&final=1";}var _fa=this;var _fb=this.cfg.retry_interval[_f6-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(){_fa.div.preview_img.src=url;},_fb);}}}}},link_click:function(ev){var _fd;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 _100=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=_100+"&tol=url";this.div.url_favicon.href=_100+"&tol=url_favicon";this.div.url_arrow.href=_100+"&tol=url_arrow";this.div.img_a.href=_100+"&tol=image";_fd=this;this.sto(function(){_fd.div.url_a.href=_fd.current_url;_fd.div.url_favicon.href=_fd.current_url;_fd.div.url_arrow.href=_fd.current_url;_fd.div.img_a.href=_fd.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;ileft&&_10a<_109&&_10b>top&&_10b<_108);if(_10c){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(_10f){if(_10f==null){var div=this.div;}else{var div=this.other_bubbles[_10f];}this.orientation("pin",false,_10f);div.pin_close_img.style.display="inline";},destroy_bubble:function(ev,_112){this.other_bubbles[_112].main.style.display="none";this.other_bubbles[_112].current_url=null;this.other_bubbles[_112].current_tag=null;this.other_bubbles[_112].main.parentNode.removeChild(this.other_bubbles[_112].main);},pin_check:function(_113){this.hideFlashOverlay();this.div.pin_close_img.style.display="none";try{try{var _114=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 _117=tmp[tmp.length-1];}catch(e){}if((_113.svc&&_113.svc.indexOf("Snap_Shot_")!=-1&&(_113.svc.indexOf("Video")!=-1||_113.svc.indexOf("Audio")!=-1))||(_114.toLowerCase().indexOf("youtube.com")!=-1&&path.indexOf("v")!=-1&&path.indexOf("view_play_list?")==-1)||(_114.toLowerCase().indexOf("video.google.com")!=-1&&path.indexOf("videoplay")!=-1)||(_114.toLowerCase().indexOf("metacafe.com")!=-1&&path.indexOf("watch")!=-1)||(_114.toLowerCase().indexOf("revver.com")!=-1&&path.indexOf("watch")!=-1)||(_114.toLowerCase().indexOf("video.xanga.com")!=-1)||(_114.toLowerCase().indexOf("photobucket.com")!=-1&&this.current_url.indexOf("action=view")!=-1)||(_114.toLowerCase().indexOf("veoh.com")!=-1&&path.indexOf("videos")!=-1)||(_114.toLowerCase().indexOf("vids.myspace.com")!=-1)||_117.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 _11b=this.other_bubbles.length;this.other_bubbles[_11b]=new Object();this.other_bubbles[_11b].main=node;this.get_all_shot_nodes(this.other_bubbles[_11b].main,this.other_bubbles[_11b]);this.other_bubbles[_11b].current_url=this.current_url;this.other_bubbles[_11b].current_tag=this.current_tag;this.other_bubbles[_11b].current_element=this.current_element;this.other_bubbles[_11b].current_orientation=this.current_orientation;this.other_bubbles[_11b].cfg=this.cfg;var div=this.other_bubbles[_11b];this.observe(div["submit"],"click",this.form_submit,_11b);this.observe(div["box"],"keydown",this.form_submit,_11b);var box=div["box"];this.observe(box,"focus",function(ev){if(box.value===shot.cfg.text.SearchTheWeb){box.value="";}});this.observe(div.rss_check,"load",this.rss_check_loaded,_11b);var divs=div.main.getElementsByTagName("input");for(var i=0;ileft&&_132<_131&&_133>top&&_133<_130);if(!_134){this.hide_delay(null,this.cfg.delay.hide);}}if(this.drag_state!="start"){return;}var _135=div.main;var x=this.pointerX(ev);var y=this.pointerY(ev);x=x-this.dragStartX;y=y-this.dragStartY;var obx=_135.offsetLeft;var oby=_135.offsetTop;var _13a=obx-0+x;var _13b=oby-0+y;var _13c=-1*div.bubble.offsetLeft;if(_13a<_13c){_13a=_13c;}var _13d=-1*div.bubble.offsetTop;if(_13b<_13d){_13b=_13d;}_135.style.left=_13a+"px";_135.style.top=_13b+"px";if(_13a!=_13c){this.dragStartX=this.pointerX(ev);}if(_13b!=_13d){this.dragStartY=this.pointerY(ev);}if(!ev){var ev=window.event;}ev.cancelBubble=true;if(ev.stopPropagation){ev.stopPropagation();}},dragStop:function(ev){if(this.drag_state!="start"){return;}this.drag_state="off";if(this.dragged_bubble==null){var div=this.div;var cfg=this.cfg;}else{var div=this.other_bubbles[this.dragged_bubble];var cfg=this.other_bubbles[this.dragged_bubble].cfg;}div.drag_overlay.style.left=cfg.css_pos.drag_overlay.x+"px";div.drag_overlay.style.top=cfg.css_pos.drag_overlay.y+"px";div.drag_overlay.style.width=cfg.css_pos.drag_overlay.w+"px";div.drag_overlay.style.height=cfg.css_pos.drag_overlay.h+"px";if(this.dragged_bubble==null){div.preview_img.src=cfg.prefix.cdn_image+"t.gif";div.rss_check.src=cfg.prefix.cdn_image+"t.gif";if(this.isSafari){div.preview.src="about:blank";}this.pinAndClone();}this.dragged_bubble=null;},pointerX:function(_141){return _141.pageX||(_141.clientX+(document.documentElement.scrollLeft||document.body.scrollLeft));},pointerY:function(_142){return _142.pageY||(_142.clientY+(document.documentElement.scrollTop||document.body.scrollTop));},form_submit:function(ev,_144){if(_144==null){var div=this.div;}else{var div=this.other_bubbles[_144];}var _146=false;var _147="bsb";if(div.box.value===this.cfg.text.SearchTheWeb){_147=this.campaign("defaulttext");if(this.cfg.search_type!="adult"){_146=true;}}else{if(div.box.value===""){_147=this.campaign("emptybox");_146=true;}else{_147=this.campaign("bsb");}}var _148=this.cfg.prefix.search+"?source="+encodeURIComponent(this.cfg.source)+"&campaign="+_147;if(_146){if(this.cfg.search_type=="image"){_148+="&query=sunflower";}}else{_148+="&query="+encodeURIComponent(div.box.value);_148+="&spa_key="+encodeURIComponent(this.cfg.key);if(this.cfg.search_type=="adult"){_148+="&spa_adult=1";}}var tg=(window.event)?ev.srcElement:ev.target;if(tg==div.box){var _14a=ev.keyCode;if(_14a==13){ev.returnValue=false;if(ev.preventDefault){ev.preventDefault();}location.href=_148;}return;}else{if(tg==div.submit){window.open(_148,"_blank");ev.returnValue=false;if(ev.preventDefault){ev.preventDefault();}return false;}}},sendPrecrawlList:function(){var _14b="?key="+this.cfg.key;for(var i=this.num_precrawl_sent;i1800){break;}_14b+="url"+(i+1)+"="+encodeURIComponent(url);}this.num_precrawl_sent=i;_14b+="&url_count="+this.thumbnail_precrawl_list.length;this.div.lg.src=this.cfg.prefix.preview+"thumbnail_precrawl.php"+_14b;if(this.num_precrawl_sent!=this.thumbnail_precrawl_list.length){this.later(1000,this.sendPrecrawlList);}},logFeatureClick:function(_14e){this.div.lg.src=this.cfg.prefix.preview+"halo_proxy.php?feature_type="+_14e+"&img=1&r="+this.now();},setPreviewIframeSrc:function(_14f,_150){if(_150==null){var div=this.div;}else{var div=this.other_bubbles[_150];}if(this.isSafari){if(div.preview){this.later(50,function(){div.preview.src=(_14f);});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(_14f);}}},sto:function(func,_153){if(this.cfg.flavor=="xanga"){if(window.restrictedSetTimeout){return window.restrictedSetTimeout(func,_153);}else{return window.setTimeout(func,_153);}}else{return window.setTimeout(func,_153);}},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 _155=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];_155=el.offsetParent;var _158=(this.getStyle(el,"position")=="absolute");if(_155!=el){while(_155){pos[0]+=_155.offsetLeft;pos[1]+=_155.offsetTop;if(this.isSafari&&!_158&&(this.getStyle(_155,"position")=="absolute")){_158=true;}_155=_155.offsetParent;}}if(this.isSafari&&_158){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 _15e=-1;var mode=document.compatMode;if((mode||this.isIE)&&!this.isOpera){if(mode==="CSS1Compat"){_15e=document.documentElement.clientHeight;}else{_15e=document.body.clientHeight;}}else{_15e=self.innerHeight;}return _15e;},getViewportWidth:function(){var _160=-1;var mode=document.compatMode;if(mode||this.isIE){if(mode==="CSS1Compat"){_160=document.documentElement.clientWidth;}else{_160=document.body.clientWidth;}}else{_160=self.innerWidth;}return _160;},getWidth:function(_162){var _163=parseInt(_162.offsetWidth);if(_162==document.body||_162==document||_162==window){return window.getWidth();}else{if(_162){var _163=parseInt(_162.offsetWidth);return (_163==0)?parseInt(_162.style.width):_163;}else{return null;}}},getHeight:function(_164){if(_164==document.body||_164==document||_164==window){return window.getHeight();}else{if(_164){var _165=parseInt(_164.offsetHeight);return (_165==0)?parseInt(_164.style.height):_165;}else{return null;}}},getLeft:function(_166){return _166.offsetLeft;},getRight:function(_167){return this.getLeft(_167)+this.getWidth(_167);},getTop:function(_168){return _168.offsetTop;},getBottom:function(_169){return this.getTop(_169)+this.getHeight(_169);},trim:function(str){return str.replace(/^\s*|\s*$/g,"");},getStyle:function(el,_16c){return el.style[_16c];},getStyleW3C:function(el,_16e){var _16f=null;if(_16e=="float"){_16e="cssFloat";}var _170=(document.defaultView)?document.defaultView.getComputedStyle(el,""):null;if(_170){_16f=_170[_16e];}return el.style[_16e]||_16f;},getStyleIE:function(el,_172){switch(_172){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":_172="styleFloat";default:var _174=el.currentStyle?el.currentStyle[_172]:null;return (el.style[_172]||_174);}},Rescan:function(_175){if(_175===null){return;}if(this.div_added){this.shot_scan(_175);}}};t.init();return t;};if(SNAP_COM.shot_config.version=="2.26.1"){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.26.1";SNAP_COM.vmiss.style.positions="absolute";SNAP_COM.vmiss.style.visibility="none";}