
function MM_findObj(n, d) { //v3.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&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&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); return x;
}
/* Functions that swaps images. */
function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

/* Functions that handle preload. */
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<a.length; i++)
   if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}


function fwLoadMenus() {
  if (window.fw_menu_0) return;
  window.fw_menu_0 = new Menu("root",129,17,"Verdana, Arial, Helvetica, sans-serif",10,"#000000","#d0a510","#d0a510","#000000");
  fw_menu_0.addMenuItem("Graphics Overview","location='pdi_graphics_ov.html'");
  fw_menu_0.addMenuItem("Fluids and Scrolls","location='pdi_fluid.html'");
  fw_menu_0.addMenuItem("Slide Shows","location='pdi_slide.html'");
  fw_menu_0.addMenuItem("Animation","location='pdi_animate.html'");
  fw_menu_0.addMenuItem("Thumbnail Collage","location='pdi_collage.html'");
  fw_menu_0.addMenuItem("Page Flip 1","location='pdi_book_flip.html'");
  fw_menu_0.addMenuItem("Page Flip 2","location='pdi_book_flipa.html'");
  fw_menu_0.addMenuItem("Transitional Fade","location='pdi_fade.html'");
  fw_menu_0.addMenuItem("Lake Effect","location='pdi_lake.html'");
  fw_menu_0.addMenuItem("Let it Snow","location='pdi_snow.html'");
//  fw_menu_0.addMenuItem("Navigation","location='pdi_navigation.html'");
   fw_menu_0.bgImageUp="nav_top_bar/fwmenu1_129x17_up.gif";
   fw_menu_0.bgImageOver="nav_top_bar/fwmenu1_129x17_over.gif";
   fw_menu_0.fontWeight="bold";
   fw_menu_0.hideOnMouseOut=true;

  fw_menu_0.writeMenus();
} // fwLoadMenus()


/* Function to capture and display date  */
function showdate()
{
  day = new Array ("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday")

  month = new Array("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December");
  now = new Date();
  document.write("<" + "BR><" + "FONT FACE=\"Verdana,Arial,Helvetica\" COLOR=\"#ffffff\" SIZE=\"-2\">");
  document.write("Today is " + day[now.getDay()] + ", " + month[now.getMonth()] + " " + now.getDate() + ", " + now.getFullYear());
  document.write("<" + "/FONT>");
}
						
function openWindowEmail(URL) {
newWindow=window.open(URL,"myNewWindow",'width=400,height=400,left=100,top=100,resizable=0,scrollbars=1,location=0,status=0,toolbar=1,menubar=0,directories=0')
						}
						
function openWindowMP3hs(URL) {
leftPos=0
if (screen) {
	leftPos=screen.width-210
	}
newWindow=window.open(URL,"myNewWindow", 'width=200,height=460,left='+leftPos+',top=0,resizable=1,scrollbars=0,location=0,status=0,toolbar=0,menubar=0,directories=0')
newWindow.focus()
						}
					
function openWindowMP3ls(URL) {
leftPos=0
if (screen) {
	leftPos=screen.width-410
	}
newWindow=window.open(URL,"myNewWindow", 'width=400,height=160,left='+leftPos+',top=0,resizable=0,scrollbars=0,location=0,status=0,toolbar=0,menubar=0,directories=0')
newWindow.focus()
						}
						
function openWindowLarge(URL) {
leftPos=0
if (screen) {
	leftPos=screen.width-810
	}
newWindow=window.open(URL,"image", 'width=800,height=810,left='+leftPos+',top=0,resizable=0,scrollbars=1,location=0,status=0,toolbar=0,menubar=0,directories=0')
newWindow.focus()
						}
						
function openWindowV(URL) {
leftPos=0
if (screen) {
	leftPos=screen.width-880
	}
WindowV=window.open(URL,"v", 'width=230,height=680,left='+leftPos+',top=0,resizable=0,scrollbars=0,location=0,status=0,toolbar=0,menubar=0,directories=0')
WindowV.focus()
						}
						
function openWindowF104a(URL) {
leftPos=0
if (screen) {
	leftPos=screen.width-580
	}
WindowF104a=window.open(URL,"104a", 'width=572,height=660,left='+leftPos+',top=0,resizable=0,scrollbars=0,location=0,status=0,toolbar=0,menubar=0,directories=0')
WindowF104a.focus()
						}
						
function openWindowF104m(URL) {
leftPos=0
if (screen) {
	leftPos=screen.width-920
	}
WindowF104m=window.open(URL,"104m", 'width=290,height=340,left='+leftPos+',top=0,resizable=0,scrollbars=0,location=0,status=0,toolbar=0,menubar=0,directories=0')
WindowF104m.focus()
						}
						
function openWindowS1a(URL) {
leftPos=0
if (screen) {
	leftPos=screen.width-940
	}
WindowS1a=window.open(URL,"s1a", 'width=330,height=260,left='+leftPos+',top=0,resizable=0,scrollbars=0,location=0,status=0,toolbar=0,menubar=0,directories=0')
WindowS1a.focus()
						}
						
function openWindowS1(URL) {
leftPos=0
if (screen) {
	leftPos=screen.width-900
	}
WindowS1=window.open(URL,"s1", 'width=330,height=660,left='+leftPos+',top=0,resizable=0,scrollbars=0,location=0,status=0,toolbar=0,menubar=0,directories=0')
WindowS1.focus()
						}
						
function openWindowS2(URL) {
leftPos=0
if (screen) {
	leftPos=screen.width-1100
	}
WindowS2=window.open(URL,"s2", 'width=562,height=370,left='+leftPos+',top=0,resizable=0,scrollbars=0,location=0,status=0,toolbar=0,menubar=0,directories=0')
WindowS2.focus()
						}
						
function openWindow640(URL) {
leftPos=0
if (screen) {
	leftPos=screen.width-650
	}
Window640=window.open(URL,"640", 'width=655,height=555,left='+leftPos+',top=0,resizable=0,scrollbars=0,location=0,status=0,toolbar=0,menubar=0,directories=0')
Window640.focus()
						}
						
function openWindowSiteMap(URL) {
leftPos=0
topPos=0
WindowSiteMap=window.open(URL,"WindowSiteMap", 'width=640,height=800,left='+leftPos+',top='+topPos+',resizable=1,scrollbars=1,location=0,status=0,toolbar=0,menubar=0,directories=0')
WindowSiteMap.focus()
						}


function openWindowPicHH(URL) {
leftPos=0
if (screen) {
	leftPos=screen.width-710
	}
WindowPicHH=window.open(URL,"NewWindow", 'width=700,height=380,left='+leftPos+',top=0,resizable=0,scrollbars=1,location=0,status=0,toolbar=0,menubar=0,directories=0')
WindowPicHH.focus()
						}


function openWindow800(URL) {
leftPos=0
topPos=0
if (screen) {
	leftPos=screen.width-815
	}
Window800=window.open(URL,"w800", 'width=805,height=380,left='+leftPos+',top='+topPos+',resizable=1,scrollbars=1,location=0,status=0,toolbar=0,menubar=0,directories=0')
Window800.focus()
						}
						
function openWindowNew(URL) {
leftPos=0
if (screen) {
	leftPos=screen.width-760
	}
newWindow=window.open(URL,"calendar", 'width=750,height=550,left='+leftPos+',top=0,resizable=1,scrollbars=1,location=0,status=0,toolbar=0,menubar=0,directories=0')
newWindow.focus()
						}
