var szClass = "className";
var orgClass;
function mvin(bt)
{	
	orgClass = bt.getAttribute(szClass);
	bt.setAttribute(szClass,"movetitle");
}

function mvout(bt)
{
	bt.setAttribute(szClass,orgClass);
}

function clicktitle(szURL,bt)
{
	bt_01.setAttribute(szClass,"noseltitle");
	bt_02.setAttribute(szClass,"noseltitle");
	bt_03.setAttribute(szClass,"noseltitle");
	bt_04.setAttribute(szClass,"noseltitle");
	bt_05.setAttribute(szClass,"noseltitle");
	bt_06.setAttribute(szClass,"noseltitle");
	bt_07.setAttribute(szClass,"noseltitle");
	
	bt.setAttribute(szClass,"seltitle");
	orgClass = "seltitle";
	
	location.href = szURL;
}

function fixPng()
{
	var arVersion = navigator.appVersion.split("MSIE") ;
	var version = parseFloat(arVersion[1]) ;

	if ((version >= 5.5 && version < 7.0) && (document.body.filters)) 
	{ 
		for(var i=0; i<document.images.length;i++)
		{	var img = document.images[i]; 
			var imgName = img.src.toUpperCase(); 
			if(imgName.indexOf(".PNG") > 0) 
			{ 	var width = img.width;
				var height = img.height;
				var sizingMethod = (img.className.toLowerCase().indexOf("scale") >= 0)? "scale" : "image";
				img.runtimeStyle.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + img.src.replace('%23', '%2523').replace("'", "%27") + "', sizingMethod='" + sizingMethod + "')";
				
				img.src="images/blank.gif";
				img.width = width;
				img.height = height;
			}
		}
	}
}

window.onload = function () { fixPng(); }

function getCookieVal(offset)
{	var endstr = document.cookie.indexOf(';',offset);
	
	if(endstr == -1)	endstr = document.cookie.length;
	
	return unescape(document.cookie.substring(offset,endstr));
}
	
function GetCookie(name)
{	var arg = name+'=';
	var alen = arg.length;
	var clen = document.cookie.length;
	var i = 0;
	while(i<clen)
	{	var j = i+alen;
		if(document.cookie.substring(i,j) == arg)	return getCookieVal(j);
		i = document.cookie.indexOf(' ',i)+1;
		if(i == 0)	break;
	}
	return null;
}

function SetCookie(name,value)
{	var argv = SetCookie.arguments;
	var argc = SetCookie.arguments.length;
	var days = 365*3;
	
	var expires = new Date();
	expires.setTime(expires.getTime()+(86400*1000*days));
	
	var path = (3<argc)?argv[3]:null;
	var domain = (4<argc)?argv[4]:null;
	var secure = (5<argc)?argv[5]:false;
	
	document.cookie = name+'='+value+((expires == null)?'':(';expires='+expires.toGMTString())) + 
					  ((path == null)?'':(';path='+path))+((domain == null)?'':(';domain='+domain)) + 
					  ((secure == true)?';secure':'');
}