var state = 'none'; 
function showhide(layer_ref) { 
	if (state == 'block') { 
		state = 'none'; 
	} else { 
		state = 'block'; 
	} 
	if (document.all) { //IS IE 4 or 5 (or 6 beta) 
		eval( "document.all." + layer_ref + ".style.display = state"); 
	} 
	if (document.layers) { //IS NETSCAPE 4 or below 
		document.layers[layer_ref].display = state; 
	} 
	if (document.getElementById &&!document.all) { 
		hza = document.getElementById(layer_ref); 
		hza.style.display = state; 
	} 
} 

function listimages() {
	var imagelist= "IMAGES:\n";
	for(i=0;i<document.images.length;i++) {
		imagelist += document.images[i].src + "\n";	
	}
	alert(imagelist);
}

function playerpopup(url,nme,wgt, hgt)
		{
		var params='toolbar=no,height='+hgt+',width='+wgt+',location=no,scrollbars=no,status=no,menubar=no,resizable=no';
		if(self && self.screen && self.screen.width)
			{
			params+=",left="+((self.screen.width-wgt)/2);
			params+=",top="+((self.screen.height-hgt)/2);
			}
		window.open(url,nme,params);

}


function myormr(iorg, title, key, edictl){
            var w = 760;
            var h = 510;
            var ww = Math.floor((screen.width-w)/2);
            var hh = Math.floor((screen.height-h)/2);
            var adr = "http://flash.myormr.com/index.php?iorg=" + iorg + "&title=" + escape(title) + "&key=" + escape(key);
            if(edictl){ adr += "&edictl=" + escape(edictl); }
            window.open(adr, 'myormr', 'status=yes,resizable=yes,width='+w+',height='+h+',top='+hh+',left='+ww);
}

