﻿var base = "http://www.energy.de/static/";
var base_g = "http://www.energy.de/galleries/";
var baseWin = "toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=800,height=600";
var galWin  = "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbar=0,resizable=0,width=790,height=560";
function w(b,h){var str = "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbar=0,resizable=0,width=" + b + ",height=" + h ; return str; }
function a(q,d,n){if(d!==""){q+=n+"="+d;}return q;}
function p(u,t){s = p.arguments.length==2 ?  "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbar=0,resizable=0,width=700,height=700" :  p.arguments[2];var popup = window.open(u,t,s);popup.focus();}
function b(c_ar,n_ar){var q="";if(c_ar.length!==0 ){for(var i=0;i<c_ar.length;i++){q=a(q,c_ar[i],n_ar[i]); if(i<c_ar.length-1)q+="&";}};return q;}
function starschnitten(){p(base_g + 'starschnitten/','galleries','');}
function specialsgallery(){p(base_g + 'specialsgallery/','galleries','');}
function gameshots(){p(base_g + 'gameshots/','galleries','');}
function muenchengallery(){p(base_g + 'muenchen/','galleries','');}
function hamburggallery(){p(base_g + 'hamburg/','galleries','');}
function bremengallery(){p(base_g + 'bremen/','galleries','');}
function stuttgartgallery(){p(base_g + 'stuttgart/','galleries','');}
function berlingallery(){p(base_g + 'berlin/','galleries','');}
function nuernberggallery(){p(base_g + 'nuernberg/','galleries','');}
function videogags(){p(base_g + 'videogags/','galleries','');}
function gallery(){p(base_g + 'starschnitten/','galleries','');}
function clickbit(){p(base_g + 'clickbits/','galleries','');}
function clickbits(){p(base_g + 'clickbits/','galleries','');}
function audiogags(){ p(base_g + 'audiogags/','galleries','');}
function starmacken(){p(base_g + 'specialsgallery/','galleries','');}
function usertreffen(){p(base_g + 'specialsgallery/449/','galleries','')}
function webcam(){p(base+'webcams/index.php','popup');}
function openCam(){webcam();}
function berlinwebcam(){p(base+'webcams/index.php?cam=0','popup');}
function bremenwebcam(){p(base+'webcams/index.php?cam=1','popup');}
function hamburgwebcam(){p(base+'webcams/index.php?cam=2','popup');}
function hamburg2webcam(){p(base+'webcams/index.php?cam=3','popup');}
function muenchenwebcam(){p(base+'webcams/index.php?cam=4','popup');}
function nuernbergwebcam(){p(base+'webcams/index.php?cam=5','popup');}

function openStream(){webradio();}
function openKtoene(){p("http://energy.dein-klingelton.de","ENERGY_Klingeltoene","toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=800,height=600");}
function wiesnklingelton(){p("http://energy.mein-klingelton.de/oktoberfest.php","ENERGY_Klingeltoene","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=800,height=600");}
function openWinnerAwards(){specialsgallery('0007')}
function openTravel(){p("http://www.radio.de/energy","Travel","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbar=0,resizable=0,width=755,height=720");}
function survivalguide(){p("http://www.energy.de/static/servicegallery/openwater/index.php","ENERGY");}
function rechtschreibung(){p("http://www.energy.de/static/servicegallery/rechtschreibung/index.php","ENERGY");}
function libri(){var url = libri.arguments.length>0 ? "/productDetails?id="+libri.arguments[0]+"&adCode=332Q20I20F11P" : "/?adCode=332Q20I20F11P";p("http://energy.libri.de/shop/action"+url,"LIBRI","toolbar=1,location=1,directories=1,status=1,menubar=1,scrollbars=1,resizable=1,width=800,height=600");}
function chat(){p("http://energy.spinchat.de","LIBRI","toolbar=1,location=1,directories=1,status=1,menubar=1,scrollbars=1,resizable=1,width=800,height=600");}
function nbgpartymap(){p("http://www.energy.de/static/nuernberg/partymap/index.html","ENERGY","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbar=0,resizable=0,width=700,height=500");}
function openWin(){p("http://www.energy.de/static/nuernberg/nightgroove_plan.html","Nightgroove","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbar=0,resizable=0,width=620,height=560");}
function openAxamer(){p("http://www.energy.de/static/nuernberg/axamerlizum.html","Axamer","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbar=0,resizable=0,width=810,height=450");}
function openSingleGallery(){p("http://www.energy.de/static/berlin/gallery_singlespot/index.html","ENERGY_Singlespot","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbar=0,resizable=0,width=620,height=715");}
function openSticker(bild){p(bild,"Sticker","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbar=0,resizable=0,width=375,height=495");}
function singlegallery(){p("http://www.energy.de/static/singlegallery/index.php","Gal","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbar=0,resizable=0,width=500,height=600");}
function kalender(){p("http://www.energy.de/static/xmas/index.php?cal=yes","Gal","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbar=0,resizable=0,width=800,height=600");}
function morninglive(pic){p("http://www.energy.de/static/morning/index.php?pic="+pic,"Gal","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbar=0,resizable=0,width=600,height=440");}
function klingelton(type,expression){ var expression = expression.replace(/ /,"+");var tonetype="rt";if (type=="poly"){tonetype="pf";} if (type=="premium"){tonetype="pfp";}var query = tonetype+"-searchresults.php?query="+expression;var url = "http://www.energy.dein-klingelton.de/"+query;p(url,"Klingelton","toolbar=1,location=1,directories=1,status=1,menubar=1,scrollbars=1,resizable=1,width=800,height=600");}
function servicegallery(directory){ p("http://www.energy.de/static/servicegallery/"+directory+"/index.php","ENERGY");}
function webradio(){p("http://lsd.newmedia.tiscali-business.com/bb/redirect.lsc?content=download&media=http&stream=freestream/energy/frameset.html","TISCALI","width=696,height=568,status=no,locationbar=no,menubar=no,resizable=no")}
function amazon(){p("http://www.amazon.de/exec/obidos/ASIN/"+amazon.arguments[0]+"/radioenergyonlin/","amazon","toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=800,height=600");}
function hitmusictest(){p("http://www.energy.de/hooks/Login.jsp","hit","toolbar=yes,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=900,height=600");}
function clicker(c){p('http://www.energy.de/static/clicker/' + c + '.php','clicker',w(640,380))}
function blog(){p("http://blog.energy.de","blog",baseWin);}
function muenchenblog(){p("http://blog.energy.de/sender/energy-munchen","blog",baseWin);}
function hamburgblog(){p("http://blog.energy.de/sender/energy-hamburg","blog",baseWin);}
function nuernbergblog(){p("http://blog.energy.de/sender/energy-nurnberg","blog",baseWin);}
function stuttgartblog(){p("http://blog.energy.de/sender/energy-stuttgart","blog",baseWin);}
function berlinblog(){p("http://blog.energy.de/sender/energy-berlin","blog",baseWin);}
function bremenblog(){p("http://blog.energy.de/sender/energy-bremen","blog",baseWin);}
function silvester_nue05(){var win = w(600,400); p(base + "nuernberg/silvester_nue05/silvester_guide.html",'silvester',win);}
// Temp;
function nrj_ad(){p("http://adserver.nrj.de/adclick.php?bannerid=71&zoneid=0&source=&dest=http%3A%2F%2Fwww.energy.de%2Fsachsen%2Fnewsfeatures%2Faction%2F2005-01%2F5jahrepayback%2Findex.html","forum","toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=800,height=600")}
function nip05(){p(base+"nip05/index.html",'nip','toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbar=0,resizable=0,width=600,height=400');}
function grillguide(){p(base+"dev0/grillguide/index.php","ENERGY","toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbar=0,resizable=0,width=605,height=440");}
function sexknigge(){p(base+'guide/sexknigge.php',"guide","toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=no,width=750,height=400");}
function xmas05(){p("http://www.energy.de/static/dev0/xmas05/index.php?cal=yes","Gal",w(800,600));}
function nma06(){p("http://www.energy.de/static/dev0/nma/vote.html","nma", w(800,500));}
var weblinks     = new Object();
weblinks.otto_de = "http://www.otto.de/pool";
function weblink(u){p(weblinks[u],"EXT","");}


function sound(file,repeat){
	document.write('<div id="sound"></div>');
   var so = new SWFObject('http://www.energy.de/static/sounds/sound.swf?f='+file+' &amp;r=' + repeat,'sound','1','1','8','#ffffff'); 
   so.write('sound');
}
