// -- 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 function CSCloseWindow() { if (self.parent.frames.length != 0) { self.parent.close() } else { window.close() } } function CSSetImageURL(action) { var img=CSGetImage(action[1]); if (img) img.src=action[2]; } 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); } } function CSSlideNewWindow(action) { var wh = "" if (action[7] || action[8] || action[9] == true) wh=action[4]-125 else wh = action[4] var wf = ""; wf = wf + "width=" + action[3]; wf = wf + ",height=" + wh; wf = wf + ",resizable=" + (action[5] ? "yes" : "no"); wf = wf + ",scrollbars=" + (action[6] ? "yes" : "no"); wf = wf + ",menubar=" + (action[7] ? "yes" : "no"); wf = wf + ",toolbar=" + (action[8] ? "yes" : "no"); wf = wf + ",directories=" + (action[9] ? "yes" : "no"); wf = wf + ",location=" + (action[10] ? "yes" : "no"); wf = wf + ",status=" + (action[11] ? "yes" : "no"); if(navigator.appVersion.charAt(0) >=4) { var sw=screen.width-20; var sh=screen.height; var newwidth=action[3]; var newheight=action[4]; var positionleft=(sw-newwidth)/2; var positiontop="" if (action[7] || action[8] || action[9] == true) positiontop=(sh-newheight)/3; positiontop=(sh-newheight)/2.5; } newwindow=window.open(action[1],action[2],wf); newwindow.focus() if(navigator.appVersion.charAt(0) >=4) { for(width1 = 1 ; width1 < positionleft ; width1 = width1 + 10) newwindow.moveTo(width1,positiontop) } } function CSOpenWindow(action) { var wf = ""; wf = wf + "width=" + action[3]; wf = wf + ",height=" + action[4]; wf = wf + ",resizable=" + (action[5] ? "yes" : "no"); wf = wf + ",scrollbars=" + (action[6] ? "yes" : "no"); wf = wf + ",menubar=" + (action[7] ? "yes" : "no"); wf = wf + ",toolbar=" + (action[8] ? "yes" : "no"); wf = wf + ",directories=" + (action[9] ? "yes" : "no"); wf = wf + ",location=" + (action[10] ? "yes" : "no"); wf = wf + ",status=" + (action[11] ? "yes" : "no"); window.open(action[1],action[2],wf); } // EOF