// JavaScript Document

function _url(pagenum){
	switch(pagenum){
		case "0000":
			location.href = "/";
			break;
		case "0001":
			location.href = "/";
			break;
		case "0002":
			location.href = "/sitemap/sitemap.php";
			break;
		case "0003":
			location.href = "/customer/qna.php";
			break;
		case "0004":
			location.href = "javascript:Popup_view('/employment/employment.php','recruit','500','700','100','20','1');";
			break;
		case "0005":
			location.href = "/login/login.php";
			break;
			
		case "0101":
			location.href = "/company/history.php";
			break;
		case "0102":
			location.href = "/company/vision.php";
			break;
		case "0103":
			location.href = "/company/organization.php";
			break;
		case "0104":
			location.href = "/company/business.php";
			break;
		case "0105":
			location.href = "/company/solution.php";
			break;
		case "0106":
			location.href = "/company/map.php";
			break;
			
		case "0201":
			location.href = "/info/necessity.php";
			break;
		case "0202":
			location.href = "/info/process.php";
			break;
			
		case "0301":
			location.href = "/portfolio/web.php";
			break;
		case "0302":
			location.href = "/portfolio/flash.php";
			break;
		case "0303":
			location.href = "/portfolio/game.php";
			break;
			
		case "0401":
			location.href = "/application/consultaion.php";
			break;
		case "0402":
			location.href = "/application/maintenance.php";
			break;
		case "0403":
			location.href = "/application/project.php";
			break;
			
		case "0501":
			location.href = "/customer/notice.php"; //"/sub_game/game_main.php";
			break;
		case "0502":
			location.href = "/customer/qna.php"; //"/sub_game/game_main.php";
			break;
			
		default:
			location.href = "javascript:Popup_view('/template/template.php','temp','1017','700','100','20','1');"; //"/sub_game/game_main.php";
	}
}
/*
function popupConsultation(mode){
	if(mode == "show"){
		document.all.speed_con.style.display = '';
		if(!arguments[1]){
			if(document.body.clientWidth > 1000){
				document.all.speed_con.style.left = document.body.clientWidth/2 -300;
			}else{
				document.all.speed_con.style.left = 200;
			}
		}else{
			if(document.body.clientWidth > 1000){
				document.all.speed_con.style.left = document.body.clientWidth/2 -100;				
			}else{
				document.all.speed_con.style.left = 450;
			}
		}
	}else{
		document.all.speed_con.style.display = 'none';
	}
}
*/
function setPng24(obj) {
        obj.width=obj.height=1;
        obj.className=obj.className.replace(/\bpng24\b/i,'');
        obj.style.filter =
        "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+ obj.src +"',sizingMethod='image');"
        obj.src='';
        return '';
    }
