// JavaScript Document
function openWin(theURL,winName,w,h,features) {

	// get users current screen res.
	var sw=screen.width;
	var sh=screen.height;
	var win = null;
 
 	// get center of the screen ...
 	LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
	TopPosition = (screen.height) ? (screen.height-h)/2 : 0,
	
	// settings
	settings = 'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition
	settings = features + ',' + settings
	
	// let's open the window and set the focus ...
	win = window.open(theURL,winName,settings);
	if(win.window.focus){win.window.focus();}
}


// jquery
$(document).ready(function(){

$("a.close").click(function(){
   $("#popup").hide("slow");
   return false;
 });

});