function popUp(URL) {
	day = new Date();
	id = day.getTime();
	eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=400,height=600,left = 0,top = 0');");
}

function popUp(URL, w, h) {
	day = new Date();
	id = day.getTime();
	eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width="+w+",height="+h+",left = 0,top = 0');");
}

function popUnder(URL, w, h) {
	day = new Date();
	id = day.getTime();
	eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width="+w+",height="+h+",left = 0,top = 0');");
	eval("page" + id + ".blur()");
}

function swapImage(page, image1, image2) {		
	var Image2src = page.getElementById(image2).src
	page.getElementById(image1).src = Image2src
}

function runSlideShow(){
   if (document.all){
      document.images.slideshow.style.filter="blendTrans(duration=2)"
      document.images.slideshow.style.filter="blendTrans(duration=crossFadeDuration)"
      document.images.slideshow.filters.blendTrans.Apply()      
   }
   document.images.slideshow.src = preLoad[j].src
   if (document.all){
      document.images.slideshow.filters.blendTrans.Play()
   }
   j = j + 1
   if (j > (p-1)) j=0
   t = setTimeout('runSlideShow()', slideShowSpeed)
}