// JScript source code
var m='%3Cscript%20language%3DJavaScript%3E%3C%21--%0D%0A%0D%0Avar%20message%3D%22Function%20Disabled%21%22%3B%0D%0A%0D%0Afunction%20clickIE%28%29%20%20%7Bif%20%28document.all%29%20%7Balert%28message%29%3Breturn%20false%3B%7D%7D%0D%0Afunction%20clickNS%28e%29%20%7Bif%20%0D%0A%28document.layers%7C%7C%28document.getElementById%26%26%21document.all%29%29%20%7B%0D%0Aif%20%28e.which%3D%3D2%7C%7Ce.which%3D%3D3%29%20%7Balert%28message%29%3Breturn%20false%3B%7D%7D%7D%0D%0Aif%20%28document.layers%29%20%0D%0A%7Bdocument.captureEvents%28Event.MOUSEDOWN%29%3Bdocument.onmousedown%3DclickNS%3B%7D%0D%0Aelse%7Bdocument.onmouseup%3DclickNS%3Bdocument.oncontextmenu%3DclickIE%3B%7D%0D%0A%0D%0Adocument.oncontextmenu%3Dnew%20Function%28%22return%20false%22%29%0D%0A%0D%0A//%20--%3E%3C/script%3E';
d=unescape(m);
document.write(d);

var dragapproved=false;
var minrestore=0;
var initialwidth,initialheight;
var ie5=document.all&&document.getElementById;
var ns6=document.getElementById&&!document.all;
// ---------------------------------------------------------
// dwindow
// ---------------------------------------------------------
function drag_drop(e){
	if (ie5&&dragapproved&&event.button==1){
		document.getElementById("dwindow").style.left=tempx+event.clientX-offsetx;
		document.getElementById("dwindow").style.top=tempy+event.clientY-offsety;
	}
	else if (ns6&&dragapproved){
		document.getElementById("dwindow").style.left=tempx+e.clientX-offsetx;
		document.getElementById("dwindow").style.top=tempy+e.clientY-offsety;
	}
}

function initializedrag(e){
	offsetx=ie5? event.clientX : e.clientX;
	offsety=ie5? event.clientY : e.clientY;
	if (ie5)
	document.getElementById("saver").style.display='';
	tempx=parseInt(document.getElementById("dwindow").style.left);
	tempy=parseInt(document.getElementById("dwindow").style.top);
	dragapproved=true;
	document.onmousemove=drag_drop;
}

function loadwindow2(url,width,height){
	if (!ie5&&!ns6)
		window.open(url,"","width=width,height=height,scrollbars=1")
	else{
		document.getElementById("dwindow").style.display='';
		document.getElementById("dwindow").style.width=initialwidth=width;
		document.getElementById("dwindow").style.height=initialheight=height;
		document.getElementById("dwindow").style.left=160;
		document.getElementById("dwindow").style.top=160;
		document.getElementById("cframe").src=url;
	}
}

function maximize(){
	if (minrestore==0){
		minrestore=1; //maximize window
		document.getElementById("maxname").setAttribute("src","restore.gif");
		document.getElementById("dwindow").style.width=ns6? window.innerWidth-20 : document.body.clientWidth;
		document.getElementById("dwindow").style.height=ns6? window.innerHeight-20 : document.body.clientHeight;
	}
	else{
		minrestore=0; //restore window
		document.getElementById("maxname").setAttribute("src","max.gif");
		document.getElementById("dwindow").style.width=initialwidth;
		document.getElementById("dwindow").style.height=initialheight;
	}
	document.getElementById("dwindow").style.left=ns6? window.pageXOffset : document.body.scrollLeft;
	document.getElementById("dwindow").style.top=ns6? window.pageYOffset : document.body.scrollTop;
}

function closeit(){
	document.getElementById("dwindow").style.display="none";
}
// ---------------------------------------------------------
// dwindowbank
// ---------------------------------------------------------
function drag_dropbank(e){
	if (ie5&&dragapproved&&event.button==1){
		document.getElementById("dwindowbank").style.left=tempx+event.clientX-offsetx;
		document.getElementById("dwindowbank").style.top=tempy+event.clientY-offsety;
	}
	else if (ns6&&dragapproved){
		document.getElementById("dwindowbank").style.left=tempx+e.clientX-offsetx;
		document.getElementById("dwindowbank").style.top=tempy+e.clientY-offsety;
	}
}
function initializedragbank(e){
	offsetx=ie5? event.clientX : e.clientX;
	offsety=ie5? event.clientY : e.clientY;
	if (ie5)
		document.getElementById("saverbank").style.display='';
	tempx=parseInt(document.getElementById("dwindowbank").style.left);
	tempy=parseInt(document.getElementById("dwindowbank").style.top);
	dragapproved=true;
	document.onmousemove=drag_dropbank;
}

function loadwindowbank(url,width,height){
	if (!ie5&&!ns6)
		window.open(url,"","width=width,height=height,scrollbars=1")
	else{
		document.getElementById("dwindowbank").style.display='';
		document.getElementById("dwindowbank").style.width=initialwidth=width;
		document.getElementById("dwindowbank").style.height=initialheight=height;
		document.getElementById("dwindowbank").style.left=145;
		document.getElementById("dwindowbank").style.top=160;
		document.getElementById("cframebank").src=url;
	}
}

function maximizebank(){
	if (minrestore==0){
		minrestore=1; //maximize window
		document.getElementById("maxnamebank").setAttribute("src","restore.gif");
		document.getElementById("dwindowbank").style.width=ns6? window.innerWidth-20 : document.body.clientWidth;
		document.getElementById("dwindowbank").style.height=ns6? window.innerHeight-20 : document.body.clientHeight;
	}
	else{
		minrestore=0; //restore window
		document.getElementById("maxnamebank").setAttribute("src","max.gif");
		document.getElementById("dwindowbank").style.width=initialwidth;
		document.getElementById("dwindowbank").style.height=initialheight;
	}
	document.getElementById("dwindowbank").style.left=ns6? window.pageXOffset : document.body.scrollLeft;
	document.getElementById("dwindowbank").style.top=ns6? window.pageYOffset : document.body.scrollTop;
}

function closewindowbank(){
	document.getElementById("dwindowbank").style.display="none";
}
// ---------------------------------------------------------
// dwindowchange 
// ---------------------------------------------------------
function drag_dropchange(e){
	if (ie5&&dragapproved&&event.button==1){
		document.getElementById("dwindowchange").style.left=tempx+event.clientX-offsetx;
		document.getElementById("dwindowchange").style.top=tempy+event.clientY-offsety;
	}
	else if (ns6&&dragapproved){
		document.getElementById("dwindowchange").style.left=tempx+e.clientX-offsetx;
		document.getElementById("dwindowchange").style.top=tempy+e.clientY-offsety;
	}
}
function initializedragchange(e){
	offsetx=ie5? event.clientX : e.clientX;
	offsety=ie5? event.clientY : e.clientY;
	if (ie5)
		document.getElementById("saverchange").style.display='';
	tempx=parseInt(document.getElementById("dwindowchange").style.left);
	tempy=parseInt(document.getElementById("dwindowchange").style.top);
	dragapproved=true;
	document.onmousemove=drag_dropchange;
}

function loadwindowchange(url,width,height,left,top){
	if (!ie5&&!ns6)
		window.open(url,"","width=width,height=height,scrollbars=1")
	else{
		document.getElementById("dwindowchange").style.display='';
		document.getElementById("dwindowchange").style.width=initialwidth=width;
		document.getElementById("dwindowchange").style.height=initialheight=height;
		document.getElementById("cframechange").src=url;
		document.getElementById("dwindowchange").style.left=left;
		document.getElementById("dwindowchange").style.top=top;	
	}
}

function maximizechange(){
	if (minrestore==0){
		minrestore=1; //maximize window
		document.getElementById("maxnamechange").setAttribute("src","restore.gif");
		document.getElementById("dwindowchange").style.width=ns6? window.innerWidth-20 : document.body.clientWidth;
		document.getElementById("dwindowchange").style.height=ns6? window.innerHeight-20 : document.body.clientHeight;
	}
	else{
		minrestore=0; //restore window
		document.getElementById("maxnamechange").setAttribute("src","max.gif");
		document.getElementById("dwindowchange").style.width=initialwidth;
		document.getElementById("dwindowchange").style.height=initialheight;
	}
	document.getElementById("dwindowchange").style.left=ns6? window.pageXOffset : document.body.scrollLeft;
	document.getElementById("dwindowchange").style.top=ns6? window.pageYOffset : document.body.scrollTop;
}

function closewindowchange(){
	document.getElementById("dwindowchange").style.display="none";
}

if (ie5||ns6){
//	document.onmouseup=new Function("dragapproved=false;document.onmousemove=null;document.getElementById('saver').style.display='none'");
//	document.onmouseup=new Function("dragapproved=false;document.onmousemove=null;document.getElementById('saverbank').style.display='none'");
//	document.onmouseup=new Function("dragapproved=false;document.onmousemove=null;document.getElementById('saverchange').style.display='none'");
//	document.onmouseup=new Function("dragapproved=false;document.onmousemove=null;document.getElementById('saverid').style.display='none'");
}


