function MM_showHideLayers() { //v3.0 var i,p,v,d,obj,args=MM_showHideLayers.arguments; //alert("class=" + args[0]); //when display=none, ns4.7 not even make a layer obj for it, so must use display:block for (i=0; i<(args.length-2); i+=3) //for IE and NS4 if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2]; if (obj.style) { //alert("V=" + v); obj=obj.style; } //12-30-02 - moved this bracket to here from ln 25 b/c ns 4.7 ! support obj.style, just obj.visibility... if(v=="show") { v='visible'; d='block'; } else if(v=="hide") { v='hidden'; d='none'; } else v=v; obj.visibility=v; obj.display=d; //alert(obj.display); //e=document.getElementByID("navigate");e.focus(); //alert(args[0] + v + d); } else //for NS7 (version=5) { //args[0] = class to show/hide //args[2] = command to show or hide args[0] if(parseInt(navigator.appVersion) >=5 && navigator.appName=="Netscape") { if (document.getElementById(args[0])) { if(args[2]=="hide") //call from hide all submenus() { document.getElementById(args[0]).style.visibility="hidden"; document.getElementById(args[0]).style.display="none"; } else if (args[2]=="show") { document.getElementById(args[0]).style.visibility="visible"; document.getElementById(args[0]).style.display="block"; } } } else if(parseInt(navigator.appVersion) <5 && navigator.appName=="Netscape") {//for NS6 obj=document.getElementById(args[0]); obj=obj.style; if(v=="show") { v='visible'; d='block'; } else if(v=="hide") { v='hidden'; d='none'; } else v=v; obj.visibility=v; obj.display=d; //alert(args[0] + " " + obj.visibility); } } } function MM_preloadImages() { //v3.0 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i=hidden_count) MM_showHideLayers(name,"","hide"); else MM_showHideLayers(name,"","show"); } } function hideallsubmenus() { var num_sections=nsNavSection.length; for (var i=0;i0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&iavailWidth) {width = availWidth; height+=35;} //to account for scrollbars if(height>availHeight) {height = availHeight; width+=35;} var height=height.toString(); var width=width.toString(); left=left.toString(); top=top.toString(); address+='&window_width='+availWidth+'&window_height='+availHeight; var left=left.toString(); var win_str="height=" + height + ",width=" + width + ",left=" + left + ",top="+top+",location=no,scrollbars=no,resizable=yes,menu=yes,status=no,menubar=no,toolbar=no,directories=no"; w=window.open(address,'tempWin',win_str,''); w.resizeTo(width,height); w.focus() }function open_win_v2(address,suggestedWindowHeight,suggestedWindowWidth,left) { //07.10.31 - rewrote to accomidate very large images in slideshow - see the loquendi page var availWidth = screen.availWidth; var availHeight = screen.availHeight; //SET DEFAULT VALUES if(suggestedWindowHeight==null) windowHeight = 550; else windowHeight = suggestedWindowHeight; if(suggestedWindowWidth==null) windowWidth = 850; else windowWidth = suggestedWindowWidth; if(left==null) left = 100; //CHECK TO SEE WHETHER THE PHP FUNCTION get_height_width_for_open_win_v2($DBTableObj,$folder_path,$params) SUGGESTS A WINDOW SIZE BIGGER THAN SCREEN SIZE //IF SO, RESIZE WINDOW TO MAXIMUM DIMENSIONS if(suggestedWindowHeight>availHeight) { windowHeight=availHeight; }if(suggestedWindowWidth>availWidth) { windowWidth=availWidth; } var left = (availWidth-windowWidth)/2; var top = (availHeight-windowHeight)/2; address+='&window_width='+windowWidth+'&window_height='+windowHeight; var win_str="height=" + windowHeight + ",width=" + windowWidth + ",left=" + left + ",top=" + top + ",location=no,scrollbars=no,resizable=yes,menu=yes,status=no,menubar=no,toolbar=no,directories=no"; w=window.open(address,'tempWin',win_str,''); w.resizeTo(windowWidth,windowHeight); w.focus() } function create_viewer(img_loc,height,width,caption){ doc_code="Eric Corriel: Memoire Image"; doc_code+=""; doc_code+=""; doc_code+="
"; doc_code+="" +  + ""; doc_code+="
" + caption + "
"; //alert(img_array[img_num].src); //alert("w=" + width + " h=" + (height + 60)); if(caption!="") height+=100; window_str="width=" + width + ",height=" + height + ",left=50,screenX=50,top=10,screenY=10,resizable=yes,directories=no,status=no,scrollbars=no,location=no,menubar=no,toolbar=no"; w=window.open("","img_viewer",window_str,"false"); w.document.clear(); w.resizeTo(width,height); w.document.write(doc_code); w.document.close(); w.focus(); }