// preload nav images
nav1 = new Image();
nav1.src = "images/layout/navDivider.jpg";


//activates the sIFR
//code for the h1 tags
var title1 = {  src: 'mrsEavesIt.swf' };
sIFR.activate(title1);

sIFR.replace(title1, {
  selector: 'h1', 
  wmode: 'transparent', 
  src: 'mrsEavesIt.swf', 
  css: [ '.sIFR-root {color:#006699; margin-left:20px; }'  ]
});


//code for the h2 tags
var pageHeader = {  src: 'bickhamScript.swf' };
sIFR.activate(pageHeader);

sIFR.replace(pageHeader, {
  selector: 'h2', 
  wmode: 'transparent', 
  src: 'bickhamScript.swf', 
  css: [ '.sIFR-root {color:#aaaaaa; }'  ]
});





//start jQuery functions
$(document).ready(function(){
	
	$("#nav")
	.superfish({
		hoverClass	: "sfHover",
		pathClass	: "overideThisToUse",
		delay		: 500,
		animation	: {opacity:"show",height:"show"},
		speed		: "normal",
		oldJquery	: false, // set to true if using jQuery version below 1.2
		disableHI	: false, // set to true to disable hoverIntent detection
		onInit		: function(){},
		onBeforeShow	: function(){},
		onShow		: function(){},
		onHide		: function(){}
	})
	.find("#nav>li:has(ul)") //fixes ie6 bug
		.mouseover(function(){
			$("ul", this).bgIframe({opacity:true});
		})
		.find("a")
			.focus(function(){
				$("ul", $("#nav>li:has(ul)")).bgIframe({opacity:true});
			});
	
	// remove last navDivider img
	$("#nav li:first").css("background","none");
	$(".wideTable td:last-child").addClass("priceTD");
		
	$('table').not(".formula").tableHover({colClass: 'thHover', rowClass: 'trHover', cellClass: 'tdHover'});
	
	// remove box from links
	$("a").focus(function(){
		this.blur();
	});
	
	// image replacement
	$('strong.logo').each(function() {
      $(this).html('<img src="images/tinyLogo.gif" />');
    });
	
	$('strong.logo2').each(function() {
      $(this).html('<img src="images/tinyLogo2.gif" />');
    });


});


