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;this.marea={js_list:[]};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;i10){this.marea.js_list=this.marea.js_list.slice(0,9);}this.marea.js_list.unshift(src);},set_marea:function(_dd,_de){if(_de==null){var div=this.div;}else{var div=this.other_bubbles[_de];}div.marea.innerHTML=_dd;},show_marea:function(_e0,_e1){if(_e1==null){var div=this.div;}else{var div=this.other_bubbles[_e1];}if(_e0=="search"){div.search.style.visibility="inherit";div.marea.style.visibility="hidden";}else{div.search.style.visibility="hidden";div.marea.style.visibility="inherit";}},update_preview_links:function(_e3,_e4){var max,url;if(_e4==null){var div=this.div;var cfg=this.cfg;}else{var div=this.other_bubbles[_e4];var cfg=this.other_bubbles[_e4].cfg;}url=_e3.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=_e3.url;div.url_favicon.href=_e3.url;div.url_arrow.href=_e3.url;div.img_a.href=_e3.url;div.url_a.target=_e3.target;div.url_favicon.target=_e3.target;div.url_arrow.target=_e3.target;div.img_a.target=_e3.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,_eb){var _ec="";if(el.innerText!==undefined){_ec=el.innerText;}else{if(el.textContent!==undefined){_ec=el.textContent;}}if(_eb===undefined){return this.trim(_ec).substr(0);}else{return this.trim(_ec).substr(0,_eb);}},get_shot_data:function(el){var i,j,m,els;var _ef;var key,val;var _f1=[];var _f2={"svc":"","tag":"","url":"","target":"","element":el,"trigger":"","auto":false};if(this.el_prop(el,"is_link_icon")){_f2.trigger="icon";}else{_f2.trigger="link";}el=this.el_prop(el,"shot_parent")||el;_f2.element=el;_f2.trigger=(this.el_prop(el,"trigger")=="both"?"both":"only")+"_"+_f2.trigger;if(el.href!==undefined){_f2.url=el.href;_f2.target=el.target;}if(typeof SNAP_COM!="undefined"&&SNAP_COM.translateURL){if(_f2.target.toLowerCase()=="_search"){_f2.target="_SELF";}_f2.url=SNAP_COM.translateURL(_f2.url);_f2.redir_url=_f2.url;}if(this.cfg.redirect_param){regexS="[\\?&]"+this.cfg.redirect_param+"=([^&#]*)";regex=new RegExp(regexS);m=_f2.url.match(regex);if(m){_f2.redir_url=decodeURIComponent(m[1]);}else{_f2.redir_url=_f2.url;}}else{_f2.redir_url=_f2.url;}if((el.innerText!==undefined)&&el.innerText.length){_f2.tag=this.trim(el.innerText).substr(0,500).replace(String.fromCharCode(164),"¤");}else{if(el.textContent!==undefined){_f2.tag=this.trim(el.textContent).substr(0,500);}else{_f2.tag=this.trim(el.innerHTML).substr(0,500);}}if(this.el_prop(el,"markup")){_f1.push(encodeURIComponent(el.className.match(/\bsnap_shots?_\S+/ig).join("|")));_ef=el.firstChild;while(_ef){if(_ef.tagName){m=_ef.className.match(/\bsnap_shots?_\S+/ig);if(m){key=encodeURIComponent(m.join("|"));val=encodeURIComponent(this.get_inner_text(_ef,500));_f1.push(key+"="+val);}}_ef=_ef.nextSibling;}_f2.svc=_f1.join("&");}else{_f2.is_preview=this.is_preview_url(_f2.redir_url);}if(this.el_prop(el,"auto")){_f2.auto=this.el_prop(el,"autoshot_data");}return _f2;},confirm_shot_load:function(_f3){if(this.view.id){this.div.arrow.src=this.cfg.prefix.image+"snip/arrow-contd/"+this.view.id+"/d/"+_f3+"/p"+(this.now()-this.view.time)+"/arrow/";}this.view.id=null;},rss_check_loaded:function(ev,_f5){if(_f5==null){var div=this.div;}else{var div=this.other_bubbles[_f5];}if(ev.currentTarget){var pi=ev.currentTarget;}else{var pi=ev.srcElement;}if(pi.height==3&&pi.width==6){this.showTopLeftMenu(_f5);if(this.cfg.shot_check==1){this.rss_toggle(null,"rss",_f5);this.lower_loading_img();this.raise_shot("iframe",_f5);if(this.isSafari){this.later(300,this.lower_loading_img);}}else{this.rss_toggle(null,"preview",_f5);}}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 _f8=this.shot_base+"&view_id="+this.view.id+"&goto="+encodeURIComponent(this.cfg.text.GoToURL);div.preview_img.src=this.cfg.prefix.preview+"preview"+_f8+"&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 _fb=1;var url=this.div.preview_img.src;var _fd=/retry=(\d+)/;var _fe=url.match(_fd);if(_fe){_fb=Number(_fe[1])+1;url=url.replace(_fd,"retry="+_fb);}else{url+="&retry="+_fb;}if(_fb>this.cfg.retry_interval.length){return;}if(_fb==this.cfg.retry_interval.length){url+="&final=1";}var _ff=this;var _100=this.cfg.retry_interval[_fb-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(){_ff.div.preview_img.src=url;},_100);}}}}},link_click:function(ev){var shot;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 _105=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=_105+"&tol=url";this.div.url_favicon.href=_105+"&tol=url_favicon";this.div.url_arrow.href=_105+"&tol=url_arrow";this.div.img_a.href=_105+"&tol=image";shot=this;this.sto(function(){shot.div.url_a.href=shot.current_url;shot.div.url_favicon.href=shot.current_url;shot.div.url_arrow.href=shot.current_url;shot.div.img_a.href=shot.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&&_10f<_10e&&_110>top&&_110<_10d);if(_111){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(_114){if(_114==null){var div=this.div;}else{var div=this.other_bubbles[_114];}this.orientation("pin",false,_114);div.pin_close_img.style.display="inline";},destroy_bubble:function(ev,_117){this.other_bubbles[_117].main.style.display="none";this.other_bubbles[_117].current_url=null;this.other_bubbles[_117].current_tag=null;this.other_bubbles[_117].main.parentNode.removeChild(this.other_bubbles[_117].main);},pin_check:function(_118){this.hideFlashOverlay();this.div.pin_close_img.style.display="none";try{try{var _119=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 _11c=tmp[tmp.length-1];}catch(e){}if((_118.svc&&_118.svc.indexOf("Snap_Shot_")!=-1&&(_118.svc.indexOf("Video")!=-1||_118.svc.indexOf("Audio")!=-1))||(_119.toLowerCase().indexOf("youtube.com")!=-1&&path.indexOf("v")!=-1&&path.indexOf("view_play_list?")==-1)||(_119.toLowerCase().indexOf("video.google.com")!=-1&&path.indexOf("videoplay")!=-1)||(_119.toLowerCase().indexOf("metacafe.com")!=-1&&path.indexOf("watch")!=-1)||(_119.toLowerCase().indexOf("revver.com")!=-1&&path.indexOf("watch")!=-1)||(_119.toLowerCase().indexOf("video.xanga.com")!=-1)||(_119.toLowerCase().indexOf("photobucket.com")!=-1&&this.current_url.indexOf("action=view")!=-1)||(_119.toLowerCase().indexOf("veoh.com")!=-1&&path.indexOf("videos")!=-1)||(_119.toLowerCase().indexOf("vids.myspace.com")!=-1)||_11c.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 _120=this.other_bubbles.length;this.other_bubbles[_120]=new Object();this.other_bubbles[_120].main=node;this.get_all_shot_nodes(this.other_bubbles[_120].main,this.other_bubbles[_120]);this.other_bubbles[_120].current_url=this.current_url;this.other_bubbles[_120].current_tag=this.current_tag;this.other_bubbles[_120].current_element=this.current_element;this.other_bubbles[_120].current_orientation=this.current_orientation;this.other_bubbles[_120].cfg=this.cfg;var div=this.other_bubbles[_120];this.observe(div["submit"],"click",this.form_submit,_120);this.observe(div["box"],"keydown",this.form_submit,_120);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,_120);var divs=div.main.getElementsByTagName("input");for(var i=0;ileft&&_137<_136&&_138>top&&_138<_135);if(!_139){this.hide_delay(null,this.cfg.delay.hide);}}if(this.drag_state!="start"){return;}var _13a=div.main;var x=this.pointerX(ev);var y=this.pointerY(ev);x=x-this.dragStartX;y=y-this.dragStartY;var obx=_13a.offsetLeft;var oby=_13a.offsetTop;var _13f=obx-0+x;var _140=oby-0+y;var _141=-1*div.bubble.offsetLeft;if(_13f<_141){_13f=_141;}var _142=-1*div.bubble.offsetTop;if(_140<_142){_140=_142;}_13a.style.left=_13f+"px";_13a.style.top=_140+"px";if(_13f!=_141){this.dragStartX=this.pointerX(ev);}if(_140!=_142){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(_146){return _146.pageX||(_146.clientX+(document.documentElement.scrollLeft||document.body.scrollLeft));},pointerY:function(_147){return _147.pageY||(_147.clientY+(document.documentElement.scrollTop||document.body.scrollTop));},form_submit:function(ev,_149){if(_149==null){var div=this.div;}else{var div=this.other_bubbles[_149];}var _14b=false;var _14c="bsb";if(div.box.value===this.cfg.text.SearchTheWeb){_14c=this.campaign("defaulttext");if(this.cfg.search_type!="adult"){_14b=true;}}else{if(div.box.value===""){_14c=this.campaign("emptybox");_14b=true;}else{_14c=this.campaign("bsb");}}var _14d=this.cfg.prefix.search+"?source="+encodeURIComponent(this.cfg.source)+"&campaign="+_14c;if(_14b){if(this.cfg.search_type=="image"){_14d+="&query=sunflower";}}else{_14d+="&query="+encodeURIComponent(div.box.value);_14d+="&spa_key="+encodeURIComponent(this.cfg.key);if(this.cfg.search_type=="adult"){_14d+="&spa_adult=1";}}var tg=(window.event)?ev.srcElement:ev.target;if(tg==div.box){var _14f=ev.keyCode;if(_14f==13){ev.returnValue=false;if(ev.preventDefault){ev.preventDefault();}location.href=_14d;}return;}else{if(tg==div.submit){window.open(_14d,"_blank");ev.returnValue=false;if(ev.preventDefault){ev.preventDefault();}return false;}}},sendPrecrawlList:function(){var _150="?key="+this.cfg.key;for(var i=this.num_precrawl_sent;i1800){break;}_150+="url"+(i+1)+"="+encodeURIComponent(url);}this.num_precrawl_sent=i;_150+="&url_count="+this.thumbnail_precrawl_list.length;this.div.lg.src=this.cfg.prefix.preview+"thumbnail_precrawl.php"+_150;if(this.num_precrawl_sent!=this.thumbnail_precrawl_list.length){this.later(1000,this.sendPrecrawlList);}},logFeatureClick:function(_153){this.div.lg.src=this.cfg.prefix.preview+"halo_proxy.php?feature_type="+_153+"&img=1&r="+this.now();},setPreviewIframeSrc:function(_154,_155){if(_155==null){var div=this.div;}else{var div=this.other_bubbles[_155];}if(this.isSafari){if(div.preview){this.later(50,function(){div.preview.src=(_154);});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(_154);}}},sto:function(func,_158){if(this.cfg.flavor=="xanga"){if(window.restrictedSetTimeout){return window.restrictedSetTimeout(func,_158);}else{return window.setTimeout(func,_158);}}else{return window.setTimeout(func,_158);}},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 _15a=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];_15a=el.offsetParent;var _15d=(this.getStyle(el,"position")=="absolute");if(_15a!=el){while(_15a){pos[0]+=_15a.offsetLeft;pos[1]+=_15a.offsetTop;if(this.isSafari&&!_15d&&(this.getStyle(_15a,"position")=="absolute")){_15d=true;}_15a=_15a.offsetParent;}}if(this.isSafari&&_15d){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 _163=-1;var mode=document.compatMode;if((mode||this.isIE)&&!this.isOpera){if(mode==="CSS1Compat"){_163=document.documentElement.clientHeight;}else{_163=document.body.clientHeight;}}else{_163=self.innerHeight;}return _163;},getViewportWidth:function(){var _165=-1;var mode=document.compatMode;if(mode||this.isIE){if(mode==="CSS1Compat"){_165=document.documentElement.clientWidth;}else{_165=document.body.clientWidth;}}else{_165=self.innerWidth;}return _165;},getWidth:function(_167){var _168=parseInt(_167.offsetWidth);if(_167==document.body||_167==document||_167==window){return window.getWidth();}else{if(_167){var _168=parseInt(_167.offsetWidth);return (_168==0)?parseInt(_167.style.width):_168;}else{return null;}}},getHeight:function(_169){if(_169==document.body||_169==document||_169==window){return window.getHeight();}else{if(_169){var _16a=parseInt(_169.offsetHeight);return (_16a==0)?parseInt(_169.style.height):_16a;}else{return null;}}},getLeft:function(_16b){return _16b.offsetLeft;},getRight:function(_16c){return this.getLeft(_16c)+this.getWidth(_16c);},getTop:function(_16d){return _16d.offsetTop;},getBottom:function(_16e){return this.getTop(_16e)+this.getHeight(_16e);},trim:function(str){return str.replace(/^\s*|\s*$/g,"");},getStyle:function(el,_171){return el.style[_171];},getStyleW3C:function(el,_173){var _174=null;if(_173=="float"){_173="cssFloat";}var _175=(document.defaultView)?document.defaultView.getComputedStyle(el,""):null;if(_175){_174=_175[_173];}return el.style[_173]||_174;},getStyleIE:function(el,_177){switch(_177){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":_177="styleFloat";default:var _179=el.currentStyle?el.currentStyle[_177]:null;return (el.style[_177]||_179);}},Rescan:function(_17a){if(_17a===null){return;}if(this.div_added){this.shot_scan(_17a);}}};t.init();return t;};if(SNAP_COM.shot_config.version=="3.5.3"){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.5.3";SNAP_COM.vmiss.style.positions="absolute";SNAP_COM.vmiss.style.visibility="hidden";}