

// PRELOADING IMAGES
if (document.images) {
img_on1 =new Image(); img_on1.src ="zwart1.jpg"; 
img_off1=new Image(); img_off1.src="/pickwickMCMSSite/zwart2.jpg"; 
img_on2 =new Image(); img_on2.src ="kruiden1.jpg"; 
img_off2=new Image(); img_off2.src="/pickwickMCMSSite/kruiden2.jpg"; 
img_on3 =new Image(); img_on3.src ="vruchten1.jpg"; 
img_off3=new Image(); img_off3.src="/pickwickMCMSSite/vruchten2.jpg"; 
img_on4 =new Image(); img_on4.src ="icetea1.jpg"; 
img_off4=new Image(); img_off4.src="/pickwickMCMSSite/icetea2.jpg"; 
}
function handleOver1() { 
if (document.images) document.imgName1.src=img_on1.src;
}
function handleOut1() {
if (document.images) document.imgName1.src=img_off1.src;
}
function handleOver2() { 
if (document.images) document.imgName2.src=img_on2.src;
}
function handleOut2() {
if (document.images) document.imgName2.src=img_off2.src;
}
function handleOver3() { 
if (document.images) document.imgName3.src=img_on3.src;
}
function handleOut3() {
if (document.images) document.imgName3.src=img_off3.src;
}
function handleOver4() { 
if (document.images) document.imgName4.src=img_on4.src;
}
function handleOut4() {
if (document.images) document.imgName4.src=img_off4.src;
}



/* $Id: custom.js,v 1.4 2007/09/04 11:41:41 aldbab Exp $ */

function clear_search(frm) {
	if (typeof frm == 'undefined') return false;
	if (frm.elements['keyword'].value == frm.elements['keyword'].defaultValue) {
		frm.elements['keyword'].value = "";
	}
}

function construct_pu() {
	var lnks = document.getElementsByTagName("A");
	var lnk;
	for (var i = 0; i < lnks.length; i++) {
		if (/\/Prints\//i.test(lnks[i].href) && lnks[i].target == "_blank") {
			lnk = lnks[i];
		}
	}
	if (typeof lnk != 'undefined') {
		lnk.onclick = pu;
	}
}

function pu() {
	if (window.open(this.href, "hardcopy", "width=500,height=600") ) {
		return false;
	}
	return true;
}

//Open a popup without position, scrollbars=no and resizable=no
var popUpWin1=0;
function openPopUpWindow(URLStr, width, height)
{
  if(popUpWin1)
  {
    if(!popUpWin1.closed) popUpWin1.close();
  }
  popUpWin1 = open(URLStr, 'OOH', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=yes,width='+width+',height='+height);
}

//Open a popup with position, scrollbars=no and resizable=no
var popUpWin2=0;
function openPopUpWindowWithPosition(URLStr, width, height, top, left)
{
  if(popUpWin2)
  {
    if(!popUpWin2.closed) popUpWin2.close();
  }
  popUpWin2 = open(URLStr, 'OOH', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=yes,width='+width+',height='+height+',top='+top+',left='+left);
}

//Open a popup with position, scrollbars=yes and resizable=no
var popUpWin3=0;
function openPopUpWindowWithPositionAndScrollbars(URLStr, width, height, top, left)
{
  if(popUpWin3)
  {
    if(!popUpWin3.closed) popUpWin3.close();
  }
  popUpWin3 = open(URLStr, 'OOH', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=yes,width='+width+',height='+height+',top='+top+',left='+left);
}

//Open a popup with position, scrollbars=yes and resizable=yes
var popUpWin4=0;
function openPopUpWindowWithPositionScrollbarsAndResizable(URLStr, width, height, top, left)
{
  if(popUpWin4)
  {
    if(!popUpWin4.closed) popUpWin4.close();
  }
  popUpWin4 = open(URLStr, 'OOH', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=yes,width='+width+',height='+height+',top='+top+',left='+left);
}
