
var browser_version
browser_version = navigator.appVersion;
if (browser_version == "5.0 (Windows; U; Windows NT 5.1; en) AppleWebKit/522.15.5 (KHTML, like Gecko) Version/3.0.3 Safari/522.15.5")
 {
//new ypSlideOutMenu("number menu", "slide position", left, top, width, height)
new ypSlideOutMenu("menu1", "down", 186, 25, 179, 200)
new ypSlideOutMenu("menu2", "down", 378, 25, 197, 200)
new ypSlideOutMenu("menu3", "down", 575, 25, 193, 200)
new ypSlideOutMenu("menu4", "down", 780, 33, 190, 200)
document.write('<link href="/vm/main/macstyle.css" rel="stylesheet" type="text/css">');
  }
else {
new ypSlideOutMenu("menu1", "down", 188, 25, 179, 200)
new ypSlideOutMenu("menu2", "down", 382, 25, 207, 200)
new ypSlideOutMenu("menu3", "down", 580, 25, 193, 200)
new ypSlideOutMenu("menu4", "down", 786, 33, 189, 200)
document.write('<link href="/vm/main/pcstyle.css" rel="stylesheet" type="text/css">');
  }


var activeMenu = null;
var defaultMenu = null;
var tHome, tEditions, tFeatures, tResources, tContactUs;

function showMenu(item) {

	if(activeMenu) {
		activeMenu.className = defaultMenu;
	}

	if(item) {
		defaultMenu = item.className;
		tHome = document.getElementById("mHome").className;
		tEditions = document.getElementById("mRegister").className;
		tFeatures = document.getElementById("mPrograms").className;
		tResources = document.getElementById("mResources").className;
		tContactUs = document.getElementById("mContactUs").className;
		document.getElementById("mHome").className = "";
		document.getElementById("mRegister").className = "";
		document.getElementById("mPrograms").className = "";
		document.getElementById("mResources").className = "";
		document.getElementById("mContactUs").className = "";
		item.className = "actived";
		activeMenu = item;
	} else {
		activeMenu = null;
		document.getElementById("mHome").className = tHome;
		document.getElementById("mRegister").className = tEditions;
		document.getElementById("mPrograms").className = tFeatures;
		document.getElementById("mResources").className = tResources;
		document.getElementById("mContactUs").className = tContactUs;
	}
}

function expand(x) {
	var s;
	s = document.getElementById("img_" + x).src;
	s = s.substr(s.length - 5);
	if (s == "n.gif") {
		var i;
		for (i=1; i < 39; i++) {
			try {
				document.getElementById("detail_" + i).style.display = "none";
				document.getElementById("img_" + i).src = "/_images/arrow_down.gif";
			}
			catch (exc) {}
		}
		document.getElementById("detail_" + x).style.display = "block";
		document.getElementById("img_" + x).src = "/_images/arrow_up.gif";
	} else {
		document.getElementById("detail_" + x).style.display = "none";
		document.getElementById("img_" + x).src = "/_images/arrow_down.gif";
	}
}

var popWin = '';
function popWindow(file, height, width){
	if(window.showModalDialog){
		popWin = window.showModalDialog(file, '', 'dialogHeight:'+height+'px; dialogWidth:'+width+'px; resizable:yes; scroll:yes');
	}
	else{
		if(popWin.closed != undefined){if(!popWin.closed){popWin.close();};}
		popWin = window.open(file, 'help', 'height=' + height + ', width=' + width + ', resizable, scrollbars=yes, modal=yes, dialog=yes, menubar=yes');
		popWin.moveTo(20,20);
		popWin.focus();	
	}
}

function popImage(img, height, width) {
	var src;
	src = img.src;
	src = src.replace("thumb-", "");
	popWindow(src, height, width);
}


function poptastic(url) {
	var newwindow;
	newwindow=window.open(url,'name','height=500,width=650');
	if (window.focus) {newwindow.focus()}
}


