<!--
$(document).ready(function(){
    $("#nav-one li").hover(
        function(){ $("ul", this).fadeIn("fast"); }, 
        function() { } 
    );
if (document.all) {
        $("#nav-one li").hoverClass ("sfHover");
    }
});

$(document).ready(function(){
    $("#nav-two li").hover(
        function(){ $("ul", this).fadeIn("fast"); }, 
        function() { } 
    );
if (document.all) {
        $("#nav-two li").hoverClass ("sfHover");
    }
});

$.fn.hoverClass = function(c) {
    return this.each(function(){
        $(this).hover( 
            function() { $(this).addClass(c);  },
            function() { $(this).removeClass(c); }
        );
    });
};	  


function fPopupPicFindImageFromControl(oPopupImgPath, controlID) { 
	var vImg = document.getElementById(controlID);
	var vImgName = vImg.src;
	vImgName = vImgName.substring(vImgName.lastIndexOf("/")+1);
	fPopupPic(oPopupImgPath + vImgName);
}


function switchBetweenDivs(activetab,deactivetab,activediv,deactivediv)
{
  var elem, vis;
  if( document.getElementById ) // this is the way the standards work
  {
	activetab = document.getElementById( activetab );
	deactivetab = document.getElementById( deactivetab );
	activediv = document.getElementById( activediv );
	deactivediv = document.getElementById( deactivediv );
  }
  else if( document.all ) // this is the way old msie versions work
  {
	activetab = document.all[activetab];
	deactivetab = document.all[deactivetab];
	activediv = document.all[activediv];
	deactivediv = document.all[deactivediv];
	
  }
  else if( document.layers ) // this is the way nn4 works
  {
	activetab = document.layers[activetab];
	deactivetab = document.layers[deactivetab];
	activediv = document.layers[activediv];
	deactivediv = document.layers[deactivediv];
  }

  if(activetab)
 	 activetab.className = 'active';
	 
  if(deactivetab)  
  	deactivetab.className = '';
	
  if(activediv)
 	 activediv.style.display = 'block';
  
  if(deactivediv)
  	deactivediv.style.display = 'none';
}


//-->