	function showRegion(regionName) {
	
		if (parseInt(navigator.appVersion)>3) {
		 if (navigator.appName=="Netscape") {
		  winW = window.innerWidth;
		  winH = window.innerHeight;
		 }
		 if (navigator.appName.indexOf("Microsoft")!=-1) {
		  winW = document.body.offsetWidth;
		  winH = document.body.offsetHeight;
		 }
		}
		nameLength = regionName.length;
		document.write ('<div id="divRegionBg" name="divRegionBg" class="regionBg" style="position:absolute;left:' + (15+(winW / 2) - ((nameLength*10)/1.5)) + 'px;top:-5px;z-index:-999;">' + regionName + '</div>');
	}


	function linkFX(link, status) {
		var imgsrc;
	
		if (status == 1) imgsrc = 'graphics/sidelink_on.gif';
		if (status == 0) imgsrc = 'graphics/sidelink_off.gif';		
		
		document.getElementById('linkimg' + link).src = imgsrc;
		
	}

	function imgFX(obj, status) {
	
		var imgNo;
		if (status == 0)  imgNo = '2';  else  imgNo = '';
		obj.src = 'graphics/' + obj.id + imgNo + '.jpg';
	
	}
	
	function imgLink(number) {
		obj = top.header.document.getElementById('top' + number);
		top.header.menuOver(obj);
		top.header.menuClick(obj);	
	}
	
	function mapFX(number, status) {
		if (status == 0) {
			document.getElementById("regionmap").src = 'graphics/regionmap_0.jpg';
			linkFX(number, status);
		} else {
			document.getElementById("regionmap").src = 'graphics/regionmap_' + number + '.jpg';
			linkFX(number,status);
		}
	
	}

	 function getY( oElement )	{
		var iReturnValue = 0;
		while( oElement != null ) {
			iReturnValue += oElement.offsetTop;
			oElement = oElement.offsetParent;
		}
		return iReturnValue;
	}
	
	 function getX( oElement )	{
		var iReturnValue = 0;
		while( oElement != null ) {
			iReturnValue += oElement.offsetLeft;
			oElement = oElement.offsetParent;
		}
		return iReturnValue;
	}

	 function showMag(srcimg) {
		var magArea;
		document.getElementById('magimg').src= srcimg.src;
	 	magArea = document.getElementById('mag');

		magArea.style.display = '';	 
	 		
		magArea.height = document.getElementById('magimg').height; 
	    magArea.width = document.getElementById('magimg').width; 

		magArea.style.top = getY(srcimg) - ((magArea.height - srcimg.height)/2);
		magArea.style.left = getX(srcimg) - 20; // - ((magArea.width - srcimg.width)/2);
 	
	 }
	 
	 function hideMag() {
			
	 	document.getElementById('mag').style.display = 'none';	

	 }

	function mapMag(srcimg) {
	
		var magArea;
		document.getElementById('magimg').src= srcimg.src;
	 	magArea = document.getElementById('mag');

		magArea.style.display = '';	 
	 		
		magArea.height = document.getElementById('magimg').height; 
	    magArea.width = document.getElementById('magimg').width; 

		magArea.style.top = 25;
		magArea.style.left = (getX(srcimg) + srcimg.width) - magArea.width + 80;
	
	}
	
	function showFilm(streamingFilmID) {
	
	   var win = null;
	   win = eval("page = window.open('streamer.php?id=" + streamingFilmID + "', 'iFilmStream', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=1,width=640,height=400,left=0,top=0');");
	
	}
