// JavaScript Document


function VolUp() {
	//alert('Up' + document.MediaPlayer.volume);
	if (document.MediaPlayer.Volume <= -1000) {
    document.MediaPlayer.Volume = MediaPlayer.Volume + 200;
    }
}

function VolDown() {
	//alert('Down' + document.MediaPlayer.volume);
	if (MediaPlayer.Volume >= -9000) {
		 document.MediaPlayer.Volume = MediaPlayer.Volume - 200;
  	}
}

function PlayVideo(TrackName){
	//alert(TrackName);
	
	 if ( TrackName=='1' ) {
	    document.MediaPlayer.FileName = "http://www.Frame-Spotting.de/Sinn/asxFiles/Sinn_Video1.asx";
	    document.MediaPlayer.Play();
	} else if ( TrackName=='2' ) {
		document.MediaPlayer.FileName = "http://www.Frame-Spotting.de/Sinn/asxFiles/Sinn_Video2.asx";
		document.MediaPlayer.Play();
	}  else if ( TrackName=='3' ) {
		document.MediaPlayer.FileName = "http://www.Frame-Spotting.de/Sinn/asxFiles/Sinn_Video3.asx";
		document.MediaPlayer.Play();
	} else if ( TrackName=='4' ) {
		document.MediaPlayer.FileName = "http://www.Frame-Spotting.de/Sinn/asxFiles/Sinn_Video1.asx";
		document.MediaPlayer.Play();
	} else if ( TrackName=='5' ) {
		document.MediaPlayer.FileName = "http://www.Frame-Spotting.de/Sinn/asxFiles/Sinn_Video1.asx";
		document.MediaPlayer.Play();
	} else { 
	}
/*	*/
}

function LoadGallery(Gallery)
{
var Local = 'http://localhost:1396/Sinn/Galleries';
var Remote = 'http://www.Frame-Spotting.de/Sinn/Galleries/';
var LocalOn = false;
 
        if ( LocalOn )
        { 
		PagePath = Local;
		 } else 
        { PagePath = Remote; }

        //alert(Local);
        //alert(Remote);
        //alert(PagePath);
            
        //alert(Gallery);
        //  *********** Galleries
		
       if ( Gallery == '1' ) {                
        window.open(PagePath + 'Helmut Sinn - 90.Geburtstag/index.htm','','toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no,resizable=yes,width=690,height=640,left=300,top=200'); 
        } else if ( Gallery == '2' ){
        window.open(PagePath + 'Helmut Sinn - Uhren/index.htm','','toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no,resizable=yes,width=690,height=640,left=200,top=200');
        } else if ( Gallery == '3' ){
        window.open(PagePath + 'Sinn - Die Zeitmaschine/index.htm','','toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,width=690,height=640,left=200,top=200'); 
        } else if ( Gallery == '4' ){
        window.open(PagePath + 'Sinn - Geschichte/index.htm','','toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no,resizable=yes,width=720,height=640,left=200,top=200');  
        } else {
        //alert(Gallery);
        //window.open("http://NineEther.Net/","_blank","top=400,left=400,width=400,height=200");
       }
/*	   */
}