<!--
function MM_findObj(n, d) { //v4.0
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_showHideLayers() { //v4.0
var i,p,v,obj,args=MM_showHideLayers.arguments;
for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
obj.visibility=v; }
}
function MM_selectedLayers() { //v3.0
  var i,p,v,obj,args=MM_selectedLayers.arguments;
  for (i=0; i<(args.length-2); i+=3)
	if ((obj=MM_findObj(args[i]))!=null)
	{
		v=args[i+2];
		if (obj.style)
		{
			obj=obj.style;
			v=(v=='show')?'visible':(v='hide')?'hidden':v;
		}
		obj.visibility=v;
	}

}
function moveurl(sitm){
	document.intoform.mnu.value=sitm;
document.intoform.submit();
}
//-->

function getCookie( name )
{
var nameOfCookie = name + "=";
var x = 0;
while ( x <= document.cookie.length )
{
var y = (x+nameOfCookie.length);
if ( 
document.cookie.substring( x, y ) == nameOfCookie ) {
if ( 
(endOfCookie=document.cookie.indexOf( ";", y )) == -1 )
endOfCookie = document.cookie.length;
return unescape( document.cookie.substring( y, endOfCookie ) );
}
x = document.cookie.indexOf( " ", x ) + 1;
if ( x == 0 )
break;
}
return "";
}

//*****ÇªÅÍ*********

function WriteFooter1()
{
	document.write("<div id='top_btn' style='position:absolute; left:803; top:0; width:10; height:1; z-index:500; visibility: visible;'>");
	document.write("<table width='100%' border='0' cellspacing='0' cellpadding='0'>");
	document.write("<tr>");
	document.write("<td width='30'><a href='main.html' onfocus='blur();' class='topbtn'>Home</a></td>");
	if (getCookie("user_id")) {
		document.write("<td width='30' style='padding-left:10px'><a href='logout.php' onfocus='blur();' class='topbtn'>Logout</a></td>");
	}
	else {
		document.write("<td width='30' style='padding-left:10px'><a href='login.html' onfocus='blur();' class='topbtn'>Login</a></td>");
	}
	document.write("<td style='padding-left:10px'><a href='sitemap.html' onfocus='blur();' class='topbtn'>Sitemap</a></td>");
	document.write("</tr>");
	document.write("</table>");
	document.write("</div>");
	document.write("<div id='footer' style='position:absolute; left:922; top:700; width:10; height:1; z-index:501; visibility: visible;'>");
	document.write("<table width='220' border='0' cellspacing='3' cellpadding='0'>");
	document.write("<tr>");
	document.write("<td class='topbtn'>Copyright ¨Ï LeadMark.co.Ltd., All rights reserved.</td>");
	document.write("</tr>");
	document.write("</table>");
}

function WriteFooter2()
{
	document.write("<div id='top_btn' style='position:absolute; left:890; top:110; width:10; height:1; z-index:500; visibility: visible;'>");
	document.write("<table width='100%' border='0' cellspacing='0' cellpadding='0'>");
	document.write("<tr>");
	document.write("<td width='30'><a href='main.html' onfocus='blur();' class='topbtn'>Home</a></td>");
	
	if (getCookie("user_id")) {
		document.write("<td width='30' style='padding-left:10px'><a href='logout.php' onfocus='blur();' class='topbtn'>Logout</a></td>");
	}
	else {
		document.write("<td width='30' style='padding-left:10px'><a href='login.html' onfocus='blur();' class='topbtn'>Login</a></td>");
	}
	document.write("<td style='padding-left:10px'><a href='sitemap.html' onfocus='blur();' class='topbtn'>Sitemap</a></td>");
	document.write("<td style='padding-left:8px'>");
	//document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='72' height='16'>");
	//document.write("<param name='wmode' value='transparent'>");
	//document.write("<param name='movie' value='player.swf'>");
	//document.write("<param name='quality' value='high'>");
	//document.write("<embed src='player.swf' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='72' height='16'></embed></object>");
	//document.write("</td>");
	document.write("</tr>");
	document.write("</table>");
}

function player()
{
	document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='72' height='16'>");
	document.write("<param name='wmode' value='transparent'>");
	document.write("<param name='movie' value='player.swf'>");
	document.write("<param name='quality' value='high'>");
	document.write("<embed src='player.swf' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='72' height='16'></embed></object>");
}
