<!--



function MM_swapImgRestore() { //v3.0

  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;

}



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_swapImage() { //v3.0

  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)

   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}

}



function nav() {

	if (document.navigation.artistnav.options[document.navigation.artistnav.selectedIndex].value != "0") {	  		

		location.href = document.navigation.artistnav.options[document.navigation.artistnav.selectedIndex].value;

	}

}


/*
function framecheck() {

	if (parent.player) { 

		if (parent.player.location.href.indexOf("song_") > 0) {

			MM_swapImage('play','','img/frame/player_play_mo.gif',1);

			varplay = 1;	

		} else {

			MM_swapImage('stop','','img/frame/player_stop_mo.gif',1);

			varplay = 0;

		}

	} else { 

		parent.document.location.href = "../index.htm";

	}

}
*/


function playforward() {

	if (parent.player.location.href.indexOf("stop.htm") < 1) {

		if (parent.player.location.href.indexOf("song_1.htm") > 0) {

			parent.player.location.href = "../_music/song_2.htm";

		} else if (parent.player.location.href.indexOf("song_2.htm") > 0) {

			parent.player.location.href = "../_music/song_3.htm";

		} else if (parent.player.location.href.indexOf("song_3.htm") > 0) {

			parent.player.location.href = "../_music/song_4.htm";

		} else if (parent.player.location.href.indexOf("song_4.htm") > 0) {

			parent.player.location.href = "../_music/song_5.htm";

		} else if (parent.player.location.href.indexOf("song_5.htm") > 0) {

			parent.player.location.href = "../_music/song_1.htm";

		}

	}

}



function playrewind() {

	if (parent.player.location.href.indexOf("stop.htm") < 1) {

		if (parent.player.location.href.indexOf("song_1.htm") > 0) {

			parent.player.location.href = "../_music/song_4.htm";

		} else if (parent.player.location.href.indexOf("song_2.htm") > 0) {

			parent.player.location.href = "../_music/song_1.htm";

		} else if (parent.player.location.href.indexOf("song_3.htm") > 0) {

			parent.player.location.href = "../_music/song_2.htm";

		} else if (parent.player.location.href.indexOf("song_4.htm") > 0) {

			parent.player.location.href = "../_music/song_3.htm";

		} else if (parent.player.location.href.indexOf("song_5.htm") > 0) {

			parent.player.location.href = "../_music/song_4.htm";

		}
	}

}



function playout() {

	if (varplay != 1) {

		MM_swapImgRestore();

	}

}



function stopout() {

	if (varplay != 0) {

		MM_swapImgRestore();

	}

}


rec1 = "popup_record_01.htm";
rec2 = "popup_record_02.htm";
rec3 = "popup_record_03.htm";
rec4 = "popup_record_04.htm";
rec5 = "popup_record_05.htm";
rec6 = "popup_record_06.htm";
rec7 = "popup_record_07.htm";
rec8 = "popup_record_08.htm";
rec9 = "popup_record_09.htm";
rec10 = "popup_record_10.htm";
rec11 = "popup_record_11.htm";
rec12 = "popup_record_12.htm";
rec13 = "popup_record_13.htm";
rec14 = "popup_record_14.htm";
rec15 = "popup_record_15.htm";
video1 = "popup_video_01.htm";
video2 = "popup_video_02.htm";
video3 = "popup_video_03.htm";
video4 = "popup_video_04.htm";
pos1 = "popup_poster_01.htm";
high = screen.height;
wide = screen.width;

function PopupFenster(name) 
{
 
  F = window.open(name,"PopupRecords","width=409,height=450");
 F.moveTo (wide/2-200,high/2-200);
}

function PopupFensterPoster(name) 
{
 
  F = window.open(name,"PopupPoster","width=530,height=750");
 F.moveTo (wide/2-200,high/2-200);
}

function PopupFensterVideo(name) 
{
 
  F = window.open(name,"PopupVideo","width=410,height=340");
 F.moveTo (wide/2-200,high/2-200);
}

function PopupImprint() 
{
 
  F = window.open("../sounds_of_subterrania/imprint01.php","PopupImprint","width=410,height=500");
 F.moveTo (wide/2-200,high/2-200);
}

function PopupUnderConstruction() 
{
 
  F = window.open("../sounds_of_subterrania/mailorder.php","PopupUnderConstruction","width=310,height=180");
 F.moveTo (wide/2-200,high/2-200);
}
function PopupUnderConstruction1() 
{
 
  F = window.open("../sounds_of_subterrania/underconstruction.php","PopupUnderConstruction","width=310,height=180");
 F.moveTo (wide/2-200,high/2-200);
}

function contact() {
	if(document.contact.email.value.indexOf('@')==-1 ||document.contact.email.value.indexOf('.')==-1)
	{
		alert ("Please insert a valid Email Address.");
		document.contact.email.focus();
	} else {
		window.open('exe_contact.php','contact','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=198,height=230');
		document.contact.submit();
	}
}
function contact_newsletter() {
	if(document.newsletter.email_newsletter.value.indexOf('@')==-1 ||document.newsletter.email_newsletter.value.indexOf('.')==-1)
	{
		alert ("Please insert a valid Email Address.");
		//document.newsletter.email_newsletter.focus();
	} else {
		window.open('exe_newsletter.php','newsletter','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=198,height=230');
		document.newsletter.submit();
	}
}




















var PlayerWin;
var PlayList='';

function sosPlayerPlaySong(sid) {
	var url='/player/sosplayer.php?song='+sid;
	PlayerWin=sosPlayerOpenPlayer(url);
	PlayerWin.focus();
}

function sosPlayerPlayShuffle() {
	var url='/player/sosplayer.php?shuffle=true';
	PlayerWin=sosPlayerOpenPlayer(url);
	PlayerWin.focus();
}

function sosPlayerPlayList() {
	var url='/player/sosplayer.php?playlist='+PlayList;
	PlayerWin=sosPlayerOpenPlayer(url);
	PlayerWin.focus();
}

function sosPlayerRewriteList() {

	PlayList='';
	var obj=getObject('playlist');
	var opt=obj.options;
	for (i=0;i<opt.length;i++) {
		if (opt[i].selected) {
			PlayList+=opt[i].value+',';
		}
	}


}


function getObject(objName) {

	if (document.all) {
		currObject=eval('document.all[\''+objName+'\']');

	}
	else if (document.layers) {
		currObject=eval('document.layers[\''+objName+'\']');
	}
	else {
		currObject=eval('document.getElementById("'+objName+'")');

	}
	return currObject;

}

function sosPlayerOpenPlayer(theURL, Name, popW, popH, scroll) {
	var name='sosplayer';
	var popW=400;
	var popH=450;
	var Name='SoSRadio';
	var scroll='no';
	var winleft = (screen.width - popW) / 2;
	var winUp = (screen.height - popH) / 2;
	winProp = 'width='+popW+',height='+popH+',left='+winleft+',top='+winUp+',scrollbars='+scroll+',resizable=0';
	PlayerWin = window.open(theURL, Name, winProp);
	PlayerWin.moveTo(winleft,winUp);
	if (parseInt(navigator.appVersion) >= 4) { PlayerWin.focus(); }
	return PlayerWin;

}







//-->