var $j = jQuery.noConflict();

$j(document).ready (function () {
  makenav();  // Setup the main Site nav
  
//	$j("a[rel^='prettyPhoto']").prettyPhoto();
  
  
	$j("a[href^='http']").attr('target','_blank');
  
});

// Function to remove Top level nav elements from the [ppm:verticalFlyoutMenu] Fuego CMS plugin . //

 function makenav(){
 	$j("a.menu").parent().hide(); // Hide all top-level <li> elements //
 	$j("a.menu").hide(); // Hide top-level nav text //
 	$j("a.submenu1active").parent().parent().parent().show(); // Show 2nd level nav elements for the currentl active section.
	
	// Add class that will display/hide 3rd level nav elements when its parent 2nd nav element is hovered over/off of.
	$j("div#mainNav ul#vertnav ul li").hover(
	
	function () {
        $j(this).addClass("on");
      },
    function () {
        $j(this).removeClass("on");
      }
    );
}

/* Function used to enable page re-directions on the "Please Select City" select menu */

function sendTo(select){
	var input = 0;
	input = select.value;
	if (input != "") {
		window.location.href = input;
	}
}

// Remove the vert.css style sheet //

function removeVertCSS(){
	$j("link[href='/common/css/vert.css']").remove();
	$j("link[href='/common/css/vertie7.css']").remove();
	$j("link[src='/common/js/flymenu.js']").remove();	
}