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;this.as_id_count=0;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\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".replace(/__T_GIF__/g,this.cfg.prefix.cdn_image+"t.gif");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(_97/2))?"b":"t";_9a+=(_98>(_96/2))?"r":"l";var _9b=this.cfg.css_pos.main.h-30;if(_99<_9b&&_9a.substr(0,1)==="b"&&(_97-_99)>(_9b*1/2)){_9a="t"+_9a.substr(1,1);}_93=this.el_prop(_95,"shot_parent")||_95;if(!this.el_prop(_93,"markup")&&!this.is_valid_link(_93)){return;}if(this.div.main.style.visibility=="visible"){if(this.current_element!=_93){_91=_92;}else{return;}}this.timer_id.show=this.later(_91,this.show,_95,_9a);},show:function(_9c,_9d){var ex;var ey;if((this.cfg.trigger_position=="icon")&&this.el_prop(_9c,"link_icon")){offset=this.getXY(this.el_prop(_9c,"link_icon")||_9c);ex=offset[0];ey=offset[1];}else{ex=this.current_ex;ey=this.current_ey;}var _a0=this.get_shot_data(_9c);if(this.other_bubbles){for(var i=0;i_bc){div.disable_a.style.width=_bb;}else{if(_bc>_bb){div.option_a.style.width=_bc;}}}},hideOptionMenu:function(_bd){if(_bd==null){var div=this.div;}else{var div=this.other_bubbles[_bd];}div.option_menu.style.visibility="hidden";},changePaletteImg:function(_bf,_c0,_c1){if(_c1==null){var div=this.div;}else{var div=this.other_bubbles[_c1];}var cfg=this.cfg;if(cfg.palette[_c0]==null){return;}var s=div[_bf].style;s.backgroundColor="transparent";s.backgroundImage="url("+cfg.img.palette+")";s.backgroundPosition=cfg.palette[_c0].loc;s.backgroundRepeat="no-repeat";s.width=cfg.palette[_c0].w+"px";s.height=cfg.palette[_c0].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(_c8,_c9){if(_c9==null){var div=this.div;}else{var div=this.other_bubbles[_c9];}var _cb="hidden",iframe="";if(_c8=="preview"){_cb="";iframe="hidden";}div.preview.style.visibility=iframe;div.preview_img.style.visibility=_cb;div.url_a.style.visibility=_cb;},show_shot:function(_cc,_cd,_ce){var url,fragment,max,shot_url,shot_base,b,bimg,burl,cp,rand_rate,is_custom_shot=false;if(_cd==null){var div=this.div;var cfg=this.cfg;}else{var div=this.other_bubbles[_cd];var cfg=this.other_bubbles[_cd].cfg;}var _d2=0,shot=this,imgs=_cc.element.getElementsByTagName("img");for(var i=0;imax){url=url.substr(0,max)+"...";}div.url.innerHTML=url;div.url_a.href=_dd.url;div.url_favicon.href=_dd.url;div.url_arrow.href=_dd.url;div.img_a.href=_dd.url;div.url_a.target=_dd.target;div.url_favicon.target=_dd.target;div.url_arrow.target=_dd.target;div.img_a.target=_dd.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,_e5){var _e6="";if(el.innerText!==undefined){_e6=el.innerText;}else{if(el.textContent!==undefined){_e6=el.textContent;}}if(_e5===undefined){return this.trim(_e6).substr(0);}else{return this.trim(_e6).substr(0,_e5);}},get_shot_data:function(el){var i,j,m,els;var _e9;var key,val;var _eb=[];var _ec={"svc":"","tag":"","url":"","target":"","element":el,"trigger":"","auto":false};if(this.el_prop(el,"is_link_icon")){_ec.trigger="icon";}else{_ec.trigger="link";}el=this.el_prop(el,"shot_parent")||el;_ec.element=el;_ec.trigger=(this.el_prop(el,"trigger")=="both"?"both":"only")+"_"+_ec.trigger;if(el.href!==undefined){_ec.url=el.href;_ec.target=el.target;}if(typeof SNAP_COM!="undefined"&&SNAP_COM.translateURL){if(_ec.target.toLowerCase()=="_search"){_ec.target="_SELF";}_ec.url=SNAP_COM.translateURL(_ec.url);_ec.redir_url=_ec.url;}if(this.cfg.redirect_param){regexS="[\\?&]"+this.cfg.redirect_param+"=([^&#]*)";regex=new RegExp(regexS);m=_ec.url.match(regex);if(m){_ec.redir_url=decodeURIComponent(m[1]);}else{_ec.redir_url=_ec.url;}}else{_ec.redir_url=_ec.url;}if((el.innerText!==undefined)&&el.innerText.length){_ec.tag=this.trim(el.innerText).substr(0,500).replace(String.fromCharCode(164),"¤");}else{if(el.textContent!==undefined){_ec.tag=this.trim(el.textContent).substr(0,500);}else{_ec.tag=this.trim(el.innerHTML).substr(0,500);}}if(this.el_prop(el,"markup")){_eb.push(encodeURIComponent(el.className.match(/\bsnap_shots?_\S+/ig).join("|")));_e9=el.firstChild;while(_e9){if(_e9.tagName){m=_e9.className.match(/\bsnap_shots?_\S+/ig);if(m){key=encodeURIComponent(m.join("|"));val=encodeURIComponent(this.get_inner_text(_e9,500));_eb.push(key+"="+val);}}_e9=_e9.nextSibling;}_ec.svc=_eb.join("&");}else{_ec.is_preview=this.is_preview_url(_ec.redir_url);}if(this.el_prop(el,"auto")){_ec.auto=this.el_prop(el,"autoshot_data");}return _ec;},confirm_shot_load:function(_ed){if(this.view.id){this.div.arrow.src=this.cfg.prefix.image+"snip/arrow-contd/"+this.view.id+"/d/"+_ed+"/p"+(this.now()-this.view.time)+"/arrow/";}this.view.id=null;},rss_check_loaded:function(ev,_ef){if(_ef==null){var div=this.div;}else{var div=this.other_bubbles[_ef];}if(ev.currentTarget){var pi=ev.currentTarget;}else{var pi=ev.srcElement;}if(pi.height==3&&pi.width==6){this.showTopLeftMenu(_ef);if(this.cfg.shot_check==1){this.rss_toggle(null,"rss",_ef);this.lower_loading_img();this.raise_shot("iframe",_ef);if(this.isSafari){this.later(300,this.lower_loading_img);}}else{this.rss_toggle(null,"preview",_ef);}}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 _f2=this.shot_base+"&view_id="+this.view.id+"&goto="+encodeURIComponent(this.cfg.text.GoToURL);div.preview_img.src=this.cfg.prefix.preview+"preview"+_f2+"&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 _f5=1;var url=this.div.preview_img.src;var _f7=/retry=(\d+)/;var _f8=url.match(_f7);if(_f8){_f5=Number(_f8[1])+1;url=url.replace(_f7,"retry="+_f5);}else{url+="&retry="+_f5;}if(_f5>this.cfg.retry_interval.length){return;}if(_f5==this.cfg.retry_interval.length){url+="&final=1";}var _f9=this;var _fa=this.cfg.retry_interval[_f5-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(){_f9.div.preview_img.src=url;},_fa);}}}}},link_click:function(ev){var _fc;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 _ff=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=_ff+"&tol=url";this.div.url_favicon.href=_ff+"&tol=url_favicon";this.div.url_arrow.href=_ff+"&tol=url_arrow";this.div.img_a.href=_ff+"&tol=image";_fc=this;this.sto(function(){_fc.div.url_a.href=_fc.current_url;_fc.div.url_favicon.href=_fc.current_url;_fc.div.url_arrow.href=_fc.current_url;_fc.div.img_a.href=_fc.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&&_109<_108&&_10a>top&&_10a<_107);if(_10b){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(_10e){if(_10e==null){var div=this.div;}else{var div=this.other_bubbles[_10e];}this.orientation("pin",false,_10e);div.pin_close_img.style.display="inline";},destroy_bubble:function(ev,_111){this.other_bubbles[_111].main.style.display="none";this.other_bubbles[_111].current_url=null;this.other_bubbles[_111].current_tag=null;this.other_bubbles[_111].main.parentNode.removeChild(this.other_bubbles[_111].main);},pin_check:function(_112){this.hideFlashOverlay();this.div.pin_close_img.style.display="none";try{try{var _113=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 _116=tmp[tmp.length-1];}catch(e){}if((_112.svc&&_112.svc.indexOf("Snap_Shot_")!=-1&&(_112.svc.indexOf("Video")!=-1||_112.svc.indexOf("Audio")!=-1))||(_113.toLowerCase().indexOf("youtube.com")!=-1&&path.indexOf("v")!=-1&&path.indexOf("view_play_list?")==-1)||(_113.toLowerCase().indexOf("video.google.com")!=-1&&path.indexOf("videoplay")!=-1)||(_113.toLowerCase().indexOf("metacafe.com")!=-1&&path.indexOf("watch")!=-1)||(_113.toLowerCase().indexOf("revver.com")!=-1&&path.indexOf("watch")!=-1)||(_113.toLowerCase().indexOf("video.xanga.com")!=-1)||(_113.toLowerCase().indexOf("photobucket.com")!=-1&&this.current_url.indexOf("action=view")!=-1)||(_113.toLowerCase().indexOf("veoh.com")!=-1&&path.indexOf("videos")!=-1)||(_113.toLowerCase().indexOf("vids.myspace.com")!=-1)||_116.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 _11a=this.other_bubbles.length;this.other_bubbles[_11a]=new Object();this.other_bubbles[_11a].main=node;this.get_all_shot_nodes(this.other_bubbles[_11a].main,this.other_bubbles[_11a]);this.other_bubbles[_11a].current_url=this.current_url;this.other_bubbles[_11a].current_tag=this.current_tag;this.other_bubbles[_11a].current_element=this.current_element;this.other_bubbles[_11a].current_orientation=this.current_orientation;this.other_bubbles[_11a].cfg=this.cfg;var div=this.other_bubbles[_11a];this.observe(div["submit"],"click",this.form_submit,_11a);this.observe(div["box"],"keydown",this.form_submit,_11a);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,_11a);var divs=div.main.getElementsByTagName("input");for(var i=0;ileft&&_131<_130&&_132>top&&_132<_12f);if(!_133){this.hide_delay(null,this.cfg.delay.hide);}}if(this.drag_state!="start"){return;}var _134=div.main;var x=this.pointerX(ev);var y=this.pointerY(ev);x=x-this.dragStartX;y=y-this.dragStartY;var obx=_134.offsetLeft;var oby=_134.offsetTop;var _139=obx-0+x;var _13a=oby-0+y;var _13b=-1*div.bubble.offsetLeft;if(_139<_13b){_139=_13b;}var _13c=-1*div.bubble.offsetTop;if(_13a<_13c){_13a=_13c;}_134.style.left=_139+"px";_134.style.top=_13a+"px";if(_139!=_13b){this.dragStartX=this.pointerX(ev);}if(_13a!=_13c){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(_140){return _140.pageX||(_140.clientX+(document.documentElement.scrollLeft||document.body.scrollLeft));},pointerY:function(_141){return _141.pageY||(_141.clientY+(document.documentElement.scrollTop||document.body.scrollTop));},form_submit:function(ev,_143){if(_143==null){var div=this.div;}else{var div=this.other_bubbles[_143];}var _145=false;var _146="bsb";if(div.box.value===this.cfg.text.SearchTheWeb){_146=this.campaign("defaulttext");if(this.cfg.search_type!="adult"){_145=true;}}else{if(div.box.value===""){_146=this.campaign("emptybox");_145=true;}else{_146=this.campaign("bsb");}}var _147=this.cfg.prefix.search+"?source="+encodeURIComponent(this.cfg.source)+"&campaign="+_146;if(_145){if(this.cfg.search_type=="image"){_147+="&query=sunflower";}}else{_147+="&query="+encodeURIComponent(div.box.value);_147+="&spa_key="+encodeURIComponent(this.cfg.key);if(this.cfg.search_type=="adult"){_147+="&spa_adult=1";}}var tg=(window.event)?ev.srcElement:ev.target;if(tg==div.box){var _149=ev.keyCode;if(_149==13){ev.returnValue=false;if(ev.preventDefault){ev.preventDefault();}location.href=_147;}return;}else{if(tg==div.submit){window.open(_147,"_blank");ev.returnValue=false;if(ev.preventDefault){ev.preventDefault();}return false;}}},sendPrecrawlList:function(){var _14a="?key="+this.cfg.key;for(var i=this.num_precrawl_sent;i1800){break;}_14a+="url"+(i+1)+"="+encodeURIComponent(url);}this.num_precrawl_sent=i;_14a+="&url_count="+this.thumbnail_precrawl_list.length;this.div.lg.src=this.cfg.prefix.preview+"thumbnail_precrawl.php"+_14a;if(this.num_precrawl_sent!=this.thumbnail_precrawl_list.length){this.later(1000,this.sendPrecrawlList);}},logFeatureClick:function(_14d){this.div.lg.src=this.cfg.prefix.preview+"halo_proxy.php?feature_type="+_14d+"&img=1&r="+this.now();},setPreviewIframeSrc:function(_14e,_14f){if(_14f==null){var div=this.div;}else{var div=this.other_bubbles[_14f];}if(this.isSafari){if(div.preview){this.later(50,function(){div.preview.src=(_14e);});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(_14e);}}},sto:function(func,_152){if(this.cfg.flavor=="xanga"){if(window.restrictedSetTimeout){return window.restrictedSetTimeout(func,_152);}else{return window.setTimeout(func,_152);}}else{return window.setTimeout(func,_152);}},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 _154=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];_154=el.offsetParent;var _157=(this.getStyle(el,"position")=="absolute");if(_154!=el){while(_154){pos[0]+=_154.offsetLeft;pos[1]+=_154.offsetTop;if(this.isSafari&&!_157&&(this.getStyle(_154,"position")=="absolute")){_157=true;}_154=_154.offsetParent;}}if(this.isSafari&&_157){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 _15d=-1;var mode=document.compatMode;if((mode||this.isIE)&&!this.isOpera){if(mode==="CSS1Compat"){_15d=document.documentElement.clientHeight;}else{_15d=document.body.clientHeight;}}else{_15d=self.innerHeight;}return _15d;},getViewportWidth:function(){var _15f=-1;var mode=document.compatMode;if(mode||this.isIE){if(mode==="CSS1Compat"){_15f=document.documentElement.clientWidth;}else{_15f=document.body.clientWidth;}}else{_15f=self.innerWidth;}return _15f;},getWidth:function(_161){var _162=parseInt(_161.offsetWidth);if(_161==document.body||_161==document||_161==window){return window.getWidth();}else{if(_161){var _162=parseInt(_161.offsetWidth);return (_162==0)?parseInt(_161.style.width):_162;}else{return null;}}},getHeight:function(_163){if(_163==document.body||_163==document||_163==window){return window.getHeight();}else{if(_163){var _164=parseInt(_163.offsetHeight);return (_164==0)?parseInt(_163.style.height):_164;}else{return null;}}},getLeft:function(_165){return _165.offsetLeft;},getRight:function(_166){return this.getLeft(_166)+this.getWidth(_166);},getTop:function(_167){return _167.offsetTop;},getBottom:function(_168){return this.getTop(_168)+this.getHeight(_168);},trim:function(str){return str.replace(/^\s*|\s*$/g,"");},getStyle:function(el,_16b){return el.style[_16b];},getStyleW3C:function(el,_16d){var _16e=null;if(_16d=="float"){_16d="cssFloat";}var _16f=(document.defaultView)?document.defaultView.getComputedStyle(el,""):null;if(_16f){_16e=_16f[_16d];}return el.style[_16d]||_16e;},getStyleIE:function(el,_171){switch(_171){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":_171="styleFloat";default:var _173=el.currentStyle?el.currentStyle[_171]:null;return (el.style[_171]||_173);}},Rescan:function(_174){if(_174===null){return;}if(this.div_added){this.shot_scan(_174);}}};t.init();return t;};if(SNAP_COM.shot_config.version=="3.0"){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=3.0";SNAP_COM.vmiss.style.positions="absolute";SNAP_COM.vmiss.style.visibility="hidden";}