var pageHeader = {  src: DNN_skinPath + 'phoenixScript.swf' };
sIFR.activate(pageHeader);
sIFR.replace(pageHeader, {
  selector: 'h1', 
  wmode: 'transparent', 
  src:  DNN_skinPath +  'phoenixScript.swf', 
  css: [ '.sIFR-root {color:#ffffff;}'  ]
});



//start jQuery functions
jQuery(document).ready(function(){
/*----- Navigation ------*/
	jQuery('#nav').accordion({
		active: false,
		header: '.menuTitle',
		event: 'click',
		alwaysOpen: false,
		autoheight:false,
		navigation:true,
		animated: 'bounceslide',
		showSpeed: 400,
		hideSpeed: 800
	});
	
/* adjusts css*/
	jQuery("#nav>li a:last").css("background","none");
	
	
/* remove box from links */
	jQuery("a").focus(function(){
		this.blur();
	});
	

/* FAQ Page Answer Accordions*/
   jQuery('.faqAnswer').hide(); 
   jQuery('.question a').click(function() {
       jQuery(this).next('.faqAnswer').slideToggle('fast')
       .siblings('.faqAnswer:visible').slideUp('fast');
});

// open/close all
   jQuery('.openAll a').click(function() {
       jQuery('.faqAnswer').slideToggle('fast');
});
	

// flash features
if (jQuery("#featurebefore").length){
var so = new SWFObject("/features/loader.swf", "features", "465", "273", "9", "#FF6600"); so.addVariable("config", "/features/config.xml"); so.addVariable("feature", "beforeafter"); so.addParam("wmode", "transparent"); so.addParam("quality", "high"); so.write("featurebefore"); 
}

if (jQuery("#featurepartsof").length){
var so = new SWFObject("/features/loader.swf", "features", "465", "304", "9", "#FF6600"); so.addVariable("config", "/features/config.xml"); so.addVariable("feature", "parts"); so.addParam("wmode", "transparent"); so.addParam("quality", "high"); so.write("featurepartsof"); 
}	

if (jQuery("#featurecommon").length){
var so = new SWFObject("/features/loader.swf", "features", "465", "273", "9", "#FF6600"); so.addVariable("config", "/features/config.xml"); so.addVariable("feature", "problems"); so.addParam("wmode", "transparent"); so.addParam("quality", "high"); so.write("featurecommon"); 
}

if (jQuery("#featureoral").length){
var so = new SWFObject("/features/loader.swf", "features", "465", "325", "9", "#FF6600"); so.addVariable("config", "/features/config.xml"); so.addVariable("feature", "hygiene"); so.addParam("wmode", "transparent"); so.addParam("quality", "high"); so.write("featureoral"); 
}

if (jQuery("#featureemer").length){
var so = new SWFObject("/features/loader.swf", "features", "465", "273", "9", "#FF6600"); so.addVariable("config", "/features/config.xml"); so.addVariable("feature", "emergencies"); so.addParam("wmode", "transparent"); so.addParam("quality", "high"); so.write("featureemer");
}

if (jQuery("#featuretypes").length){
var so = new SWFObject("/features/loader.swf", "features", "465", "273", "9", "#FF6600"); so.addVariable("config", "/features/config.xml"); so.addVariable("xmlfile", "/features/types.xml"); so.addParam("wmode", "transparent"); so.addParam("quality", "high"); so.write("featuretypes");
}

if (jQuery("#featureretention").length){
var sshow = new SWFObject("http://tools.televoxsites.com/features/retainer.swf", "slideshow", "450", "265", "6", "#ffffff");
sshow.addVariable("colorslocation", location.host+DNN_skinPath+"colors.txt");
sshow.addParam("wmode", "transparent");
sshow.write("featureretention");
}

	
});
