// JavaScript Document

function popup(url){
	var win_w, win_h;
	win_w = screen.availWidth; 
	win_h = screen.availHeight; 
	myWindow = window.open(url, "", "top=1, left=1, width=" + win_w + ", height=" + win_h + ", toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes");
	if (!myWindow.opener) myWindow.opener = self;

	
	//window.close();
	
}


function popupold(Ie,other){
	//Copyright © 1999 m.milicevic machakjoe@netscape.net jjooee@tip.nl
	x=screen.availWidth;
	y=screen.availHeight;
	target = parseFloat(navigator.appVersion.substring(navigator.appVersion.indexOf('.')-1,navigator.appVersion.length));
	// if((navigator.appVersion.indexOf("Mac")!=-1) &&(navigator.userAgent.indexOf("MSIE")!=-1) &&(parseInt(navigator.appVersion)==4))
	// window.open(other,"sub",'scrollbars=no');
	if (target >= 4){
		if (navigator.appName=="Netscape"){
		var MachakFull=window.open(other,"MachakFull",'scrollbars=no','width='+x+',height='+y+',top=0,left=0');
		MachakFull.moveTo(0,0);
		MachakFull.resizeTo(x,y);}
	if (navigator.appName=="Microsoft Internet Explorer")
		window.open(Ie,"MachakFull","fullscreen=yes,scrollbars=no");
		}
		else window.open(other,"sub",'scrollbars=no');
}

function setSize(){
		var win_w;
		var win_h;
		var browser = navigator.appName;
		if (browser == "Microsoft Internet Explorer"){ //IE and Opera
			win_w = document.body.offsetWidth;
			win_h = document.body.offsetHeight;
			if (win_w > 900){
				window.document.getElementById("fmovie").width = "100%";
			} else {
				window.document.getElementById("fmovie").width = "900";
			}
			
			if (win_h > 680){
				window.document.getElementById("fmovie").height = "100%";
			} else {
				window.document.getElementById("fmovie").height = "680";
			}
		} else {  //Netscape and Mozilla
			win_w = window.innerWidth;
			win_h = window.innerHeight;
			if (win_w > 900){
				 window.document.fmovie.width = "100%";
			} else {
				window.document.fmovie.width = "900";
			}
			
			if (win_h > 680){
				 window.document.fmovie.height = "100%";
			} else {
				window.document.fmovie.height = "680";
			}
		}
	}