function caps() {
    var UA = navigator.userAgent;
    if (UA.indexOf("MSIE") != -1) {
        ua = 'MSIE';
        ver = UA.charAt(UA.indexOf("MSIE") + 5);
    } else if (UA.indexOf("Mozilla") != -1 && UA.indexOf("compatible") == -1) {
        ua = "nav";
        ver = UA.charAt(UA.indexOf("Mozilla") + 8);
    }
}

function naviage(target) {
	if (ua == null || ver == null);
    	caps();

    if ((ua == 'nav' && ver < 5) || (ua=='ie' && ver < 4)) {
		if (target == "overview")
			window.open("overview.htm","_parent");
		else if (target == "papers")
			window.open("papers.htm","_parent");
		else if (target == "download")
			window.open("download.htm","_blank");
		else if (target == "samples")
			window.open("samples.htm","_parent");
		else if (target == "contactus")
			window.open("contactus.htm","_parent");
		else if (target == "license")
			window.open("license.htm","_parent");

		else if (target == "specification") {
			window.open("spec/spec.htm","_blank");
		}
		else if (target == "manual") {
			window.open("manual/manual.htm","_blank");
		}
	}	
	else {
		if (target == "overview")
			window.top.frames[1].OVERVIEW.click();
		else if (target == "papers")
			window.top.frames[1].PAPERS.click();
        else if (target == "download") 
			window.top.frames[1].DOWNLOAD.click();
		else if (target == "samples")
			window.top.frames[1].SAMPLES.click();
		else if (target == "contactus")
			window.top.frames[1].CONTACTUS.click();

		else if (target == "specification") {
			window.top.frames[1].SPEC.click();
		} 
		else if (target == "manual") {
			window.top.frames[1].MANUAL.click();
		}
	}
}
