
function PlayClipNew(nr)

{
        if (!document.layers) parent.frames["video"].document.location.href ="video_arch.html?nr="+"\""+nr+"\"";
        else {
                document.video.SetSource('rtsp://real.atvn.pl/'+nr+'.rm');
                document.video.DoPlay();
        }
	
//	parent.frames["video"].document.video.DoStop()
/*	if (pluginlist.indexOf("RealPlayer")==-1) {		
		mg_win=window.open("plugin_en.html",1,"width=300,height=200,scrollbars=auto,resizable=yes,toolbar=no,menubar=no,top=10");
	} else {
		if (navigator.appName == "Netscape") {
			document.video.DoStop();
			document.video.SetSource(clipname);
			document.video.DoPlay();
		} else {
			video.DoStop();
			video.source=clipname;
			video.DoPlay();
		}
	}
*/
}


//-----------------------------


function PlayClip() 


{
	if (navigator.appName == "Netscape") document.video.DoPlay(); 
	else  video.DoPlay();
}


//------------------------------


function StopClip() 


{
	if (navigator.appName == "Netscape") 
	{
		document.video.DoStop(); 
		document.video.SetSource('http://www.atvn.pl/eng-images/TELEWIZJA.jpg');
	}
	else 
	{
		video.DoStop();
		video.source="http://www.atvn.pl/eng-images/TELEWIZJA.jpg";
	}
}
 
//------------------------------


function PauseClip() 


{
	if (navigator.appName == "Netscape") document.video.DoPlayPause(); 
	else  video.DoPlayPause();
}

//------------------------------

function PlayFullScreen()

{

//	if (navigator.appName == "Netscape") document.video.SetFullScreen(); 
//	else 
//		if (document.getElementById) parent.frames["video"].document.video.SetFullScreen();
//		else  video.SetFullScreen();
	parent.frames["video"].document.video.SetFullScreen();
//	video.SetFullScreen();
		

}

function glosniej() {
	
	if (navigator.appName == "Netscape") 

	{
		i=document.video.GetVolume(); 
		if (i<95) { i=i+5; document.video.SetVolume(i); }
	}
	else 
	{
		i=video.GetVolume();
		if (i<95) { i=i+5; video.SetVolume(i); }
		
	}


}


function ciszej() {

	if (navigator.appName == "Netscape") 

	{
		i=document.video.GetVolume(); 
		if (i>5) { i=i-5; document.video.SetVolume(i); }
	}
	else 
	{
		i=video.GetVolume();
		if (i>5) { i=i-5; video.SetVolume(i); }
		
	}



}
