//THESE ARE FOR POP UPS function pop_up_file(filename){ window.open(filename,'special1','top=20,screenx=20,left=20,screeny=20,width=400,height=350,buttons=no,scrollbars=yes,location=no,menubar=no,resizable=no,status=no,directories=no,toolbar=no'); } function pop_up_file490(filename){ window.open(filename,'special1','top=20,screenx=20,left=20,screeny=20,width=500,height=350,buttons=no,scrollbars=yes,location=no,menubar=no,resizable=no,status=no,directories=no,toolbar=no'); } function pop_up_file500(filename){ window.open(filename,'special1','top=20,screenx=20,left=20,screeny=20,width=500,height=400,buttons=no,scrollbars=yes,location=no,menubar=no,resizable=no,status=no,directories=no,toolbar=no'); } function updateParent(newURL){ opener.document.location = newURL } function signup(){ window.open('/newsletter/signup.htm','signup','top=10,screenx=10,left=10,screeny=10,width=500,height=400,buttons=no,scrollbars=yes,location=no,menubar=no,resizable=no,status=no,directories=no,toolbar=no'); } function tipstricks(){ window.open('/newsletter/tips_tricks.shtml','tipstricks','width=790,height=450,buttons=yes,scrollbars=yes,location=no,menubar=yes,resizable=yes,status=yes,directories=no,toolbar=yes'); } function knowmore(){ window.open('/newsletter/knowmore.shtml','knowmore','width=790,height=450,buttons=yes,scrollbars=yes,location=no,menubar=yes,resizable=yes,status=yes,directories=no,toolbar=yes'); } function ofthemonth(){ window.open('/newsletter/ofthemonth.shtml','ofthemonth','width=790,height=450,buttons=yes,scrollbars=yes,location=no,menubar=yes,resizable=yes,status=yes,directories=no,toolbar=yes'); } function lookout(){ window.open('/newsletter/lookout.shtml','lookout','width=790,height=450,buttons=yes,scrollbars=yes,location=no,menubar=yes,resizable=yes,status=yes,directories=no,toolbar=yes'); } function archive(){ window.open('/newsletter/archive.shtml','archive','width=790,height=350,buttons=no,scrollbars=yes,location=no,menubar=no,resizable=yes,status=yes,directories=no,toolbar=no'); } function emailfriend(){ window.open('/email_friend.htm','emailfriend','width=300,height=350,buttons=no,scrollbars=yes,location=no,menubar=no,resizable=yes,status=no,directories=no,toolbar=no'); } function emailnewsletter(){ window.open('/newsletter/email_friend_newsletter.htm','emailfriendnewsletter','width=300,height=350,buttons=no,scrollbars=yes,location=no,menubar=no,resizable=yes,status=no,directories=no,toolbar=no'); } function updateParent(newURL) { opener.document.location = newURL } function mediavideo(){ window.open('/media/main_video.htm','mediavideo','width=552,height=411,buttons=no,scrollbars=no,location=no,menubar=no,resizable=no,status=no,directories=no,toolbar=no'); } function mediaaudio(){ window.open('/media/main_audio.htm','mediaaudio','width=552,height=411,buttons=no,scrollbars=no,location=no,menubar=no,resizable=no,status=no,directories=no,toolbar=no'); } function construction(){ window.open('/under_construction.htm','construction','top=10,screenx=10,left=10,screeny=10,width=350,height=200,buttons=no,scrollbars=no,location=no,menubar=no,resizable=no,status=no,directories=no,toolbar=no'); } //THIS IS THE PULL DOWN MENU CODE function fwLoadMenus() { if (window.fw_menu_0) return; window.fw_menu_0 = new Menu("root",161,17,"Verdana, Arial, Helvetica, sans-serif",10,"#000000","#000000","#efecdd","#d8d1ab"); fw_menu_0.addMenuItem("HKCG Learning Center","location='../resources/learning_center.shtml'"); fw_menu_0.addMenuItem("HKCG Virus Center","location='../resources/virus_center.shtml'"); fw_menu_0.addMenuItem("HKCG Encyclopedia","location='../resources/encyclopedia.shtml'"); fw_menu_0.addMenuItem("HKCG Media Center","location='../resources/media_center.shtml'"); fw_menu_0.addMenuItem("New Products Notification","location='../resources/product_notification.shtml'"); fw_menu_0.hideOnMouseOut=true; window.fw_menu_1 = new Menu("root",217,17,"Verdana, Arial, Helvetica, sans-serif",10,"#000000","#000000","#efecdd","#d8d1ab"); fw_menu_1.addMenuItem("Newsletter Signup","location='javascript:signup()'"); fw_menu_1.addMenuItem("1. Tips & Tricks","window.open('../newsletter/tips_tricks.shtml', '_blank');"); fw_menu_1.addMenuItem("2. Know More","window.open('../newsletter/knowmore.shtml', '_blank');"); fw_menu_1.addMenuItem("3. Hardware/Software of the Month","window.open('../newsletter/ofthemonth.shtml', '_blank');"); fw_menu_1.addMenuItem("4. Keep A Lookout For","window.open('../newsletter/lookout.shtml', '_blank');"); fw_menu_1.addMenuItem("HKCG Newsletter Archive","location='../newsletter/archive.shtml'"); fw_menu_1.hideOnMouseOut=true; window.fw_menu_2 = new Menu("root",175,17,"Verdana, Arial, Helvetica, sans-serif",10,"#000000","#000000","#efecdd","#d8d1ab"); fw_menu_2.addMenuItem("Mission Statement","location='../philosophies/mission_statement.shtml'"); fw_menu_2.addMenuItem("What Makes Us Different...","location='../philosophies/whatmakesusdifferent.shtml'"); fw_menu_2.addMenuItem("Raving Fans","location='../philosophies/raving_fans.shtml'"); fw_menu_2.addMenuItem("Classmates","location='../philosophies/classmates.shtml'"); fw_menu_2.addMenuItem("HKCG Friendships Program","location='../philosophies/friendships.shtml'"); fw_menu_2.addMenuItem("Employment Opportunities","location='../philosophies/employment.shtml'"); fw_menu_2.hideOnMouseOut=true; window.fw_menu_3 = new Menu("root",157,17,"Verdana, Arial, Helvetica, sans-serif",10,"#000000","#000000","#efecdd","#d8d1ab"); fw_menu_3.addMenuItem("Individual/Family","location='../services/individual.shtml'"); fw_menu_3.addMenuItem("Small/Medium Business","location='../services/medium.shtml'"); fw_menu_3.addMenuItem("Corporate/Enterprise","location='../services/corporate.shtml'"); fw_menu_3.hideOnMouseOut=true; fw_menu_3.writeMenus(); } // fwLoadMenus() //THIS IS THE BANNER AD CODE function getCode() { //set the width var theWidth = "177"; //set the height var theHeight = "100"; //set the path to the images var pathToImages = "/friendships_gif"; //set the path to the flash files var pathToFlash = "/friendships_flash"; // make the list of files and their links (Assuming Flash files have their link embedded in them, just enter an empty string for their values) // IMPORTANT: NO COMMA AFTER LAST ARRAY ITEM var listOfImages = new Array ( new Array("koolmoves.swf", ""), new Array("realview.swf", ""), new Array("newsknowledge.swf", ""), new Array("toonboom.swf", ""), new Array("trekstorusa.swf", ""), new Array("webcontact.swf", ""), new Array("wildform.swf", ""), new Array("fineprint.swf", ""), new Array("xara.swf", ""), new Array("videowave.swf", ""), new Array("photosuite.swf", ""), new Array("flash_po.swf", ""), new Array("ecdc1.swf", ""), new Array("banner_hemera.swf", ""), new Array("annotis.gif", "http://www.annotis.com"), new Array("eholster.gif", "http://www.eholster.com"), new Array("quask.gif", "http://www.quask.com"), new Array("rtbwizards.gif", "http://www.rtbwizards.com"), new Array("sjdesign.gif", "http://www.sjdesign.com"), new Array("trellian.gif", "http://www.trellian.com/"), new Array("vcd.gif", "http://www.virtualcd-online.com"), new Array("ulead1.gif", "http://www.ulead.com"), new Array("ulead2.gif", "http://www.ulead.com"), new Array("ulead3.gif", "http://www.ulead.com") ); //get the number of items in the list var numberOfImagesInList = listOfImages.length; //To generate a random number, get the current time and... var randomNumber = Math.floor(Math.random() * numberOfImagesInList); //use the current time mod the number of items in the list var theWinnerIs = listOfImages[randomNumber]; //if the winner ends with .swf (the last occurance of ".swf" is 4 less than the length of the string) if(theWinnerIs[0].length - theWinnerIs[0].lastIndexOf('.swf') == 4) { return getFlash(theWinnerIs, theHeight, theWidth, pathToFlash); } //if it doesn't end with .swf, assume it's a graphic return getImage(theWinnerIs, theHeight, theWidth, pathToImages); } function getFlash(theWinner, theHeight, theWidth, pathToFlash) { var flashCode = ""; flashCode += ""; flashCode += ""; flashCode += ""; return flashCode; } function getImage(theWinner, theHeight, theWidth, pathToImages) { var imageCode = ""; return imageCode; } //GENERATE RANDOM NUMBER function getRandom( max ) { iRandom = Math.round((Math.random() * max + 0.5)); return iRandom; }