if(typeof SNAP_COM=="undefined"){SNAP_COM={}}SNAP_COM.timer_obj=function(){var A={events:{},on:false,logged:false,el:null,id:null,reset:function(){this.events={}},set_id:function(B){this.id=B},enabled:function(B){this.on=B?true:false},mark:function(B){if(!this.on){return }this.events[B]=(new Date()).getTime()},sequence:function(){var E,B,H,F=[],D={};if(!this.on){return undefined}for(E in this.events){if(this.events.hasOwnProperty(E)){F.push(E)}}var C=this.events;function G(J,I){return C[J]-C[I]}F.sort(G);H=this.events[F[0]];B=F.length;for(E=0;E=this.cfg.auto_shot.limit){return E}L=E.nodeValue;K=0;I=this.autoshot_match(L);J=I.length;for(H=0;H10000){B=10000}D+=B;this.last_partial_check_count=E}if(this.first_scan){this.first_scan=false}else{this.sample()}}this.timer_id.partial=this.later(D,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(D,F,G){var C=D.getElementsByTagName("*");for(var B=0;B\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(E=0;E(2*P/5))?"b":"t";B+=(I>(G/2))?"r":"l";var K=parseInt(this.div.body.style.height.replace(/\D/g,""))+parseInt(this.div.bg_div_point.style.height.replace(/\D/g,""));var H=parseInt(this.div.body.style.width.replace(/\D/g,""))+parseInt(this.div.bg_div_point.style.width.replace(/\D/g,""));if((B.substr(0,1)=="b"&&FP)){if((parseInt(K/2)H){B="l"}else{if(I>H){B="r"}}}}O=this.el_prop(D,"shot_parent")||D;if(!this.el_prop(O,"markup")&&!this.is_valid_link(O)){return }if(this.el_prop(D,"is_link_icon")){E=this.cfg.delay.show_sli}if(this.div.main.style.visibility=="visible"){if(this.current_element!=O){E=J}else{return }}if(this.div.main.style.visibility=="visible"){this.pre_tmr=new SNAP_COM.timer_obj();this.pre_tmr.enabled(this.tmr_on);this.pre_tmr.mark("mouseover")}else{this.view.id=this.rand_hash(this.cfg.rnd+I+F);this.view.confirm=true;this.tmr=new SNAP_COM.timer_obj();this.tmr.enabled(this.tmr_on);this.tmr.mark("mouseover");this.tmr.set_id(this.view.id)}if(this.cfg.has_marea&&this.div.main.style.visibility!="visible"){switch(this.cfg.ad_type){case"none":case"searchbox":case"shotsense":case"shares":break;default:this.shot_data=this.get_shot_data(D);this.timer_id.prefetch=this.later(Math.min(this.cfg.delay.prefetch,E),this.marea_adserver,null);break}}this.timer_id.show=this.later(E,this.show,D,B)},show:function(F,C){var K;var J;if((this.cfg.trigger_position=="icon")&&this.el_prop(F,"link_icon")){offset=this.getXY(this.el_prop(F,"link_icon")||F);K=offset[0];J=offset[1]}else{K=this.current_ex;J=this.current_ey}var D=this.get_shot_data(F);this.current_element=D.element;if(this.pre_tmr){this.tmr.mark("hide");this.tmr.log(this);this.tmr=this.pre_tmr;this.pre_tmr=undefined}else{if(!this.tmr){this.tmr=new SNAP_COM.timer_obj();this.tmr.enabled(this.tmr_on)}}this.tmr.mark("show");if(this.div.main.style.visibility=="visible"){this.view.id=this.rand_hash(this.cfg.rnd+K+J);this.view.confirm=true;this.tmr.set_id(this.view.id)}if(this.other_bubbles){for(var G=0;G=this.cfg.resize.rz_w)&&(this.getViewportHeight()>=this.cfg.resize.rz_h)){if(this.cfg.resize.rz_c){this.cfg.dfs=24}else{M="large";this.cfg.dfs=25}}else{M="small";this.cfg.dfs=23}}if(this.cfg.size!=M){this.resize(M,null,true)}this.orientation(C);this.div.box.value=this.cfg.text.SearchTheWeb;this.div.box.blur();this.later(0,this.show_part2,D,K,J,C,F)},show_part2:function(B,G,E,D,F){var C=((this.cfg.trigger_position=="icon")&&this.el_prop(F,"link_icon"));this.show_shot(B);if(D.substr(0,1)=="b"){E=E-this.div.main.offsetHeight+(C?-30:-35)}else{E+=(C?55:40)}switch(D){case"l":G=G+35;E=E-this.cfg.pointer.left.y-40;break;case"r":G=G-this.div.main.offsetWidth-(C?35:27);E=E-this.cfg.pointer.right.y-40;break;case"tr":case"br":G=G-this.div.main.offsetWidth+(C?20:12);break;default:G=G-5;break}this.move(G,E);if(this.div.main.style.visibility=="visible"){this.set_marea("")}else{if(this.marea.beacon){this.append_beacon(this.marea.beacon,this.div.marea);this.marea.beacon=""}}this.div.main.style.visibility="visible"},orientation:function(D,E,B){var R,K,N,O,P,I,F,S,C,U,T=1;var V,L;var M=this.cfg.pointer;var Q;var J=this.get_active_div(B);var H=parseInt(J.body.style.height.replace(/\D/g,""));E=false;I=(D.substr(0,1)=="t")?"top":"bottom";F=(D.substr(1,1)=="l")?"left":"right";Q=J.bg_div_point;this.set_palette_img(Q,"point_"+D,B);Q.style.top="auto";Q.style.left="auto";Q.style.bottom="auto";Q.style.right="auto";V=parseInt(J.bg_div_point.style.height.replace(/\D/g,""));L=parseInt(J.bg_div_point.style.width.replace(/\D/g,""));if(D=="pin"){Q.style.visibility="hidden"}else{Q.style.visibility="inherit";if(D=="l"){Q.style.top=(M.left.y-Math.round(V/2))+"px";Q.style.left="-"+(L-M.left.x)+"px"}else{if(D=="r"){Q.style.top=(M.right.y-Math.round(V/2))+"px";Q.style.right="-"+(L-M.right.x)+"px"}else{if(I=="top"){Q.style.top="-"+(V-M[I].y)+"px"}else{Q.style.bottom="-"+(V-M[I].y)+"px"}if(F=="left"){Q.style.left=M[I].x+"px"}else{Q.style.right=M[I].x+M.r_offset+"px"}}}}O=(M.x-M.x0)/(M.steps-1);K=(M.w-M.w0)/(M.steps-1);N=V/M.steps;U=M.x+(F=="right"?M.r_offset:0);C=5-M[I].y;for(R=0;R0)){P=J.pointer0.style;P.visibility="inherit";var G=["height","width","top","left","bottom","right"];for(R=0;RD){E.disable_a.style.width=B}else{if(D>B){E.option_a.style.width=D}}}},hideOptionMenu:function(B){var C=this.get_active_div(B);C.option_menu.style.visibility="hidden"},changePaletteImg:function(F,D,C){var G=this.get_active_div(C);var B=this.cfg;if(B.palette[D]==null){return }var E=G[F].style;E.backgroundColor="transparent";E.backgroundImage="url("+B.img.palette+")";E.backgroundPosition=B.palette[D].loc;E.backgroundRepeat="no-repeat";E.width=B.palette[D].w+"px";E.height=B.palette[D].h+"px"},set_palette_img:function(E,G,C){var D;var F=this.get_active_div(C);var B=this.get_active_cfg(C);if(!B.png_palette[G]){return }D=E.getElementsByTagName("img")[0];E.style.height=B.png_palette[G].h+"px";E.style.width=B.png_palette[G].w+"px";E.style.overflow="hidden";if(this.needs_png_fix){D.runtimeStyle.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+B.img.png_palette+"',sizingMethod='image')";D.src=B.prefix.cdn_image+"t.gif"}else{D.src=B.img.png_palette}D.style.position="absolute";D.style.left="-"+B.png_palette[G].x+"px";D.style.top="-"+B.png_palette[G].y+"px"},tok:function(B){return this.cfg.tkn+this.hash32(this.cfg.tkn+B)},hash32:function(D){var C=5003;D=D.toString();for(var B=0;B>6)}C+=(C<<3);C^=(C>>11);C+=(C<<15);C=Math.abs(C).toString(16);while(C.length<8){C="0"+C}return C},rand_hash:function(B){var C,D=["","","",""];B=B.toString()+Math.random()+document.location.href+this.now()+window.navigator.userAgent;for(C=0;CB){F=F.substr(0,B)+"..."}G.url.innerHTML=F;G.url_a.href=C.url;G.url_favicon.href=C.url;G.url_arrow.href=C.url;G.img_a.href=C.url;G.url_a.target=C.target;G.url_favicon.target=C.target;G.url_arrow.target=C.target;G.img_a.target=C.target;G.url_a.title=D.text.GoToURL.replace(/%URL/,F);G.url_favicon.title=D.text.GoToURL.replace(/%URL/,F);G.url_arrow.title=D.text.GoToURL.replace(/%URL/,F);G.img_a.title=G.url_a.title},is_preview_url:function(C){if(this.cfg.rich_shot_exceptions!=""){if(C.match(this.rich_shot_exceptions_re)){return true}}var B=C.match(/\w+:\/\/([^#]*)/);if(B&&B[1].match(this.preview_re)){return false}return true},get_inner_text:function(B,C){var D="";if(B.innerText!==undefined){D=B.innerText}else{if(B.textContent!==undefined){D=B.textContent}}if(C===undefined){return this.trim(D).substr(0)}else{return this.trim(D).substr(0,C)}},get_shot_data:function(B){var I,H,F,G;var E;var J,D;var C=[];var K={svc:"",tag:"",url:"",target:"",element:B,trigger:"",auto:false};if(this.el_prop(B,"is_link_icon")){K.trigger="icon"}else{K.trigger="link"}B=this.el_prop(B,"shot_parent")||B;K.element=B;K.trigger=(this.el_prop(B,"trigger")=="both"?"both":"only")+"_"+K.trigger;if(B.href!==undefined){K.url=B.href;K.target=B.target}if(typeof SNAP_COM!="undefined"&&SNAP_COM.translateURL){if(K.target.toLowerCase()=="_search"){K.target="_SELF"}K.url=SNAP_COM.translateURL(K.url);K.redir_url=K.url}if(this.cfg.redirect_param){regexS="[\\?&]"+this.cfg.redirect_param+"=([^&#]*)";regex=new RegExp(regexS);F=K.url.match(regex);if(F){K.redir_url=decodeURIComponent(F[1])}else{K.redir_url=K.url}}else{K.redir_url=K.url}if(this.el_prop(B,"markup")){if((B.innerText!==undefined)&&B.innerText.length){K.tag=this.trim(B.innerText).substr(0,500).replace(String.fromCharCode(164),"¤")}else{if(B.textContent!==undefined){K.tag=this.trim(B.textContent).substr(0,500)}else{K.tag=this.trim(B.innerHTML).substr(0,500)}}C.push(encodeURIComponent(B.className.match(/\bsnap_shots?_\S+/ig).join("|")));E=B.firstChild;while(E){if(E.tagName){F=E.className.match(/\bsnap_shots?_\S+/ig);if(F){J=encodeURIComponent(F.join("|"));D=encodeURIComponent(this.get_inner_text(E,500));C.push(J+"="+D)}}E=E.nextSibling}K.svc=C.join("&")}else{K.is_preview=this.is_preview_url(K.redir_url)}if(this.el_prop(B,"auto")){K.auto=this.el_prop(B,"autoshot_data")}return K},set_load_tmr_js:function(C,D){var B;if((B=D.match(/^http:\/\/ad.(doubleclick).net\//))||(B=D.match(/\/(marea).js\?/))){this.set_load_tmr(C,B[1])}},set_load_tmr:function(C,D){var B=this;this.tmr.mark(D+"_start");this.observe(C,"load",function(E){B.tmr.mark(D+"_end")})},confirm_shot_load:function(B){if(this.view.confirm){this.div.arrow.src=this.cfg.prefix.image+"snip/arrow-contd/"+this.view.id+"/d/"+B+"/p"+(this.now()-this.view.time)+"/arrow/"}this.view.confirm=false},rss_check_loaded:function(D,B){this.tmr.mark("rss_check_end");var F=this.get_active_div(B);if(D.currentTarget){var E=D.currentTarget}else{var E=D.srcElement}if(E.height==3&&E.width==6){this.showTopLeftMenu(B);if(this.cfg.shot_check==1){this.rss_toggle(null,"rss",B);this.lower_loading_img();this.raise_shot("iframe",B);if(this.isSafari){this.later(300,this.lower_loading_img)}}else{this.rss_toggle(null,"preview",B)}}else{if(E.width==1&&E.height==2&&this.cfg.shot_check==1){this.tmr.mark("preview_start");var C=this.shot_base+"&view_id="+this.view.id+"&goto="+encodeURIComponent(this.cfg.text.GoToURL);F.preview_img.src=this.cfg.prefix.preview+"preview"+C+"&direct=1&sc=0";this.view.confirm=true}else{if(E.width==1&&E.height==3&&this.cfg.shot_check==1){this.lower_loading_img();this.raise_shot("iframe",B);if(this.isSafari){this.later(300,this.lower_loading_img)}}}}},preview_iframe_loaded:function(B){this.tmr.mark("shot_iframe_end");this.lower_loading_img()},preview_img_loaded:function(F){this.tmr.mark("preview_end");if(F.currentTarget){var I=F.currentTarget}else{var I=F.srcElement}if(I.height<10&&I.width<10){this.view.confirm=false}if(I.height==3&&I.width==6){this.lower_loading_img();this.raise_shot("iframe");if(this.isSafari){this.later(300,this.lower_loading_img)}}else{if(!I.src.match(/\/t.gif/)){this.lower_loading_img()}if(I.height>1&&I.width>1&&I.src.indexOf("&vid=nolog")==-1){this.confirm_shot_load("ps")}if(this.div.preview_img.width==274||this.div.preview_img.width==431){var B=1;var D=this.div.preview_img.src;var H=/retry=(\d+)/;var G=D.match(H);if(G){B=Number(G[1])+1;D=D.replace(H,"retry="+B)}else{D+="&retry="+B}if(B>this.cfg.retry_interval.length){return }if(B==this.cfg.retry_interval.length){D+="&final=1"}var E=this;var C=this.cfg.retry_interval[B-1];if(this.retry_url_list[this.div.url_a.href]!=D){this.retry_url_list[this.div.url_a.href]=D;if(this.div.main.style.visibility=="visible"){this.clear_timer("retry");this.timer_id.retry=this.sto(function(){E.div.preview_img.src=D},C)}}}}},link_click:function(F){var E=this;var G=false;var D=this.current_url;switch(F.type){case"mouseup":var B=0;if(typeof (F.which)=="number"){B=F.which}else{if(typeof (F.button)=="number"){B=F.button}}if((this.isIE&&B==4)||(!this.isIE&&B==2)){G=true}break;case"click":G=true;break}if(G){this.tmr.mark("click");this.tmr.log(this);var C=this.cfg.prefix.preview+"explore/"+Math.floor((Math.random()*100000))+"/?url="+encodeURIComponent(D)+"&key="+this.cfg.key+"&src="+encodeURIComponent(this.cfg.source)+"&cp="+this.cfg.campaign;this.div.url_a.href=C+"&tol=url";this.div.url_favicon.href=C+"&tol=url_favicon";this.div.url_arrow.href=C+"&tol=url_arrow";this.div.img_a.href=C+"&tol=image";this.sto(function(){E.div.url_a.href=E.current_url;E.div.url_favicon.href=E.current_url;E.div.url_arrow.href=E.current_url;E.div.img_a.href=E.current_url},0)}},sample:function(){var F,H,C,E=[],B=[],D=this.cfg.auto_shot.list.length;var G=Math.random();if(this.sampled){return }this.sampled=true;if(this.cfg.srate){if(this.cfg.srate.main>=G){E.push("m"+this.cfg.srate.main)}if(this.cfg.auto_shot.list.length&&(this.cfg.srate.auto>=G)){E.push("a"+this.cfg.srate.auto)}if(this.cfg.auto_shot.inspect){E.push("i"+this.cfg.srate.inspect);for(F=0;FD&&BF&&JG&&CN&&B1800){break}D+="url"+(C+1)+"="+encodeURIComponent(B)}this.num_precrawl_sent=C;D+="&url_count="+this.thumbnail_precrawl_list.length;this.div.lg.src=this.cfg.prefix.preview+"thumbnail_precrawl.php"+D;if(this.num_precrawl_sent!=this.thumbnail_precrawl_list.length){this.later(1000,this.sendPrecrawlList)}},logFeatureClick:function(B){this.div.lg.src=this.cfg.prefix.preview+"halo_proxy.php?feature_type="+B+"&img=1&r="+this.now()},setPreviewIframeSrc:function(C,B){this.tmr.mark("shot_iframe_start");var D=this.get_active_div(B);if(this.isSafari){if(D.preview){this.later(50,function(){D.preview.src=(C)});if(this.shot_data&&!this.shot_data.is_preview){this.later(300,this.lower_loading_img)}}}else{if(D.preview.contentWindow){D.preview.contentWindow.location.replace(C)}}},sto:function(C,B){if(this.cfg.flavor=="xanga"){if(window.restrictedSetTimeout){return window.restrictedSetTimeout(C,B)}else{return window.setTimeout(C,B)}}else{return window.setTimeout(C,B)}},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)),isWin:(navigator.appVersion.match(/win/gi)),getXY:function(E){var C=null;var H=[];var F,D,B;if(E.getBoundingClientRect){F=E.getBoundingClientRect();D=Math.max(document.documentElement.scrollTop,document.body.scrollTop);B=Math.max(document.documentElement.scrollLeft,document.body.scrollLeft);return[F.left+B,F.top+D]}else{H=[E.offsetLeft,E.offsetTop];C=E.offsetParent;var G=(this.getStyle(E,"position")=="absolute");if(C!=E){while(C){H[0]+=C.offsetLeft;H[1]+=C.offsetTop;if(this.isSafari&&!G&&(this.getStyle(C,"position")=="absolute")){G=true}C=C.offsetParent}}if(this.isSafari&&G){H[0]-=document.body.offsetLeft;H[1]-=document.body.offsetTop}}return H},getPageX:function(C){var B=C.pageX;if(!B&&0!==B){B=C.clientX||0;if(this.isIE){B+=this._getScrollLeft();if(document.body.clientLeft){B-=document.body.clientLeft}}}return B},getPageY:function(B){var C=B.pageY;if(C&&document.body.style&&this.getStyle(document.body,"position")=="relative"){C-=10}if(!C&&0!==C){C=B.clientY||0;if(this.isIE){C+=this._getScrollTop();if(document.body.clientTop){C-=document.body.clientTop}}}return C},_getScrollLeft:function(){return this._getScroll()[1]},_getScrollTop:function(){return this._getScroll()[0]},_getScroll:function(){var B=document.documentElement,C=document.body;if(B&&(B.scrollTop||B.scrollLeft)){return[B.scrollTop,B.scrollLeft]}else{if(C){return[C.scrollTop,C.scrollLeft]}else{return[0,0]}}},getViewportHeight:function(){var B=-1;var C=document.compatMode;if((C||this.isIE)&&!this.isOpera){if(C==="CSS1Compat"){B=document.documentElement.clientHeight}else{B=document.body.clientHeight}}else{B=self.innerHeight}return B},getViewportWidth:function(){var B=-1;var C=document.compatMode;if(C||this.isIE){if(C==="CSS1Compat"){B=document.documentElement.clientWidth}else{B=document.body.clientWidth}}else{B=self.innerWidth}return B},getWidth:function(B){var C=parseInt(B.offsetWidth);if(B==document.body||B==document||B==window){return window.getWidth()}else{if(B){var C=parseInt(B.offsetWidth);return(C==0)?parseInt(B.style.width):C}else{return null}}},getHeight:function(C){if(C==document.body||C==document||C==window){return window.getHeight()}else{if(C){var B=parseInt(C.offsetHeight);return(B==0)?parseInt(C.style.height):B}else{return null}}},getLeft:function(B){return B.offsetLeft},getRight:function(B){return this.getLeft(B)+this.getWidth(B)},getTop:function(B){return B.offsetTop},getBottom:function(B){return this.getTop(B)+this.getHeight(B)},trim:function(B){return B.replace(/^\s*|\s*$/g,"")},getStyle:function(B,C){return B.style[C]},getStyleW3C:function(B,E){var D=null;if(E=="float"){E="cssFloat"}var C=(document.defaultView)?document.defaultView.getComputedStyle(B,""):null;if(C){D=C[E]}return B.style[E]||D},getStyleIE:function(B,D){switch(D){case"opacity":var F=100;try{F=B.filters["DXImageTransform.Microsoft.Alpha"].opacity}catch(E){try{F=B.filters("alpha").opacity}catch(E){}}return F/100;break;case"float":D="styleFloat";default:var C=B.currentStyle?B.currentStyle[D]:null;return(B.style[D]||C)}},AC_AddExtension:function(C,B){if(C.indexOf("?")!=-1){return C.replace(/\?/,B+"?")}else{return C+B}},AC_Generateobj:function(F,E,B){var D="";if(this.isIE&&this.isWin&&!this.isOpera){D+=" '}D+=""}else{D+="