function chgLinkClass(obj, mStatus) {
	if (mStatus == 'OVER') obj.className +=  'r';
	else {
		var sClass = obj.className;
		obj.className = sClass.substr(0, sClass.length-1);
	}
}

var rightClickMsg = "Right click is disabled for the protection of all materials on this website."; 
function rtclickcheck(keyp) {
	if (navigator.appName == "Netscape" && keyp.which == 3) {
		alert(rightClickMsg); return false;
	} 
	if (navigator.appVersion.indexOf("MSIE") != -1 && event.button == 2) {
		alert(rightClickMsg); 	return false;
	}
} 

function banPress(sBanner) {
	if (sBanner == 'T')
		window.location = "news.html";
	if (sBanner == 'BL')
		window.location = "pd_ecv05.html";
	if (sBanner == 'BR')
		window.location = "pd_euv01.html";
	if (sBanner == 'LL')
		window.location = "http://www.e-taste.biz";
	if (sBanner == 'LR')
		window.location = "./e-toys/index.html";
}


var dw = 700;
var dh = 500;
var sw = 0
var sh = 0
if (document.all) {
	sw = screen.availWidth-10;
	sh = screen.availHeight;
}
else {
	sw = window.screen.width-10;
	sh = window.screen.height;	
}

function resizeCover() {
	if (document.all) {
		window.resizeTo(dw, dh);
		window.moveTo(sw/2 - dw/2,sh/2 - dh/2);
	}
	else {
		 resizeTo(dw,dh);
		window.screenX = sw/2 - dw/2;
		window.screenY = sh/2 - dh/2;
	}
}

function openFullScreen(strURL) {
	if (document.all) {
		MM_openBrWindow('index.html','','toolbar=no,status=no,menubar=no,scrollbars=yes,resizable=no, left=0,top=0,width='+sw + ',height=' + sh);
	}
	else {
		alert("Your browser doesn't support for play our CD-Catalog.\nPlease using MS-Internet Explorer to browser it.");
		//MM_openBrWindow('http://www.e-trendbiz.com','','toolbar=no,status=no,menubar=no,scrollbars=no,resizable=no,screenX=0, screenY=0, width='+sw + ',height=' + sh);
		//window.screenX = sw/2 - dw/2;
		//window.screenY = sh/2 - dh/2;
	}
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
//document.onmousedown = rtclickcheck;

//Use window.innerWidth to find the window's width (in pixels) 
//Use window.innerHeight to find the window's height (in pixels) 
//Use window.pageXOffset to find the horizontal scrolled distance (in pixels) 
//Use window.pageYOffset to find the vertical scrolled distance (in pixels)