$(function(){	
	$("#localNav ul ul").prev().addClass("subNav");	
	$("div.discontinue").hover(function(){$(this).addClass("hover");},function(){$(this).removeClass("hover");});	
	$("div.discontinue").click(function(){
		$("div.discontinue").removeClass("select");
		$("div.register").hide();
		$(this).addClass("select").next().fadeIn();
	});	
	$("span.click").hover(function(){$(this).addClass("hover");},function(){$(this).removeClass("hover");});
	$("span.click").click(function(){$(this).parent().parent().hide().next().show();});
	$("div.discontinue:eq(0)").addClass("select").next().fadeIn();
});

function popWin(URL, Width, Height, Resizable, Scrollbars) {
	if ((Width == null) || (Width == "")) { Width = 570; }
	if ((Height == null) || (Height == "")) { Height = 340; }
	if ((Resizable == null) || (Resizable == "")) { Resizable = "no"; }
	if ((Scrollbars == null) || (Scrollbars == "")) { Scrollbars = "no"; }

	var positionX = (screen.availWidth - Width) / 2;
	var positionY = (screen.availHeight - Height) / 2;

	Day = new Date();
	WindowName = Day.getTime();

	window.open(URL,WindowName,"width=" + Width + ",height=" + Height + ",left=" + positionX + ",top=" + positionY + ",channelmode=0,dependent=0,directories=0,location=0,menubar=0,resizable=" + Resizable + ",scrollbars=" + Scrollbars + ",status=0,toolbar=0");
}