// Disable Right-Click

//if (window != top) top.location.href = location.href;

var message="This function is disabled.";

function clickIE4(){
if (event.button==2){
alert(message);
return false;
}
}

function clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){
alert(message);
return false;
}
}
}

if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
document.onmousedown=clickIE4;
}

//document.oncontextmenu=new Function("alert(message);return false")

function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function changeImages() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}

var preloadFlag = false;
function preloadImages() {
	if (!document.level) document.level="";
	if (document.images) {
		_1703_o = newImage(document.level+"images/_1703_o.jpg");
		_1804_o = newImage(document.level+"images/_1804_o.jpg");
		_1905_o = newImage(document.level+"images/_1905_o.jpg");
		_2006_o = newImage(document.level+"images/_2006_o.jpg");
		_2115_o = newImage(document.level+"images/_2115_o.jpg");
		preloadFlag = true;
	}
}


function DD_help(tag,cdir)
{
	//w=window.dd_help_win.width;
	//h=window.dd_help_win.height;
	//var rs=document.DD_resized;
	//window.name="cpanel";
	var width="300", height=screen.height-150;
	var left = screen.width - width-15;
	var top = screen.height - height-100;
	dd_help_win=window.open(cdir+'help.php'+tag,'dd_help_win','scrollbars=yes,resizable=yes,width='+width+',height='+height+',left='+left+',top='+top);
	window.moveTo(0,0);
	window.resizeTo(screen.width-width-10,screen.height-60);
	dd_help_win.focus();
}
