function Moveovergt(that)
{
that.style.backgroundImage='url(images/gt_button_over.gif)';
that.style.color='#ffff00';
that.style.fontWeight='bold';
that.style.fontFamily='Tahoma';
that.style.letterSpacing='2px';
}
function Moveoutgt(that)
{
that.style.backgroundImage='url(images/gt_button.gif)';
that.style.color='#ffffff';
that.style.fontWeight='bold';
that.style.fontFamily='Verdana';
that.style.letterSpacing='0px';
}
function Moveoverlh(that)
{
that.style.backgroundImage='url(images/lh_button_over.gif)';
that.style.color='#ffff00';
that.style.fontWeight='bold';
that.style.fontFamily='Tahoma';
that.style.letterSpacing='2px';
}
function Moveoutlh(that)
{
that.style.backgroundImage='url(images/lh_button.gif)';
that.style.color='#ffffff';
that.style.fontWeight='bold';
that.style.fontFamily='Verdana';
that.style.letterSpacing='0px';
}

function Moveovere(that)
{
that.style.backgroundImage='url(images/e_button_over.gif)';
that.style.color='#ffff00';
that.style.fontWeight='bold';
that.style.fontFamily='Tahoma';
that.style.letterSpacing='2px';
}
function Moveoute(that)
{
that.style.backgroundImage='url(images/e_button.gif)';
that.style.color='#ffffff';
that.style.fontWeight='bold';
that.style.fontFamily='Verdana';
that.style.letterSpacing='0px';
}


function Moveoversub(that)
{
that.style.background='#FFF9E0';
that.style.color='#000000';
that.style.fontWeight='normal';
}
function Moveoutsub(that)
{
that.style.background='#FBDD60'; 
that.style.color='#000000';
that.style.fontWeight='normal';
}
/*function movein(which)
{
which.style.textDecoration='none';
which.style.background='#003366';
which.style.cursor='hand';
}
}
function moveout(which){
which.style.textDecoration='none';
which.style.color='#000000';
which.style.background='#eeeeee';
}
function movein2(which){
which.style.textDecoration='none';
which.style.background='#003366';
which.style.color='#FFFFFF';
which.style.cursor='hand';
}
}
function moveout2(which){
which.style.textDecoration='none';
which.style.color='#000000';
which.style.background='#eeeeee';
}*/
/*function doimauchu(a)
{
	var d;
	d=document.getElementById("td1");
	d.style.color='#ffffff';
}*/	
function mouseover(that)
{
that.style.color='cc0000';
that.style.fontSize='10px';
that.style.fontFamily='verdana';
that.style.fontWeight='bold';
}
function mouseout(that)
{
that.style.color='333333';
that.style.fontSize='9px';
that.style.fontFamily='verdana';
that.style.fontWeight='bold';
}


	var agt=navigator.userAgent.toLowerCase();
	var is_major = parseInt(navigator.appVersion);
    var is_minor = parseFloat(navigator.appVersion);
	var is_ie     = ((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1));
    var is_ie3    = (is_ie && (is_major < 4));
    var is_ie4    = (is_ie && (is_major == 4) && (agt.indexOf("msie 4")!=-1) );
    var is_ie4up  = (is_ie && (is_major >= 4));
    var is_ie5    = (is_ie && (is_major == 4) && (agt.indexOf("msie 5.0")!=-1) );
    var is_ie5_5  = (is_ie && (is_major == 4) && (agt.indexOf("msie 5.5") !=-1));
    var is_ie5up  = (is_ie && !is_ie3 && !is_ie4);
    var is_ie5_5up =(is_ie && !is_ie3 && !is_ie4 && !is_ie5);
    var is_ie6    = (is_ie && (is_major == 4) && (agt.indexOf("msie 6.")!=-1) );
    var is_ie6up  = (is_ie && !is_ie3 && !is_ie4 && !is_ie5 && !is_ie5_5);
if (is_ie6up==true)
{
	document.write("<style>");
	document.write(".parentleftlink {color:#00ffff;font-weight: bold; TEXT-DECORATION: underline; FILTER: progid:dximagetransform.microsoft.gradientwipe(duration=1); BEHAVIOR: url(include/linkhilight.htc); CURSOR: hand; HEIGHT: 1px}");
	document.write(".parentleftlink:hover {color:#ff0000}");
	document.write(".childleftlink {font-size:13px;COLOR: #ffffff; FONT-FAMILY: Tahoma; TEXT-DECORATION: none; FONT-WEIGHT: bold; FILTER: progid:dximagetransform.microsoft.gradientwipe(duration=1); BEHAVIOR: url(include/linkhilight.htc); CURSOR: hand; HEIGHT: 1px}");
	document.write(".childleftlink:hover {COLOR: #ffff00}");
	document.write(".link_ {FONT-FAMILY: tahoma; COLOR: #006600; FONT-SIZE: 12px; text-decoration:underline;font-weight:bold; FILTER: progid:dximagetransform.microsoft.gradientwipe(duration=1); BEHAVIOR: url(include/linkhilight.htc); CURSOR: hand; HEIGHT: 1px}");
	document.write(".link_:hover {COLOR: red}");
	document.write(".link3 {COLOR: #4848ff; FONT-FAMILY: tahoma; FONT-SIZE: 13px; text-decoration:underline;font-weight:bold; FILTER: progid:dximagetransform.microsoft.gradientwipe(duration=1); BEHAVIOR: url(include/linkhilight.htc); CURSOR: hand; HEIGHT: 1px}");
	document.write(".link3:hover {COLOR: #ff0000; FONT-FAMILY: tahoma; FONT-SIZE: 13px; text-decoration:underline;font-weight:bold}");
	document.write(".menulink {font-family: arial; font-size:12px; color:white ; text-decoration:none; font-weight:bold; FILTER: progid:dximagetransform.microsoft.gradientwipe(duration=1); BEHAVIOR: url(include/linkhilight.htc); CURSOR: hand; HEIGHT: 1px}");
	document.write(".menulink:hover {font-family: arial; font-size:12px; color:#ff0000}");
	document.write("</style>");
}


function high(which2)
{
	theobject=which2
	highlighting=setInterval("highlightit(theobject)",50)
}
function low(which2)
{
	clearInterval(highlighting)
	if (which2.style.MozOpacity)
		which2.style.MozOpacity=0.3
	else if (which2.filters)
		which2.filters.alpha.opacity=50
}

function highlightit(cur2)
{
	if (cur2.style.MozOpacity<1)
		cur2.style.MozOpacity=parseFloat(cur2.style.MozOpacity)+0.1
	else if (cur2.filters&&cur2.filters.alpha.opacity<100)
		cur2.filters.alpha.opacity+=10
	else if (window.highlighting)
		clearInterval(highlighting)
}


var rector=3
///////DONE EDITTING///////////
var stopit=0 
var a=1
function init(which)
{
	stopit=0
	shake=which
	shake.style.left=0
	shake.style.top=0
}
function rattleimage()
{
	if ((!document.all&&!document.getElementById)||stopit==1)
		return
	if (a==1)
		{
		shake.style.top=parseInt(shake.style.top)+rector
		}
	else if (a==2)
		{
		shake.style.left=parseInt(shake.style.left)+rector
		}
	else if (a==3)
		{
		shake.style.top=parseInt(shake.style.top)-rector
		}
	else
		{
		shake.style.left=parseInt(shake.style.left)-rector
		}
	if (a<4)	
		a++
	else
		a=1
	setTimeout("rattleimage()",100)
	}
function stoprattle(which)
{
	stopit=1
	which.style.left=0
	which.style.top=0
}


function ChangeImage(name,image)
{
	document[name].src=image
}

function ChangePicture(name,image)
{
	document[name].src=image
}
