/*function showSubNav(selectedSubNav){	
	document.getElementById("home").style.display = 'none'; 
	document.getElementById("products").style.display = 'none'; 
	document.getElementById("birthday").style.display = 'none';  
	document.getElementById("siteprep").style.display = 'none';  
	document.getElementById("maintenance").style.display = 'none'; 
	
	document.getElementById(selectedSubNav).style.display = 'block';
}*/

/*$(document).ready(function(){  
  
    //$("ul.subnav").parent().append("<span></span>"); //Only shows drop down trigger when js is enabled (Adds empty span tag after ul.subnav*)  
  
   // $("ul.topnav li span").click(function() { //When trigger is clicked...  
  
        //Following events are applied to the subnav itself (moving subnav up and down)  
        //$(this).parent().find("ul.subnav").slideDown('fast').show(); //Drop down the subnav on click  
  
        
		$("#nav ul").hover(function() {
		//$(this).parent().hover(function() { 
			//$(this).parent().find("ul").show();
			alert(this);
        }, function(){  
            //$(this).parent().find("ul").hide(); //When the mouse hovers out of the subnav, move it back up  
        });  
  
        //Following events are applied to the trigger (Hover events for the trigger)  
        }).hover(function() {  
            $(this).addClass("subhover"); //On hover over, add class "subhover"  
        }, function(){  //On Hover Out  
            $(this).removeClass("subhover"); //On hover out, remove class "subhover"  
   // });  
  
});*/ 



function launchWS(winName) {

//window height and width
myHeight = screen.height*.80;
myWidth = 784;

//widow height bounds
if ( myHeight < 556 ) {
myHeight = 556;
} else if (myHeight>700) {
myHeight = 700;
}

//get screen size, and cacl center screen positioning
var height = screen.height;
var width = screen.width;
var leftpos = width / 2 - myWidth / 2;
var toppos = (height / 2 - myHeight / 2) - 40;

//open window
msgWindow=window.open(winName,"ws_window","toolbar=no,location=no,directories=no,resizable=yes,menubar=no,scrollbars=no,status=yes,width=" + myWidth + ",height="+ myHeight + ", left=" + leftpos + ",top=" + toppos);

//focus window
setTimeout('msgWindow.focus()',1);
}