var NN 	 = (document.layers ? true : false);
var hideName = (NN ? 'hide' : 'hidden');
var showName = (NN ? 'show' : 'visible');
var styleSwitch = (NN ? '' : '.style');
var pxSwitch = (NN ? '': 'px');
var nowLayer='null';
var mmh=0;
var mmv=0;
var hostURL='\/\/security.dlink.com.tw\/';
function QuickLink(obj){
objValue=obj.options[obj.selectedIndex].value
pc=objValue.charAt(0)
if (pc=='*'){
	Category=objValue.substring(1)
	location.href='http:'+hostURL+'product_'+Category+'.asp';
}
else{location.href='http:'+hostURL+'product_model.asp?model='+objValue}
}

function pn(){var exp=new Date();window.open('zPrint.asp?t='+exp.getTime(),'_top')}
function fw(){WinOpen('zSend.asp','zSend',460,302)}
function ad(){
	obj=document.form1
	location.href='http:'+hostURL+'asp/MyDLink_AddtoMyFavorites_save.asp?RelType='+obj.RelType.value+'&RelSno='+obj.RelSno.value;
}
function mOnly(){alert('\nPlease Login to My D-Link\n')}

function WinOpen(obj,TargetObj,w,h,z){
if (w<0){
	features='width=10,height=10,menubar=0,scrollbars=0,resizable=0,left=2400,top=2400'
	}
else	{
	edtWinWidth=w;edtWinHeight=h;
	offx=(screen.availWidth - edtWinWidth)/2;
	offy=(screen.availHeight - edtWinHeight)/2;
	if (z==null) 	{features='width='+edtWinWidth+',height='+edtWinHeight+',menubar=0,scrollbars=1,resizable=1,left='+offx+',top='+offy}
	else		{features='width='+edtWinWidth+',height='+edtWinHeight+',menubar=0,scrollbars=0,resizable=0,left='+offx+',top='+offy}
	}
window.open(obj,TargetObj,features)
}

function initPage(mmh,mmv,Page_Title_){
	x1=i1(mmh,mmv,Page_Title_);
	x2=i2();
	if (navigator.appName == "Netscape"){
		DKSU = document.getElementById("DKSU");
		DKSU.innerHTML=x1+DKSU.innerHTML+x2;
		DKSU.style.visibility=showName
		}
	else	{
		document.all['DKSU'].innerHTML=x1+document.all['DKSU'].innerHTML+x2;
		document.all['DKSU'].style.visibility = showName;
		}

}

function i1(mmh,mmv,Page_Title_){
	var x1='';
	x1=x1+"<form name=form1 method=post>"
	x1=x1+"<a name=Top id=Top></a><div id=wrapper><div id=content>"
	x1=x1+"<!-- Header -->"
	x1=x1+"<!-- begin #headertop-->"
	x1=x1+"<div id=headertop>"
		x1=x1+"<div class=ht_left></div>"
		x1=x1+"<div class=ht_right>"
			x1=x1+"<div style='float:right;'><div id=header_login><a href=http:"+hostURL+"sitemap.asp>Site Map</a></div></div>"
			if (Page_Title_!='Search Result'){
				x1=x1+"<div id=search style='float:right;'><span class=sbox_l></span><span class=sbox><input type=text name=product_search id=product_search value='Search NetDefend Center' style='color:#666666' onKeyDown='if (event.keyCode==13) {prod_search();}' onFocus=onFocus_ss(this) onBlur=onBlur_ss(this)></span><span class=sbox_r id=srch_clear></span></div>"
			}
		x1=x1+"</div>"
	x1=x1+"</div>"
	x1=x1+"<br class=clearfloat />"
	x1=x1+"<!-- end #headertop-->"

	x1=x1+"<!-- begin #header-->"
	x1=x1+"<div id=header>"
		x1=x1+"<div id=logo><a href=http://www.dlinktw.com.tw/><img src=img/logo_dlink.png alt='D-Link' style='margin:1px 0 0 0;' width=100 height=20 border=0 /></a><img src=img/logoline.gif style='margin:0 10px 0 10px;' border=0 /><a href=http:"+hostURL+"default.asp><img src=img/netdefend_logo.gif alt='NetDefend Center' style='margin:5px 0 0 0;'  border=0 /></a></div>"
	x1=x1+"<!-- begin #Top Menu-->"
	x1=x1+"<div id=nav>"
		x1=x1+"<div id=TopNav>"
			x1=x1+"<ul>"
			x1=x1+"<!--About D-Link-->"
			x1=x1+"<li class='li1 hasSub"+(mmh==1?' selected':'')+"'><a href=http:"+hostURL+"aboutdlink.asp>About D-Link</a></li>"
			x1=x1+"<!--Products-->"
			x1=x1+"<li class='li2 hasSub"+(mmh==2?' selected':'')+"'><a href=http:"+hostURL+"product.asp>Products</a>"
			x1=x1+"<div class=subnav style='width: 200px;'><div class=subnavImg></div><div class=contentWrapper><div class='content clearfix'><div class=col><ul>"
				x1=x1+"<li><a href=http:"+hostURL+"product.asp>Overview</a></li>"
				x1=x1+"<li><a href=http:"+hostURL+"product_sohoutm.asp>NetDefend SOHO UTM</a></li>"
				x1=x1+"<li><a href=http:"+hostURL+"product_firewall.asp>NetDefend IPS Firewalls</a></li>"
				x1=x1+"<li><a href=http:"+hostURL+"product_utm_firewall.asp>NetDefend UTM Firewalls</a></li>"
				x1=x1+"<li><a href=http:"+hostURL+"product_ips_s.asp>NetDefend IPS Service</a></li>"
				x1=x1+"<li><a href=http:"+hostURL+"product_antivirus_s.asp>NetDefend Anti-Virus Service</a></li>"
				x1=x1+"<li><a href=http:"+hostURL+"product_wcf.asp>NetDefend Web Content Filtering</a></li>"
			x1=x1+"</ul></div></div></div></div>"
			x1=x1+"</li>"
			x1=x1+"<!--Support-->"
			x1=x1+"<li class='li3 hasSub"+(mmh==3?' selected':'')+"'><a href=http:"+hostURL+"support.asp>Support</a>"
			x1=x1+"<div class=subnav style='width: 160px;'><div class=subnavImg></div><div class=contentWrapper><div class='content clearfix'><div class=col><ul>"
				x1=x1+"<li><a href=http:"+hostURL+"support_ds.asp>Download Software</a></li>"
				x1=x1+"<li><a href=http:"+hostURL+"support_documentation.asp>Download Documentation</a></li>"
				x1=x1+"<li><a href=http:"+hostURL+"support_faq.asp>FAQ</a></li>"
				x1=x1+"<li><a href=http:"+hostURL+"support_productdemo.asp>Product Demo</a></li>"
				x1=x1+"<li><a href=http:"+hostURL+"contactus.asp>Customer Service</a></li>"
			x1=x1+"</ul></div></div></div></div>"
			x1=x1+"</li>"
			x1=x1+"<!--NetDefend Live-->"
			x1=x1+"<li class='li4 hasSub"+(mmh==4?' selected':'')+"'><a href=http:"+hostURL+"netdefend.asp>NetDefend Live</a>"
			x1=x1+"<div class=subnav style='width: 200px;'><div class=subnavImg></div><div class=contentWrapper><div class='content clearfix'><div class=col><ul>"
				x1=x1+"<li><a href=http:"+hostURL+"netdefend_ids.asp>NetDefend IPS</a></li>"
				x1=x1+"<li><a href=http:"+hostURL+"netdefend_AntiVirus.asp>NetDefend Anti-Virus</a></li>"
				x1=x1+"<li><a href=http:"+hostURL+"netdefend_wcf.asp>NetDefend Web Content Filtering</a></li>"
				x1=x1+"<li><a href=http:"+hostURL+"netdefend_latest_updatecenter.asp>NetDefend Update Center</a></li>"
			x1=x1+"</ul></div></div></div></div>"
			x1=x1+"</li>"
			x1=x1+"<!--My D-link-->"
			x1=x1+"<li class='li5 hasSub"+(mmh==5?' selected':'')+"'><a href=https:"+hostURL+"member_login.asp>My D-link</a>"
			x1=x1+"<div class=subnav style='width: 135px;'><div class=subnavImg></div><div class=contentWrapper><div class='content clearfix'><div class=col><ul>"
				var u0='https:'+hostURL
				if (loginMember_) {
					x1=x1+"<li><a href="+u0+"member_profile.asp>Profile</a></li>"
					x1=x1+"<li><a href="+u0+"member_registration.asp>Registration</a></li>"
					x1=x1+"<li><a href="+u0+"member_status.asp>Product Status</a></li>"
					x1=x1+"<li><a href="+u0+"member_feedback.asp>My Feedback</a></li>"
					//x1=x1+"<li><a href="+u0+"member_ips.asp>IPS Firewall Service</a></li>"
					x1=x1+"<li><a href="+u0+"member_utm.asp>UTM Firewall Service</a></li>"
				}else{
					var u='https:'+hostURL+'member_login.asp?url=';
					x1=x1+"<li><a href="+u0+"member_login.asp>Login</a></li>"
					x1=x1+"<li><a href="+u0+"member_LoginAssistance.asp>Assistance</a></li>"
					x1=x1+"<li><a href="+u0+"member_registration.asp>Registration</a></li>"
					x1=x1+"<li><a href="+u+"member_login.asp?url=member_status.asp>Product Status</a></li>"
					//x1=x1+"<li><a href="+u+"member_ips.asp>IPS Firewall Service</a></li>"
					x1=x1+"<li><a href="+u+"member_utm.asp>UTM Firewall Service</a></li>"
				}
			x1=x1+"</ul></div></div></div></div>"
			x1=x1+"</li>"
			x1=x1+"<!--News-->"
			x1=x1+"<li class='li6 hasSub"+(mmh==6?' selected':'')+"'><a href=http:"+hostURL+"news.asp>News</a></li>"
			x1=x1+"<!--Contact Us-->"
			x1=x1+"<li class='li7 hasSub"+(mmh==7?' selected':'')+"'><a href=http://www.dlink.com/corporate/worldwideoffices/ target=worldwideoffices>Contact Us</a>"
			x1=x1+"<div class=subnav style='width: 130px;'><div class=subnavImg></div><div class=contentWrapper><div class='content clearfix'><div class=col><ul>"
				//x1=x1+"<li><a href=http:"+hostURL+"contactus.asp>D-Link International</a></li>"//
				//x1=x1+"<li><a href=http:"+hostURL+"wheretobuy.asp>Where to Buy</a></li>"//

				x1=x1+"<li><a href=http://www.dlink.com/corporate/worldwideoffices/ target=worldwideoffices>D-Link International</a></li>"
				x1=x1+"<li><a href=http://www.dlink.com/corporate/worldwideoffices/ target=worldwideoffices>Where to Buy</a></li>"
			x1=x1+"</ul></div></div></div></div></li></ul>"
		x1=x1+"</div>"
	x1=x1+"</div>"
	x1=x1+"</div><!--End Top Menu--><br class='clearfloat' /><div class=landContent>"
	return (x1);
}

function i2(){
	var x2='';
	x2=x2+"</div><br class='clearfloat' /></div><!-- end #content --></div>"
	x2=x2+"<br class=clearfloat /><div id=footerbase><div class=FB_content>&copy;2009&nbsp;D-Link Corporation. All Rights Reserved. &nbsp;&nbsp;<a href=http:"+hostURL+"sitemap.asp>Site Map</a>&nbsp; |&nbsp;&nbsp;<a href=http://www.dlink.com/corporate/worldwideoffices/>Contact Us</a></div>"
	x2=x2+"</div>"

	x2=x2+"</form>"
	return (x2);
}

function onFocus_ss(o){if(o.value=='Search NetDefend Center') o.value='';}
function onBlur_ss(o){if(o.value=='') o.value='Search NetDefend Center';}

function prod_search(){
	obj=document.form1
	if (obj.product_search.value=='Search NetDefend Center') {alert('Please input Keyword!      \n')}
	else{
		obj.action='search.asp';
		obj.submit();
	}
}

function setGoBtm(){
	
}
