﻿var crFocusedSL = "#E0E0E0";
var crNormalSL = "#F0F0F0";
var nMenuItemHeightSL = 16;
var nWidthSL = 80;

var sMenuItemStrsSL = new Array(
	"<A HREF='http://192.168.0.150:83' class='L12Blue' target='_blank'>English</A>",
	"<A HREF='http://192.168.0.150:84' class='L12Blue'>Spanish</A>",
	"<A HREF='#' class='L12Blue' onclick='javascript:return false;'>Japanese</A>",
	"<A HREF='#' class='L12Blue' onclick='javascript:return false;'>Korean</A>"
);
//============================
function changeColorSL(tr, focused) {
	tr.style.backgroundColor = focused ? crFocusedSL : crNormalSL;
}
function addMenuItemSL(divName, s) {
	var menu = document.getElementById(divName);
	menu.innerHTML += "<div style='text-align: left; padding: 3px 20px 3px 10px; width: 100%; height: "+nMenuItemHeightSL+"px; background: "+crNormalSL+"; border-bottom-width: 1px;border-bottom-style: solid;border-bottom-color: "+crFocusedSL+";' onmouseover='changeColorSL(this, 1);' onmouseout='changeColorSL(this, 0);'>"+s+"</div>";
}
function addLanguageLinks(a, divName) {
	var menu = document.getElementById(divName);
	menu.style.backgroundColor = crNormalSL;
	menu.style.width = nWidthSL;
	menu.innerHTML = "";
	for(i=0; i<sMenuItemStrsSL.length; i++) {
		addMenuItemSL(divName, sMenuItemStrsSL[i]);
	}
}
function DIVShow(txt)
{
document.getElementById(txt).style.display="block";
}
function DIVClose(txt)
{
document.getElementById(txt).style.display="none";
}  
