// POPUP

/* This script generated free online at 
Free Gifs & Animations http://www.fg-a.com */

function popUp(URL, width, height) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width="+ width + ",height="+ height +",left = 162,top = 144');");
}



// BUTTON ROLLOVER 
function bt_roll(image){
event.srcElement.style.backgroundImage="url"+"('"+image+"')"
}

// LINK
function go(aa){
	location.href = aa ;
}

	function email(mailname, maildomain){
		at=" at ";
		document.write("<A HREF=`mailto:"+mailname+"@"+maildomain+"`>"+mailname+""+at+""+maildomain+"</a>");
	}
	
	function f_window(url) {
		heights = screen.height-90;
		win = window.open(url, 'lmh_bbs', 'fullscreen=no, resizable=yes, scrollbars=yes, left=0,top=0,width=650,height='+ heights +'');
		win.focus();
	}


// FIT WINDOWS SIZE TO IMAGE

function view(what) { 
var imgwin = window.open("",'WIN','scrollbars=no,status=no,toolbar=no,resizable=1,location=no,menu=no,width=10,height=10'); 
imgwin.focus(); 
imgwin.document.open(); 
imgwin.document.write("<html>\n"); 
imgwin.document.write("<head>\n"); 
imgwin.document.write("<title>images</title>\n"); 

imgwin.document.write("<sc"+"ript>\n"); 
imgwin.document.write("function resize() {\n"); 
imgwin.document.write("pic = document.il;\n"); 
//imgwin.document.write("alert(eval(pic).height);\n"); 
imgwin.document.write("if (eval(pic).height) { var name = navigator.appName\n"); 
imgwin.document.write("  if (name == 'Microsoft Internet Explorer') { myHeight = eval(pic).height + 40; myWidth = eval(pic).width + 12;\n"); 
imgwin.document.write("  } else { myHeight = eval(pic).height + 9; myWidth = eval(pic).width; }\n"); 
imgwin.document.write("  clearTimeout();\n"); 
imgwin.document.write("  var height = screen.height;\n"); 
imgwin.document.write("  var width = screen.width;\n"); 
imgwin.document.write("  var leftpos = width / 2 - myWidth / 2;\n"); 
imgwin.document.write("  var toppos = height / 2 - myHeight / 2; \n"); 
imgwin.document.write("  self.moveTo(leftpos, toppos);\n"); 
imgwin.document.write("  self.resizeTo(myWidth, myHeight);\n"); 
imgwin.document.write("}else setTimeOut(resize(), 100);}\n"); 
imgwin.document.write("</sc"+"ript>\n"); 

imgwin.document.write("</head>\n"); 
imgwin.document.write('<body topmargin="0" leftmargin="0" marginheight="0" marginwidth="0" bgcolor="#FFFFFF">\n'); 

imgwin.document.write("<a href='#' title='Close this window' onclick='window.close();'><img border=0 src="+what+" xwidth=100 xheight=9 name=il onload='resize();'/></a>\n"); 
imgwin.document.write("</body>\n"); 
imgwin.document.close(); 

} 


// DOUBLE CLICK AND BACK TO TOP
function dblclick() {
	window.scrollTo(0,0)
}
if (document.layers) {
	document.captureEvents(Event.ONDBLCLICK);
}
document.ondblclick=dblclick;



// LAYER TOGGLE

function layer_toggle(obj) {
        if (obj.style.display == 'none') obj.style.display = 'block';
        else if (obj.style.display == 'block') obj.style.display = 'none';
}


// LAYER TOGGLE2

function layer_toggle2(obj, how) {
	obj.style.display = how;
}


