//Popup Webbrowser
function popup(URL) {
w = window.open(URL, "", "toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=700,height=450");
}
//Popup Webbrowser Ende

//Popup Chat
function popup_chat(URL) {
w = window.open(URL, "", "toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=700,height=600");
}
//Popup Chat


function increase(img) { 
    theobject = img; 
    highlighting = setInterval("highlight(theobject)",50); 
} 
function decrease(img) { 
    clearInterval(highlighting) 
    if (img.style.MozOpacity) 
        img.style.MozOpacity = 0.5; 
    else if (img.filters) 
        img.filters.alpha.opacity = 50; 
} 
 
function highlight(img) { 
    if (img.style.MozOpacity < 1) 
        img.style.MozOpacity = parseFloat(img.style.MozOpacity) + 0.1; 
    else if (img.filters && img.filters.alpha.opacity < 100) 
        img.filters.alpha.opacity += 10; 
    else if (window.highlighting) 
        clearInterval(highlighting); 
} 

// Sendeplan
function LoadSendeplan(image, UrlFrom){
if(typeof UrlFrom == "object" || UrlFrom == "[object]"){
document.getElementById(image).src = UrlFrom.src; 
}else{
document.getElementById(image).src = UrlFrom;
};
};

function ShowLink(id){
  document.getElementById("showlink").href = "index.php?site=sendeplan&details="+id+"";
  // document.getElementById("showdeejay").firstChild.nodeValue = deejay;
}
//Sendeplan Ende

//Page laden
fetch('deejay.php?dj=aktuelleshow', 'aktueller_dj', 'replace', 'event', 20000);
fetch('deejay.php?dj=naechsteshow', 'naechster_dj', 'replace', 'event', 50000);
fetch('deejay.php?dj=aktuellezeit', 'aktuelle_zeit', 'replace', 'event', 40000);
fetch('deejay.php?dj=naechstezeit', 'naechste_zeit', 'replace', 'event', 50000);
fetch('deejay.php?dj=bild', 'aktuelles_deejaybild', 'replace', 'event', 52000);
fetch('show.php', 'show', 'replace', 'event', 49000);
fetch('sc_useronline.php', 'user_online', 'replace', 'event', 30000);
fetch('listener.php?listener=all', 'listener_main', 'replace', 'event', 54000);
fetch('gruesse.php?gruesse=all', 'gruesse_wuensche', 'replace', 'event', 110000);
fetch('tracklist.php', 'aktuelle_tracks', 'replace', 'event', 100000);

fetch('deejay.php?dj=aktuelleshow', 'aktueller_dj', 'replace', 'time', 20000);
fetch('deejay.php?dj=naechsteshow', 'naechster_dj', 'replace', 'time', 50000);
fetch('deejay.php?dj=aktuellezeit', 'aktuelle_zeit', 'replace', 'time', 40000);
fetch('deejay.php?dj=naechstezeit', 'naechste_zeit', 'replace', 'time', 50000);
fetch('deejay.php?dj=bild', 'aktuelles_deejaybild', 'replace', 'time', 52000);
fetch('show.php', 'show', 'replace', 'time', 49000);
//fetch('sc_useronline.php', 'user_online', 'replace', 'time', 30000);
fetch('listener.php?listener=all', 'listener_main', 'replace', 'time', 54000);
fetch('gruesse.php?gruesse=all', 'gruesse_wuensche', 'replace', 'time', 110000);
fetch('tracklist.php', 'aktuelle_tracks', 'replace', 'time', 100000);
//Page laden Ende

