//¿À¸¥ÂÊ ¸¶¿ì½º ¹öÆ° ±ÝÁö
function right(e){
	if( navigator.appName == 'Netscape' && (e.which == 3 || e.which == 2)){
		return false;
	} else if( navigator.appName == 'Microsoft Internet Explorer' && (event.button == 2 || event.button == 3 )){
		alert("¿À¸¥ÂÊ ¸¶¿ì½º ¹öÆ°Àº »ç¿ë ¸øÇÕ´Ï´Ù");
		return false;
	}
	
		return true;
	}
	document.onmousedown = right;
	
	if( document.layers){
		window.captureEvents(Event.MOUSEDOWN);
		window.onmousedown = right;
	}
document.title = "Çàº¹ÀÌ °¡µæÇÑ À¥¸Å°ÅÁø_Å©·¹¿ùµå";
//ROOT_URL
var absoluted_link = "/200802";

home=absoluted_link+"/main.jsp";
sitemap=absoluted_link+"/etc/sitemap.jsp";

//INTRO
intro=absoluted_link+"/intro/art_story.jsp";
intro01=absoluted_link+"/intro/art_story.jsp";
intro02=absoluted_link+"/intro/gamzadori.jsp";
intro03=absoluted_link+"/intro/open_blog.jsp";
intro04=absoluted_link+"/intro/news_list.jsp";
//LIFE
life=absoluted_link+"/life/travel_trip.jsp";
life01=absoluted_link+"/life/travel_trip.jsp";
life02=absoluted_link+"/life/off_design.jsp";
life03=absoluted_link+"/life/relax_space.jsp";
life04=absoluted_link+"/life/cheerful_human.jsp";
life05=absoluted_link+"/life/love_fund.jsp";
//STORY
story=absoluted_link+"/story/card_plus.jsp";
story01=absoluted_link+"/story/card_plus.jsp";
story02=absoluted_link+"/story/trend_reader.jsp";
story03=absoluted_link+"/story/taste_street.jsp";
story04=absoluted_link+"/story/brand_zone.jsp";
//FUNNY
funny=absoluted_link+"/funny/daily_gem.jsp";
funny01=absoluted_link+"/funny/daily_gem.jsp";
funny02=absoluted_link+"/funny/book_chat.jsp";
funny03=absoluted_link+"/funny/perform_talk.jsp";
funny04=absoluted_link+"/funny/movie_talk.jsp";
//ENJOY
enjoy=absoluted_link+"/enjoy/blank_event.jsp";
enjoy01=absoluted_link+"/enjoy/blank_event.jsp";
enjoy02=absoluted_link+"/enjoy/answer_oneline.jsp";
enjoy03=absoluted_link+"/enjoy/reply_world.jsp";
enjoy04="";
//enjoy04=absoluted_link+"/enjoy/game_zone.jsp";
enjoy05="";
//enjoy04=absoluted_link+"/enjoy/photo_story.jsp";
//»çÀÌ¹öÈ«º¸½Ç 
pr=absoluted_link+"/pr/tv_ad.jsp";
pr01=absoluted_link+"/pr/tv_ad.jsp";
pr02=absoluted_link+"/pr/printing_ad.jsp";
pr03=absoluted_link+"/pr/ecard.jsp";
pr04=absoluted_link+"/pr/news_list.jsp";



function GoUrl(name, mode) {
	if (eval(name) == '') {
		alert("¼­ºñ½ºÁØºñÁßÀÔ´Ï´Ù.");
		return;	
	} else {
		if (!mode) {
    		document.location.href = eval(name);
		}
	}	
}
//--------------------------------------------------------------
//Ã¢Å©±âÁ¶Àý
function OutWindow_resizeTo(width,height){
	window.resizeTo(width, height); 
	width = width - (document.body.clientWidth -  width);
	height = height - (document.body.clientHeight -  height); 
	window.resizeTo(width, height); 
}
//½ºÅ©·Ñ¹Ù¾ø¾Ö±â
function hidden() {document.body.style.overflow='hidden';}
	
function BodyOnLoad() {
	//hidden();
	//imgOn(_MCurrentOn);
	//OutWindow_resizeTo(1012,695);
}
//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 + "_off.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 mouseOut(f){
	if (!f.childNodes[0].childNodes[0].checked) f.className='';
	else f.className='';
}
function mouseOver(f){
	if (f.childNodes[0].childNodes[0].checked){
		f.className='board-over';
	}else {
		f.className='board-over';
	}
}
function mouseOut2(f){
	if (!f.childNodes[0].childNodes[0].checked) f.className='';
	else f.className='';
}
function mouseOver2(f){
	if (f.childNodes[0].childNodes[0].checked){
		f.className='board-over2';
	}else {
		f.className='board-over2';
	}
}
//--------------------------------------------------------------
function newsletterOpen(){ /*--Å©·¹¿ùµå±¸µ¶½ÅÃ»--*/
	window.open(''+absoluted_link+'/etc/newsletter.jsp','','scrolls=no.resizable=no,width=350,height=226');
}
//--------------------------------------------------------------
//TopFlash
function top(){
document.writeln("<div id='bgt'>");
document.writeln("<table cellpadding='0' cellspacing='0' width='992'>");
document.writeln("<tr><td height='120'><script language='JavaScript'>TopMenu();</script></td></tr>");
//document.writeln("<tr><td height='102'><img src='"+absoluted_link+"/image/common/topnavi.gif' WIDTH='992' HEIGHT='102' alt='' usemap='#top'></td></tr>");
document.writeln("</table>");
document.writeln("<map name='top'>");
document.writeln("<area shape='rect' coords='167,25,323,80' alt='creworld' href=javascript:GoUrl('home');>");
document.writeln("<area shape='rect' coords='323,25,454,80' alt='Intro' href=javascript:GoUrl('intro');>");
document.writeln("<area shape='rect' coords='454,25,585,80' alt='Life' href=javascript:GoUrl('life');>");
document.writeln("<area shape='rect' coords='585,25,716,80' alt='Story' href=javascript:GoUrl('story');>");
document.writeln("<area shape='rect' coords='716,25,847,80' alt='Funny' href=javascript:GoUrl('funny');>");
document.writeln("<area shape='rect' coords='847,25,992,80' alt='Enjoy' href=javascript:GoUrl('enjoy');>");
document.writeln("</map>");
document.writeln("</div>");
document.writeln("<div id='bgm'>");
}
//--------------------------------------------------------------
//Åõ¸í·¹ÀÌ¾î
function FiterLayer(fkey){
document.writeln("<div style='position:absolute; top:630px;left:10px;display:;'>");
if (fkey == 6){/*»çÀÌ¹öÈ«º¸*/
ImgPreLoad('/200702/image/pr/menu',5);	
document.writeln("<table cellpadding='0' cellspacing='0' width='972' class='pr-filter'>");
document.writeln("<tr>");
document.writeln("	<td width='20'><img src='"+absoluted_link+"/image/common/filter_bl.gif' width='20' height='34' alt=''></td>");
document.writeln("	<td width='932' height='34'>");
document.writeln("		<table cellpadding='0' cellspacing='0'>");
document.writeln("		<tr>");
document.writeln("			<td><a href=javascript:GoUrl('pr01'); onmouseover=imgOn('1'); onmouseout=imgOff('1')><img src='"+absoluted_link+"/image/pr/menu01_"+(_MCurrentOn==1 ? "on": "off")+".gif' width='64' height='34' alt='TV±¤°í' name='M1'></a></td>");
document.writeln("			<td><a href=javascript:GoUrl('pr02'); onmouseover=imgOn('2'); onmouseout=imgOff('2')><img src='"+absoluted_link+"/image/pr/menu02_"+(_MCurrentOn==2 ? "on": "off")+".gif' width='80' height='34' alt='ÀÎ¼â±¤°í' name='M2'></a></td>");
document.writeln("			<td><a href=javascript:GoUrl('pr03'); onmouseover=imgOn('3'); onmouseout=imgOff('3')><img src='"+absoluted_link+"/image/pr/menu03_"+(_MCurrentOn==3 ? "on": "off")+".gif' width='80' height='34' alt='e_card' name='M3'></a></td>");
//document.writeln("			<td><a href=javascript:GoUrl('pr04'); onmouseover=imgOn('4'); onmouseout=imgOff('4')><img src='"+absoluted_link+"/image/pr/menu04_"+(_MCurrentOn==4 ? "on": "off")+".gif' width='70' height='34' alt='News' name='M4'></a></td>");
document.writeln("		</tr>");
document.writeln("		</table>");
document.writeln("	</td>");
document.writeln("	<td width='20'><img src='"+absoluted_link+"/image/common/filter_br.gif' width='20' height='34' alt=''></td>");
document.writeln("</tr>");
document.writeln("</table>");
}
document.writeln("</div>");
}
//--------------------------------------------------------------
//SEARCH
function searchOk1(){		
	document.searchForm1.submit();
}

//BOTTOM
function bottom(fkey){
if (fkey == null){
document.writeln("</div>");
document.writeln("<div id='bgb'>");
}
document.writeln("<table cellpadding='0' cellspacing='0' width='992'>");
document.writeln("<tr style='padding-top:14px;' valign='top'>");
document.writeln("	<td width='440' height='50' style='padding-left:30px;'><img src='"+absoluted_link+"/image/common/copyright.gif' width='350' height='22' alt=''></td>");
document.writeln("	<td width='192' align='right'><!--<a href=javascript:GoUrl('pr');><img src='"+absoluted_link+"/image/common/go_brand_square.gif' width='74' height='18' alt='' align='absmiddle' style='margin:2,5,2,0;'></a>--><a href='javascript:newsletterOpen();'><img src='"+absoluted_link+"/image/common/go_creworld_apply.gif' width='90' height='18' alt='' align='absmiddle' style='margin:2,5,2,0;'></a><!--a href='#'><img src='"+absoluted_link+"/image/common/go_privacy.gif' width='80' height='18' alt='' align='absmiddle'></a><a href='#'><img src='"+absoluted_link+"/image/common/go_agreement.gif' width='45' height='18' alt='' align='absmiddle'></a--></td>");
document.writeln("	<td width='200'>");
document.writeln("<form name = 'searchForm1' method='post'  action = '"+absoluted_link+"/etc/search.jsp' >");
document.writeln("	<select name= searchPart style='width:60px;'>");
document.writeln("		<option value='title'>Á¦¸ñ</option>");
document.writeln("		<option value='summary'>º»¹®</option>");
document.writeln("	</select>");
document.writeln("	<input type='text' name=searchStr1 class='input-search'><a href='javascript:searchOk1()'><img src='"+absoluted_link+"/image/button/btn_search.gif' alt='' align='absmiddle' style='margin:0,6,0,4;'></a>");
document.writeln("</form>");
document.writeln("	</td>");
document.writeln("	<td width='160'>");
document.writeln("		<script>SelectVolume();</script>");
document.writeln("	</td>");
document.writeln("</tr>");
document.writeln("</table>");
if (fkey == null){
document.writeln("</div>");
}
}
//--------------------------------------------------------------

//TV_AD_MEDIA___
function tv_adplay(file,w,h,mediaName) {
document.write('<object id="'+mediaName+'" name=id="'+mediaName+'" width='+w+' height='+h+' classid="CLSID:22D6f312-B0F6-11D0-94AB-0080C74C7E95" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,05,0809" standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject" VIEWASTEXT>')
document.write('<param name="transparentAtStart" value="True">')
document.write('<param name="transparentAtStop" value="False">')
document.write('<param name="AnimationAtStart" value="0">')
document.write('<param name="Loop" value="true">')
document.write('<param name="AutoStart" value="0">')
document.write('<param name="AutoRewind" value="true">')
document.write('<param name="SendMouseClickEvents" value="True">')
document.write('<param name="DisplaySize" value="0">')
document.write('<param name="AutoSize" value="False">')
document.write('<param name="ShowDisplay" value="False">')
document.write('<param name="ShowControls" value="False">')
document.write('<param name="ShowTracker" value="True">')
document.write('<param name="FileName" value="'+file+'">')
document.write('<param name="Enabled" value="1">')
document.write('<param name="EnableContextMenu" value="1">')
document.write('<param name="EnablePositionControls" value="1">')
document.write('<param name="EnableFullScreenControls" value="1">')
document.write('<param name="ShowPositionControls" value="1">')
document.write('<param name="Mute" value="0">')
document.write('<param name="Rate" value="1">')
document.write('<param name="SAMILang" value="">')
document.write('<param name="SAMIStyle" value="">')
document.write('<param name="SAMIFileName" value="">')
document.write('<param name="ClickToPlay" value="0">')
document.write('<param name="CursorType" value="1">')
document.write('<embed src="'+file+'"   id="'+mediaName+'" Loop=true  quality=high menu="false" bgcolor=#FFFFFF  WIDTH="'+w+'" HEIGHT="'+h+'" autoplay=true controller=true loop=false type="application/x-oleobject"></embed></object>')
} 
