// -- Adobe GoLive JavaScript Library // -- Global Functions CSAg = window.navigator.userAgent; CSBVers = parseInt(CSAg.charAt(CSAg.indexOf("/")+1),10); CSIsW3CDOM = ((document.getElementById) && !(IsIE()&&CSBVers<6)) ? true : false; function IsIE() { return CSAg.indexOf("MSIE") > 0;} function CSIEStyl(s) { return document.all.tags("div")[s].style; } function CSNSStyl(s) { if (CSIsW3CDOM) return document.getElementById(s).style; else return CSFindElement(s,0); } CSIImg=false; function CSInitImgID() {if (!CSIImg && document.images) { for (var i=0; i= 0) && (bAgent.indexOf("Mozilla/3") >= 0) && (bAgent.indexOf("Mac") >= 0)) return true; // dont follow link else return false; // dont follow link } // -- Action Functions // OpenPopUp 1.4 action by Nate Baldwin, www.mindpalette.com, copyright 2002 function MPOpenPopup(action) { var posX = 0; var posY = 0; if (action[4] == true) { posX = ((screen.availWidth/2)-(action[2]/2)); posY = ((screen.availHeight/2)-(action[3]/2)); } else { posX = action[12]; posY = action[13]; } if (action[16] == true) { posX = 0; posY = 0; action[2] = screen.availWidth; action[3] = screen.availHeight; } for (i=5; i<12; i++) { action[i] == true ? action[i] = "yes" : action[i] = "no"; } var windowOptions = ""; windowOptions += "width=" + action[2]; windowOptions += ",height=" + action[3]; windowOptions += ",resizable=" + action[11]; windowOptions += ",scrollbars=" + action[5]; windowOptions += ",menubar=" + action[6]; windowOptions += ",toolbar=" + action[9]; windowOptions += ",directories=" + action[7]; windowOptions += ",location=" + action[10]; windowOptions += ",status=" + action[8]; windowOptions += ",left=" + posX; windowOptions += ",top=" + posY; window.open(action[15], action[1], windowOptions); if (action[14] != "" && action[14] != "#" && action[14] != "(EmptyReference!)" && action[14] != "(Empty Reference!)") window.location = action[14]; } function CSShowHide(action) { if (action[1] == '') return; var type=action[2]; if(type==0) CSSetStyleVis(action[1],0); else if(type==1) CSSetStyleVis(action[1],1); else if(type==2) { if (CSGetStyleVis(action[1]) == 0) CSSetStyleVis(action[1],1); else CSSetStyleVis(action[1],0); } } // EOF