function openwin(url,name,w,h){
	new_win = window.open(url,name,'toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1,resizable=1,width='+w+',height='+h);
var wi = 480, he = 340;

if (document.all || document.layers) {
   wi = screen.availWidth;
   he = screen.availHeight;
}

var popW = 300, popH = 200;
var leftPos = (wi-w)/2, topPos = (he-h)/2;

	new_win.moveTo(leftPos,topPos);
	new_win.focus(); 
}


function AddToFaves_hp(page){
	var is_4up = parseInt(navigator.appVersion);
	var is_mac   = navigator.userAgent.toLowerCase().indexOf("mac")!=-1;
	var is_ie   = navigator.userAgent.toLowerCase().indexOf("msie")!=-1;
	var thePage = location.href;
	if (thePage.lastIndexOf('#')!=-1)
		thePage = thePage.substring(0,thePage.lastIndexOf('#'));
	if (is_ie && is_4up && !is_mac) 
		window.external.AddFavorite(thePage,document.title);
	else if (is_ie || document.images)
		booker_hp = window.open(page,'booker_','menubar,width=325,height=100,left=140,top=60');
	//booker_hp.focus();
	}

if (window.name=='booker_'){
	var pre_fix = document.images? '<br />':'';
	document.write(pre_fix + '<p align="center">'
	+ 'Use the menu or ctrl/cmd-D now <br />to bookmark the page then <br />'
	+ '<a href="javascript:window.close();">close this window</a></p>'
	+ '<p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p>');
	}


