//sIFR implementation

function pageScripts() {
var ScriptinaPro = {  src: DNN_skinPath + 'ScriptinaPro.swf' };
sIFR.activate(ScriptinaPro);
sIFR.replace(ScriptinaPro, {
  selector: 'h1', 
  wmode: 'transparent', 
  src:  DNN_skinPath +  'ScriptinaPro.swf', 
  css: [ '.sIFR-root {color:#56c7f3; font-size:52px; text-indent:15px;}']
});
}

//Menu implementation	

jQuery(document).ready(function($){

	jQuery('.acc h4').click(function() {
		jQuery(this).toggleClass('active').next().toggle("fast");
		return false;
	}).next().hide(); 
	
	jQuery("#Navigation > ul").superfish({
		delay:800,
		animation:{height:"show"}
	});
 
 	/* remove box from links */	
	jQuery("a").focus(function(){	this.blur(); });	
	
	// preload
	menuImage1 = new Image(); 
	menuImage1.src = DNN_skinPath + "images/home_on.png";	 
	menuImage2 = new Image(); 
	menuImage2.src = DNN_skinPath + "images/officeinfo_on.png";
   menuImage3 = new Image(); 
	menuImage3.src = DNN_skinPath + "images/patientinfo_on.png"; 
	menuImage4 = new Image(); 
	menuImage4.src = DNN_skinPath + "images/treatment_on.png"; 
	menuImage5 = new Image(); 
	menuImage5.src = DNN_skinPath + "images/fun_on.png";
	
	// rollovers ENGAGE
	jQuery(".LinkIcon").rollover();
		
	if (jQuery("#DentalDevelopement").length){
		var so = new SWFObject("http://tools.televoxsites.com/features/dentaldevelopment.swf", "features2", "450", "400", "9", "#FF6600");
		so.addParam("wmode", "transparent");
		so.addParam("quality", "high");
		so.write("DentalDevelopement"); 
	}
	
	if (jQuery("#gums").length){
  		var sshow = new SWFObject("http://tools.televoxsites.com/features/gums.swf", "slideshow2", "350", "260", "6", "#000000"); 
		sshow.addVariable("colorslocation", location.host+DNN_skinPath+"colors.txt"); 
		sshow.addParam("wmode", "transparent"); 
		sshow.write("gums");
	}
	
});
