//copyright olshop ag
var skipl={};skipl.entries=new Array();skipl.first=0;skipl.maxdesc=80;skipl.justplayer=false;skipl.loadVid=function(b,c){var e="";if(b==""){return}if(this.justplayer){return}if(c.justplayer){this.justplayer=true}var d=new RegExp("http://video.vol.at/video/([0-9]+)/.*","g");var i=new RegExp("http://.*/.*.flv","g");var a=new RegExp("http://.*/.*.swf","g");var j=new RegExp("http://.*/.*.mp4","g");if(b.match(d)){e="vol";b=RegExp.$1;data={entry:{id:{"$t":b},"media$group":{"media$thumbnail":[{url:"http://video.vol.at/media/thumbs_at/160/"+b+".jpg?version=2"}],"media$description":{"$t":""},"media$title":{"$t":""},"media$content":[{url:"http://video.vol.at/media/video_at/"+b+".flv"}]}}}}else{if(b.match(i)||b.match(a)||b.match(j)){e="flv";data={entry:{id:{"$t":b},"media$group":{"media$thumbnail":[{url:""}],"media$description":{"$t":""},"media$title":{"$t":""},"media$content":[{url:b}]}}}}else{e="yt";var g=document.createElement("script");g.src="http://gdata.youtube.com/feeds/api/videos/"+b+"?alt=json-in-script&callback=skipl.parseVid&format=5";g.id="vid"+b;var f=document.getElementsByTagName("head")[0];f.appendChild(g)}}this.entries.push({mode:e,videoid:b,copyright:c.copyright,www:c.www,name:c.name,desc:c.desc,mediaurl:"",videolist:c.videolist,noplayer:c.noplayer,thumbnail:c.thumbnail,width:c.width,height:c.height,notitle:c.notitle});if(e!="yt"){this.parseVid(data)}};skipl.addPlayer=function(b,c){var a=[];if(b.notitle==undefined){a.push("<b>");a.push(b.name);a.push("</b>")}else{a.push("<!-- //-->")}if(b.mode=="vol"){if(b.width!=undefined&&b.height!=undefined){w=b.width;h=b.height}else{w=384;h=310}a.push('<object width="'+w+'" height="'+h+'"><param name="movie" value="');a.push("http://video.vol.at/media_tp/custom/flowplayer/swf/FlowPlayerDark.swf?config={embedded:true,baseURL:'http://video.vol.at/media_tp/custom/flowplayer/swf',loop:false,playList:[{url:'"+b.mediaurl+"'}],initialScale:'scale',controlBarBackgroundColor:'0x000000',autoBuffering:true,autoPlay:"+c+"}");a.push('"></param><param name="wmode" value="transparent">');a.push('</param><embed src="');a.push("http://video.vol.at/media_tp/custom/flowplayer/swf/FlowPlayerDark.swf?config={embedded:true,baseURL:'http://video.vol.at/media_tp/custom/flowplayer/swf',loop:false,playList:[{url:'"+b.mediaurl+"'}],initialScale:'scale',controlBarBackgroundColor:'0x000000',autoBuffering:true,autoPlay:"+c+"}");a.push('" allowFullScreen="true"  scale="noscale" type="application/x-shockwave-flash" ');a.push('wmode="transparent" width="'+w+'" height="'+h+'"></embed></object>')}else{if(b.mode=="yt"){if(b.width!=undefined&&b.height!=undefined){w=b.width;h=b.height}else{w=552;h=310}a.push('<object width="'+w+'" height="'+h+'"><param name="movie" value="');a.push(b.mediaurl);a.push("&autoplay="+c+'&rel=0&egm=0&showinfo=0"></param><param name="wmode" value="transparent">');a.push('</param><embed src="');a.push(b.mediaurl);a.push("&autoplay="+c+'&rel=0&egm=0&showinfo=0" allowFullScreen="true" type="application/x-shockwave-flash" ');a.push('wmode="transparent" width="'+w+'" height="'+h+'"></embed></object>')}else{if(b.mode=="flv"){if(b.width!=undefined&&b.height!=undefined){w=b.width;h=b.height}else{w=384;h=310}a.push('<object height="'+h+'" width="'+w+'">');a.push('<param name="movie" value="http://video.skiregionen.com/flowplayer-3.1.5.swf" /><param name="allowfullscreen" value="true"><param name="quality" value="high"><param name="cachebusting" value="false"><param name="bgcolor" value="#000000">');a.push('<param name="flashvars" value=\'config={"baseUrl":"http://video.skiregionen.com","clip":{"url":"'+b.mediaurl+'","autoBuffering":"true","autoPlay":'+c+"}}'");a.push("</param>");a.push('<embed src="http://video.skiregionen.com/flowplayer-3.1.5.swf" type="application/x-shockwave-flash" allowFullScreen="true" height="'+h+'" width="'+w+'" ');a.push('flashvars=\'config={"baseUrl":"http://video.skiregionen.com","clip":{"url":"'+b.mediaurl+'","autoBuffering":"true","autoPlay":'+c+"}}'");a.push("/>");a.push("</object>")}}}document.getElementById("skividpl").innerHTML=a.join("")};skipl.parseVid=function(f){for(var g=0;g<this.entries.length;g++){if("http://gdata.youtube.com/feeds/api/videos/"+this.entries[g].videoid==f.entry.id.$t||this.entries[g].videoid==f.entry.id.$t){var b;var k="";try{k=this.utf8decode(f.entry.media$group.media$description.$t)}catch(l){continue}if(!this.justplayer){if(this.entries[g].videolist==undefined){b=document.getElementById("skividlist")}else{b=document.getElementById(this.entries[g].videolist)}}var d=document.createElement("div");var m=document.createElement("img");var j=document.createElement("a");var o=document.createElement("div");var n=document.createElement("p");if(this.entries[g].thumbnail==undefined){m.setAttribute("src",f.entry.media$group.media$thumbnail[0].url)}else{m.setAttribute("src",this.entries[g].thumbnail)}m.setAttribute("width",130);m.setAttribute("height",97);m.setAttribute("alt",k);m.setAttribute("title",k);j.setAttribute("href",f.entry.media$group.media$content[0].url);j.id=g;this.entries[g].mediaurl=f.entry.media$group.media$content[0].url;if(this.entries[g].name==undefined){this.entries[g].name=this.utf8decode(f.entry.media$group.media$title.$t)}j.innerHTML=this.entries[g].name;j.onclick=function(){skipl.addPlayer(skipl.entries[this.id],1);window.location.hash="skividpl";return false};m.id=j.id;m.onclick=j.onclick;if(k.length>skipl.maxdesc){k=k.substring(0,skipl.maxdesc-3)+"..."}if(this.entries[g].desc==undefined){n.innerHTML=k}else{n.innerHTML=this.entries[g].desc}d.appendChild(m);o.appendChild(j);o.appendChild(n);if(this.entries[g].copyright){var c=document.createElement("span");if(this.entries[g].www){var a=document.createElement("a");a.setAttribute("href",this.entries[g].www);a.setAttribute("target","_blank");a.innerHTML="&copy; "+this.entries[g].copyright;c.appendChild(a)}else{c.innerHTML="&copy; "+this.entries[g].copyright}o.appendChild(c)}d.appendChild(o);d.className="skividliste";d.setAttribute("class","skividliste");if(!this.justplayer){b.appendChild(d)}if(this.first==0&&this.entries[g].noplayer!="1"){this.addPlayer(this.entries[g],"false");this.first=1}break}}};skipl.utf8decode=function(a){try{if(/msie|MSIE 6/.test(navigator.userAgent)){return decodeURIComponent(escape(a))}}catch(b){}return a};if(typeof(randomimp)!="undefined"){clearInterval(randomimp)}disablerandoms=1;