<!--------------------font_start-------------------->
mac=(navigator.appVersion.indexOf("Mac",0) != -1)?true:false;
ie=(navigator.appName.charAt(0) == "M")?true:false;

document.write("<style type='text/css'><!--")
	document.write("a:link{text-decoration:none; color:#993366;}")
	document.write("a:visited{text-decoration:none; color:#4E4F74;}")
	document.write("a:active{text-decoration:none; color:#CC0000;}")
	document.write("a:hover{text-decoration:underline; color:#993366;}")
if(mac){
	//For Macintosh IE NS
	document.write("td,select,input{font-size:12px; color:#333333;}")
	document.write("h3{font-size:12px; color:#333333; weight}")
	document.write(".f1{font-size:9px;}")
	document.write(".f1s{font-size:px; color:#666666;}")
	document.write(".f2{font-size:10px; color:#006633}")
	document.write(".f3{font-size:12px; color:#666666;}")
	document.write(".f4{font-size:14px;}")
	document.write(".f5{font-size:18px;}")
	document.write(".f6{font-size:24px;}")
	document.write(".f7{font-size:36px;}")
	document.write(".l130{line-height:130%}")
	document.write(".l150{line-height:150%}")
	document.write(".l180{line-height:180%}")
	document.write(".backg {background-color:#FFFFFF;}")
}
else{
	if(ie){
	//For Windows IE
	document.write("td,select,input{font-size:12px; color:#333333;}")
	document.write(".f1{font-size:9px;}")
	document.write(".f1s{font-size:10px; color:#666666;}")
	document.write(".f2{font-size:11px; color:#006633}")
	document.write(".f3{font-size:12px;}")
	document.write(".f4{font-size:15px;}")
	document.write(".f5{font-size:18px;}")
	document.write(".f6{font-size:26px;}")
	document.write(".f7{font-size:38px;}")
	document.write(".l130{line-height:120%}")
	document.write(".l150{line-height:140%}")
	document.write(".l180{line-height:180%}")
	document.write(".backg {background-color:#FFFFFF;}")
	}
	else{
	//For Windows NS
	document.write("td,select,input{font-size:12px; color:#333333;}")
	document.write(".f1{font-size:9px;}")
	document.write(".f1s{font-size:10px; color:#666666;}")
	document.write(".f2{font-size:11px; color:#006633}")
	document.write(".f3{font-size:12px;}")
	document.write(".f4{font-size:16px;}")
	document.write(".f5{font-size:18px;}")
	document.write(".f6{font-size:26px;}")
	document.write(".f7{font-size:38px;}")
	document.write(".l130{line-height:130%}")
	document.write(".l150{line-height:140%}")
	document.write(".l180{line-height:190%}")
	document.write(".backg {background-color:#FFFFFF;}")
	}
}
document.write("--></style>");
<!--------------------font_end-------------------->

<!--------------------preload_start-------------------->

preload_img=new Image();
preload_img.src='../images/ya_pink-over.gif';

preload_img2=new Image();
preload_img2.src='../images/ya_yellow-over.gif';

preload_img3=new Image();
preload_img3.src='../images/ya_green-over.gif';

<!--------------------preload_end-------------------->

var pageScrollTimer;
function pageScroll(toX,toY,frms,cuX,cuY) { // 020314
 if (pageScrollTimer) clearTimeout(pageScrollTimer);
 if (!toX || toX < 0) toX = 0;
 if (!toY || toY < 0) toY = 0;
 if (!cuX) cuX = 0 + getScrollLeft();
 if (!cuY) cuY = 0 + getScrollTop();
 if (!frms) frms = 6;

 cuX += (toX - getScrollLeft()) / frms; if (cuX < 0) cuX = 0;
 cuY += (toY - getScrollTop()) / frms;  if (cuY < 0) cuY = 0;
 var posX = Math.floor(cuX);
 var posY = Math.floor(cuY);
 window.scrollTo(posX, posY);
 if (posX != toX || posY != toY) {
  pageScrollTimer = setTimeout("pageScroll("+toX+","+toY+","+frms+","+cuX+","+cuY+")",16);
 }
}

function jumpToPageTop() { // 020301
 if (!MacIE3 && !MacIE4 && !NN && window.scrollTo || NN && (Vminor >= 4.75) && window.scrollTo) {
  pageScroll(0,0,5);
 } else {
  location.hash = "top";
 }
}

function hideScrollBar(_resW,_resH) {
 if (screen.width > _resW && screen.height > _resH) {
  with (document) {
   write('<style type="text/css">');
   write('body { overflow: hidden; }');
   write('<\/style>');
  }
 }
}


<!-- -->
var Mac = navigator.appVersion.indexOf('Mac',0) != -1;
var Win = navigator.appVersion.indexOf('Win',0) != -1;
var IE  = navigator.appName.indexOf("Microsoft Internet Explorer",0) != -1;
var NN  = navigator.appName.indexOf("Netscape",0) != -1;
var Moz = navigator.userAgent.indexOf("Gecko",0) != -1;
var Opera = window.opera;
var Vmajor = parseInt(navigator.appVersion); // ex. 3
var Vminor = parseFloat(navigator.appVersion); // ex. 3.01

var MacIE4 = ((Mac && navigator.appVersion.indexOf('MSIE 4.',0) != -1));
var MacIE3 = ((Mac && navigator.appVersion.indexOf('MSIE 3.',0) != -1));

function setObj(id) {
	if (document.all) {
		return document.all(id);
	} else if (document.getElementById) {
		return document.getElementById(id);
	} else if (document.layers) {
		return document.layers[id];
	}
	return false;
}

// --------------------
// [window] scroll
// --------------------

function getScrollLeft() { // 020225
 if ((navigator.appName.indexOf("Microsoft Internet Explorer",0) != -1)) {
  return document.body.scrollLeft;
 } else if (window.pageXOffset) {
  return window.pageXOffset;
 } else {
  return 0;
 }
}

function getScrollTop() { // 020225
 if ((navigator.appName.indexOf("Microsoft Internet Explorer",0) != -1)) {
  return document.body.scrollTop;
 } else if (window.pageYOffset) {
  return window.pageYOffset;
 } else {
  return 0;
 }
}

function getScrollWidth() { // 010317
 if ((navigator.appName.indexOf("Microsoft Internet Explorer",0) != -1)) {
  return document.body.scrollWidth;
 } else if (window.innerWidth) {
  return window.innerWidth;
 }
 return 0;
}

function getScrollHeight() { // 010317
 if ((navigator.appName.indexOf("Microsoft Internet Explorer",0) != -1)) {
  return document.body.scrollHeight;
 } else if (window.innerHeight) {
  return window.innerHeight;
 }
 return 0;
}
