$(window).bind('load', function(){
   var preload = [
     '../images/module_v8_link1.gif',
     '../images/module_v8_link2.gif',
	 '../images/module_v8_link3.gif'
	 ];           
   $(document.createElement('img')).bind('load', function(){
    if(preload[0]) this.src = preload.shift();
   }).trigger('load');          
});


$(document).ready(function(){
	$(".module8 a.over img").hover(
		function(){
			if($(this).attr("src").indexOf("Over") == -1) {
				var newSrc = $(this).attr("src").replace(".jpg","Over.jpg");
				$(this).attr("src",newSrc);
			}
		},
		function(){
			if($(this).attr("src").indexOf("Over.jpg") != -1) {
				var oldSrc = $(this).attr("src").replace("Over.jpg",".jpg");
				$(this).attr("src",oldSrc);
			}
		}
	);
});

/*$(document).ready(function(){
	$("#topNav2 .over a img").hover(
		function(){
			if($(this).attr("src").indexOf("Over") == -1) {
				var newSrc = $(this).attr("src").replace(".gif","Over.gif");
				$(this).attr("src",newSrc);
			}
		},
		function(){
			if($(this).attr("src").indexOf("Over.gif") != -1) {
				var oldSrc = $(this).attr("src").replace("Over.gif",".gif");
				$(this).attr("src",oldSrc);
			}
		}
	);
});*/



$(document).ready(function(){
	$(".stepBox a img").hover(
		function(){
			$(this).parent().siblings(".stepDetails").css('display','block');
		},
		function(){
			$(this).parent().siblings(".stepDetails").css('display','none');
		}
	);
});

//added for the specialists page
//$(document).ready(addMouseOvers());

//function addMouseOvers(){

//    $("input.DrClass")
//    var docID = $(this).attr("title");
//     .hover(function(){
//     //alert('mout');
//       //DrInfoDiv('show',docID);
//     },function(){
//     //alert('mout');
//       //DrInfoDiv('hide',docID);
//     }) 
//    ;
//}
//function DrInfoDiv(toggle,DrID){
//    //$("body").append('<div class='DrInfoDiv'>'+ getDrInfo(DrID) +'</div>')
//    if(toggle=='show'){
//      $("#DrInfoDisp").text(getDrInfo(DrID))
//      .css("display","block")
//      ;
//    }else{
//      $("#DrInfoDisp").text(getDrInfo(DrID))
//      .css("display","none")
//      ;
//    }
//}
//function getDrInfo(docID){
//    var drInfoStr = "This is a test string for DrID" + docID;
//    return drInfoStr;
//}

