var pub='http://www.dms-co.com';
var cis='';
home =pub+"/index.asp";

english =pub+"/en/default.asp";
cs =cis+"/etc/singo_write.jsp";

// 
intro=pub+"/corp/about.asp"; 
	intro01=pub+"/corp/about.asp";
	intro02=pub+"/corp/ci.asp";	
	intro03=pub+"/corp/news.asp";	
		intro031=pub+"/intro/facilities01.html";	
		intro032=pub+"/intro/facilities02.html";	
		intro033=pub+"/intro/facilities03.html";	
		intro034=pub+"/intro/facilities04.html";	
	intro04=pub+"/corp/news.asp";	
		intro041=pub+"/intro/view01.html";	
		intro042=pub+"/intro/view02.html";	
		intro043=cis+"/intro/reserve_list.jsp";		

//
cyber=pub+"/product/product_list.asp?catalogid=2";	
	cyber01=pub+"/product/product_list.asp?catalogid=2";	
	cyber011=pub+"/cyber/tour_inner.html";	
	cyber012=pub+"/cyber/tour_outside.html";	
	cyber02=pub+"/product/product_list.asp?catalogid=3";	
	cyber021=pub+"/cyber/media_data.html";	
	cyber022=pub+"/cyber/magic_vision.html";	
	cyber03=pub+"/product/product_list.asp?catalogid=4";	
	cyber04=pub+"/product/product_list.asp?catalogid=5";

//
pr=pub+"/order/orderonline.asp";
	pr01=pub+"/order/orderonline.asp";
	pr02=pub+"/order/pay.asp";
	  pr021=pub+"/pr/pr02_1.html";
	  pr022=pub+"/pr/pr02_2.html";
	  pr023=pub+"/pr/pr02_3.html";
	pr03=pub+"/pr/pr03_1.html";
	  pr031=pub+"/pr/pr03_1.html";
	  pr032=pub+"/pr/pr03_2.html";
	  pr033=pub+"/pr/pr03_3.html";
	  pr034=pub+"/pr/pr03_4.html";
	  pr035=pub+"/pr/pr03_5.html";
	pr04=pub+"/pr/pr04_1.html";
	  pr041=pub+"/pr/pr04_1.html";
	  pr042=pub+"/pr/pr04_2.html";
	
//
exhibition=pub+"/service/csonline.asp"; 
	exhibition01=pub+"/service/csonline.asp";
	exhibition02=pub+"/service/down.asp";	
	exhibition03=cis+"/exhibition/qna_list.jsp";	
	exhibition04=cis+"/exhibition/after_list.jsp";


//
contact=pub+"/contact/contact.asp"; 
   contact01=pub+"/contact/contact.asp"; 
   contact02=pub+"/contact/recruit.asp"; 
   
//
quickPro=pub+"/product/product_list.asp";
   quickpro01=pub+"/product/product_list.asp?catalogid=2";
   quickpro02=pub+"/product/product_list.asp?catalogid=3";
   quickpro03=pub+"/product/product_list.asp?catalogid=4&type_id=54";
   quickpro04=pub+"/product/product_list.asp?catalogid=4&type_id=55";
	
function GoUrl(name, mode) {
	if (eval(name) == '') {
		alert("wrrong");
		return;	
	} else {
		if (!mode) {
    		document.location.href = eval(name);
		}
	}	
}	

// Menu
function GoMenu(name, mode) {
  if (eval(name) == '') {
		alert("Content comming soon.");
		return;
	} else {
    if (!mode) {
    		document.location.href = eval(name);
    } else {
			var values = mode.split('|');
			if(values.length == 2) {
				window.open(eval(name), '', 'width='+eval(values[0])+',height='+eval(values[1]));
			} else if(values.length > 2) {
				window.open(eval(name), '', 'width='+eval(values[0])+',height='+eval(values[1])+","+values[2]);
			} else {
    		window.open(eval(name), '');
			}
  	}
	}
}

//----------------------  S -------------------------------// 
function Top(){
document.writeln("<table border='0' cellpadding='0' cellspacing='0' width='100%'>")
//document.writeln("<tr>")
//document.writeln("	<td background='"+pub+"/img/common/top_bg.jpg'><img src='"+pub+"/library/flash/top_navi.gif' width='706' height='142' alt='' border='0' usemap='#top_navi'></td>")
//document.writeln("</tr>")
document.writeln("<tr>")
document.writeln("	<td background='"+pub+"/img/common/top_bg.jpg'>")
document.writeln("	<OBJECT classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0' WIDTH='706' HEIGHT='142'>")
document.writeln("	<PARAM NAME=movie VALUE='"+pub+"/library/flash/top_navi.swf?xmlurl="+pub+"/library/flash/flash_url.xml&depth01="+OneDepth+"&depth02="+TwoDepth+"'> ");
document.writeln("	<PARAM NAME=quality VALUE=high>")
document.writeln("	<PARAM NAME=menu VALUE=false>")
document.writeln("	<PARAM NAME=wmode VALUE=transparent>")
document.writeln("	<EMBED src='"+pub+"/library/flash/top_navi.swf?xmlurl="+pub+"/library/flash/flash_url.xml&depth01="+OneDepth+"&depth02="+TwoDepth+"' quality=high menu=false wmode=transparent width='706' height='142' TYPE='application/x-shockwave-flash' PLUGINSPAGE='http://www.macromedia.com/go/getflashplayer'></EMBED>")
document.writeln("	</OBJECT>")
document.writeln("	</td>")
document.writeln("</tr>")
document.writeln("</table>")
document.writeln("<map name='top_navi'>")
document.writeln("<area coords='24,40,186,64' href=javascript:GoUrl('intro')>")
document.writeln("<area coords='215,38,361,64' href=javascript:GoUrl('cyber')>")
document.writeln("<area coords='390,35,517,63' href=javascript:GoUrl('pr')>")
document.writeln("<area coords='548,39,681,64' href=javascript:GoUrl('exhibition')>")
document.writeln("<area coords='424,11,481,27' href=javascript:GoUrl('home')>")
document.writeln("<area coords='498,10,573,27' href=javascript:GoUrl('contactus')>")
document.writeln("<area coords='587,10,633,28' href='mailto:'>")
document.writeln("<area coords='650,8,706,29' href=javascript:GoUrl('sitemap)>")
document.writeln("</map>")
}

function Footer(fkey){
document.writeln("<table border='0' cellpadding='0' cellspacing='0' width='100%'>");
document.writeln("<tr><td height='30'></td></tr>");
document.writeln("<tr><td background='"+pub+"/img/common/bg_bottom.gif' height='130'></td></tr>");
document.writeln("</table>");
document.writeln("<table border='0' cellpadding='0' cellspacing='0' width='918'>");
document.writeln("<tr><td height='20'></td></tr>");
document.writeln("<tr valign='top'>");
document.writeln("	<td style='padding-left:28'><img src='"+pub+"/img/common/footer.gif' width='590' height='42' alt='' border='0' vspace='3'></td>");
document.writeln("	<td align='right'><a href=javascript:GoUrl('cs')><img src='"+pub+"/img/common/cs_service.gif' width='128' height='42' alt='' border='0' vspace='3' hspace='4'></a><a href=javascript:GoUrl('intro043')><img src='"+pub+"/img/common/online_view.gif' width='128' height='42' alt='' border='0' vspace='3'></a></td>");
document.writeln("</tr>");
document.writeln("<tr><td height='20'></td></tr>");
document.writeln("</table>");
}

function Right(){
document.writeln("<table border='0' cellpadding='0' cellspacing='0' width='100%'>");
document.writeln("<tr><td><img src='"+pub+"/img/common/right_img.gif' width='82' height='374'  border='0'></td></tr>");
document.writeln("<tr><td><img src='"+pub+"/img/common/right_bar.gif' width='15' height='250' border='0'></td></tr>");
document.writeln("</table>");
}
//---------------------- E -------------------------------// 


//
var mover = null
var object = "gotop"

if (navigator.appName.indexOf("Netscape") != -1) {
        var mover = "document.gotop.top = window.pageYOffset"
}
else {
        var mover = "gotop.style.pixelTop = document.body.scrollTop+374"
}

function check() {
        object = "gotop"
        eval(mover)
        setTimeout("check()", 100)
}
function Go_Top(){	
document.writeln("<DIV id='gotop' style='position:absolute; visibility:show; left:925px; top:0px; z-index:2'>")	
document.writeln("<a href='#top'><img src='"+pub+"/img/common/gotop.gif' width='27' height='11' alt='' border='0'></a>")
document.writeln("</DIV>")
}
				
//Popup 		
function popup(Fn,Win, X, Y, Scroll){
l = (screen.width) ?	(screen.width- X) / 2	: 0;
t = (screen.height) ?	(screen.height- Y) / 2 : 0;	
	NewWindow=window.open(Fn,Win,'width='+X+',height='+Y+',top='+t+',left='+l+',scrollbars='+Scroll+',toolbar=no,location=no,directories=no,status=no,resizable=no,menubar=no');
}

// 
function winopen(theUrl,winSize){
  window.open(theUrl,"",winSize + "status=no, resizable=no, scrollbars=no");
}

// 
function sc_winopen(theUrl,winSize){
  window.open(theUrl,"",winSize + ",height=500, status=no, resizable=no, scrollbars=yes");
}

//
function move_site(frm) {
    var myindex=frm.selectedIndex
    if (frm.options[myindex].value != null) {
				 document.location.href(frm.options[myindex].value);
    }
}


//
function ViewWMV(titnum,url){
	window.open (cis + "/pub/pop_media_wmv.jsp?tnum="+titnum+"&murl="+url,"wmv","width=400,height=455,toolbar=no,location=no,directories=no,status=no,resizable=no,menubar=no,scrollbars=no");
}

function DownWMV(filename){
	//window.open (cis + "/pub/down_mov.jsp?a_file="+filename,"wmv","width=400,height=455,toolbar=no,location=no,directories=no,status=no,resizable=no,menubar=no,scrollbars=no");
	window.frDown.location.href=pub + "/img/media/"+filename;
}
