if(typeof SNAP_COM=="undefined"){SNAP_COM={};}SNAP_COM.timer_obj=function(){var t={events:{},on:false,logged:false,el:null,id:null,reset:function(){this.events={};},set_id:function(id){this.id=id;},enabled:function(on){this.on=on?true:false;},mark:function(_4){if(!this.on){return;}this.events[_4]=(new Date()).getTime();},sequence:function(){var i,len,start,marks=[],seq={};if(!this.on){return undefined;}for(i in this.events){if(this.events.hasOwnProperty(i)){marks.push(i);}}var _6=this.events;function mark_sort(a,b){return _6[a]-_6[b];}marks.sort(mark_sort);start=this.events[marks[0]];len=marks.length;for(i=0;i=this.cfg.auto_shot.limit){return _3a;}nv=_3a.nodeValue;nv_last=0;matches=this.autoshot_match(nv);len=matches.length;for(i=0;i10000){_46=10000;}_48+=_46;this.last_partial_check_count=_47;}if(this.first_scan){this.first_scan=false;}else{this.sample();}}this.timer_id.partial=this.later(_48,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(_49,_4a,_4b){var els=_49.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".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(2*_9f/5))?"b":"t";_a2+=(_a0>(_9e/2))?"r":"l";var _a3=parseInt(this.div.body.style.height.replace(/\D/g,""))+parseInt(this.div.bg_div_point.style.height.replace(/\D/g,""));var _a4=parseInt(this.div.body.style.width.replace(/\D/g,""))+parseInt(this.div.bg_div_point.style.width.replace(/\D/g,""));if((_a2.substr(0,1)=="b"&&_a1<_a3)||(_a2.substr(0,1)=="t"&&(_a1+_a3)>_9f)){if((parseInt(_a3/2)<_a1)&&(parseInt(_a3/2)<(_9f-_a1))){if((_9e-_a0)>_a4){_a2="l";}else{if(_a0>_a4){_a2="r";}}}}_9b=this.el_prop(_9d,"shot_parent")||_9d;if(!this.el_prop(_9b,"markup")&&!this.is_valid_link(_9b)){return;}if(this.div.main.style.visibility=="visible"){if(this.current_element!=_9b){_99=_9a;}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+_a0+_a1);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(_9d);this.timer_id.prefetch=this.later(this.cfg.delay.prefetch,this.marea_adserver,null);break;}}this.timer_id.show=this.later(_99,this.show,_9d,_a2);},show:function(_a5,_a6){var ex;var ey;if((this.cfg.trigger_position=="icon")&&this.el_prop(_a5,"link_icon")){offset=this.getXY(this.el_prop(_a5,"link_icon")||_a5);ex=offset[0];ey=offset[1];}else{ex=this.current_ex;ey=this.current_ey;}var _a9=this.get_shot_data(_a5);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+ex+ey);this.view.confirm=true;this.tmr.set_id(this.view.id);}if(this.other_bubbles){for(var i=0;i0)){ps=div["pointer0"].style;ps.visibility="inherit";var _bd=["height","width","top","left","bottom","right"];for(i=0;i<_bd.length;i++){ps[_bd[i]]=_ba.style[_bd[i]];}}if(_b6==null){this.current_orientation=_b4;}else{this.other_bubbles[_b6].current_orientation=_b4;}},highlight:function(_be){this.clear_timer("show");this.clear_timer("prefetch");this.orientation(this.current_orientation,_be);},handleMenuRoll:function(ev,_c0,_c1,_c2){var div=this.get_active_div(_c2);if(_c0==this.current_rss+"_toggle"){return;}if(div[_c0].tagName.toLowerCase()=="img"||_c0=="option_close_a"){var _c4=_c0;if(_c0=="zoom_img"){_c4=(this.cfg.size=="large")?"zoom_img_minus":"zoom_img_plus";}if(_c1){_c4+="_over";}this.changePaletteImg(_c0,_c4,_c2);if(_c0=="option_button"){if(_c1){this.clear_timer("hideOptionMenu"+_c2);this.timer_id["showOptionMenu"+_c2]=this.later(250,this.showOptionMenu,_c2);}else{this.clear_timer("showOptionMenu"+_c2);this.timer_id["hideOptionMenu"+_c2]=this.later(250,this.hideOptionMenu,_c2);}}}else{var s=div[_c0].style;if(_c1){s.backgroundColor="#d9d9d9";}else{s.backgroundColor="white";}if(_c0=="option_a"||_c0=="disable_a"){if(_c1){this.clear_timer("hideOptionMenu"+_c2);}else{this.timer_id["hideOptionMenu"+_c2]=this.later(250,this.hideOptionMenu,_c2);}}}},showOptionMenu:function(_c6){var div=this.get_active_div(_c6);div.option_menu.style.visibility="";if(this.isIE&&document.compatMode&&document.compatMode!="CSS1Compat"){var _c8=this.getWidth(div.option_a);var _c9=this.getWidth(div.disable_a);if(_c8>_c9){div.disable_a.style.width=_c8;}else{if(_c9>_c8){div.option_a.style.width=_c9;}}}},hideOptionMenu:function(_ca){var div=this.get_active_div(_ca);div.option_menu.style.visibility="hidden";},changePaletteImg:function(_cc,_cd,_ce){var div=this.get_active_div(_ce);var cfg=this.cfg;if(cfg.palette[_cd]==null){return;}var s=div[_cc].style;s.backgroundColor="transparent";s.backgroundImage="url("+cfg.img.palette+")";s.backgroundPosition=cfg.palette[_cd].loc;s.backgroundRepeat="no-repeat";s.width=cfg.palette[_cd].w+"px";s.height=cfg.palette[_cd].h+"px";},set_palette_img:function(_d2,id,_d4){var img;var div=this.get_active_div(_d4);var cfg=this.get_active_cfg(_d4);if(!cfg.png_palette[id]){return;}img=_d2.getElementsByTagName("img")[0];_d2.style.height=cfg.png_palette[id].h+"px";_d2.style.width=cfg.png_palette[id].w+"px";_d2.style.overflow="hidden";if(this.needs_png_fix){img.runtimeStyle.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+cfg.img.png_palette+"',sizingMethod='image')";img.src=cfg.prefix.cdn_image+"t.gif";}else{img.src=cfg.img.png_palette;}img.style.position="absolute";img.style.left="-"+cfg.png_palette[id].x+"px";img.style.top="-"+cfg.png_palette[id].y+"px";},tok:function(str){return this.cfg.tkn+this.hash32(this.cfg.tkn+str);},hash32:function(str){var h=5003;str=str.toString();for(var i=0;i>6);}h+=(h<<3);h^=(h>>11);h+=(h<<15);h=Math.abs(h).toString(16);while(h.length<8){h="0"+h;}return h;},rand_hash:function(a){var i,str=["","","",""];a=a.toString()+Math.random()+document.location.href+this.now()+window.navigator.userAgent;for(i=0;imax){url=url.substr(0,max)+"...";}div.url.innerHTML=url;div.url_a.href=_128.url;div.url_favicon.href=_128.url;div.url_arrow.href=_128.url;div.img_a.href=_128.url;div.url_a.target=_128.target;div.url_favicon.target=_128.target;div.url_arrow.target=_128.target;div.img_a.target=_128.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,_130){var text="";if(el.innerText!==undefined){text=el.innerText;}else{if(el.textContent!==undefined){text=el.textContent;}}if(_130===undefined){return this.trim(text).substr(0);}else{return this.trim(text).substr(0,_130);}},get_shot_data:function(el){var i,j,m,els;var node;var key,val;var svcs=[];var shot={"svc":"","tag":"","url":"","target":"","element":el,"trigger":"","auto":false};if(this.el_prop(el,"is_link_icon")){shot.trigger="icon";}else{shot.trigger="link";}el=this.el_prop(el,"shot_parent")||el;shot.element=el;shot.trigger=(this.el_prop(el,"trigger")=="both"?"both":"only")+"_"+shot.trigger;if(el.href!==undefined){shot.url=el.href;shot.target=el.target;}if(typeof SNAP_COM!="undefined"&&SNAP_COM.translateURL){if(shot.target.toLowerCase()=="_search"){shot.target="_SELF";}shot.url=SNAP_COM.translateURL(shot.url);shot.redir_url=shot.url;}if(this.cfg.redirect_param){regexS="[\\?&]"+this.cfg.redirect_param+"=([^&#]*)";regex=new RegExp(regexS);m=shot.url.match(regex);if(m){shot.redir_url=decodeURIComponent(m[1]);}else{shot.redir_url=shot.url;}}else{shot.redir_url=shot.url;}if(this.el_prop(el,"markup")){if((el.innerText!==undefined)&&el.innerText.length){shot.tag=this.trim(el.innerText).substr(0,500).replace(String.fromCharCode(164),"¤");}else{if(el.textContent!==undefined){shot.tag=this.trim(el.textContent).substr(0,500);}else{shot.tag=this.trim(el.innerHTML).substr(0,500);}}svcs.push(encodeURIComponent(el.className.match(/\bsnap_shots?_\S+/ig).join("|")));node=el.firstChild;while(node){if(node.tagName){m=node.className.match(/\bsnap_shots?_\S+/ig);if(m){key=encodeURIComponent(m.join("|"));val=encodeURIComponent(this.get_inner_text(node,500));svcs.push(key+"="+val);}}node=node.nextSibling;}shot.svc=svcs.join("&");}else{shot.is_preview=this.is_preview_url(shot.redir_url);}if(this.el_prop(el,"auto")){shot.auto=this.el_prop(el,"autoshot_data");}return shot;},set_load_tmr_js:function(el,src){var m;if((m=src.match(/^http:\/\/ad.(doubleclick).net\//))||(m=src.match(/\/(marea).js\?/))){this.set_load_tmr(el,m[1]);}},set_load_tmr:function(el,id){var shot=this;this.tmr.mark(id+"_start");this.observe(el,"load",function(e){shot.tmr.mark(id+"_end");});},confirm_shot_load:function(_13f){if(this.view.confirm){this.div.arrow.src=this.cfg.prefix.image+"snip/arrow-contd/"+this.view.id+"/d/"+_13f+"/p"+(this.now()-this.view.time)+"/arrow/";}this.view.confirm=false;},rss_check_loaded:function(ev,_141){this.tmr.mark("rss_check_end");var div=this.get_active_div(_141);if(ev.currentTarget){var pi=ev.currentTarget;}else{var pi=ev.srcElement;}if(pi.height==3&&pi.width==6){this.showTopLeftMenu(_141);if(this.cfg.shot_check==1){this.rss_toggle(null,"rss",_141);this.lower_loading_img();this.raise_shot("iframe",_141);if(this.isSafari){this.later(300,this.lower_loading_img);}}else{this.rss_toggle(null,"preview",_141);}}else{if(pi.width==1&&pi.height==2&&this.cfg.shot_check==1){this.view.time=this.now();var _144=this.shot_base+"&view_id="+this.view.id+"&goto="+encodeURIComponent(this.cfg.text.GoToURL);div.preview_img.src=this.cfg.prefix.preview+"preview"+_144+"&direct=1&sc=0";this.view.confirm=true;}else{if(pi.width==1&&pi.height==3&&this.cfg.shot_check==1){this.lower_loading_img();this.raise_shot("iframe",_141);if(this.isSafari){this.later(300,this.lower_loading_img);}}}}},preview_iframe_loaded:function(ev){this.tmr.mark("shot_iframe_end");this.lower_loading_img();},preview_img_loaded:function(ev){this.tmr.mark("preview_end");if(ev.currentTarget){var pi=ev.currentTarget;}else{var pi=ev.srcElement;}if(pi.height<10&&pi.width<10){this.view.confirm=false;}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 _148=1;var url=this.div.preview_img.src;var _14a=/retry=(\d+)/;var _14b=url.match(_14a);if(_14b){_148=Number(_14b[1])+1;url=url.replace(_14a,"retry="+_148);}else{url+="&retry="+_148;}if(_148>this.cfg.retry_interval.length){return;}if(_148==this.cfg.retry_interval.length){url+="&final=1";}var shot=this;var _14d=this.cfg.retry_interval[_148-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(){shot.div.preview_img.src=url;},_14d);}}}}},link_click:function(ev){var shot=this;var rw=false;var url=this.current_url;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){this.tmr.mark("click");this.tmr.log(this);var _153=this.cfg.prefix.preview+"explore/"+Math.floor((Math.random()*100000))+"/?url="+encodeURIComponent(url)+"&key="+this.cfg.key+"&src="+encodeURIComponent(this.cfg.source)+"&cp="+this.cfg.campaign;this.div.url_a.href=_153+"&tol=url";this.div.url_favicon.href=_153+"&tol=url_favicon";this.div.url_arrow.href=_153+"&tol=url_arrow";this.div.img_a.href=_153+"&tol=image";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&&_15d<_15c&&_15e>top&&_15e<_15b);if(_15f){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(_162){var div=this.get_active_div(_162);this.orientation("pin",false,_162);div.pin_close_img.style.display="inline";},destroy_bubble:function(ev,_165){this.other_bubbles[_165].main.style.display="none";this.other_bubbles[_165].current_url=null;this.other_bubbles[_165].current_tag=null;this.other_bubbles[_165].main.parentNode.removeChild(this.other_bubbles[_165].main);},pin_check:function(_166){this.hideFlashOverlay();this.div.pin_close_img.style.display="none";try{try{var _167=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 _16a=tmp[tmp.length-1];}catch(e){}if((_166.svc&&_166.svc.indexOf("Snap_Shot_")!=-1&&(_166.svc.indexOf("Video")!=-1||_166.svc.indexOf("Audio")!=-1))||(_167.toLowerCase().indexOf("youtube.com")!=-1&&path.indexOf("v")!=-1&&path.indexOf("view_play_list?")==-1)||(_167.toLowerCase().indexOf("video.google.com")!=-1&&path.indexOf("videoplay")!=-1)||(_167.toLowerCase().indexOf("metacafe.com")!=-1&&path.indexOf("watch")!=-1)||(_167.toLowerCase().indexOf("revver.com")!=-1&&path.indexOf("watch")!=-1)||(_167.toLowerCase().indexOf("video.xanga.com")!=-1)||(_167.toLowerCase().indexOf("photobucket.com")!=-1&&this.current_url.indexOf("action=view")!=-1)||(_167.toLowerCase().indexOf("veoh.com")!=-1&&path.indexOf("videos")!=-1)||(_167.toLowerCase().indexOf("vids.myspace.com")!=-1)||_16a.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 _16e=this.other_bubbles.length;this.other_bubbles[_16e]=new Object();this.other_bubbles[_16e].main=node;this.get_all_shot_nodes(this.other_bubbles[_16e].main,this.other_bubbles[_16e]);this.other_bubbles[_16e].current_url=this.current_url;this.other_bubbles[_16e].current_tag=this.current_tag;this.other_bubbles[_16e].current_element=this.current_element;this.other_bubbles[_16e].current_orientation=this.current_orientation;this.other_bubbles[_16e].cfg=this.cfg;var div=this.other_bubbles[_16e];this.observe(div["submit"],"click",this.form_submit,_16e);this.observe(div["box"],"keydown",this.form_submit,_16e);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,_16e);var divs=div.main.getElementsByTagName("input");for(var i=0;ileft&&_185<_184&&_186>top&&_186<_183);if(!_187){this.hide_delay(null,this.cfg.delay.hide);}}if(this.drag_state!="start"){return;}var _188=div.main;var x=this.pointerX(ev);var y=this.pointerY(ev);x=x-this.dragStartX;y=y-this.dragStartY;var obx=_188.offsetLeft;var oby=_188.offsetTop;var _18d=obx-0+x;var _18e=oby-0+y;var _18f=-1*div.bubble.offsetLeft;if(_18d<_18f){_18d=_18f;}var _190=-1*div.bubble.offsetTop;if(_18e<_190){_18e=_190;}_188.style.left=_18d+"px";_188.style.top=_18e+"px";if(_18d!=_18f){this.dragStartX=this.pointerX(ev);}if(_18e!=_190){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(_194){return _194.pageX||(_194.clientX+(document.documentElement.scrollLeft||document.body.scrollLeft));},pointerY:function(_195){return _195.pageY||(_195.clientY+(document.documentElement.scrollTop||document.body.scrollTop));},form_submit:function(ev,_197){var div=this.get_active_div(_197);var _199=false;var _19a="bsb";if(div.box.value===this.cfg.text.SearchTheWeb){_19a=this.campaign("defaulttext");if(this.cfg.search_type!="adult"){_199=true;}}else{if(div.box.value===""){_19a=this.campaign("emptybox");_199=true;}else{_19a=this.campaign("bsb");}}var _19b=this.cfg.prefix.search+"?source="+encodeURIComponent(this.cfg.source)+"&campaign="+_19a;if(_199){if(this.cfg.search_type=="image"){_19b+="&query=sunflower";}}else{_19b+="&query="+encodeURIComponent(div.box.value);_19b+="&spa_key="+encodeURIComponent(this.cfg.key);if(this.cfg.search_type=="adult"){_19b+="&spa_adult=1";}}var tg=(window.event)?ev.srcElement:ev.target;if(tg==div.box){var _19d=ev.keyCode;if(_19d==13){ev.returnValue=false;if(ev.preventDefault){ev.preventDefault();}location.href=_19b;}return;}else{if(tg==div.submit){window.open(_19b,"_blank");ev.returnValue=false;if(ev.preventDefault){ev.preventDefault();}return false;}}},sendPrecrawlList:function(){var _19e="?key="+this.cfg.key;for(var i=this.num_precrawl_sent;i1800){break;}_19e+="url"+(i+1)+"="+encodeURIComponent(url);}this.num_precrawl_sent=i;_19e+="&url_count="+this.thumbnail_precrawl_list.length;this.div.lg.src=this.cfg.prefix.preview+"thumbnail_precrawl.php"+_19e;if(this.num_precrawl_sent!=this.thumbnail_precrawl_list.length){this.later(1000,this.sendPrecrawlList);}},logFeatureClick:function(_1a1){this.div.lg.src=this.cfg.prefix.preview+"halo_proxy.php?feature_type="+_1a1+"&img=1&r="+this.now();},setPreviewIframeSrc:function(_1a2,_1a3){this.tmr.mark("shot_iframe_start");var div=this.get_active_div(_1a3);if(this.isSafari){if(div.preview){this.later(50,function(){div.preview.src=(_1a2);});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(_1a2);}}},sto:function(func,_1a6){if(this.cfg.flavor=="xanga"){if(window.restrictedSetTimeout){return window.restrictedSetTimeout(func,_1a6);}else{return window.setTimeout(func,_1a6);}}else{return window.setTimeout(func,_1a6);}},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(el){var _1a8=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];_1a8=el.offsetParent;var _1ab=(this.getStyle(el,"position")=="absolute");if(_1a8!=el){while(_1a8){pos[0]+=_1a8.offsetLeft;pos[1]+=_1a8.offsetTop;if(this.isSafari&&!_1ab&&(this.getStyle(_1a8,"position")=="absolute")){_1ab=true;}_1a8=_1a8.offsetParent;}}if(this.isSafari&&_1ab){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 _1b1=-1;var mode=document.compatMode;if((mode||this.isIE)&&!this.isOpera){if(mode==="CSS1Compat"){_1b1=document.documentElement.clientHeight;}else{_1b1=document.body.clientHeight;}}else{_1b1=self.innerHeight;}return _1b1;},getViewportWidth:function(){var _1b3=-1;var mode=document.compatMode;if(mode||this.isIE){if(mode==="CSS1Compat"){_1b3=document.documentElement.clientWidth;}else{_1b3=document.body.clientWidth;}}else{_1b3=self.innerWidth;}return _1b3;},getWidth:function(_1b5){var _1b6=parseInt(_1b5.offsetWidth);if(_1b5==document.body||_1b5==document||_1b5==window){return window.getWidth();}else{if(_1b5){var _1b6=parseInt(_1b5.offsetWidth);return (_1b6==0)?parseInt(_1b5.style.width):_1b6;}else{return null;}}},getHeight:function(_1b7){if(_1b7==document.body||_1b7==document||_1b7==window){return window.getHeight();}else{if(_1b7){var _1b8=parseInt(_1b7.offsetHeight);return (_1b8==0)?parseInt(_1b7.style.height):_1b8;}else{return null;}}},getLeft:function(_1b9){return _1b9.offsetLeft;},getRight:function(_1ba){return this.getLeft(_1ba)+this.getWidth(_1ba);},getTop:function(_1bb){return _1bb.offsetTop;},getBottom:function(_1bc){return this.getTop(_1bc)+this.getHeight(_1bc);},trim:function(str){return str.replace(/^\s*|\s*$/g,"");},getStyle:function(el,_1bf){return el.style[_1bf];},getStyleW3C:function(el,_1c1){var _1c2=null;if(_1c1=="float"){_1c1="cssFloat";}var _1c3=(document.defaultView)?document.defaultView.getComputedStyle(el,""):null;if(_1c3){_1c2=_1c3[_1c1];}return el.style[_1c1]||_1c2;},getStyleIE:function(el,_1c5){switch(_1c5){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":_1c5="styleFloat";default:var _1c7=el.currentStyle?el.currentStyle[_1c5]:null;return (el.style[_1c5]||_1c7);}},AC_AddExtension:function(src,ext){if(src.indexOf("?")!=-1){return src.replace(/\?/,ext+"?");}else{return src+ext;}},AC_Generateobj:function(_1ca,_1cb,_1cc){var str="";if(this.isIE&&this.isWin&&!this.isOpera){str+=" ";}str+="";}else{str+="