//var strPath = 'http://localhost/ess/demo2/'; var strPath = 'http://www.esscare.org/'; var strLang = 'gb'; var strHome = '主页'; var strPhoto = '图片精选'; var strPublications = '出版物'; var strLetters = '八方飞鸿'; var strFaq = '提问答疑'; var strAbout = '关于我们'; var strMission = 'ESS的宗旨'; var strHistory = 'ESS的历史'; var strFundingSource = 'ESS的经费来源'; var strPartners = 'ESS的合作单位'; var strExecutiveBoard = '理事会'; var strStaff = 'ESS的工作人员'; var strSERC = '认助中国乡村教育项目系列'; var strPrm = '提供图书'; var strFars = '乡村少年助学金'; var strItl = '改进教学活动'; var strFards = '乡村残疾学童助学金'; var strSf = '资助学校教学设施及活动器材'; var strSp = '特殊项目'; var strForm = '认助表格(PDF)'; var strSponsors = '认助者链接'; var strArsl = '认助乡村学校图书室'; var strArpl = '认助乡镇公共图书馆'; var strAmic = '认助特困县教育'; var strIsf = '认助教学器材及设备'; var strAttc = '认助乡村教师培训中心'; var strAnnual = '年终报告(PDF)'; var strCount = '46043' 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