var snap_preview_anywhere_config = {version:"1.17.5",prefix:{image:"http://spa.snap.com/images/v1.17.5/",theme:"http://spa.snap.com/images/v1.17.5/theme/silver/",link:"http://spa.snap.com/",options:"http://spa.snap.com/",preview:"http://spa.snap.com/",spasense:"http://spa.snap.com/",bg:"http://spa.snap.com/images/v1.17.5/theme/silver/bg/bg_305x270",snap:"http://www.snap.com/",search:"http://images.snap.com/"},theme:"silver",key:"5c8e7d2c94b931545631964e87230a43",source:"notalkradio.podspot.de",flavor:null,search_box:false,auto_preview:true,show_internal:false,show_link_icon:"off",preview_trigger:"both",search_type:"image",delay:{show:500,hide:150,move:200},text:{search_box:"Search for Images"},img:{cobrand:"http://spa.snap.com/images/v1.17.5/t.gif",submit:"http://spa.snap.com/images/v1.17.5/t.gif"},css_pos:{main:{x:0,y:0,w:305,h:270},ether:{x:null,y:null,w:258,h:32},body:{x:0,y:0,w:305,h:192},bg_img:{x:0,y:0,w:305,h:270},url:{x:14,y:4,w:215,h:20},url_a:{x:0,y:0,w:null,h:null},ques_a:{xr:20,y:5,w:null,h:null},preview_div:{x:13,y:24,w:270,h:161},preview:{x:0,y:0,w:null,h:null},loading_img:{x:0,y:0,w:null,h:null},search:{x:13,y:195,w:272,h:30},logo_a:{x:182,y:191,w:107,h:21},box:{x:5,y:5,w:210,h:20},submit:{x:220,y:5,w:46,h:20},cobrand_img:{x:13,y:193,w:null,h:null},cobrand_a:{x:16,y:199,w:102,h:11},options:{x:0,y:0,w:305,h:null},option_a:{xr:20,y:5,w:null,h:null},option_iframe:{x:13,y:21,w:275,h:192},spasense_iframe:{x:13,y:195,w:274,h:32}},style:{ques_a:{fontSize:"10px",fontWeight:"normal",color:"#857a7a",borderBottom:"1px dotted #857a7a",textDecoration:"none"},option_a:{fontSize:"10px",fontWeight:"normal",color:"#857a7a",borderBottom:"1px dotted #857a7a",textDecoration:"none"},url_a:{fontSize:"12px",fontWeight:"bold",color:"#003399",borderBottom:"1px dotted #003399",textDecoration:"none",textAlign:"left"},url:{overflow:"hidden"},preview_div:{border:"2px solid #827874",overflow:"hidden",backgroundColor:"#FFFFFF"},search:{backgroundColor:"#f5f5f6",border:"1px solid #d9ddce"},box:{fontSize:"10px",border:"1px solid #999999",color:"#333333",backgroundColor:"#ffffff"}},offset:{body:{top:40,bottom:10},options:{top:40,bottom:10},search_box:38},hidden:["options","spasense_iframe","search"],retry_interval:[8000,5000,5000,5000,5000,5000],partial_check:{delay:2000,attempts:5},href:{logo:"http://www.snap.com/",cobrand:"http://www.snap.com/about/spa1B.php"},palette:{submit:"-107px 0",cobrand_a:"-153px 0",logo_a:"0 0"},ether:{tl:{x:47,y:0},tr:{x:0,y:0},bl:{x:47,y:238},br:{x:0,y:238}},el_scan:"default",color:{bubble:"#ffffff",bubble_rollover:"#fffeee",bubble_border:"#a4a3a3",url:"#003399",url_down:"#ff0000",preview_border:"#827874",preview_border_down:"#ff0000",options:"#857a7a",options_down:"#ff0000",search_box:"#f5f5f6",search_box_border:"#d9ddce",search_field:"#ffffff",search_field_border:"#999999"},fl:""};
function snapPreviewAnywhere(){this.init();}snapPreviewAnywhere.prototype={div:null,timer_id:null,current_orientation:"lr",retry_url_list:{},div_added:null,current_element:null,current_url:null,init:function(){this.div={};this.retry_url_list={};this.timer_id={retry:null,show:null,partial:null};this.div_added=false;this.current_element=null;this.current_url=null;this.domain=null;this.cfg=snap_preview_anywhere_config;var _1=this;this.observe(window,"load",function(){_1.onload();});var _2=document.getElementById("snap_preview_anywhere");if(_2&&_2.defer){this.timer_id.partial=window.setTimeout(function(){_1.partial_check();},this.cfg.partial_check.delay);}},clear_timer:function(_3){if(this.timer_id[_3]){window.clearTimeout(this.timer_id[_3]);this.timer_id[_3]=0;}},campaign:function(_4){return "spa"+(_4?("_"+_4):"")+"!"+window.location.host.replace(/:\d+$/,"");},is_internal_link:function(_5){var _6=/^(http|file)s?:\/\/(www\.)?(.*?)\//;if(this.domain===null){var m=document.location.href.match(_6);if(m){this.domain=m[3];}else{this.domain="";}}var _8=_5.href.match(_6);if(_8&&(this.domain==_8[3])){return true;}else{return false;}},is_valid_link:function(_9){var _a=_9.href.match(/^(http)s?:\/\/([^#]*)/);var _b=document.location.href.match(/^(http|file)s?:\/\/([^#]*)/);if(!_a||!_b||(_a[2]==_b[2])||(_a[1]!=="http")){return false;}return true;},add_spa:function(_c){var _d=this;_c.snap_preview_added="spa";if((this.cfg.show_link_icon=="off"||this.cfg.preview_trigger!="icon"||_c.parent_link_icon=="no"||_c.parent_link_icon=="both"||_c.className.indexOf("snap_no_icon")!=-1||_c.className.indexOf("snap_trigger_both")!=-1)&&_c.className.indexOf("snap_trigger_icon")==-1&&_c.parent_link_icon!="icon"){this.observe(_c,"mouseover",function(ev){_d.show_delay(ev,_d.cfg.delay.show,_d.cfg.delay.move);});this.observe(_c,"mouseout",function(ev){_d.hide_delay(ev,_d.cfg.delay.hide);});}this.add_link_icon(_c);},add_link_icon:function(_10){var spa=this;var _12=/
]*>/ig;var _13=spa.trim(_10.innerHTML.replace(_12,""));if((this.cfg.show_link_icon=="on"||_10.className.indexOf("snap_trigger_both")!=-1||_10.className.indexOf("snap_trigger_icon")!=-1||_10.parent_link_icon=="icon"||_10.parent_link_icon=="both")&&_10.className.indexOf("snap_no_icon")==-1&&_10.snap_icon_added!="no"&&_13!=""){var _14=document.createElement("img");_14.style.margin="0 0 0 3px";_14.style.padding="1px 0 0 0";_14.style.width="11px";_14.style.height="12px";_14.style.border="0";_14.style.verticalAlign="top";_14.style.background="";_14.style.display="inline";_14.style.fontStyle="normal";_14.style.fontWeight="normal";_14.style.fontFamily="\"trebuchet ms\", arial, helvetica, sans-serif";_14.style.textDecoration="none";_14.style.cssFloat="none !important";_14.style.styleFloat="none";_14.src=this.cfg.prefix.theme+"iconLink.gif";_10.appendChild(_14);_14.snap_preview_added="spa";this.observe(_14,"mouseover",function(ev){spa.show_delay(ev,400,200);});this.observe(_14,"mouseout",function(ev){spa.hide_delay(ev,150);});}_10.snap_icon_added="spa";},conditional_add_spa:function(_17,_18,_19){if(_17.snap_preview_added){return;}else{if(_17.className.indexOf("snap_nopreview")!=-1){_17.snap_preview_added="no";return;}}if((_17.className.indexOf("snap_preview")!==-1)||(_17.className.indexOf("snap_li")!==-1)||((_17.href.indexOf("https://")!=0)&&(this.cfg.auto_preview||_18)&&(this.cfg.show_internal||!this.is_internal_link(_17))&&(this.is_valid_link(_17)))){_17.parent_link_icon=_19;this.add_spa(_17);}else{_17.snap_preview_added="no";}},add_link_events:function(){var _1a;var _1b=[];var _1c=[];var _1d=[];var _1e=["a","area"];var _1f=[];switch(this.cfg.el_scan){case "all":_1f=["*"];break;case "default":_1f=["div","span"];break;}for(var tt=0;tt<_1f.length;tt++){var els=document.getElementsByTagName(_1f[tt]);for(var i=0;i\n
\n\n
Options\n
\n
\n
\n \n
\n
\n

\n
\n
\n
\n\n";this.get_all_spa_nodes(this.div.main,this.div);this.set_css();this.raise_loading_img();this.observe(this.div.main,"mouseover",function(ev){spa.highlight(true);});this.observe(this.div.main,"mouseout",function(ev){var _3a=ev.relatedTarget||ev.toElement;if(_3a==null){return;}if(spa.isOpera){var top=spa.getTop(spa.div.main);var _3c=spa.getLeft(spa.div.main);var _3d=spa.getBottom(spa.div.main);var _3e=spa.getRight(spa.div.main);var _3f=ev.pageX||(ev.clientX+(document.documentElement.scrollLeft||document.body.scrollLeft));var _40=ev.pageY||(ev.clientY+(document.documentElement.scrollTop||document.body.scrollTop));var _41=(_3f>_3c&&_3f<_3e&&_40>top&&_40<_3d);if(_41){return;}}spa.highlight(false);spa.hide_delay(ev,100);});var spa=this;this.observe(this.div.preview,"load",function(ev){spa.check_image_status(ev);});this.observe(this.div.ether,"mouseover",function(ev){spa.highlight(false);spa.hide_delay(ev,100);if(ev.preventDefault){ev.preventDefault();ev.stopPropagation();ev.returnValue=false;ev.cancelBubble=true;}else{ev.returnValue=false;ev.cancelBubble=true;}});spa.opt_url=this.cfg.prefix.options+"options.php?source="+encodeURIComponent(this.cfg.source)+"&key="+this.cfg.key+"&sb="+(this.cfg.search_box?"1":"0")+"&th="+this.cfg.theme;this.observe(this.div.option_iframe,"mouseout",function(_45){_45.returnValue=false;_45.cancelBubble=true;});this.observe(this.div.ques_a,"click",function(ev){spa.div.body.style.display="none";spa.div.options.style.display="inline";if(spa.div.option_iframe.src!=spa.opt_url){spa.div.option_iframe.src=spa.opt_url;}ev.returnValue=false;if(ev.preventDefault){ev.preventDefault();}return false;});this.observe(this.div.option_a,"click",function(ev){spa.div.options.style.display="none";spa.div.body.style.display="inline";ev.returnValue=false;if(ev.preventDefault){ev.preventDefault();}return false;});this.observe(this.div.ques_a,"mouseover",function(ev){spa.div.ques_a.style.borderBottom="none";});this.observe(this.div.ques_a,"mouseout",function(ev){spa.div.ques_a.style.borderBottom="1px dotted "+spa.cfg.color.options;});this.observe(this.div.option_a,"mouseover",function(ev){spa.div.option_a.style.borderBottom="none";});this.observe(this.div.option_a,"mouseout",function(ev){spa.div.option_a.style.borderBottom="1px dotted "+spa.cfg.color.options;});this.observe(this.div.url_a,"mouseover",function(ev){spa.div.url_a.style.borderBottom="none";});this.observe(this.div.url_a,"mouseout",function(ev){spa.div.url_a.style.borderBottom="1px dotted "+spa.cfg.color.url;});var _4e=["img_a","url_a"];for(var i=0;i<_4e.length;i++){this.observe(this.div[_4e[i]],"click",function(ev){spa.link_click("click");});}this.observe(document,"mousewheel",function(ev){spa.disabled=true;clearTimeout(spa.disableTimer);spa.disableTimer=setTimeout(function(){spa.disabled=false;},200);});this.observe(this.div.search_form,"submit",function(ev){spa.form_submit(ev);});this.div.box.value=this.cfg.text.search_box;this.observe(this.div.box,"focus",function(ev){if(spa.div.box.value===spa.cfg.text.search_box){spa.div.box.value="";}});var _54="?source="+encodeURIComponent(this.cfg.source)+"&campaign=";this.div.logo_a.href=this.cfg.href.logo+_54+this.campaign("bsblogo");this.div.cobrand_a.href=this.cfg.href.cobrand;if(this.div.cobrand_a.href.indexOf(this.cfg.prefix.snap)==0){this.div.cobrand_a.href+=_54+this.campaign("link");}this.div.search_form.action=this.cfg.prefix.search;var el=document.createElement("input");el.type="hidden";el.name="source";el.value=encodeURIComponent(this.cfg.source);this.div.search_form.appendChild(el);var el=document.createElement("input");el.type="hidden";el.name="campaign";el.value="";this.div.search_form.appendChild(el);this.div.form_campaign=el;this.orientation("bl");},raise_loading_img:function(){this.div.loading_img.style.zIndex=Number(this.div.preview.style.zIndex)+1;},lower_loading_img:function(){this.div.loading_img.style.zIndex=Number(this.div.preview.style.zIndex)-1;},move:function(x,y){this.div.main.style.left=x+"px";this.div.main.style.top=y+"px";},hide_delay:function(ev,_59){this.clear_timer("show");var spa=this;this.timer_id.show=window.setTimeout(function(){spa.hide();},_59);},hide:function(){if(this.div.options.style.display!="none"){this.div.options.style.display="none";this.div.body.style.display="inline";}this.div.main.style.visibility="hidden";},show_delay:function(ev,_5c,_5d){this.clear_timer("show");if(this.disabled){return;}var _5e;if(ev.srcElement){_5e=ev.srcElement;}else{if(ev.target){_5e=ev.target;}}var ex=this.getPageX(ev);var ey=this.getPageY(ev);var _61=this.getViewportWidth();var _62=this.getViewportHeight();if((/Safari|Konqueror|KHTML/gi).test(navigator.userAgent)){var _63=ev.pageX-window.pageXOffset;var _64=ev.pageY-window.pageYOffset;var _65=(_64>(_62/2))?"b":"t";_65+=(_63>(_61/2))?"r":"l";}else{var _65=(ev.clientY>(_62/2))?"b":"t";_65+=(ev.clientX>(_61/2))?"r":"l";}var _66=null;if(_5e){var _67=_5e;for(var i=0;(i<5)||(!_67);i++){if((_67.tagName=="A"||_67.tagName=="AREA")&&_67.href){_66=_67;break;}_67=_67.parentNode;}}if(_66){var spa=this;if(!this.is_valid_link(_66)){return;}if(this.div.main.style.visibility!="visible"){this.timer_id.show=window.setTimeout(function(){spa.show(_66,ex,ey,_65,_5e);},_5c);}else{if(!_5e||(this.current_element!=_5e)){this.timer_id.show=window.setTimeout(function(){spa.show(_66,ex,ey,_65,_5e);},_5d);}}}},show:function(_6a,ex,ey,_6d,_6e){if(this.div.url_a.href!=_6a.href){this.raise_loading_img();}if(!_6d){_6d=this.current_orientation;}this.orientation(_6d);this.div.box.value=this.cfg.text.search_box;this.div.box.blur();var spa=this;window.setTimeout(function(){spa.show_part2(_6a,ex,ey,_6d,_6e);},0);var _70=this.cfg.prefix.spasense+"spasense.php?key="+this.cfg.key+"&url="+_6a.href+"&cp="+this.campaign("spasense")+"&src="+encodeURIComponent(this.cfg.source);if(this.cfg.search_type=="spasense"&&this.cfg.search_box==true){if(this.div.spasense_iframe.src!=_70){this.div.spasense_iframe.src=_70;}}else{this.div.spasense_iframe.src="";}},show_part2:function(_71,ex,ey,_74,_75){this.preview_url(_71);var pad=5;if(_74.substr(0,1)=="b"){ey-=(this.div.main.offsetHeight+pad);}else{ey+=pad;}if(_74.substr(1,1)=="r"){ex-=this.div.main.offsetWidth;}this.move(ex,ey);this.current_element=_75;this.div.main.style.visibility="visible";},orientation:function(_77,_78){var _79=this.cfg.prefix.bg;switch(_77){case "bl":this.div.body.style.top=this.cfg.offset.body.bottom+"px";this.div.options.style.top=this.cfg.offset.options.bottom+"px";break;case "br":this.div.body.style.top=this.cfg.offset.body.bottom+"px";this.div.options.style.top=this.cfg.offset.options.bottom+"px";break;case "tl":this.div.body.style.top=this.cfg.offset.body.top+"px";this.div.options.style.top=this.cfg.offset.options.top+"px";break;case "tr":this.div.body.style.top=this.cfg.offset.body.top+"px";this.div.options.style.top=this.cfg.offset.options.top+"px";break;default:return;break;}this.div.ether.style.left=this.cfg.ether[_77].x+"px";this.div.ether.style.top=this.cfg.ether[_77].y+"px";_79+="_"+_77;_79+=(_78?"_d.png":".png");if(this.needs_png_fix){this.div.bg_img.runtimeStyle.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+_79+"',sizingMethod='scale')";}else{this.div.main.style.background="url("+_79+")";}this.current_orientation=_77;},highlight:function(_7a){this.clear_timer("show");this.orientation(this.current_orientation,_7a);},preview_url:function(_7b){var url=_7b.href;var _7d=_7b.target;this.current_url=url;this.div.url_a.href=url;this.div.url_a.target=_7d;this.div.img_a.href=url;this.div.img_a.target=_7d;this.div.url_a.innerHTML=url.replace(/\w+:\/\/(www\.)?/,"");var m=url.match(/\w+:\/\/([^\/]*)/);if(m){this.div.preview.title="Go to "+m[1];this.div.loading_img.title="Go to "+m[1];}else{this.div.preview.title="";this.div.loading_img.title="";}this.clear_timer("retry");if(this.retry_url_list[url]){this.div.preview.src=this.retry_url_list[url];}else{this.div.preview.src=this.cfg.prefix.preview+"preview/?url="+encodeURIComponent(url)+"&key="+this.cfg.key+"&src="+encodeURIComponent(this.cfg.source)+"&cp="+this.campaign("preview")+"&sb="+(this.cfg.search_box?"1":"0")+"&v="+this.cfg.version;}},link_click:function(_7f){switch(_7f){case "click":var _80=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.campaign("redir");this.div.url_a.href=_80+"&tol=url";this.div.img_a.href=_80+"&tol=image";break;}},check_image_status:function(ev){this.lower_loading_img();if(this.div.preview.width==274){var _82=1;var url=this.div.preview.src;var _84=/retry=(\d+)/;var _85=url.match(_84);if(_85){_82=Number(_85[1])+1;url=url.replace(_84,"retry="+_82);}else{url+="&retry="+_82;}if(_82>this.cfg.retry_interval.length){return;}if(_82==this.cfg.retry_interval.length){url+="&final=1";}this.retry_url_list[this.div.url_a.href]=url;if(this.div.main.style.visibility=="visible"){var spa=this;var _87=this.cfg.retry_interval[_82-1];this.clear_timer("retry");this.timer_id.retry=window.setTimeout(function(){spa.div.preview.src=url;},_87);}}},form_submit:function(ev){var _89=false;if(this.div.box.value===this.cfg.text.search_box){this.div.form_campaign.value=this.campaign("defaulttext");_89=true;}else{if(this.div.box.value===""){this.div.form_campaign.value=this.campaign("emptybox");_89=true;}else{this.div.form_campaign.value=this.campaign("bsb");}}if(_89){var _8a=this.cfg.prefix.search+"?source="+encodeURIComponent(this.cfg.source)+"&campaign="+this.div.form_campaign.value;if(this.cfg.search_type=="image"){_8a+="&query=sunflower";}window.open(_8a,"_blank");ev.returnValue=false;if(ev.preventDefault){ev.preventDefault();}return false;}},needs_png_fix:(navigator.userAgent.match(/msie (5\.5|6)/i)&&navigator.platform=="Win32"),isFirefox:(navigator.userAgent.match(/firefox/i)),yahoo_yui_section_being:function(){"The following section of code adapted from the Yahoo YUI Library";" Copyright (c) 2006, Yahoo! Inc. All rights reserved.";" Code licensed under the BSD License:";" http://developer.yahoo.net/yui/license.txt";" Version: 0.11.4";},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)),getPageX:function(ev){var x=ev.pageX;if(!x&&0!==x){x=ev.clientX||0;if(this.isIE){x+=this._getScrollLeft();}}return x;},getPageY:function(ev){var y=ev.pageY;if(!y&&0!==y){y=ev.clientY||0;if(this.isIE){y+=this._getScrollTop();}}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 _90=-1;var _91=document.compatMode;if((_91||this.isIE)&&!this.isOpera){switch(_91){case "CSS1Compat":_90=document.documentElement.clientHeight;break;default:_90=document.body.clientHeight;}}else{_90=self.innerHeight;}return _90;},getViewportWidth:function(){var _92=-1;var _93=document.compatMode;if(_93||this.isIE){switch(_93){case "CSS1Compat":_92=document.documentElement.clientWidth;break;default:_92=document.body.clientWidth;}}else{_92=self.innerWidth;}return _92;},getWidth:function(_94){if(_94==document.body||_94==document||_94==window){return window.getWidth();}else{if(_94){var _95=parseInt(_94.offsetWidth);return (_95==0)?parseInt(_94.style.width):_95;}else{return null;}}},getHeight:function(_96){if(_96==document.body||_96==document||_96==window){return window.getHeight();}else{if(_96){var _97=parseInt(_96.offsetHeight);return (_97==0)?parseInt(_96.style.height):_97;}else{return null;}}},getLeft:function(_98){return _98.offsetLeft;},getRight:function(_99){return this.getLeft(_99)+this.getWidth(_99);},getTop:function(_9a){return _9a.offsetTop;},getBottom:function(_9b){return this.getTop(_9b)+this.getHeight(_9b);},trim:function(str){return str.replace(/^\s*|\s*$/g,"");},yahoo_yui_section_end:function(){"End Yahoo YUI Library adapted code section";},log:function(msg,obj){if(!this.isFirefox||typeof console=="undefined"){return;}if(obj){console.log(msg,obj);}else{console.log(msg);}}};var snap_preview_anywhere=new snapPreviewAnywhere();