<!--

var imgloc;
var imgWidth;
var imgHeight;
var scrollBar;
var patflag = 0;

function showPopup(imgLoc, imgWidth, imgHeight,scrollBar) {
  if (patflag == 1) {
  if (wndPopup.closed) {}
  else  {wndPopup.close();}
  }
  wndPopup = window.open(imgLoc,'wndPopup',
  'width='+imgWidth+',height='+imgHeight+',top=300,left=300,scrollbars='+scrollBar+',resize=no');
  patflag = 1;
  return wndPopup;
}

leftPos=300
//if (screen) {
//	leftPos = screen.width-285
//	}
topPos=300
//if (screen) {
//	topPos = screen.height-400
//	}
function passData(key) {
	var review = ""
	review += key
    windowHandle = window.open('/wire/pages/review.php' + '?review=' + review,'reviewpopup','top='+topPos+',left='+leftPos+',scrolling=yes,scrollbars=yes,resizable=yes,width=260,height=275');
}


function searchWindow() {
	searchPopup = window.open ('http://www.canyonmeadow.ca/pages/retailers/retailersearch.html','searchWin', 'top=250,left=200,width=400,height=300,scrollbars=yes')
}

function tipWindow(thisID) {
	var thisTip = ""
	thisTip += thisID
	tipPopup = window.open ('http://www.canyonmeadow.ca/pages/technical/tips.php' + '?thisTip=' +thisTip,'tipWin', 'top=250,left=200,width=400,height=300,scrollbars=yes')
}

function contactWindow() {
	contactPopup = window.open ('http://www.canyonmeadow.ca/pages/about/contact.php','contactWin', 'top=250,left=200,width=400,height=300,scrollbars=yes')
}

function contestWindow() {
	contestPopup = window.open ('http://www.canyonmeadow.ca/pages/about/contest.php','contestWin', 'top=250,left=200,width=400,height=300,scrollbars=yes')
}

function guaranteeWindow() {
	guaranteePopup = window.open ('http://www.canyonmeadow.ca/pages/about/guarantee.php','guaranteeWin', 'top=250,left=200,width=400,height=300,scrollbars=yes')
}

function friendWindow() {
	friendPopup = window.open ('http://www.canyonmeadow.ca/pages/friend/form.php','friendWin', 'top=250,left=200,width=400,height=400,scrollbars=yes')
}

function definitionWindow(thisID) {
	var thisDefinition = ""
	thisDefinition += thisID
	definitionPopup = window.open ('http://www.canyonmeadow.ca/pages/technical/definition.php' + '?thisDefinition=' + thisDefinition,'guaranteeWin', 'top=250,left=200,width=400,height=150,scrollbars=yes')
}


//-->