	/*****Zoom In & Zoom Out Script*****/
	var zoomRate = 5;			// È®´ë/Ãà¼Ò½Ã Áõ°¨·ü
	var maxRate = 300;			//ÃÖ´ëÈ®´ë·ü
	var minRate = 100;			//ÃÖ¼ÒÃà¼Ò·ü
	
	GoZoom('zoom');

	function GetCookie(name){
		if (document.cookie != "") {
			zoomc = document.cookie.split("; ");
			for (var i=0; i < zoomc.length; i++) {
                zoomv = zoomc[i].split("="); 
                if (zoomv[0] == name) {
				    return  unescape(zoomv[1]);
                }
			}        
		}else{
			return "";
		}
	}

	function SetCookie(name,value){
		document.cookie = name + "=" + escape (value)+";";
	}
	
	function GoZoom(contentid){
		if(GetCookie("zoomVal"+contentid) != null && GetCookie("zoomVal"+contentid) != ""){
			document.all[contentid].style.zoom = GetCookie("zoomVal"+contentid);
			currZoom=GetCookie("zoomVal"+contentid);
		}
		else{
			document.all[contentid].style.zoom = '100%'; 
			currZoom = '100%';
		}
		
		var rate_value = document.all[contentid].style.zoom;
		rate_value = rate_value.substring(0, rate_value.indexOf("%"));
		var layer_left = 800 * (eval(rate_value) / 100);
		
		document.all["Layer1"].style.left = layer_left + 20;
		document.all["Layer2"].style.left = layer_left + 20;
	}

	//Zoom In & Zoom Out
	function zoomInOut(contentid, how) {
		var left = 0;
		if(GetCookie("zoomVal"+contentid) != null && GetCookie("zoomVal"+contentid) != ""){
			document.all[contentid].style.zoom = GetCookie("zoomVal"+contentid);
			currZoom=GetCookie("zoomVal"+contentid);
		}
		else{
			document.all[contentid].style.zoom = '100%'; 

			currZoom = '100%';
		}
		if (((how == "in") && (parseInt(currZoom) >= maxRate)) || ((how == "out") && (parseInt(currZoom) <= minRate)) ) {
			return; 
		}
		if (how == "in") {
			document.all[contentid].style.zoom = parseInt(document.all[contentid].style.zoom)+zoomRate+'%';
		}
		else {
			document.all[contentid].style.zoom = parseInt(document.all[contentid].style.zoom)-zoomRate+'%'
		}
		
		SetCookie("zoomVal"+contentid,document.all[contentid].style.zoom);
		
		var rate_value = document.all[contentid].style.zoom;
		rate_value = rate_value.substring(0, rate_value.indexOf("%"));
		var layer_left = 800 * (eval(rate_value) / 100);
		
		document.all["Layer1"].style.left = layer_left + 20;
		document.all["Layer2"].style.left = layer_left + 20;
	}

	//	+, - key event
	document.onkeypress = getKey;
	
	function getKey(keyStroke) {
		isNetscape=(document.layers);
		eventChooser = (isNetscape) ? keyStroke.which : event.keyCode;
		which = String.fromCharCode(eventChooser).toLowerCase();
		which2 = eventChooser;

		var el=event.srcElement;

		if ((el.tagName != "INPUT") && (el.tagName != "TEXTAREA"))		//input,textarea ¾È¿¡¼­ÀÇ +.-°ªÀº ½ÇÇà¾ÈµÇµµ·Ï
		{			
			if(which == "+" )
				zoomInOut('zoom', 'in');
			else if(which == "-" )
				zoomInOut('zoom', 'out');
		}
	}
	