/*###########################
Copyright (c) tomo creations.
JavaScript Document : set.js
2005/3/21 ky
###########################*/

/* ############### Browser CSS ################ */
//Macintosh All Style
var ua = navigator.userAgent;
if(ua.indexOf("Mac") !== -1) {
	with(document) {
		write("<link href='../css/mac.css' rel='stylesheet' type='text/css'>");
		write("<link href='css/mac.css' rel='stylesheet' type='text/css'>");
	}
}
//Macintosh Opera
if ((ua.match(/Opera/)) && (ua.match(/Mac/i))) {
	with(document) {
		write("<link href='../../css/mac_opera.css' rel='stylesheet' type='text/css'>");
		write("<link href='../css/mac_opera.css' rel='stylesheet' type='text/css'>");
		write("<link href='css/mac_opera.css' rel='stylesheet' type='text/css'>");
	}
}
//Windows IE
else if ((ua.match(/MSIE/)) && (ua.match(/Win/i))) {
	ua.match(/MSIE (\d\.\d+)/);
	var result = RegExp.$1;
	//IE6.0
	if(result >= 6.0) {
		with(document) {
			write("<link href='../../css/win_ie6.css' rel='stylesheet' type='text/css'>");
			write("<link href='../css/win_ie6.css' rel='stylesheet' type='text/css'>");
			write("<link href='css/win_ie6.css' rel='stylesheet' type='text/css'>");
		}
	}
	//IE5,5.5
	else if((result < 6.0) && (result >= 5.0)) {
		with(document) {
			write("<link href='../../css/win_ie5x.css' rel='stylesheet' type='text/css'>");
			write("<link href='../css/win_ie5x.css' rel='stylesheet' type='text/css'>");
			write("<link href='css/win_ie5x.css' rel='stylesheet' type='text/css'>");
		}
	}
}
//Macintosh IE
else if((ua.match(/MSIE/)) && (ua.match(/Mac/i))) {
	with(document) {
		write("<link href='../../css/mac_ie.css' rel='stylesheet' type='text/css'>");
		write("<link href='../css/mac_ie.css' rel='stylesheet' type='text/css'>");
		write("<link href='css/mac_ie.css' rel='stylesheet' type='text/css'>");
	}
}
//Safari
else if (ua.match(/Safari/)) {
	with(document) {
		write("<link href='../../css/safari.css' rel='stylesheet' type='text/css'>");
		write("<link href='../css/safari.css' rel='stylesheet' type='text/css'>");
		write("<link href='css/safari.css' rel='stylesheet' type='text/css'>");
	}
}

/* ################# SwapImages ################ */
function ichg(Obj,Mode,Path,SwObj,SwPath,SwObj2,SwPath2) {
	if(Mode == 0) {	
//MouseOver
		Obj.src = Path;
		document.images[SwObj].src = SwPath;
		document.images[SwObj2].src = SwPath2;
	}else{
//MouseOut
		Obj.src = Path;
		document.images[SwObj].src = SwPath;
		document.images[SwObj2].src = SwPath2;
	}
}

/* ################ Normal RollOver ################# */
function n_ichg(Obj,Mode,Path) {
	if(Mode == 0) {
//MouseOver
		Obj.src = Path;
	}else{
//MouseOut
		Obj.src = Path;
	}
}

/* ################# New Window ################### */
function n_Win(url,wname,wid,hei,bar) {
	var style = "width=" + wid + ",height=" + hei
				+ ",scrollbars=yes,resizable=yes,menubar=" + bar;
	window.open(url,wname,style);
}


window.ysm_customData = new Object();
window.ysm_customData.conversion = "transId=,currency=,amount=";
var ysm_accountid  = "1AOR02P51EVR97RT6Q8DHNKFC38";
document.write("<SCR" + "IPT language='JavaScript' type='text/javascript' " 
+ "SRC=//" + "srv2.wa.marketingsolutions.yahoo.com" + "/script/ScriptServlet" + "?aid=" + ysm_accountid 
+ "></SCR" + "IPT>");


/* Top GlobalMenu Images Preload */
for(i = 1; i <= 7; i++) {
	with(new Image()) {
		src = "images/menu_index" + i + ".gif";
		src = "images/menu_index" + i + "_f2.gif";
		src = "images/menu_index" + i + "_f3.gif";
		src = "images/menu_index" + i + "_f4.gif";
		src = "images/menu_index" + i + "_f5.gif";
		src = "images/menu_index" + i + "_f6.gif";
	}
}


function ichgS(Obj,Mode,Path) {
	if(Mode == 0) {	
//MouseOver
		Obj.src = Path;
	}else{
//MouseOut
		Obj.src = Path;
	}
}

