var hosturl = "http://www.dipts.com";
var thisurl = document.URL;
//document.write(thisurl);
Domain = thisurl.split("//");
checkurl = Domain[1].substr(0, Domain[1].indexOf("/"));


document.write("<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.0 Transitional//EN'>");
document.write("<HTML>");
document.write("<HEAD>");
document.write("<TITLE>¼ÒºñÀÚ°¡ º¸´Â °æÁ¦´º½º Åë½Å»ç : DIPÅë½Å</TITLE>");
document.write("<meta http-equiv='content-Type' content='text/html; charset=euc-kr'>");
document.write("<meta name='Generator' content=''>");
document.write("<meta name='Author' content=''>");
document.write("<meta name='keywords' content='DIPÅë½Å,DIP´º½º,DIPTS,DIP NEWS,´º½º,°æÁ¦,ÀçÅ×Å©,Àç¹«¼³°è,°Ç¼³,ºÎµ¿»ê,½ºÅ¸,ÀÎÅÍºä,Å½¹æ,À¯Åë,¹°·ù,½ÅÁ¦Ç°,±¸¸Å¸®ºä,Ç°Æò'>");
document.write("<meta name='Description' content=''>");
//document.write("<meta http-equiv='Cache-Control' content='no-cache'>");
//document.write("<meta http-equiv='Pragma' content='no-cache'>");

document.write("<SCRIPT type='text/javascript' language='javascript' src='"+hosturl+"/_js/common_20100112.js'></script>");
document.write("<SCRIPT type='text/javascript' language='javascript' src='"+hosturl+"/_js/common_check.js'></script>");
document.write("<script type='text/javascript' language='JavaScript' src='"+hosturl+"/_js/common_search.js'></script>  ");
document.write("<link rel='stylesheet' type='text/css' href='"+hosturl+"/_css/style.css'>");


// block 1
document.write("<table width='948' border='0' cellpadding='0' cellspacing='0' valign='top' align='center'><tr><td style='padding:3 0 0 0'>");
document.write("<table width='100%' border='0' cellpadding='0' cellspacing='0' valign=top>");
document.write("	<tr>");
document.write("		<td >");
document.write("			<a href='javascript:starthome();' class='a27 p11'>DIP¸¦ ½ÃÀÛÆäÀÌÁö·Î</a>");
document.write("			 <img src='"+hosturl+"/icon/l.gif' hspace='2' border='0'/>");
document.write("			 <a href='javascript:addbookmark();' class='a27 p11'>Áñ°ÜÃ£±â</a>");
document.write("		</td>");
document.write("		<td align=right>");

//document.write(""+document.cookie+"");
function getCookie(Name) {
	var search = Name + "=";
	if (document.cookie.length > 0) {                 
		offset = document.cookie.indexOf(search);
		if (offset != -1){
			offset += search.length;
			end = document.cookie.indexOf(";", offset);   
			if (end == -1) {
				end = document.cookie.length;
			}
			return unescape(document.cookie.substring(offset, end));
		} else {
			return false;
		}
	}
}



/*
if (getCookie('dip_login') != false) {	
	document.write("		 " + getCookie('dip_login') + "´Ô È¯¿µÇÕ´Ï´Ù. ");
	document.write("		 <img src='"+hosturl+"/icon/l.gif' hspace=2 /> ");
	document.write("		 <a href='"+hosturl+"/member/mypage.php' target='_top' class='a24 p11'>¸¶ÀÌÆäÀÌÁö</a> ");
	document.write("		 <img src='"+hosturl+"/icon/l.gif' hspace=2 /> ");
	document.write("		 <a href='"+hosturl+"/center/' target='_top' class='a24 p11'>°í°´¼¾Å¸</a> ");
	document.write("		 <img src='"+hosturl+"/icon/l.gif' hspace=2 /> ");
	document.write("		 <a href='"+hosturl+"/login/Logout.php' class='a29 p11'><u>·Î±×¾Æ¿ô</u></a>");
} else {
	document.write("		 <a href='"+hosturl+"/login/Login.php?return_page=http://"+checkurl+"' class='a24 p11'>·Î±×ÀÎ</a> ");
	document.write("		 <img src='"+hosturl+"/icon/l.gif' hspace=2 /> ");
	document.write("		 <a href='"+hosturl+"/member/member_new_step_1.php' target='_top' class='a24 p11'>È¸¿ø°¡ÀÔ</a> ");
	document.write("		 <img src='"+hosturl+"/icon/l.gif' hspace=2 /> ");
	document.write("		 <a href='"+hosturl+"/member/mypage_help.php?mode=search_id' target='_top' class='a24 p11'>¾ÆÀÌµðÃ£±â</a> ");
	document.write("		 <img src='"+hosturl+"/icon/l.gif' hspace=2 /> ");
	document.write("		 <a href='"+hosturl+"/center/' target='_top' class='a24 p11'>°í°´¼¾Å¸</a> ");
}
*/
document.write("		</td>");
document.write("	</tr>");
document.write("</table>");

// block 2
document.write("<table width='100%' height='5' border='0' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>");
document.write("<table width='100%' height='46' border='0' cellpadding='0' cellspacing='0'>");
document.write("	<tr>");
document.write("		<td width=120 style='padding: 0 0 10 0;' align=left><a href='"+hosturl+"/'><img src='"+hosturl+"/images/logo_site.jpg' border='0'></a></td>");
document.write("	<td width=159 style='padding: 0 0 10 0;'>"); //180-21

if(checkurl == "flash.dipts.com") {
	document.write("<a href='http://"+checkurl+"/'><img src='"+hosturl+"/images/logo_flash.jpg' width=120 height=46 /></a>");
}
if(checkurl == "fortune.dipts.com") {
	document.write("<a href='http://"+checkurl+"/'><img src='"+hosturl+"/images/logo_fortune.jpg' width=120 height=46 /></a>");
}
if(checkurl == "ucc.dipts.com") {
	document.write("<a href='http://"+checkurl+"/'><img src='"+hosturl+"/images/logo_ucc.jpg' width=120 height=46 /></a>");
}
document.write("	&nbsp;</td>");
document.write("		<td width=390 style='padding: 0 0 10 0;' align=center>");
document.write("			<table border='0' cellspacing='5' cellpadding='0'>");
document.write("				<form action='"+hosturl+"/search/search.php' name='Src_main' method='post' onSubmit='SrcForm_main(); return false;'>");
document.write("				<tr>");
document.write("					<td>");
document.write("						<fieldset style='border:5 solid #9BC617;padding:2 2 2 2;background:#FFFFFF; width:310'>");
document.write("						<input name='keyword' type='text' class='input0' style='width:300;height:22;border:0 soild #FFFFFF;color:#004B8C;font-size:14px;font-weight: bold;text-align:left;padding: 3 7 0 7;ime-mode:active;'  maxlength='30'>");
document.write("						</fieldset>");
document.write("					</td>");
document.write("					<td><input type='image'  src='"+hosturl+"/icon/btn/_search_top.jpg' border='0'></td>");
document.write("				</tr>");
document.write("				</form>");
document.write("			</table>");
document.write("		</td>");
document.write("		<td width=279 style='padding: 0 0 0 0;' align=right>"); //180-21
document.write("			<iframe src='"+hosturl+"/iframe_top1.php' width='250' height='60' frameborder='no' scrolling='no' leftmargin='0' topmargin='0' marginwidth='0' ></iframe>");
document.write("		</td>");
document.write("	</tr>");
document.write("</table>");
document.write("<table width='100%' height='5' border='0' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>");

// block 3
document.write("<table width='100%' height='24' border='0' cellpadding='0' cellspacing='0'>");
document.write("	<tr>");
document.write("		<td background='"+hosturl+"/images/top/topmenu_bg.gif' width='609' style='padding: 0 0 0 0;' valign='top'>");
document.write("				<iframe src='"+hosturl+"/iframe_top2.php' width='609' height='21' frameborder='no' scrolling='no' leftmargin='0' topmargin='0' marginwidth='0' ></iframe>"); //180-21
document.write("		</td>");
document.write("		<td background='"+hosturl+"/images/top/topmenu_bg.gif' width='360' valign='bottom' style='padding: 0 0 0 0;' align=right>");


function topmenu_tab(n) {
	for(var i = 1; i <= 6; i++) {
		ImgChange = document.getElementById('topmenu_'+i);
		if (i == n) {
			ImgChange.src = hosturl+'/images/top/topmenu_'+i+'_on.gif';
		} else {
			ImgChange.src = hosturl+'/images/top/topmenu_'+i+'_off.gif';
		}
	}
}

document.write("			<table border='0' cellpadding='0' cellspacing='0'>");
document.write("				<tr>");
document.write("					<td><a href='"+hosturl+"/news/'><img src='"+hosturl+"/images/top/topmenu_1_off.gif' onmouseover=\"this.src='"+hosturl+"/images/top/topmenu_1_on.gif'\"	onmouseout=\"this.src='"+hosturl+"/images/top/topmenu_1_off.gif'\"/></a></td>");
//document.write("					<td width=10 align=center><img src='"+hosturl+"/images/top/topmenu_dot.gif'/></td>");
//document.write("					<td><a href='http://estate.dipts.com/' target='_blank'><img src='"+hosturl+"/images/top/topmenu_2_off.gif' id='topmenu_2' onmouseover='topmenu_tab(2);' onmouseout='topmenu_tab();'/></a></td>");
document.write("					<td width=10 align=center><img src='"+hosturl+"/images/top/topmenu_dot.gif'/></td>");
document.write("					<td><a href='http://flash.dipts.com/'><img src='"+hosturl+"/images/top/topmenu_3_off.gif' onmouseover=\"this.src='"+hosturl+"/images/top/topmenu_3_on.gif'\"	onmouseout=\"this.src='"+hosturl+"/images/top/topmenu_3_off.gif'\"/></a></td>");
document.write("					<td width=10 align=center><img src='"+hosturl+"/images/top/topmenu_dot.gif'/></td>");
document.write("					<td><a href='http://fortune.dipts.com/'><img src='"+hosturl+"/images/top/topmenu_4_off.gif' onmouseover=\"this.src='"+hosturl+"/images/top/topmenu_4_on.gif'\"	onmouseout=\"this.src='"+hosturl+"/images/top/topmenu_4_off.gif'\"/></a></td>");
document.write("					<td width=10 align=center><img src='"+hosturl+"/images/top/topmenu_dot.gif'/></td>");
document.write("					<td><a href='http://ucc.dipts.com/'><img src='"+hosturl+"/images/top/topmenu_5_off.gif' onmouseover=\"this.src='"+hosturl+"/images/top/topmenu_5_on.gif'\"	onmouseout=\"this.src='"+hosturl+"/images/top/topmenu_5_off.gif'\"/></a></td>");
document.write("					<td width=10 align=center><img src='"+hosturl+"/images/top/topmenu_dot.gif'/></td>");
document.write("					<td><a href='http://www.replshow.com/' target='_blank'><img src='"+hosturl+"/images/top/topmenu_6_off.gif' onmouseover=\"this.src='"+hosturl+"/images/top/topmenu_6_on.gif'\"	onmouseout=\"this.src='"+hosturl+"/images/top/topmenu_6_off.gif'\"/></a></td>");
document.write("				</tr>");
document.write("			</table>");
document.write("		</td>");
document.write("	</tr>");
document.write("</table>");
