// title
document.title="CJ E&M Pictures";
var pub ="/eng";
var XMLpath =pub+"/inc/flash/";
Home=pub+"/index.asp";
home=pub+"/index.asp";
kor="http://www.cjent.co.kr";
sitemap=pub+"";


about=pub+"/about/profile.asp";
	about01=pub+"/about/profile.asp";
	about02=pub+"/about/history.asp";
	about03=pub+"/about/business.asp";
	about04=pub+"/about/division.asp";
	
lineup=pub+"/lineup/lineup.asp";

newsletter=pub+"/newsletter/newsletter.asp";

contactus="javascript:popup('/eng/etc/contactus.asp','contact',400,330,'no')";

function GoUrl(name, win) {

	if (name == null) {
			alert("Ready");
			return;	
	} else {
		if (win == null) {
			if(name.indexOf("(") != -1) 	eval(name);
			else									document.location.href = eval(name);
		} else {
				window.open(eval(name), win);
		}
	}
}
//--------------------------------------------------------------

function doLogout(){
	document.logoutForm.URL.value = escape(window.location);
	document.logoutForm.submit();
}
function naviSearch(searchParam){
	window.location.href("/help/search.asp?SearchType=0&SearchField=ALL&SearchText="+searchParam);
}
//1Depth Menu rollOn 
function ImgPreLoad(imgTitle, imageNum) {
		imageNum++;
		rollOn = new Array(imageNum);
		rollOff = new Array(imageNum);
		for (j = 1; j <= imageNum; j++) {
			if (j < 10) {
				tmp = "0";
			} else {
				tmp ="";
			}
			rollOn[j] = new Image();
			rollOn[j].src = imgTitle + tmp + j + "_on.gif";
			rollOff[j] = new Image();
			rollOff[j].src = imgTitle + tmp + j + ".gif";
		}
	}
	function imgOn(Num) {
    if (rollOn[Num] != null) {	
				document["M"+Num].src = rollOn[Num].src;
		}
	}
	function imgOff(Num) {
		if (rollOn[Num] != null) {
			if (Num != _MCurrentOn) {
				document["M"+Num].src = rollOff[Num].src;
			}
      else {  
      document["M"+Num].src = rollOn[Num].src;
      }
	}
}

function PreImgLoad(Title, imgNum) {
		imgNum++;
		rollOver = new Array(imgNum);
		rollOut = new Array(imgNum);
		for (i = 1; i <= imgNum; i++) {
			if (i < 10) {
				tmp = "0";
			} else {
				tmp ="";
			}
			rollOver[i] = new Image();
			rollOver[i].src = Title + tmp + i + "_on.gif";
			rollOut[i] = new Image();
			rollOut[i].src = Title + tmp + i + ".gif";
		}
	}
	function imgOver(Num) {
    if (rollOver[Num] != null) {	
				document["T"+Num].src = rollOver[Num].src;
		}
	}
	function imgOut(Num) {
		if (rollOver[Num] != null) {
			if (Num != _TCurrentOn) {
				document["T"+Num].src = rollOut[Num].src;
			}
      else {  
      document["T"+Num].src = rollOver[Num].src;
    		 }
		}
	}
	
	
function BodyOnLoad(fkey) {
	if (fkey == null ) { 
	imgOff(_MCurrentOn);
	}
	else if (fkey == "1" ) { 
	imgOff(_MCurrentOn);
	imgOut(_TCurrentOn);
	}
}
	

