// global variables ---------- var isNav, isIE, isNavSix; var coll = ""; var styleObj = ""; var fontId='15px'; var disclaimerIndex='110'; var fontParam=''; var defaultLineHeight='20px' var matteOn = false; // for mac-ff2 var isIE8 = navigator.appVersion.indexOf('MSIE 8.') != -1; //---------------------------- if (parseInt(navigator.appVersion) >= 4) { if (navigator.appName == "Netscape") { isNav = true; if (parseInt(navigator.appVersion) >= 5) { isNavSix = true; } } else { isIE = true; coll = "all."; styleObj = ".style"; } } // preload nav images MM_preloadImages('images/nav_about.gif','images/nav_about_nc.gif','images/nav_about_on.gif','images/nav_about_over.gif','images/nav_attend.gif', 'images/nav_attend_on.gif', 'images/nav_attend_over.gif', 'images/nav_bottom.gif', 'images/nav_find.gif', 'images/nav_find_on.gif', 'images/nav_find_over.gif', 'images/nav_home.gif', 'images/nav_home_on.gif', 'images/nav_home_over.gif', 'images/nav_join.gif', 'images/nav_join_on.gif', 'images/nav_join_over.gif', 'images/nav_living.gif', 'images/nav_living_on.gif', 'images/nav_living_over.gif', 'images/nav_meet.gif', 'images/nav_meet_nc.gif', 'images/nav_meet_on.gif', 'images/nav_meet_over.gif', 'images/nav_resources.gif', 'images/nav_resources_on.gif', 'images/nav_resources_over.gif', 'images/nav_seminars.gif', 'images/nav_seminars_nc.gif', 'images/nav_seminars_on.gif', 'images/nav_seminars_over.gif', 'images/nav_share.gif', 'images/nav_share_on.gif','images/nav_share_over.gif'); //preload callout, button images MM_preloadImages('images/button1_over.gif', 'images/button2.gif', 'images/button2_over.gif', 'images/callout_attend2.gif', 'images/callout_attend2_over.gif', 'images/callout_attend.gif', 'images/callout_attend_over.gif', 'images/callout_join2.gif', 'images/callout_join2_over.gif', 'images/callout_locate.gif', 'images/callout_locate_over.gif', 'images/callout_meet2.gif', 'images/callout_meet2_over.gif', 'images/callout_meet.gif', 'images/callout_meet_over.gif', 'images/callout_tour2.gif', 'images/callout_tour2_over.gif', 'images/callout_tour.gif', 'images/callout_tour_over.gif', 'images/callout_view2.gif', 'images/callout_view2_over.gif', 'images/callout_view.gif', 'images/callout_view_over.gif', 'images/cancel_button.gif', 'images/cancel_button_over.gif', 'images/cancel_button.gif', 'images/cancel_button_over.gif', 'images/email_icon.gif', 'images/email_icon_over.gif', 'images/enlarger_icon.gif', 'images/enlarger_icon_over.gif', 'images/magnifier_icon.gif', 'images/magnifier_icon_over.gif', 'images/ok_button.gif', 'images/ok_button_over.gif'); // convert object name string or object reference into a valid object reference function getObject(obj) { var theObj; if (typeof obj == "string") { theObj = eval("document." + coll + obj + styleObj); } else { theObj = obj; } if (isNavSix) { theObj = document.getElementById(obj).style } return theObj; } // show object function show(obj) { var theObj = getObject(obj); theObj.visibility = "visible"; } // hide object function hide(obj) { var theObj = getObject(obj); theObj.visibility = "hidden"; } // move object function move(obj,x,y) { var theObj = getObject(obj); if (isIE) { theObj.pixelLeft = x; theObj.pixelTop = y; } else if (isNav) { theObj.moveTo(x,y);//x,y in pixels } } // rollover function chgImg(imgName, imgSrc) { // alert("imgName="+imgName+", imgSrc="+imgName) //alert("document.images[imgName].src="+document.images[imgName].src); if(document.images[imgName]){ document.images[imgName].src = imgSrc; } } // open window function openWin(arg_url, arg_name, arg_width, arg_height, arg_scroll, arg_resize) { var win = window.open(arg_url,arg_name,'scrollbars=' + arg_scroll + ',resizable=' + arg_resize + ',width=' + arg_width + ',height=' + arg_height); } // close window function closeWin() { window.close(); } // print window function printWin() { window.print(); } // set cookie function setCookie(name, value, days) { if (days) { var date = new Date(); date.setTime(date.getTime()+(days*24*60*60*1000)); var expires = "; expires="+date.toGMTString(); } else expires = ""; document.cookie = name + "=" + value + expires +"; path=/"; } // get cookie function getCookie(name) { var nameEQ = name + "="; var ca = document.cookie.split(';'); for(var i = 0;i < ca.length; i++) { var c = ca[i]; while (c.charAt(0) == ' ') c = c.substring(1, c.length); if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length, c.length); } return null; } // check text size cookie function checkCookie() { var cookie = getCookie("screensize"); var className = cookie != null ? changeTextSize(cookie) : changeTextSize("screensmall", 1); } // check cookie on window load window.onload = function (e) { checkCookie(); } // change text size via css with optional cookie parameter function changeTextSize(cssClass, setC) { if (document.getElementById) { // if this is not a printer friendly version if (document.getElementById("globalbody")) { document.getElementById("globalbody").className = cssClass; // set "on" image based on selected font size switch(cssClass) { case "screensmall": document.getElementById("txtsmallid").className = "textzoomsmallon"; document.getElementById("txtmediumid").className = "textzoommedium"; document.getElementById("txtslargeid").className = "textzoomlarge"; break; case "screenmedium": document.getElementById("txtsmallid").className = "textzoomsmall"; document.getElementById("txtmediumid").className = "textzoommediumon"; document.getElementById("txtslargeid").className = "textzoomlarge"; break; case "screenlarge": document.getElementById("txtsmallid").className = "textzoomsmall"; document.getElementById("txtmediumid").className = "textzoommedium"; document.getElementById("txtslargeid").className = "textzoomlargeon"; break; } // set cookie if parameter is present if (setC) { setCookie("screensize", cssClass, 365); } // for setting column seperators on Events Archive page if (document.getElementById('eventlist-div')) { setColSep(cssClass); } } } } function toggleView(obj) { var docElem = document.getElementById(obj); //alert(docElem); // alert(document.forms[0].state.options[document.forms[0].state.selectedIndex].value); if (document.forms[0].state.options[document.forms[0].state.selectedIndex].value == "CA") { document.getElementById(obj).className = "showElem"; } else { document.getElementById(obj).className = "hideElem"; } } function displaySeminarAgenda(id, agendaType) { // var definitionBegin = "