//var strPath = 'http://localhost/ess/demo2/'; var strPath = 'http://www.esscare.org/'; var strLang = 'eng'; var strHome = 'Home'; var strPhoto = 'Photo Gallery'; var strPublications = 'Publications'; var strLetters = 'Letters'; var strFaq = 'FAQ'; var strAbout = 'About Us'; var strMission = 'Mission'; var strHistory = 'History'; var strFundingSource = 'Funding Sources'; var strPartners = 'Program Partners'; var strExecutiveBoard = 'Board'; var strStaff = 'Voluntary Staff'; var strSERC = 'Support Education in Rural China'; var strPrm = 'Providing Reading Meterials'; var strFars = 'Financial Aid for Rural Students'; var strItl = 'Improve Teaching & Learning'; var strFards = 'Financial Aids to Rural Disable   Students'; var strSf = 'School Facility'; var strSp = 'Special Programs'; var strForm = 'Sponsorship Form (PDF)'; var strSponsors = 'Sponsors'; var strArsl = 'Adopt a Rural School Library'; var strArpl = 'Adopt a Rural Public Library'; var strAmic = 'Adopt a Most Improverished County'; var strIsf = 'Improve School Facility'; var strAttc = 'Adopt a Teachers Training Center'; var strAnnual = 'Annual Report(PDF)'; var strCount = '45926' if (strLang == "''" || strLang.indexOf('lang') > 0) { strPath = 'D:\\Larry Wang\\ess\\demo2\\'; strLang = 'eng'; strHome = 'Home'; strPhoto = 'Photo Gallery>'; strPublications = 'Publications'; strLetters = 'Letters'; strFaq = 'FAQ'; strAbout = 'About Us'; strMission = 'Mission'; strHistory = 'History'; strFundingSource = 'Funding Sources'; strPartners = 'Program Partners'; strExecutiveBoard = 'Board'; strStaff = 'Voluntary Staff'; strSERC = 'Support Education in Rural China'; strPrm = 'Providing Reading Meterials'; strFars = 'Financial Aid to Rural Students'; strItl = 'Improve Teaching & Learning'; strFards = 'Financial Aids to Rural Disable   Students'; strSf = 'School Facility'; strSp = 'Special Programs'; strForm = 'Sponsor Form(PDF)'; strSponsors = 'Sponsors'; strArsl = 'Adopt a Rural School Library'; strArpl = 'dopt a Rural Public Library'; strAmic = 'Adopt a Most Improverished County'; strIsf = 'Improve School Facility'; strAttc = 'Adopt a Teachers Training Center'; strAnnual = 'Annual Report(PDF)'; strCount = '3214'; } //define main menu function MainMenu() { this.items = new Array(); this.items[0] = new MainItem(0, strPath+strLang+"/images/roll1.gif"); this.items[1] = new MainItem(1, strPath+strLang+"/images/roll2.gif"); this.items[2] = new MainItem(2, strPath+strLang+"/images/roll3.gif"); this.items[3] = new MainItem(3, strPath+strLang+"/images/roll4.gif"); this.items[4] = new MainItem(3, strPath+strLang+"/images/roll5.gif"); this.CreateMainMenu = function() { document.writeln(""); } document.writeln(""); var item = GetItem("MenuItem0"); item.onclick = function() {document.location = strPath+strLang+"/aboutus/index.htm";}; item.onmouseout = function() {}; item.onmouseover = function() {}; item = GetItem("MenuItem2"); item.onclick = function() {document.location = strPath+strLang+"/bulletin/index.htm";}; item.onmouseout = function() {}; item.onmouseover = function() {}; item = GetItem("MenuItem3"); item.onclick = function() {document.location = strPath+strLang+"/publications/index.htm";}; item.onmouseout = function() {}; item.onmouseover = function() {}; item = GetItem("MenuItem4"); item.onclick = function() {document.location = strPath+strLang+"/contact/index.htm";}; item.onmouseout = function() {}; item.onmouseover = function() {}; } } function CreateMenu() { document.open(); //sub menus document.write("
"); document.write("
"); document.write("
"); document.write(""); document.write("  ", strAbout); document.write(""); document.write("
"); document.write("
"); document.write(""); document.write("  ", strMission); document.write(""); document.write("
"); document.write(""); document.write("
"); document.write("
"); document.write("
"); document.write(""); document.write("  ", strSERC); document.write(""); document.write("
"); document.write("
"); document.write(""); document.write("  ", strPrm); document.write(""); document.write("
"); document.write("
"); document.write(""); document.write("  ", strFars); document.write(""); document.write("
"); document.write("
"); document.write(""); document.write("  ", strItl); document.write(""); document.write("
"); document.write("
"); document.write("
"); document.write("
"); document.write(""); document.write("Item 1"); document.write(""); document.write("
"); document.write("
"); document.write("
"); document.write("
"); document.write(""); document.write("  ", strSponsors); document.write(""); document.write("
"); document.write("
"); document.write(""); document.write("  ", strArsl); document.write(""); document.write("
"); document.write("
"); document.write(""); document.write("  ", strArpl); document.write(""); document.write("
"); document.write("
"); document.write(""); document.write("  ", strFars); document.write(""); document.write("
"); document.write("
"); document.write(""); document.write("  ", strItl); document.write(""); document.write("
"); document.write("
"); document.write(""); document.write("  ", strAmic); document.write(""); document.write("
"); document.write("
"); document.write(""); document.write("  ", strIsf); document.write(""); document.write("
"); document.write("
"); document.write(""); document.write("  ", strAttc); document.write(""); document.write("
"); document.write("
"); document.write("
"); document.write("
"); document.write(""); document.write("Item 1"); document.write(""); document.write("
"); document.write("
"); document.write("
"); //end sub menus document.write("
"); document.write("
"); document.write(""); document.write("
"); if (strLang != "gb") document.write("\"GB "); if (strLang != "b5") document.write("\"Big5 "); if (strLang != "eng") document.write("\"English\" "); document.write("
"); //end language selection document.write("
"); //end topheader_left document.write("
"); var len = strCount.length; document.write("
"); for (var j=0; j<6-len; j++) { document.write(""); } for (var i=0; i"); } document.write("
"); document.write("
"); //end middle_left //create main menu var oMainMenu = new MainMenu(); oMainMenu.CreateMainMenu(); //create additional menu document.write("
"); //document.write("
"); document.write("
"); document.write("", strHome, "
"); document.write("", strFaq, "
"); document.write("", strAnnual, "
"); document.write("", strForm, "
"); document.write("
"); document.write(""); document.write("
Copy rights (c) 2005
All rights reserved, ESS
"); //if (strLang != "eng") // document.write("
版權所有 科技教育協會(美國)"); document.write("
"); document.write("info@esscare.org"); document.write("
"); document.write("
"); //end featuretext2 //document.write("
"); //end feature2 document.write("
"); //end menu2 document.write("
"); //end left_panel document.close(); //alert(document.domain); } var browser = new browsercheck(); //alert("Browser: "+browser.name + ", Ver: "+browser.nVer); function browsercheck() { this.ver=navigator.appVersion; this.agent=navigator.userAgent this.dom=document.getElementById?1:0; if(navigator.appName.substring(0,8) == "Netscape") { this.name = "ns"; this.nVer = (this.dom && parseInt(this.ver) >= 5)?5:(document.layers && !this.dom)?4:(this.dom)?6:0; } else if(navigator.appName.substring(0,9) == "Microsoft") { this.name = "ie"; this.nVer = (this.ver.indexOf("MSIE 5.5")>-1 && this.dom)?5.5:(this.ver.indexOf("MSIE 5")>-1 && this.dom)?5:(this.ver.indexOf("MSIE 6")>-1 && this.dom)?6:(document.all && !this.dom)?4:(this.dom)?7:0; } else if (this.agent.indexOf("Opera")>-1) { this.name = "op"; this.nVer = (this.agent.indexOf("Opera 5")>-1)?5:(this.dom)?6:0; } else if (this.agent.indexOf("Mac")>-1) { this.name = "mac"; this.nVer = 0; //uncertain } else { this.name = navigator.appName; this.nVer = 0; //uncertain } this.bw=(this.name == "ie" || this.name == "ns" || this.name == "op" || this.dom) this.Scrollable = ((this.name == "ie" && this.nVer > 5) || (this.name == "ns" && this.nVer > 4)); return this; } function GetItem(id) { var item = null; if (document.getElementById) { item = document.getElementById(id); } else if (document.all) { var item = document.all[id]; } else if (document.layers) { item = document.layers[id]; } else { alert("This web site does not support your browser. YOu may need IE or Netscape to browse it."); return null; } if (item == null) { alert("Could not find object for id: "+id); return null; } return item; } function ShowMenu(i, bVisible) { var PopMenu = "popMenu"+i; var bOK = false; if (document.getElementById) { var pPopMenu = document.getElementById(PopMenu); if (pPopMenu != null) { pPopMenu.style.visibility = (bVisible)?"visible":"hidden"; bOK = true; } } else if (document.all) { var pPopMenu = document.all[PopMenu]; if (pPopMenu != null) { pPopMenu.style.visibility = (bVisible)?"visible":"hidden"; bOK = true; } } else if (document.layers) { var pPopMenu = document.layers[PopMenu]; if (pPopMenu != null) { pPopMenu.visibility = (bVisible)?"show":"hide"; bOK = true; } } else { bOK = true; alert("This web site does not support your browser. YOu may need IE or Netscape to browse it."); } if (!bOK) { alert("Could not find object for id: "+PopMenu); } } function MainItem(id, image) { this.id = id; this.img = image; } function preloadImages() { var d=document; if(d.images){if(!d.p) d.p=new Array();var i,j=d.p.length,a=preloadImages.arguments; for(i=0; i