if (document.images)
{
  pic1= new Image();  pic1.src="../images/nav1_on.gif"; 
	pic2= new Image();  pic2.src="../images/nav2_on.gif";
	pic3= new Image();  pic3.src="../images/nav3_on.gif";
	pic4= new Image();  pic4.src="../images/nav4_on.gif";

}

function roll_over()
{   
	 var imgsrc = $(this).attr('src');
	 
   var matches = imgsrc.match('_on');
	 if (!matches) {
	   imgsrcON = imgsrc.replace(/.gif$/ig,"_on.gif");
		 $(this).attr("src", imgsrcON);
	 }
}

function roll_out(){
   
   if($(this).attr('id') != section)
	 {
		 var imgsrc = $(this).attr('src');
  	 imgsrcOFF = imgsrc.replace(/_on.gif$/ig,".gif");
  	 $(this).attr("src", imgsrcOFF);
	 }
}

$(document).ready(function()
{  
	 //  rollovers
   $('#headernav > ul > li > a > img').bind('mouseover', roll_over);
   $('#headernav > ul > li > a > img').bind('mouseout', roll_out);
	 
});
