// opens a centred popup window
function openNewWin(page,width,height){

  topPos = (screen.height - height) /2;
  leftPos = (screen.width - width) /2;

  window.open(page,'newin','width=' + width + ',height=' + height + ',top=' + topPos +',left=' + leftPos);

}

// tell a friend popup window
function tell() {

  width = 550;
  height = 550;
  topPos = 30;
  leftPos = 30;

  window.open("tell-friend.php", "_blank", 'width=' + width + ', height=' + height + ', top=' + topPos +', left=' + leftPos);

}

function openWindow(url) {
	popupWin = window.open(url, 'openWin', "width=360, height=250, scrollbars=no");
}


kayakingOver = new Image();
kayakingOver.src = "http://www.paddlingontario.com/images/header/kayaking-on.gif";

canoeingOver = new Image();
canoeingOver.src = "http://www.paddlingontario.com/images/header/canoeing-on.gif";

lodgeOver = new Image();
lodgeOver.src = "http://www.paddlingontario.com/images/header/lodge-on.gif";

familyOver = new Image();
familyOver.src = "http://www.paddlingontario.com/images/header/family-on.gif";

learningOver = new Image();
learningOver.src = "http://www.paddlingontario.com/images/header/learning-on.gif";

weekendOver = new Image();
weekendOver.src = "http://www.paddlingontario.com/images/header/weekend-on.gif";

wildernessOver = new Image();
wildernessOver.src = "http://www.paddlingontario.com/images/header/wilderness-on.gif";

dayOver = new Image();
dayOver.src = "http://www.paddlingontario.com/images/header/day-on.gif";
