// JavaScript Document
function setBackgroundPage (arg) {
	var mybg;
	var myurl = "design/images/";
	var img;
	//
	switch (arg) {
		case 0:
			mybg = "#ea3e2e";
			img = "bgleft.png";
			break;
		case 1:
			mybg = "#1c5ba0";
			img = "bgright.png";
			break;
	}
	document.body.bgColor = mybg;
	//document.getElementById("bgpage").style.background = "url("+myurl+""+img+") bottom fixed repeat-x;";
}

function getFooter () {
	document.write ("Copyright &copy; 2008 EazySmart all right reserved");
	document.close();
}

function gotoPage(arg) {
	var mc = thisMovie("theflash");
	/*	var str = "<table border='1'>";
	for (var i in mc)
		str += "<tr><td nowrap='nowrap'>"+i+"</td><td>&nbsp;"+mc[i]+"</td></tr>";
	document.write(str+"</table>");
	document.close();*/
	mc.animatedGotoPage(arg);
}

function thisMovie(movieName) {
	// this function is worked all
	if (navigator.appName.indexOf("Microsoft") != -1) {
		return window[movieName]
	} else {
		return document[movieName]
	}
}

function hideTheAnchorStatus () {
	var anc = document.anchors;
	var str = "";
	for (var i in anc)
		str += i+" == "+anc[i].onmouseover+"<br/>";
		
	document.write(str);
	document.close();
}
