//global navigation
home="/he/index.htm";
products="/he/products/index.htm";
contact="/he/contactus/contactus.htm";
priv="/he/etc/privacy.htm";
legal="/he/etc/legal_notice.htm";
sitemap="/he/sitemap/index.asp";
srch="/he/search/search.htm";
adv_srch="/he/search/search.htm";
download_center = "/he/support/productsupport/download/index.aspx";
//support
support="/he/support/index.asp";
	prod_support="/he/support/productsupport/index.htm";
	svc_location="/he/support/servicelocations/index.htm";
	sales_location="/he/support/saleslocation.htm";
// global links
	globallinks="/he/support/globallinks.htm";

press="/he/presscenter/index.asp";
	press_releases="/he/presscenter/pressrelease/pressreleases.asp";
	keyfeature="/he/presscenter/keyfeaturearticles/keyfeaturearticles.asp";
	prstory="/he/presscenter/prstory/index.htm";
	newsletter="/he/presscenter/newsletter/newsletter.htm";


//aboutsamsung
about="/he/aboutsamsung/index.htm";

//aboutsamsung - company profile
	company="/he/aboutsamsung/companyprofile/index.htm"; //company profile



//aboutsamsung - careers
	careers="/he/aboutsamsung/careers/index.htm"; //careers


/*
function GoUrl(Str) {
	location.href=eval(Str);
}
*/
function GoUrl(name, win) {
	if (eval(name) == "") {
		alert("sorry.");
		return;
	} else {
		if (win == null) {
			document.location.href = eval(name);
		} else {
			window.open(eval(name), win);
		}
	}
}


// Style Sheet //
/*
function setStyle(){
	if (navigator.appName.indexOf('Microsoft') != -1){
 		var browser = "IE"
	} else {
		var browser = "NS"
	}
	if (browser == "IE"){
			document.write('<LINK REL=stylesheet TYPE=text/css HREF=/TR/module/CSS/global.css>')
	}
	else if (browser == "NS") {
		document.write('<LINK REL=stylesheet TYPE=text/css HREF=/TR/module/CSS/global_ns.css>')
	}
}
setStyle()
	*/
//Main Menu RollOver
function ImgPreLoad(imgTitle, imageNum) {
		imageNum++;
		rollOver = new Array(imageNum);
		rollOut = new Array(imageNum);
		for (j = 1; j <= imageNum; j++) {
			if (j < 10) {
				retmp = "_0";
			} else {
				retmp ="_";
			}
			rollOver[j] = new Image();
			rollOver[j].src = imgTitle + retmp + j + "_on.gif";
			rollOut[j] = new Image();
			rollOut[j].src = imgTitle + retmp + j + "_off.gif";
		}
	}

	function imgOver(Number) {
		if (rollOver[Number] != null) {
			document["w"+Number].src = rollOver[Number].src;
		}
	}

	function imgOut(Number) {
		if (rollOver[Number] != null) {
			if (Number != _MCurrentOn) {
				document["w"+Number].src = rollOut[Number].src;
			}
		}
	}

		function go_link(frmJump) {
		    var myindex=frmJump.cmbSel.selectedIndex
		    if (frmJump.cmbSel.options[myindex].value != null) {
					document.location.href = frmJump.cmbSel.options[myindex].value;
		    }
		}
// New Window
		function go_link2(frmJump) {
		    var myindex=frmJump.cmbSel.selectedIndex
		    if (frmJump.cmbSel.options[myindex].value != null) {
					window.open(frmJump.cmbSel.options[myindex].value);
		    }
			else {
			document.location.href = frmJump.cmbSel.options[myindex].value;
			}
		}

	function popup(Fn, X, Y, Scroll){
l = (screen.width) ?	(screen.width-550) / 2	: 0;
	t = (screen.height) ?	(screen.height-400) / 2 : 0;
	NewWindow=window.open(Fn,'newwindow','width='+X+',height='+Y+',top='+t+',left='+l+',scrollbars='+Scroll+',toolbar=no,location=no,directories=no,status=no,resizable=no,menubar=no');
}


function QuickTour() {
window.open('/he/aboutsamsung/at_a_glance/at_a_glance.htm', 'quick', 'width='+780+',height='+520+',scrollbars=no, marginwidth=0, marginheight=0, border=0');
}

function History_samsung() {
window.open('/he/aboutsamsung/history/history_e.htm', 'quick', 'width='+760+',height='+389+',scrollbars=no, marginwidth=0, marginheight=0, border=0');
}

function History_SECHallTour() {
window.open('/he/aboutsamsung/history/hall_tour.htm', 'quick', 'width='+560+',height='+700+',scrollbars=no, marginwidth=0, marginheight=0, border=0');
}

function ContactUs(){
window.open('/he/contactus/contactus.htm','new','scrollbars=yes,resizable=no,toolbar=no,location=no,directories=no,status=no,resizable=no,menubar=no, width=580,height=640');
}

function ChangeLang(a) {
	if (a == "toC") {
		document.toChinese.submit();
	} else if (a == "toE") {
		document.toEnglish.submit();
	}
}
//Flash function
function WriteSwf(img,wsize,hsize){
	document.write("<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0\" width=\""+wsize+"\" height=\""+hsize+"\">");
    document.write("<param name=\"movie\" value=\""+img+"\">");
    document.write("<param name=\"quality\" value=\"high\">");
    document.write("<param name=\"wmode\" value=\"transparent\">");
    document.write("<embed src=\""+img+"\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\""+wsize+"\" height=\""+hsize+"\"></embed>");
	document.write("</object>");
}