// audio links 
function audio(album_nr,track_nr,set_nr){
var audiolink = "http://www.emiclassics.de/cgi-bin/audio/audio_partner.cgi?PMF_ICPN=" + album_nr + "&trackno=" + track_nr +"&setno=" + set_nr ; ;
this.document.location.href = audiolink;
}

//PopUp Fenster 
function popup(datei, name, breit, hoch, scroll)
 {
 var winbreite = (screen.width - breit) / 2 ;
 var winhoehe = (screen.height - hoch) / 2;
 parameter = 'height='+hoch+',width='+breit+',top='+winhoehe+',left='+winbreite+',scrollbars='+scroll;
 pop = window.open(datei, name, parameter);

 pop = window.open (datei, name, parameter);
  if (parseInt(navigator.appVersion) >= 4) {
 pop.window.focus(); }
 }
 
// i = image URL
// t = image title 
function centerPopup(win, img){
var iw=img.width+12;
var ih=img.height+46;
var sh = screen.height; // get users screen height 
var sw = screen.width; // get users screen width 

var x=(sw-iw)/2;
var y=(sh-ih)/2;

win.moveTo(x,y);
win.resizeTo(iw, ih);
win.focus();
}

function showalbum(){
alert('hkrehglksjdf');
}

// Austauschen mehrerer Bilder
function chg_navi(wert){
parent.document.navi01.src='img/navi_news0.gif';
parent.document.navi02.src='img/navi_bio0.gif';
parent.document.navi03.src='img/navi_music0.gif';
parent.document.navi04.src='img/navi_media0.gif';
if (wert==1){
parent.document.navi01.src='img/navi_news1.gif';
} else if (wert==2){
parent.document.navi02.src='img/navi_bio1.gif';
} else if (wert==3){
parent.document.navi03.src='img/navi_music1.gif';
} else if (wert==4){
parent.document.navi04.src='img/navi_media1.gif';
}
parent.document.stat=wert;
//alert(stat);
}

// Austauschen mehrerer Bilder
function chg_htmlnavi(wert){
document.navi01.src='img/navi_news0.gif';
document.navi02.src='img/navi_bio0.gif';
document.navi03.src='img/navi_music0.gif';
document.navi04.src='img/navi_media0.gif';
if (wert==1){
document.navi01.src='img/navi_news1.gif';
} else if (wert==2){
document.navi02.src='img/navi_bio1.gif';
} else if (wert==3){
document.navi03.src='img/navi_music1.gif';
} else if (wert==4){
document.navi04.src='img/navi_media1.gif';
}
stat=wert;
//alert(stat);
}

//Forum
function forum(){
popup('http://www.edel.antsoft.de/forums/tonibraxton','Forum',700,530,1);
}

// Flash Steuerung 1 
var MSIE= "Microsoft Internet Explorer";
var NETSC= "Netscape";

var bName = navigator.appName;
var bVers = navigator.appVersion;
var bVers = bVers.substring(0,3);
var bVers = Number(bVers);

function flashplay(wert) {
    if(bName==MSIE && bVers>=4.0) {
     parent.document['flash'].TGotoFrame("_flash0",wert);
    } else {
        if(bName==NETSC && bVers>=6.0){
          parent.document.embeds['flash'].TGotoFrame("_flash0",wert);
         } else {
          parent.document['flash'].TGotoFrame("_flash0",wert);
        }
    }
}

// Flash Steuerung 2 
var MSIE= "Microsoft Internet Explorer";
var NETSC= "Netscape";

var bName = navigator.appName;
var bVers = navigator.appVersion;
var bVers = bVers.substring(0,3);
var bVers = Number(bVers);

function chg_flashnavi(wert) {
    if(bName==MSIE && bVers>=4.0) {
     document['flash'].TGotoFrame("_flash0",wert);
    } else {
        if(bName==NETSC && bVers>=6.0){
          document.embeds['flash'].TGotoFrame("_flash0",wert);
         } else {
         document['flash'].TGotoFrame("_flash0",wert);
        }
    }
}

//PopUp Fenster 
function winOpen(url, breite, hoehe,sbar) {
links = (screen.width/2)-(breite/2);
oben = (screen.height/2)-(hoehe/2);
window.open(url,"window"+breite,"height="+hoehe+",width="+breite+",status = no,toolbar = no,menubar = no,location = no,resizable = no,titlebar = no,scrollbars="+sbar+" ,fullscreen = no,target='_blank',top ="+oben+",left ="+links);
}

/*Formularcheck*/
function validate() {
if(window.document.nl.c_prename.value=="") {
		alert("Bitte alle Felder ausfüllen!");
		return false;
	}
else if(window.document.nl.c_name.value=="") {
		alert("Bitte alle Felder ausfüllen!");
		return false;
	}
else if(window.document.nl.c_email.value=="") {
		alert("Bitte alle Felder ausfüllen!");
		return false;
} else {
window.document.nl.submit();
MM_changeProp('nl_form','','style.display','none','DIV');
MM_changeProp('nl_confirm','','style.display','block','DIV');
return true;
	}
}

function showform(){
MM_changeProp('nl_confirm','','style.display','none','DIV');
MM_changeProp('nl_form','','style.display','block','DIV');
}

// Ein-und Ausblenden von div Elementen
function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_changeProp(objName,x,theProp,theValue) { //v6.0
  var obj = MM_findObj(objName);
  if (obj && (theProp.indexOf("style.")==-1 || obj.style)){
    if (theValue == true || theValue == false)
      eval("obj."+theProp+"="+theValue);
    else eval("obj."+theProp+"='"+theValue+"'");
  }
}

