/**
 * --------------------------------------------------------------------
 * Custom Library
 * Version: 0,1, 14.11.2009
 * by Jesse Burcsik, jesseburcsik@gmail.com
 *  
 */

var $j = jQuery.noConflict();

function fixPngs(){
        $j(document).pngFix(); 
}

// Remove items addd by the CMS's Vert Nav plugin //

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();	
}

function removecursor(){
	$j("a[href='#']").css('cursor','default');
}

// Add the class "first" to the first and "last" to the last menu items in the main nav //

function addFirstLastClass(){
	$j("ul#vertnav li:first").addClass("first");
	$j("ul#vertnav li:last").parent().parent().addClass("last");
}


// Add hover functionality to main menu li items (for ie) //

function addHover(){
  if (document.all&&document.getElementById){
    navRoot = document.getElementById("vertnav");
    for (i=0; i<navRoot.childNodes.length; i++) {
      node = navRoot.childNodes[i];
      if (node.nodeName=="LI") {
        node.onmouseover=function() {
          this.className+=" over";
        }
        node.onmouseout=function() {
          this.className=this.className.replace(" over", "");
        }
     }
   }
 }
}

