$(document).ready(function(){
	
	$("#menu > ul").superfish({
		hoverClass:"hover",
		pathClass:"overideThisToUse",
		delay:800,
		animation:{height:"show"},
		speed:"normal",
		oldJquery:false,
		disableHI:false,
		onInit:function () {},
		onBeforeShow:function () {},
		onShow:function () {},
		onHide:function () {}
	});
	
	$("a[href='#']").click(function() { return false });
	
	$("a").focus(function(){
		this.blur();
	});
	
	// faq accordion
	if (document.getElementById("accordion")) {
		$('#accordion').accordion({ autoHeight: false });
	}
	
	// sets rollovers / active state
	$("li:not(.SelectedTab) a img.LinkIcon").rollover();
	$("#callouts a img").rollover();
	
	$('.SelectedTab a img.LinkIcon').attr('src', function(){
		this.src = this.src.replace('.jpg', '_active.jpg');
	}).hover(function() {
		this.src = this.src.replace('_active.jpg', '_on.jpg');	},
		function() { this.src = this.src.replace('_on.jpg','_active.jpg'); }
	);
	
	Image1 = new Image();
	Image1.src = DNN_skinPath + "images/menu_home_on.jpg";
	Image2 = new Image();
	Image2.src = DNN_skinPath + "images/menu_officeInfo_on.jpg";
	Image3 = new Image();
	Image3.src = DNN_skinPath + "images/menu_patientInfo_on.jpg";
	Image4 = new Image();
	Image4.src = DNN_skinPath + "images/menu_treatment_on.jpg";
	Image5 = new Image();
	Image5.src = DNN_skinPath + "images/menu_funnStuff_on.jpg";
	Image6 = new Image();
	Image6.src = DNN_skinPath + "images/menu_patientLogin_on.jpg";
	Image7 = new Image();
	Image7.src = DNN_skinPath + "images/sub_hover.gif";

});

function sifr() {
	var vladmir = {  src: DNN_skinPath + 'flash/VladmirScript_cs4.swf' };
	sIFR.activate(vladmir);
	sIFR.replace(vladmir, {
  		selector: 'h1', 
  		wmode: 'transparent', 
  		src:  DNN_skinPath +  'flash/VladmirScript_cs4.swf', 
  		css: [ '.sIFR-root {color:#ffffff; font-size:48px; }'  ]
	});
}
