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,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;if(!this.cfg.auto_shot_re){this.cfg.auto_shot_re=["."];}this.preview_re=new RegExp("("+this.cfg.auto_shot_re.join("|")+")","i");if(this.cfg.auto_markup_re){this.auto_markup_re=new RegExp(this.cfg.auto_markup_re,"ig");}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;}}this.timer_id.partial=this.later(this.cfg.partial_check.delay,this.partial_check);},get_domain:function(_3){var m=_3.match(/^https?:\/\/([^#]*)/);return m?m[2]:"";},later:function(_5,_6){var _7=this;var _8=Array.prototype.slice.apply(arguments,[2]);return this.sto(function(){_6.apply(_7,_8);},_5);},observe:function(_9,_a,_b){var _c=this;var _d=Array.prototype.slice.apply(arguments,[3]);_d.unshift(undefined);var f=function(ev){_d[0]=ev;_b.apply(_c,_d);};if(_9.addEventListener){if(_a=="mousewheel"){_a="DOMMouseScroll";}_9.addEventListener(_a,f,false);}else{if(_9.attachEvent){_9.attachEvent("on"+_a,f);}}},el_prop:function(_10,key,_12){if(_12!==undefined){if(!_10.snap_com_shot){_10.snap_com_shot={};}_10.snap_com_shot[key]=_12;}return _10.snap_com_shot&&_10.snap_com_shot[key];},now:function(){return (new Date()).getTime();},clear_timer:function(_13){if(this.timer_id[_13]){clearTimeout(this.timer_id[_13]);this.timer_id[_13]=0;}},campaign:function(_14){var m;var id=window.location.host.replace(/:\d+$/,"");if(this.cfg.flavor=="xanga"){m=window.location.pathname.match(/(\/\w+)/);id+=m[1];}var _17="shot_";_17+=_14+"!";if(this.shot_type){_17+=this.shot_type;}_17+="!"+id;return _17;},is_internal_link:function(_18){var m,regexS,regex;var _1a=/^(http|file)s?:\/\/(www\.)?(.*?)\//;if(this.domain===null){m=document.location.href.match(_1a);if(m){this.domain=m[3];}else{this.domain="";}}var _1b=_18.href.match(_1a);if(_1b&&(this.domain==_1b[3])){if(this.cfg.redirect_param){regexS="[\\?&]"+this.cfg.redirect_param+"=([^&#]*)";regex=new RegExp(regexS);if(regex.exec(_18.href)===null){return true;}else{return false;}}else{return true;}}else{return false;}},is_valid_link:function(_1c){var _1d=_1c.href.match(/^(http)s?:\/\/([^#]*)/);var _1e=document.location.href.match(/^(http|file)s?:\/\/([^#]*)/);if(!_1d||!_1e||(_1d[2]==_1e[2])||(_1d[1]!=="http")){return false;}return true;},add_link_icon:function(el){var _20=this.div.link_icon.cloneNode(false);if(!this.needs_png_fix||el.offsetHeight>14){_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,"link_icon",true);this.el_prop(_20,"shot_parent",el);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;if(el.tagName.match(/^AREA$/i)||(_22.length==1&&_22[0].tagName==="IMG")){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.el_prop(el,"done",true);},conditional_activate:function(el,_24){if(this.el_prop(el,"done")||!this.is_valid_link(el)){this.el_prop(el,"done",true);return false;}if(_24.shot[0]&&el.href.indexOf("https://")==-1&&(this.cfg.show_internal||!this.is_internal_link(el))){this.activate(el);return true;}else{this.el_prop(el,"done",true);}return false;},scan_tree:function(_25,_26){var m,i,len,is_link,is_markup=false,nn,tn,nv,am,re,prop={};if(!_26.activated[0]&&this.auto_markup_re&&_25.nodeType==3){nv=_25.nodeValue;re=this.auto_markup_re;m=re.exec(nv);if(m&&(!_25.nextSibling||!this.el_prop(_25.nextSibling,"auto"))){len=this.cfg.auto_markup.length;for(i=0;i10000){_2c=10000;}_2e+=_2c;this.last_partial_check_count=_2d;}}this.timer_id.partial=this.later(this.cfg.partial_check.delay,this.partial_check);this.cfg.partial_check.attempts--;},onload:function(){this.clear_timer("partial");this.cfg.partial_check.attempts=0;if(!this.div_added){this.add_main_div();}this.shot_scan();},get_all_shot_nodes:function(_2f,_30,_31){var els=_2f.getElementsByTagName("*");for(var 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";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.pointer,"mouseover",this.rollover);this.observe(this.div.bubble,"mouseout",this.rollout);this.observe(this.div.pointer,"mouseout",this.rollout);this.observe(this.div.preview,"load",this.lower_loading_img);this.observe(this.div.preview_img,"load",this.preview_img_loaded);this.observe(this.div.option_iframe,"mouseout",function(_3f){_3f.returnValue=false;_3f.cancelBubble=true;});this.observe(this.div.ques_img,"click",this.option_frame,true,false);this.observe(this.div.close_img,"click",this.option_frame,true,true);this.observe(this.div.zoom_img,"click",function(){shot.resize();});this.observe(this.div.option_a,"click",this.option_frame,false,false);var _40=["img_a","url_a"];for(var i=0;i<_40.length;i++){this.observe(this.div[_40[i]],"mouseup",this.link_click);this.observe(this.div[_40[i]],"click",this.link_click);}this.dragFunction=function(ev){shot.dragMove(ev);};this.dragStopFunction=function(ev){shot.dragStop(ev);};this.observe(document,"mousemove",this.dragFunction);this.observe(document,"mouseup",this.dragStopFunction);this.observe(this.div.flash_overlay,"click",this.startFlash);this.observe(document,"mousewheel",function(ev){shot.disabled=true;clearTimeout(shot.disableTimer);shot.disableTimer=shot.sto(function(){shot.disabled=false;},200);});this.observe(this.div.search_form,"submit",this.form_submit);this.observe(this.div.box,"focus",function(ev){if(shot.div.box.value===shot.cfg.text.SearchTheWeb){shot.div.box.value="";}});var _46="?source="+encodeURIComponent(this.cfg.source)+"&campaign=";this.div.logo_a.href=this.cfg.href.logo+_46+this.campaign("bsblogo");this.div.cobrand_a.href=this.cfg.href.cobrand;if(this.div.cobrand_a.href.indexOf(this.cfg.prefix.snap)===0){this.div.cobrand_a.href+=_46+this.campaign("link");}this.div.search_form.action=this.cfg.prefix.search;el=document.createElement("input");el.type="hidden";el.name="source";el.value=encodeURIComponent(this.cfg.source);this.div.search_form.appendChild(el);el=document.createElement("input");el.type="hidden";el.name="campaign";el.id="snap_com_shot_form_campaign";el.value="";this.div.search_form.appendChild(el);this.div.form_campaign=el;el=document.createElement("input");el.type="hidden";el.name="spa_key";el.value=encodeURIComponent(this.cfg.key);this.div.search_form.appendChild(el);if(this.cfg.search_type=="adult"){el=document.createElement("input");el.type="hidden";el.name="spa_adult";el.value="1";this.div.search_form.appendChild(el);}this.orientation("bl");},resize:function(_47){var i,len,p,mult,o,shot,div=this.div,cfg=this.cfg;var x=div.main.style.left.replace(/[^-\d]/g,""),y=div.main.style.top.replace(/[^-\d]/g,"");if(_47===undefined){this.cfg.size=(this.cfg.size=="large")?"small":"large";}else{if(this.cfg.size==_47){return;}else{this.cfg.size=_47;}}mult=(this.cfg.size=="large")?1:-1;len=cfg.resize.w_list.length;for(i=0;i(_60/2))?"b":"t";_63+=(_61>(_5f/2))?"r":"l";var _64=this.cfg.css_pos.main.h-30;if(_62<_64&&_63.substr(0,1)==="b"&&(_60-_62)>(_64*1/2)){_63="t"+_63.substr(1,1);}_5a=this.el_prop(_5c,"shot_parent")||_5c;if(!this.el_prop(_5a,"markup")&&!this.is_valid_link(_5a)){return;}if(this.div.main.style.visibility=="visible"){if(this.current_element!=_5a){_58=_59;}else{return;}}this.timer_id.show=this.later(_58,this.show,_5c,ex,ey,_63);},show:function(_65,ex,ey,_68){var _69=this.get_shot_data(_65);if(this.other_bubbles){for(var i=0;imax){url=url.substr(0,max)+"...";}this.div.url.innerHTML=url;this.div.url_a.href=_7c.url;this.div.img_a.href=_7c.url;this.div.url_a.target=_7c.target;this.div.img_a.target=_7c.target;this.div.url_a.title=this.cfg.text.GoToURL.replace(/%URL/,url);this.div.img_a.title=this.div.url_a.title;}if(!_7c.is_preview||this.cfg.shot_check){if(!_7c.is_preview){this.raise_shot("iframe");}shot_url=this.cfg.prefix.preview+"shot"+shot_base+"&cp="+this.campaign("view")+"&w="+this.cfg.css_pos.preview_div.w+"&h="+this.cfg.css_pos.preview_div.h+"&target="+_7c.target+"&tag="+encodeURIComponent(_7c.tag)+"&goto="+encodeURIComponent(this.cfg.text.GoToURL)+"&sc="+(_7c.is_preview?"1":"0");fragment="#rt"+this.now();if(this.isSafari){if(this.div.preview){this.later(0,function(){this.div.preview.src=(shot_url+fragment);});if(!_7c.is_preview){this.later(300,this.lower_loading_img);}}}else{if(this.div.preview.contentWindow){this.div.preview.contentWindow.location.replace(shot_url+fragment);}}}this.shot_url=shot_url;},is_preview_url:function(url){var m=url.match(/\w+:\/\/([^#]*)/);if(m&&m[1].match(this.preview_re)){return false;}return true;},get_inner_text:function(el,_83){var _84="";if(el.innerText!==undefined){_84=el.innerText;}else{if(el.textContent!==undefined){_84=el.textContent;}}return this.trim(_84).substr(0,_83);},get_shot_data:function(el){var i,j,m,els;var _87;var key,val;var _89=[];var _8a={"svc":"","tag":"","url":"","target":"","element":el,"trigger":""};if(this.el_prop(el,"link_icon")){_8a.trigger="icon";}else{_8a.trigger="link";}el=this.el_prop(el,"shot_parent")||el;_8a.element=el;_8a.trigger=(this.el_prop(el,"trigger")=="both"?"both":"only")+"_"+_8a.trigger;if(el.href!==undefined){_8a.url=el.href;_8a.target=el.target;}if(this.cfg.redirect_param){regexS="[\\?&]"+this.cfg.redirect_param+"=([^&#]*)";regex=new RegExp(regexS);m=_8a.url.match(regex);if(m){_8a.redir_url=decodeURIComponent(m[1]);}}else{_8a.redir_url=_8a.url;}if((el.innerText!==undefined)&&el.innerText.length){_8a.tag=this.trim(el.innerText).substr(0,500).replace(String.fromCharCode(164),"¤");}else{if(el.textContent!==undefined){_8a.tag=this.trim(el.textContent).substr(0,500);}else{_8a.tag=this.trim(el.innerHTML).substr(0,500);}}if(this.el_prop(el,"markup")){_89.push(encodeURIComponent(el.className.match(/\bSnap_Shot_.*?\b/g).join("|")));_87=el.firstChild;while(_87){if(_87.tagName){m=_87.className.match(/\bSnap_Shot_.*?\b/g);if(m){key=encodeURIComponent(m.join("|"));val=encodeURIComponent(this.get_inner_text(_87,500));_89.push(key+"="+val);}}_87=_87.nextSibling;}_8a.svc=_89.join("&");}else{_8a.is_preview=this.is_preview_url(_8a.redir_url);}return _8a;},confirm_shot_load:function(_8b){if(this.view.id){this.div.arrow.src=this.cfg.prefix.image+"snip/arrow-contd/"+this.view.id+"/d/"+_8b+"/p"+(this.now()-this.view.time)+"/arrow/";}this.view.id=null;},preview_img_loaded:function(ev){var pi=this.div.preview_img;if(pi.height==3&&pi.width==6){this.raise_shot("iframe");if(this.isSafari){this.later(300,this.lower_loading_img);}}else{this.lower_loading_img();this.confirm_shot_load("ps");}},link_click:function(ev){var _8f;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 _92=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.campaign("redir");this.div.url_a.href=_92+"&tol=url";this.div.img_a.href=_92+"&tol=image";_8f=this;this.sto(function(){_8f.div.url_a.href=_8f.current_url;_8f.div.img_a.href=_8f.current_url;},0);}},sample:function(){var i,len,n,rates=[];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.imp.auto&&(this.cfg.srate.auto>=r)){rates.push("a"+this.cfg.srate.auto);}if(rates.length){n=document.createElement("img");n.src=this.cfg.prefix.image+"spl/l"+this.imp.link+"_i"+this.imp.icon+"_a"+this.imp.auto+"/"+rates.join("_")+"/"+this.cfg.key+"/s.gif";n.style.visibility="hidden";n.style.position="absolute";this.div.main.parentNode.insertBefore(n,this.div.main.nextSibling);}}},rollover:function(ev){this.highlight(true);},rollout:function(ev){var _97=ev.relatedTarget||ev.toElement;if(_97==null){return;}if(this.isOpera){var top=this.getTop(this.div.main);var _99=this.getLeft(this.div.main);var _9a=this.getBottom(this.div.main);var _9b=this.getRight(this.div.main);var _9c=ev.pageX||(ev.clientX+(document.documentElement.scrollLeft||document.body.scrollLeft));var _9d=ev.pageY||(ev.clientY+(document.documentElement.scrollTop||document.body.scrollTop));var _9e=(_9c>_99&&_9c<_9b&&_9d>top&&_9d<_9a);if(_9e){return;}}this.highlight(false);this.hide_delay(null,100);},pin:function(_9f){this.other_bubbles[_9f].zoom_img.style.display="none";this.other_bubbles[_9f].pin_close_img.style.visibility="";this.other_bubbles[_9f].pin_close_img.style.display="";this.orientation("pin",false,_9f);},destroy_bubble:function(ev,_a1){this.other_bubbles[_a1].style.display="none";this.other_bubbles[_a1].current_url=null;this.other_bubbles[_a1].current_tag=null;this.other_bubbles[_a1].parentNode.removeChild(this.other_bubbles[_a1]);},pin_check:function(_a2){this.hideFlashOverlay();try{try{var _a3=this.current_url.split("//")[1].split("/")[0];var _a4=this.current_url.split("//")[1].split("/")[1];var tmp=this.current_url.split("?")[0].split(".");var _a6=tmp[tmp.length-1];}catch(e){}if((_a2.svc&&_a2.svc.indexOf("Snap_Shot_")!=-1&&(_a2.svc.indexOf("Video")!=-1||_a2.svc.indexOf("Audio")!=-1))||(_a3.toLowerCase().indexOf("youtube.com")!=-1&&_a4.indexOf("v")!=-1)||(_a3.toLowerCase().indexOf("video.google.com")!=-1&&_a4.indexOf("videoplay")!=-1)||(_a3.toLowerCase().indexOf("metacafe.com")!=-1&&_a4.indexOf("watch")!=-1)||(_a3.toLowerCase().indexOf("revver.com")!=-1&&_a4.indexOf("watch")!=-1)||(_a3.toLowerCase().indexOf("video.xanga.com")!=-1)||(_a3.toLowerCase().indexOf("photobucket.com")!=-1&&this.current_url.indexOf("action=view")!=-1)||_a6.toLowerCase()=="mp3"){this.showFlashOverlay();}}catch(e){}},startFlash:function(){this.showDragOverlay();var _a7=this;var _a8=this.div.main.cloneNode(true);var _a9=document.getElementsByTagName("body")[0];_a9.insertBefore(_a8,this.div.main);var _aa=this.other_bubbles.length;this.other_bubbles[_aa]=_a8;this.other_bubbles[_aa].current_url=this.current_url;this.other_bubbles[_aa].current_tag=this.current_tag;var _ab=_a8.getElementsByTagName("*");for(var i=0;i<_ab.length;i++){if(_ab[i].id&&_ab[i].id.indexOf("drag_overlay")!=-1){this.observe(_ab[i],"mousedown",this.dragStart,_aa);}if(_ab[i].id&&_ab[i].id.indexOf("pin_close_img")!=-1){this.observe(_ab[i],"click",this.destroy_bubble,_aa);}if(_ab[i].id&&_ab[i].id.indexOf("ques_img")!=-1){this.observe(_ab[i],"click",this.option_frame,true,false,_aa);}if(_ab[i].id&&_ab[i].id.indexOf("close_img")!=-1){this.observe(_ab[i],"click",this.option_frame,true,true,_aa);}if(_ab[i].id&&_ab[i].id.indexOf("option_a")!=-1){this.observe(_ab[i],"click",this.option_frame,false,false,_aa);}if(_ab[i].id&&_ab[i].id.indexOf("search_form")!=-1){this.other_bubbles[_aa].search_form=_ab[i];this.observe(_ab[i],"submit",this.form_submit,_aa);}if(_ab[i].id&&_ab[i].id.indexOf("box")!=-1){this.other_bubbles[_aa].box=_ab[i];var box=_ab[i];this.observe(box,"focus",function(ev){if(box.value===_a7.cfg.text.SearchTheWeb){box.value="";}});}if(_ab[i].id&&_ab[i].id.indexOf("form_campaign")!=-1){this.other_bubbles[_aa].form_campaign=_ab[i];}if(_ab[i].id&&_ab[i].id.indexOf("option_iframe")!=-1){this.other_bubbles[_aa].option_iframe=_ab[i];}if(_ab[i].id&&_ab[i].id.indexOf("options")!=-1){this.other_bubbles[_aa].options=_ab[i];}if(_ab[i].id&&_ab[i].id.indexOf("body")!=-1){this.other_bubbles[_aa].body=_ab[i];}if(_ab[i].id&&_ab[i].id.indexOf("pin_close_img")!=-1){this.other_bubbles[_aa].pin_close_img=_ab[i];}if(_ab[i].id&&_ab[i].id.indexOf("bg_img")!=-1){this.other_bubbles[_aa].bg_img=_ab[i];}if(_ab[i].id&&_ab[i].id.indexOf("pointer")!=-1){this.other_bubbles[_aa].pointer=_ab[i];}if(_ab[i].id&&_ab[i].id.indexOf("zoom_img")!=-1){this.other_bubbles[_aa].zoom_img=_ab[i];}if(_ab[i].tagName.toLowerCase()=="input"&&_ab[i].id.indexOf("box")==-1&&_ab[i].id.indexOf("submit")==-1){_ab[i].type="hidden";}}var _af=_a8.getElementsByTagName("iframe")[0];if(this.isSafari){if(this.div.preview){_af.src="about:blank";this.later(0,function(){_af.src=this.shot_url+"#autoplay";});}}else{_af.contentWindow.location.replace(this.shot_url+"#autoplay");}this.pin(_aa);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,_b1){var _b2=this;this.drag_state="start";this.dragged_bubble=_b1;this.dragStartX=this.pointerX(ev);this.dragStartY=this.pointerY(ev);},dragMove:function(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 _b5=this.getLeft(this.div.main);var _b6=this.getBottom(this.div.main);var _b7=this.getRight(this.div.main);var _b8=ev.pageX||(ev.clientX+(document.documentElement.scrollLeft||document.body.scrollLeft));var _b9=ev.pageY||(ev.clientY+(document.documentElement.scrollTop||document.body.scrollTop));var _ba=(_b8>_b5&&_b8<_b7&&_b9>top&&_b9<_b6);if(!_ba){this.hide_delay(null,100);}}if(this.drag_state!="start"){return;}var _bb=this.other_bubbles[this.dragged_bubble];var x=this.pointerX(ev);var y=this.pointerY(ev);x=x-this.dragStartX;y=y-this.dragStartY;var obx=_bb.offsetLeft;var oby=_bb.offsetTop;var _c0=obx-0+x;var _c1=oby-0+y;_bb.style.left=_c0+"px";_bb.style.top=_c1+"px";this.dragStartX=this.pointerX(ev);this.dragStartY=this.pointerY(ev);},dragStop:function(ev){this.drag_state="off";},pointerX:function(_c3){return _c3.pageX||(_c3.clientX+(document.documentElement.scrollLeft||document.body.scrollLeft));},pointerY:function(_c4){return _c4.pageY||(_c4.clientY+(document.documentElement.scrollTop||document.body.scrollTop));},form_submit:function(ev,_c6){if(_c6==null){var div=this.div;}else{var div=this.other_bubbles[_c6];}var tg=(window.event)?ev.srcElement:ev.target;if(tg!=div.search_form){return;}var _c9=false;if(div.box.value===this.cfg.text.SearchTheWeb){div.form_campaign.value=this.campaign("defaulttext");if(this.cfg.search_type!="adult"){_c9=true;}}else{if(div.box.value===""){div.form_campaign.value=this.campaign("emptybox");_c9=true;}else{div.form_campaign.value=this.campaign("bsb");}}if(_c9){var _ca=this.cfg.prefix.search+"?source="+encodeURIComponent(this.cfg.source)+"&campaign="+div.form_campaign.value;if(this.cfg.search_type=="image"){_ca+="&query=sunflower";}window.open(_ca,"_blank");ev.returnValue=false;if(ev.preventDefault){ev.preventDefault();}return false;}ev.cancelBubble=true;},sto:function(_cb,_cc){if(this.cfg.flavor=="xanga"){return window.restrictedSetTimeout(_cb,_cc);}else{return window.setTimeout(_cb,_cc);}},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)),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&&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 _d2=-1;var _d3=document.compatMode;if((_d3||this.isIE)&&!this.isOpera){if(_d3==="CSS1Compat"){_d2=document.documentElement.clientHeight;}else{_d2=document.body.clientHeight;}}else{_d2=self.innerHeight;}return _d2;},getViewportWidth:function(){var _d4=-1;var _d5=document.compatMode;if(_d5||this.isIE){if(_d5==="CSS1Compat"){_d4=document.documentElement.clientWidth;}else{_d4=document.body.clientWidth;}}else{_d4=self.innerWidth;}return _d4;},getWidth:function(_d6){var _d7=parseInt(_d6.offsetWidth);if(_d6==document.body||_d6==document||_d6==window){return window.getWidth();}else{if(_d6){var _d7=parseInt(_d6.offsetWidth);return (_d7==0)?parseInt(_d6.style.width):_d7;}else{return null;}}},getHeight:function(_d8){if(_d8==document.body||_d8==document||_d8==window){return window.getHeight();}else{if(_d8){var _d9=parseInt(_d8.offsetHeight);return (_d9==0)?parseInt(_d8.style.height):_d9;}else{return null;}}},getLeft:function(_da){return _da.offsetLeft;},getRight:function(_db){return this.getLeft(_db)+this.getWidth(_db);},getTop:function(_dc){return _dc.offsetTop;},getBottom:function(_dd){return this.getTop(_dd)+this.getHeight(_dd);},trim:function(str){return str.replace(/^\s*|\s*$/g,"");},Rescan:function(_df){if(_df===null){return;}this.shot_scan(_df);}};t.init();return t;};SNAP_COM.shot=SNAP_COM.snap_shot_obj();