// JavaScript Document - Openers.js CanelaMichelle
<!--
function openPop(choice) {
if (choice==1)
window.open('article-province.html','News1',config='width=710,height=510,scrollbars=no, resize=no, left=0, top=0');
if (choice==2)
window.open('article-georgia.html','News2',config='width=700,height=577,scrollbars=no, resize=no, left=0, top=0');
if (choice==3)
window.open('Gallery.html','Gallery',config='width=700,height=640,scrollbars=no, left=0, top=0');
if (choice==4)
window.open('coming-soon.html','ComingSoon',config='width=300,height=200,scrollbars=no, left=50, top=50');
if (choice==5)
window.open('paypal.html','PayPal',config='width=780,height=600,resize=yes,scrollbars=yes,left=0,top=0'); // popup was: 285 x 175
if (choice==9)
window.open('Map-Vancouver.html','Map',config='width=650,height=375,scrollbars=no, left=20, top=20');
}

img0 = new Image ()
img0.src = "images/gallery/Sat0.jpg"

img1 = new Image ()
img1.src = "images/gallery/Sat1.jpg"

img2 = new Image ()
img2.src = "images/gallery/Sat2.jpg"

img3 = new Image ()
img3.src = "images/gallery/Sat3.jpg"

function scanImg(choice) {
document.images.src = eval("img" + choice + ".src");
}

var closeElementId='closewindow'; 
var closeLinkText='Close window'; 
var windowAttributes='width=790,height=590,left=0,top=0,scrollbars=no,resizable=yes';

function goodPop() {
if(!window.opener) 
{ 
 var as,i,popfun 
 as=document.getElementsByTagName('a'); 
 for (i=0;i<as.length;i++) 
 { 
   if(as[i].target=='_blank') 
   { 
     popfun=function(){ 
       window.open(this.href,'',windowAttributes); 
       return false; 
     }; 
     as[i].onclick=popfun; 
     as[i].onkeypress=popfun; 
   } 
 }
} else { 
 var closep,closelink,closetext; 
 closelink=document.createElement('a'); 
 closetext=document.createTextNode(closeLinkText); 
 closelink.href='#'; 
 closelink.appendChild(closetext); 
 closelink.onclick=function(){self.close();}; 
 closelink.onkeypress=function(){self.close();}; 
 if(document.getElementById(closeElementId)) 
 { 
   document.getElementById(closeElementId).appendChild(closelink);   
 } else { 
   closep=document.createElement('p'); 
   closep.id=closeElementId; 
   closep.appendChild(closelink); 
   document.body.insertBefore(closep,document.body.firstChild);   
 } 
}
}

var newwin;
function launchwin(winurl,winname,winfeatures)
{
	//This launches a new window and then
	//focuses it if window.focus() is supported.
	newwin = window.open(winurl,winname,winfeatures);
//	if(javascript_version > 1.0)
//	{
		//delay a bit here because IE4 encounters errors
		//when trying to focus a recently opened window
// 		setTimeout('newwin.focus();',250);
//	}
}

function bookMark(url, description)
{
	netscape="Function not available in Netscape. Click OK, then press CTRL-D to add a bookmark."
	explorer="Bookmark for this website has been added to your Favorites."
	if (navigator.appName=='Microsoft Internet Explorer')
	{
		window.external.AddFavorite(url, description);
//	    alert(explorer);
	}
	else if (navigator.appName=='Netscape')
	{
		alert(netscape);
    }
}
//-->

