var isUnix = false; var isLinux = false; var isMacintoshPPC = false; var isMacintosh68K = false; var isWindows95 = false; var isWindows98 = false; var isWindowsNT= false; var isWindows3x = false; var isNew = false; var isIE = false; var isIE4 = false; var isIE5 = false; var isNetscape = false; var isNetscape4 = false; var isNetscape6 = false; var userAgent = navigator.userAgent.toLowerCase(); var appName = navigator.appName; var appVersion = parseInt(navigator.appVersion); var platform = (navigator.platform).substring (0, 5); var isAOL = false; var mac = false; var isGecko = false; var isSafari = false; if ( navigator.product == 'Gecko' ) { if ( userAgent.indexOf("safari") == -1 ) { isGecko = true; } else { isSafari = true; } } if (appVersion > 5) isNew = true; else if (appName == "Netscape") { isNetscape = true; if (appVersion == 4) isNetscape4 = true; else if (appVersion == 5) isNetscape6 = true; } else if (appName == "Microsoft Internet Explorer") { isIE = true; if (msieversion() == 4) {isIE4 = true;} if (msieversion() == 5) {isIE5 = true;} } function msieversion() { var ua = window.navigator.userAgent var msie = ua.indexOf ( "MSIE " ) if ( msie > 0 ) return parseInt (ua.substring (msie+5, ua.indexOf (".", msie ))) else return 0; } if ( ( userAgent.indexOf("win95") !=-1) || ( userAgent.indexOf("windows 95") !=-1) ) isWindows95 = true; if ( ( userAgent.indexOf("win98") !=-1) || ( userAgent.indexOf("windows 98") !=-1) ) isWIndows98 = true; if ( ( userAgent.indexOf("winnt") !=-1) || ( userAgent.indexOf("windows nt") !=-1) ) isWindowsNT= true; if ( ( userAgent.indexOf("win16") !=-1) || ( userAgent.indexOf("windows 3.1") !=-1) ) isWindows3x = true; if ( navigator.appVersion.indexOf("Mac") != -1 ) { if ( userAgent.indexOf("pc)") !=-1 ) isMacintoshPPC = true; else isMacintosh68K = true; } if ( platform == "SunOS" ) isUnix = true; else if ( platform == "HP-UX" ) isUnix = true; else if ( platform == "IRIX " ) isUnix = true; else if ( ( ( navigator.platform ).substring (0, 3) ) == "AIX" ) isUnix = true; else if ( userAgent.indexOf("linux") != -1 ) isLinux = true; if(isIE || isIE4 || isIE5) ie=true; else ie=false; if(isMacintoshPPC || isMacintosh68K) mac=true; else mac=false; if(isWindowsNT) nt=true; else nt=false; if(isUnix || isLinux) unix=true; else unix=false; if(navigator.appVersion.indexOf("MSIE") != -1 && navigator.appVersion.indexOf("5.5") != -1) ie5_5=true; else ie5_5=false; if ((navigator.userAgent.indexOf("AOL 5") != -1) || (navigator.userAgent.indexOf("AOL 6") != -1)) isAOL = true; function imageLoad() { if (document.images) { var imgFiles = imageLoad.arguments; if (document.preloadArray==null) document.preloadArray = new Array(); var i = document.preloadArray.length; with (document) for (var j=0; j') } else { document.write('') } } function editModule( id, edit_content_url, edit_content_properties ) { openWindow(edit_content_url, id, edit_content_properties) } function openWindow(winUrl, winName, properties) { var launchedToolWidth = 788; var lightLaunchedToolWidth = 652; if ( mac && isIE ) { launchedToolWidth -= 16; lightLaunchedToolWidth -= 16; } /* Tony's SWITCH statement */ switch (properties) { case "win_a": if (!isAOL) { newWindow = window.open(winUrl,winName,"scrollbars,status=1,menubar,toolbar,resizable,HEIGHT=460,WIDTH=" + launchedToolWidth); newWindow.focus(); } else location.href=winUrl; break; case "win_a_no_toolbar": if (!isAOL) { newWindow = window.open(winUrl,winName,"scrollbars,status=1,resizable,HEIGHT=460,WIDTH=" + launchedToolWidth); newWindow.focus(); } else location.href=winUrl; break; case "win_b": if (!isAOL) { newWindow = window.open(winUrl,winName,"scrollbars,status=1,HEIGHT=530,WIDTH=525"); newWindow.focus(); } else location.href=winUrl; break; case "win_b_no_scroll": if (!isAOL){ newWindow = window.open(winUrl,winName,"scrollbars,status=1,HEIGHT=470,WIDTH=525"); newWindow.focus(); } else location.href=winUrl; break; case "win_c": if (!isAOL) { newWindow = window.open(winUrl,winName,"scrollbars,status=1,menubar,toolbar,HEIGHT=460,WIDTH=" + lightLaunchedToolWidth); newWindow.focus(); } else location.href=winUrl; break; case "win_d": if (!isAOL) { newWindow = window.open(winUrl,winName,"scrollbars,status=1,resizable=no,HEIGHT=460,WIDTH=" + lightLaunchedToolWidth); newWindow.focus(); } else location.href=winUrl; break; default: if (!isAOL){ newWindow = window.open(winUrl,winName,properties); newWindow.focus(); } else location.href=winUrl; break; } } function windowClose(){ window.close(); } function netscapeCssFix() { if (document.windowProperties.initWindowWidth != window.innerWidth || document.windowProperties.initWindowHeight != window.innerHeight) { document.location = document.location; } } function netscapeCssFixInit() { if (isNetscape4) { if (typeof document.windowProperties == 'undefined') { document.windowProperties = new Object; document.windowProperties.initWindowWidth = window.innerWidth; document.windowProperties.initWindowHeight = window.innerHeight; } window.onresize = netscapeCssFix; window.onscroll = netscapeCssFix; } } netscapeCssFixInit();