//function swap(){this.className="msieFix"}
//function swapBack(){this.className="trigger"}
//function swapfocus() {this.parentNode.parentNode.parentNode.className="msieFix"}
//function swapblur() {this.parentNode.parentNode.parentNode.className="trigger"}
//function TJK_dropDown(){// v1.0 Copyright (c) 2006 TJKDesign - Thierry Koblentz
//	if (document.getElementById){	
//	var LI = document.getElementsByTagName("li");
//	var zLI= LI.length;
//		for(var k=0;k<zLI;k++){
//			if(LI[k].id.indexOf('nav_') > -1){
////			LI[k].firstChild.href="#";
//			LI[k].className="trigger";
//			}
//			if(LI[k].parentNode.parentNode.className=="trigger"){LI[k].firstChild.onfocus=swapfocus;LI[k].firstChild.onblur = swapblur}
//			if(LI[k].className=="trigger"){LI[k].onmouseover=swap;LI[k].onmouseout=swapBack}
//		}
//	}
//}
//window.onload=function(){TJK_dropDown();}

/*pop this in here as always loaded*/
function winPop(mypage, myname, w, h, scroll, tool, menu)
{
 var winl = (screen.width - w) / 7;
 var wint = (screen.height - h) / 7;
 winprops =  'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable=yes,toolbar='+tool+',menubar='+menu+',status=no,'
 win = window.open(mypage, myname, winprops)
 if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
 return false;
}

$.noConflict();
jQuery(document).ready(function ($) {
    // Code that uses jQuery's $ can follow here.

    var section = "#" + $("body").attr("class");
    $(section).addClass("active");
    $("li", $(section)).addClass("active");
    //$("span", $(section)).show().addClass("active");

    /*$("ul#dropDownMenu li").hover(function () { //Hover over event on list item
        $(this).css({ 'background': '#E73A1A url(topnav_active.gif) repeat-x' }); //Add background color + image on hovered list item
        $(this).find("span").show(); //Show the subnav
    }, function () { //on hover out...
        $(this).css({ 'background': 'none' }); //Ditch the background
        $("span", $(this)).hide(); //Hide the subnav
        //show the active one
        $("ul#dropDownMenu li.active span").show();
    });*/

});
