var win = null;
function NewWindow(mypage,myname,w,h,scroll){
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/5 : 0;
settings =
'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'
win = window.open(mypage,myname,settings)
if(win.window.focus){win.window.focus();}
}


function PopupPic(sPicURL) {
	window.open( "http://www.northokanagan.ca/popup.html?"+sPicURL, "",  
	"resizable=1,HEIGHT=400,WIDTH=600");
}


function MM_findObj(n, d) { //v4.01
  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);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}
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;
}

function mmLoadMenus() {
  if (window.mm_menu_0214213638_0) return;
  window.mm_menu_0214213638_0 = new Menu("root",150,18,"Arial, Helvetica, sans-serif",12,"#4374af","#ffffff","#fdfeff","#5583be","left","middle",3,0,1000,-5,7,true,true,true,0,true,true);
  mm_menu_0214213638_0.addMenuItem("Tourism&nbsp;Greater&nbsp;Vernon","window.open('http://www.vernontourism.ca', '_blank');");
  mm_menu_0214213638_0.addMenuItem("Ticket&nbsp;Seller","window.open('http://www.ticketseller.ca/', '_blank');");
   mm_menu_0214213638_0.hideOnMouseOut=true;
   mm_menu_0214213638_0.menuBorder=1;
   mm_menu_0214213638_0.menuLiteBgColor='#ffffff';
   mm_menu_0214213638_0.menuBorderBgColor='#969799';
   mm_menu_0214213638_0.bgColor='#969799';

  mm_menu_0214213638_0.writeMenus();
} // mmLoadMenus()

