 IE = (navigator.appName=="Microsoft Internet Explorer" ? 1 : 0);
 NS = (navigator.appName=="Netscape" ? 1 : 0);
 bVer = parseInt(navigator.appVersion);
 
 var newWin=null;
 var browserName = navigator.appName;
 var browserVersion = parseInt (navigator.appVersion);
 var bMac = (window.navigator.userAgent.indexOf("Mac")>=0);
 var bNetscape4Mac = (browserName == "Netscape" && browserVersion == 4 && bMac);
 var bIE5 = (navigator.appVersion.indexOf ("MSIE 5.0") > 0)
 var bIE5Mac = (browserName == "Microsoft Internet Explorer" && bIE5 && bMac);
 
 function newdawnpop(htmlURL) {
          var htmlURLPath = 'http://www.liberanewdawn.com/' + htmlURL + '.html';
          _params = "width=900,height=550,resizable=no,status=no,scrollbars=no";
 
         if (bVer >= 4) {
                  _left = ( (screen.width-900) >>1 );
                  _top = ( (screen.height-550) >>1 );
         } else {
                  _top=150, _left=230;
         }
         if (IE) _params += ",top=" + _top + ",left=" + _left;
         else if (NS) _params += ",screenX=" + _left + ",screenY=" + _top;
 
                 
         	if (!bNetscape4Mac && !bIE5Mac)
	 	{
	 		if (newWin && !newWin.closed)
	 			newWin.close();
	 	
	 	}
	 
	 newWin = window.open(htmlURLPath,"minipop", _params);
	 
	 	if (!bIE5Mac)
	 		newWin.focus();
}
 
 function dvdpop(htmlURL) {
          var htmlURLPath = 'http://ecards.emiclassics.co.uk/angelvoices_inconcert/' + htmlURL + '.htm';
          _params = "width=820,height=540,resizable=no,status=no,scrollbars=no";
 
         if (bVer >= 4) {
                  _left = ( (screen.width-820) >>1 );
                  _top = ( (screen.height-540) >>1 );
         } else {
                  _top=150, _left=230;
         }
         if (IE) _params += ",top=" + _top + ",left=" + _left;
         else if (NS) _params += ",screenX=" + _left + ",screenY=" + _top;
 
                 
         	if (!bNetscape4Mac && !bIE5Mac)
	 	{
	 		if (newWin && !newWin.closed)
	 			newWin.close();
	 	
	 	}
	 
	 newWin = window.open(htmlURLPath,"minipop", _params);
	 
	 	if (!bIE5Mac)
	 		newWin.focus();
}

 function avpop(htmlURL) {
          var htmlURLPath = 'http://ecards.emiclassics.co.uk/angelvoices/' + htmlURL + '.html';
          _params = "width=790,height=520,resizable=no,status=no,scrollbars=no";
 
         if (bVer >= 4) {
                  _left = ( (screen.width-790) >>1 );
                  _top = ( (screen.height-520) >>1 );
         } else {
                  _top=150, _left=230;
         }
         if (IE) _params += ",top=" + _top + ",left=" + _left;
         else if (NS) _params += ",screenX=" + _left + ",screenY=" + _top;
 
                 
         	if (!bNetscape4Mac && !bIE5Mac)
	 	{
	 		if (newWin && !newWin.closed)
	 			newWin.close();
	 	
	 	}
	 
	 newWin = window.open(htmlURLPath,"minipop", _params);
	 
	 	if (!bIE5Mac)
	 		newWin.focus();
}

 function vispop(htmlURL) {
          var htmlURLPath = 'http://ecards.emiclassics.co.uk/libera/' + htmlURL + '.html';
          _params = "width=790,height=500,resizable=no,status=no,scrollbars=no";
 
         if (bVer >= 4) {
                  _left = ( (screen.width-790) >>1 );
                  _top = ( (screen.height-500) >>1 );
         } else {
                  _top=150, _left=230;
         }
         if (IE) _params += ",top=" + _top + ",left=" + _left;
         else if (NS) _params += ",screenX=" + _left + ",screenY=" + _top;
 
                 
         	if (!bNetscape4Mac && !bIE5Mac)
	 	{
	 		if (newWin && !newWin.closed)
	 			newWin.close();
	 	
	 	}
	 
	 newWin = window.open(htmlURLPath,"minipop", _params);
	 
	 	if (!bIE5Mac)
	 		newWin.focus();
}

function leavePage()
{
	
if (newWin)
	newWin.close();

} 
 
