/* Snap Shots Code Copyright (c) 2008, Snap Technologies, Inc. All rights reserved. * Your use of this code is subject to the Snap Shots Terms of Service * located at https://account.snap.com/print_terms.php */ 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;E1){return this.el_prop(C,"autoshot_ncount",B)||0}return this.el_prop(C,"autoshot_ncount")||0},autoshot_add:function(L,T){var N,O,I,B,D,E,R,M,C,S,H,K,G,Q,F,J,P=0;if(L.nodeType!=3||!T.in_body[0]||T.activated[0]||!T.autoshot_ok[0]||!T.shot[0]||!this.autoshot_re){return L}if(!this.cfg.auto_shot.inspect&&this.imp.auto>=this.cfg.auto_shot.limit){return L}R=L.nodeValue;G=0;C=this.autoshot_match(R);O=C.length;for(N=0;NP))){M.as.active++;this.imp.auto++;if(this.cfg.auto_shot.plimit){this.autoshot_ncount(T.p_node[0],P+1)}if(M.as.trigger!="icon"){L.nodeValue=R.substr(G,(M.pos-G))}else{L.nodeValue=R.substr(G,(M.pos-G+M.len))}G=M.pos+M.len;B=document.createTextNode(R.substr(G));L.parentNode.insertBefore(B,L.nextSibling);D=document.createElement("span");D.className=M.as.type;D.style.display="none";D.innerHTML=" "+M.as.value+" ";this.el_prop(D,"auto",true);this.el_prop(D,"markup",true);this.el_prop(D,"trigger",M.as.trigger);this.el_prop(D,"autoshot_data",{pattern:M.text,linkbubble:M.as.linkbubble,eid:M.as.eid||"",tid:M.as.tid||""}),L.parentNode.insertBefore(D,L.nextSibling);this.activate(D);Q=this.el_prop(D,"link_icon");if(Q){Q.id="snap_com_shot_engage_icon_"+this.as_id_count;this.activate(Q)}if(M.as.trigger!="icon"){if(M.as.link){E=document.createElement("a");if(M.as.link===true){F=this.get_shot_data(D);J=this.dfs();K=this.cfg.source;H=this.cfg.campaign;if(M.as.linkbubble){J=this.dfs(this.cfg.dfs,4);H="linkbubble";K=this.cfg.key}else{if(F.svc.match(/wikipedia/i)){J=this.dfs(this.cfg.dfs,2)}}E.href=this.cfg.prefix.preview+"explore/"+Math.floor((Math.random()*100000))+"/?key="+(SNAP_COM.original_key||this.cfg.key)+"&svc="+encodeURIComponent(F.svc)+"&tag="+encodeURIComponent(F.tag)+"&src="+encodeURIComponent(K)+"&cp="+H+"&asp="+encodeURIComponent(M.text)+"&dfs="+J+"&tol=engage"}else{E.href=M.as.link}E.style.cursor="pointer"}else{E=document.createElement("span");E.style.cursor="default"}if(this.cfg.auto_shot.color){E.style.color=this.cfg.auto_shot.color}else{if(L.parentNode){E.style.color=this.getStyle(L.parentNode,"color")}}E.innerHTML=M.text;E.target=M.as.target;E.style.paddingBottom="0px";if(M.as.linkbubble){E.style.textDecoration="underline";E.style.color="#0000ee";E.style.borderBottom="1px solid #0000ee";E.style.paddingBottom="1px";this.el_prop(E,"trigger","link");S=this;(function(U){S.observe(U,"mouseout",function(){U.style.borderBottomWidth="1px"});S.observe(U,"mouseover",function(){U.style.borderBottomWidth="2px"})})(E)}else{E.style.textDecoration="none";if(this.cfg.auto_shot.treatment){E.style.borderBottom=this.cfg.auto_shot.treatment+" "+this.cfg.auto_shot.color}}E.id="snap_com_shot_engage_span_"+this.as_id_count;this.el_prop(E,"shot_parent",D);this.activate(E);this.el_prop(E,"trigger","both");L.parentNode.insertBefore(E,L.nextSibling)}this.as_id_count++;L=B}}},scan_tree:function(E,H){var F,I,K,D=false,M,P,N,L,J,O,G,B={},C;if(E&&E.tagName){F=E.className.match(/(snap_\w+)/ig);if(F){K=F.length;for(I=0;I10000){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'.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.div.share_button.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=this.cfg.resize.rz_w)&&(this.getViewportHeight()>=this.cfg.resize.rz_h)){if(this.cfg.resize.rz_c){this.cfg.dfs=24}else{K="large";this.cfg.dfs=25}}else{K="small";this.cfg.dfs=23}}if(this.cfg.size!=K){this.resize(K,null,true)}if(this.cfg.size=="small"&&parseInt(this.div.main.style.width.replace(/\D/g,""))>this.cfg.css_pos.main.w){this.set_css(null);this.draw_bubble(null)}if(this.el_prop(D,"is_link_icon")){E=this.cfg.delay.show_sli}if(C.style.visibility=="visible"){if(this.current_element!=H){E=F}else{return }}if(C.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+G.clientX+G.clientY);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)}var J=true;if(B&&B.className&&B.className.match(/\bsnap_shots?_custom/i)&&!B.className.match(/WithAds$/i)){J=false}if(J&&!I&&this.cfg.has_marea){this.shot_data=this.get_shot_data(D);if(!this.lb_is_linkbubble(this.shot_data.svc)){this.timer_id.prefetch=this.later(Math.min(this.cfg.delay.prefetch,E),this.marea_prepare,null,this.cfg.ad_type)}}this.timer_id.show=this.later(E,this.show,D)},show:function(H){var C=((this.cfg.trigger_position=="icon")&&this.el_prop(H,"link_icon"));var G;var D;if((this.cfg.trigger_position=="icon")&&this.el_prop(H,"link_icon")){var I=this.getXY(this.el_prop(H,"link_icon")||H);G=I[0];D=I[1]}else{G=this.current_ex;D=this.current_ey}if(this.lb_active()&&this.lb.lb_main.style.visibility=="visible"){this.lb_hide()}var B=this.get_shot_data(H);this.current_element=B.element;if(B.svc.match(/linkbubble/i)){this.lb_show(H,B);return }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+G+D);this.view.confirm=true;this.tmr.set_id(this.view.id)}if(this.other_bubbles){for(var F=0;F(2*R.h/5))?"b":"t";P.orientation+=(O>(R.w/2))?"r":"l";P.y=(P.orientation.substr(0,1)=="t")?(F+B.h+I):(F-D.h-B.h-I);P.x=(P.orientation.substr(1,1)=="l")?(H-J):(H-D.w+J);M={h:(D.h+B.h),w:(D.w+B.w)};if(C!="linkbubble"&&(P.orientation.substr(0,1)=="t")&&((N+M.h)>R.h)||(P.orientation.substr(0,1)=="b")&&((N-M.h)<0)){if(R.h>(D.h+(2*G))&&((O+D.w)0)&&N>(K.t+G)&&N<(R.h-K.b-G)){E=K.t;L=R.h-(N+(D.h-E)+S);if(L<0){E-=L}P.orientation=P.orientation.substr(1,1);if(P.orientation=="l"){P.x=H+Q.w+3}else{P.x=H-D.w-Q.w-3}P.y=F-E;P.orientation+="_"+E}}return P},orientation:function(D,E,B){var T,L,O,Q,R,J,G,U,C,W,V=1;var X,M;var N=this.cfg.pointer;var S,P,F;var K=this.get_active_div(B);var I=parseInt(K.body.style.height.replace(/\D/g,""));if(B==null){this.current_orientation=D}else{this.other_bubbles[B].current_orientation=D}if(P=D.match(/^([lr])_(\d+)$/)){D=P[1];F=P[2]}E=false;J=(D.substr(0,1)=="t")?"top":"bottom";G=(D.substr(1,1)=="l")?"left":"right";S=K.bg_div_point;this.set_palette_img(S,"point_"+D,B);S.style.top="auto";S.style.left="auto";S.style.bottom="auto";S.style.right="auto";X=parseInt(K.bg_div_point.style.height.replace(/\D/g,""));M=parseInt(K.bg_div_point.style.width.replace(/\D/g,""));if(D=="pin"){S.style.visibility="hidden"}else{S.style.visibility="inherit";if(D=="l"){S.style.top=(F-Math.round(X/2))+"px";S.style.left="-"+(M-N.left.x)+"px"}else{if(D=="r"){S.style.top=(F-Math.round(X/2))+"px";S.style.right="-"+(M-N.right.x)+"px"}else{if(J=="top"){S.style.top="-"+(X-N[J].y)+"px"}else{S.style.bottom="-"+(X-N[J].y)+"px"}if(G=="left"){S.style.left=N[J].x+"px"}else{S.style.right=N[J].x+N.r_offset+"px"}}}}Q=(N.x-N.x0)/(N.steps-1);L=(N.w-N.w0)/(N.steps-1);O=X/N.steps;W=N.x+(G=="right"?N.r_offset:0);C=5-N[J].y;for(T=0;T0)){R=K.pointer0.style;R.visibility="inherit";var H=["height","width","top","left","bottom","right"];for(T=0;TD){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,I,C){var D;var H=this.get_active_div(C);var B=this.get_active_cfg(C);var G,F=null;if(B.png_palette[I]){F=B.png_palette;G=B.img.png_palette}else{if(B.lb_palette[I]){F=B.lb_palette;G=B.img.lb_palette}else{return }}D=E.getElementsByTagName("img")[0];E.style.height=F[I].h+"px";E.style.width=F[I].w+"px";E.style.overflow="hidden";if(this.needs_png_fix){D.runtimeStyle.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+G+"',sizingMethod='image')";D.src=B.prefix.cdn_image+"t.gif"}else{D.src=G}D.style.position="absolute";D.style.left="-"+F[I].x+"px";D.style.top="-"+F[I].y+"px"},tok:function(B){return this.cfg.tkn+"02"+this.hash32(this.cfg.tkn+"a32025f5"+B)},tknr:function(B){if(B===undefined){B=Math.min(this.cfg.tknd,(this.cfg.tknx-parseInt(this.now()/1000)));if(B<0){B=0}}var C=this.cfg.prefix.preview+"tkr.js?key="+this.cfg.key+"&tk="+this.tok(this.cfg.tkn+this.cfg.key)+"&v="+this.cfg.version+"&r="+Math.random();this.clear_timer("tok");this.timer_id.tok=this.later((B*1000),this.add_js,C,"tkn")},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;C';if(F.beacon_client&&F.beacon_client.indexOf("http")===0){B+=''}B+="";E=F.pane_id;if(E===undefined){this.marea_type(D,E,"search_box")}else{this.marea_set_beacon(D,E,B);if(F.marea_type=="shotsense"){C.pane[E].shotsense_opts={cgi_params:{geo:F.params}}}this.marea_type(D,E,F.marea_type)}this.marea_process(D)},update_preview_links:function(C,E){var B,F;var G=this.get_active_div(E);var D=this.get_active_cfg(E);F=C.redir_url.replace(/\w+:\/\/(www\.)?/,"");F=F.replace(/^([-\w.]*)\/$/,"$1");B=D.url_max?D.url_max:50;if(F.length>B){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+|linkbubble?)/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},preview_iframe_loaded:function(B){this.tmr.mark("shot_iframe_end");this.lower_loading_img()},preview_img_loaded:function(H,G){this.tmr.mark("preview_end");if(H.currentTarget){var E=H.currentTarget}else{var E=H.srcElement}if(E.height<10&&E.width<10){this.view.confirm=false}if((E.width==6&&E.height==3)||(E.width==1&&E.height==3)){this.lower_loading_img();this.raise_shot("iframe");if(this.isSafari){this.later(300,this.lower_loading_img)}if(E.width==1){this.rss_toggle(null,"rss",G);this.showTopLeftMenu(G)}}else{if(!E.src.match(/\/t.gif/)){this.lower_loading_img()}if(E.height>1&&E.width>1&&E.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 C=this.div.preview_img.src;var I=/retry=(\d+)/;var F=C.match(I);if(F){B=Number(F[1])+1;C=C.replace(I,"retry="+B)}else{C+="&retry="+B}if(B>this.cfg.retry_interval.length){return }if(B==this.cfg.retry_interval.length){C+="&final=1"}var J=this;var D=this.cfg.retry_interval[B-1];if(this.retry_url_list[this.div.url_a.href]!=C){this.retry_url_list[this.div.url_a.href]=C;if(this.div.main.style.visibility=="visible"){this.clear_timer("retry");this.timer_id.retry=this.sto(function(){J.div.preview_img.src=C},D)}}}}},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;FG.left&&BG.top&&L(this.getLeft(E)+G.left)&&B<(this.getRight(E)+G.left)&&L>(this.getTop(E)+G.top)&&L<(this.getBottom(E)+G.top)){return true}}}return false},title_mouseover:function(B){this.div.url_a.style.color="#009933"},title_mouseout:function(B){this.div.url_a.style.color="#0000EE"},pin:function(B){var C=this.get_active_div(B);this.orientation("pin",false,B);C.pin_close_img.style.display="inline"},destroy_bubble:function(C,B){if(this.other_bubbles[B]){this.other_bubbles[B].current_url=null;this.other_bubbles[B].current_tag=null;this.other_bubbles[B].main.style.display="none";this.other_bubbles[B].main.parentNode.removeChild(this.other_bubbles[B].main)}},pin_check:function(C){this.hideFlashOverlay();this.div.pin_close_img.style.display=this.cfg.close_btn?"inline":"none";try{try{var B=this.current_url.split("//")[1].split("/")[0];var F=this.current_url.split("//")[1].split("/")[1];var D=this.current_url.split("?")[0].split(".");var G=D[D.length-1]}catch(E){}if((C.svc&&C.svc.indexOf("Snap_Shot_")!=-1&&(C.svc.indexOf("Video")!=-1||C.svc.indexOf("Audio")!=-1))||(B.toLowerCase().indexOf("youtube.com")!=-1&&F.indexOf("v")!=-1&&F.indexOf("view_play_list?")==-1)||(B.toLowerCase().indexOf("video.google.")!=-1&&F.indexOf("videoplay")!=-1)||(B.toLowerCase().indexOf("metacafe.com")!=-1&&F.indexOf("watch")!=-1)||(B.toLowerCase().indexOf("revver.com")!=-1&&F.indexOf("watch")!=-1)||(B.toLowerCase().indexOf("video.xanga.com")!=-1)||(B.toLowerCase().indexOf("photobucket.com")!=-1&&this.current_url.indexOf("action=view")!=-1)||(B.toLowerCase().indexOf("veoh.com")!=-1&&F.indexOf("videos")!=-1)||(B.toLowerCase().indexOf("vids.myspace.com")!=-1)||G.toLowerCase()=="mp3"){this.showFlashOverlay()}}catch(E){}},cloneBubble:function(){var E=this;this.marea_hide(null);var H=this.div.main.cloneNode(true);var B=document.getElementsByTagName("body")[0];B.insertBefore(H,this.div.main);var C=this.other_bubbles.length;this.other_bubbles[C]=new Object();this.other_bubbles[C].main=H;this.get_all_shot_nodes(this.other_bubbles[C].main,this.other_bubbles[C]);this.other_bubbles[C].current_url=this.current_url;this.other_bubbles[C].current_tag=this.current_tag;this.other_bubbles[C].current_element=this.current_element;this.other_bubbles[C].current_orientation=this.current_orientation;this.other_bubbles[C].cfg=this.cfg;this.marea_init(C);var I=this.other_bubbles[C];this.observe(I.submit,"click",this.form_submit,C);this.observe(I.box,"keydown",this.form_submit,C);var G=I.box;this.observe(G,"focus",function(J){if(G.value===E.cfg.text.SearchTheWeb){G.value=""}});this.observe(I.preview_img,"load",this.preview_img_loaded,C);var F=I.main.getElementsByTagName("input");for(var D=0;D1800){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()+"&vid="+this.view.id},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)}},dfs:function(C,B){if(C===undefined){C=this.cfg.dfs}C+="";if(B){while(C.length<2){C="0"+C}C=B+""+C}return C},empty:function(D){var C,B=D.childNodes;for(C=B.length-1;C>=0;C--){D.removeChild(B[C])}},marea_init:function(B){var D,C,F=this.get_active_div(B),E={queue:{free:[],in_use:[],pending:[]},pane:[],element:[]};this.empty(F.marea);this.marea_data(B,E);for(D=0;D<2;D++){C=document.createElement("div");this.reset_css(C);C.style.position="absolute";C.style.top="0px";C.style.left="0px";C.style.width="100%";C.style.height="100%";C.style.backgroundColor="#EEEEEE";C.style.overflow="hidden";C.style.display="none";E.queue.free.push(C);this.el_prop(C,"pid",D);this.el_prop(C,"bubble_id",B);E.element[D]=C;F.marea.appendChild(C);this.marea_init_pane(B,D)}},marea_init_pane:function(B,C){var D=this.marea_data(B);D.pane[C]={type:null,beacon:null};this.empty(D.element[C])},marea_data:function(B,C){if(B==null||B==undefined){B="null"}if(C!==undefined){this.marea[B]=C}return this.marea[B]},marea_prepare:function(K,L){var D,B,J,E,C=this.get_active_div(K),H=this.marea_data(K),G,F,I;this.clear_timer("prefetch");if(H.queue.pending.length||!H.queue.free.length||!this.cfg.has_marea){return }H.queue.pending.push(G=H.queue.free.shift());I=this.el_prop(G,"pid");this.empty(G);if(L=="none"||L=="searchbox"||L=="shotsense"||L=="shares"||L=="custom"){this.marea_type(K,I,L)}else{if(SNAP_COM.marea.ad_type.match(/^doubleclick/)){D=new String(parseInt(Math.random()*10000000000));while(D.length<10){D="0"+D}B=SNAP_COM.marea.ad_src_base.replace(/;ord=(\d+)/,";ord="+D);B=B.replace(/;sov=(\d+)/,";sov="+parseInt(Math.random()*10));B=B.replace(/;bub=(\d+)/,";bub="+((K==null)?"null":K));B=B.replace(/\/ad(.)\//,"/pfadj/");B=B.replace(/\bsz=(\d+)/,"sz="+parseInt(C.marea.style.width.replace(/\D/g,"")));E=this.cfg.prefix.cdn_js.replace(/http:\/\//,"")+"motif_beacon.js";B=B.replace(/;snap_survey_url=[^;]*/,";snap_survey_url="+escape(E));J="javascript:(function () { document.write(unescape('%3Cstyle%20type%3D%22text%2Fcss%22%3Ebody%20%7B%20%20%20%20margin%3A%200%3B%7D%3C%2Fstyle%3E%3Cscript%20type%3D%22text%2Fjavascript%22%3E%20%20%20%20inDapMgrIf%3Dtrue%3B%20%20%20%20inDapIF%3Dtrue%3B%20%20%20%20SNAP_COM%20%3D%20%7B%20%20%20%20%20%20%20%20pane_id%3A%20__PANE_ID__%2C%20%20%20%20%20%20%20%20shot%3A%20%7B%20%20%20%20%20%20%20%20%20%20%20%20dc_ad%3A%20function%28args%29%20%7B%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20if%20%28args%29%20%7B%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20args.pane_id%20%3D%20SNAP_COM.pane_id%3B%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20window.parent.SNAP_COM.shot.dc_ad%28args%29%3B%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7D%20%20%20%20%20%20%20%20%20%20%20%20%7D%2C%20%20%20%20%20%20%20%20%20%20%20%20set_marea_beacon%3A%20function%28beacon%2C%20bub_id%29%20%7B%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20window.parent.SNAP_COM.shot.marea_set_beacon%28bub_id%2C%20SNAP_COM.pane_id%2C%20beacon%29%3B%20%20%20%20%20%20%20%20%20%20%20%20%7D%2C%20%20%20%20%20%20%20%20%20%20%20%20show_marea%3A%20function%28%29%20%7B%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7D%2C%20%20%20%20%20%20%20%20%20%20%20%20marea_resize%3A%20function%28bubble_id%2C%20size%29%20%7B%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20window.parent.SNAP_COM.shot.marea_resize%28bubble_id%2C%20size%29%3B%20%20%20%20%20%20%20%20%20%20%20%20%7D%20%20%20%20%20%20%20%20%7D%20%20%20%20%7D%3B%3C%2Fscript%3E%3Cscript%20src%3D%22__AD_SRC__%22%20type%3D%22text%2Fjavascript%22%20onload%3D%22document.close%28%29%3B%22%3E%3C%2Fscript%3E')); })();";J=J.replace(/__AD_SRC__/,escape(B));J=J.replace(/__PANE_ID__/,escape(I));F=document.createElement("iframe");this.reset_css(F);F.setAttribute("scrolling","no");F.frameBorder="0";F.style.overflow="hidden";F.style.height="100%";F.style.width="100%";if(this.isSafari){G.appendChild(F);F.src=J}else{F.src=J;G.appendChild(F)}this.marea_type(K,I,"dc")}else{this.marea_type(K,I,"search_box")}}return I},marea_show:function(B,E){var D,G=this.get_active_div(B),F=this.marea_data(B),C;this.marea_hide(B);this.marea_resize(B,"default");if(!F.queue.pending.length){C=this.marea_prepare(B,E||this.cfg.ad_type);this.marea_type(B,C,E)}F.queue.in_use.push(D=F.queue.pending.pop());C=this.el_prop(D,"pid");if(E){if(E!="done"&&E!=this.marea_type(B,C)){this.marea_init_pane(B,C)}this.marea_type(B,C,E)}if(F.pane[C].type=="search_box"){this.marea_searchbox(B);return }this.marea_add_beacon(B,C);this.marea_process(B);G.search.style.visibility="hidden";G.marea.style.visibility="inherit";D.style.display=""},marea_resize:function(C,D){var E=this.get_active_div(C),B=this.get_active_cfg(C);switch(D){case"full":E.marea.style.height=B.css_pos.preview.h+B.css_pos.marea.h+"px";break;case"default":default:E.marea.style.height=B.css_pos.marea.h+"px";break}},marea_set_beacon:function(B,C,D){var E=this.marea_data(B);E.pane[C].beacon=D;if(E.element[C].style.display!="none"){this.marea_add_beacon(B,C)}},marea_add_beacon:function(C,D){var B,E=this.marea_data(C);if(E.pane[D].beacon){B=document.createElement("div");B.style.position="absolute";B.style.visibility="hidden";B.innerHTML=E.pane[D].beacon;E.element[D].appendChild(B);E.pane[D].beacon=null}},marea_type:function(B,C,D){var E=this.marea_data(B);if(D!==undefined){E.pane[C].type=D}return E.pane[C].type},marea_html:function(J,H,G){var E=this.marea_data(J);var F,C,I,B,D=E.element[H];C=D.childNodes;I=C.length;for(F=0;F\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.lb.lb_main,this.lb);G=this.lb;for(F in G){if(!G[F]||!G.hasOwnProperty(F)){continue}if(!G[F].style){continue}this.reset_css(G[F]);s=G[F].style;if(F!="lb_main"&&!s.visibility){s.visibility="inherit"}s.zIndex=Number(s.zIndex)+99999}E=this.cfg.prefix.preview+"fcr.php?key="+this.cfg.key+"&ft=";this.lb.lb_logo.href=E+"linkbubble_logo&url="+encodeURIComponent(this.lb.lb_logo.href);this.lb.lb_help.href=E+"linkbubble_help&url="+encodeURIComponent(this.lb.lb_help.href);this.set_loc(this.cfg.lb.css_pos,this.lb);this.observe(this.lb.lb_main,"mouseover",this.rollover);this.observe(this.lb.lb_main,"mouseout",this.rollout);this.observe(this.lb.lb_close,"click",this.lb_hide,true);this.lb_draw_bubble()},lb_draw_bubble:function(){var D,E,F=this.lb;var C={t:"tb",b:"tb",l:"lr",r:"lr"};for(D in C){if(C.hasOwnProperty(D)&&C[D]!==undefined){E=this.cfg.prefix.image+"lb/lb_"+C[D]+".png";if(this.needs_png_fix){F["lb_"+D+"_img"].runtimeStyle.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+E+"',sizingMethod='scale')"}else{if(this.isSafari){F["lb_"+D+"_img"].src=E}else{F["lb_"+D+"_img"].style.backgroundImage="url("+E+")";F["lb_"+D+"_img"].style.backgroundRepeat="repeat"}}}}C=["tl","tr","bl","br"];for(D=0;D '}D+=""}else{D+="