//sIFR implementation
function pageScripts(){
var Caslon = {  src: DNN_skinPath + 'Caslon.swf' };
sIFR.activate(Caslon);
sIFR.replace(Caslon, {
  selector: 'h1', 
  wmode: 'transparent', 
  src:  DNN_skinPath +  'Caslon.swf', 
  css: [ '.sIFR-root {color:#fffefe;font-size:26px;}'  ]
});
}

//Menu implementation	   
jQuery(document).ready(function(){
jQuery.noConflict();	
/* FQA page */
jQuery('.acc h4').click(function() {
		jQuery(this).toggleClass('active').next().toggle("fast");
		return false;
	}).next().hide();	

								
jQuery("#Navigation > 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 () {}
	}).find(">li:has(ul)").mouseover(function () {
		jQuery("ul", this).bgIframe({opacity:true});
	}).find("a").focus(function () {
		jQuery("ul", jQuery("#Navigation > ul >li:has(ul)")).bgIframe({opacity:true});
	});

	/* remove box from links */
	jQuery("a").focus(function(){
	this.blur();
	});
			 

	
	
	menuImage1 = new Image(); 
	menuImage1.src = DNN_skinPath + "images/home_hover.jpg";	 
	menuImage2 = new Image(); 
	menuImage2.src = DNN_skinPath + "images/officeinfo_hover.jpg";
    menuImage3 = new Image(); 
	menuImage3.src = DNN_skinPath + "images/pinfo_hover.jpg";
	menuImage4 = new Image(); 
	menuImage4.src = DNN_skinPath + "images/treatment_hover.jpg";
	menuImage5 = new Image(); 
	menuImage5.src = DNN_skinPath + "images/invisinfo_hover.jpg";
	menuImage6 = new Image(); 
	menuImage6.src = DNN_skinPath + "images/shuttle_hover.jpg";
	
	
	/*Next Button*/
	jQuery(".testimonialArwRt").click(function(){
   	     
	   if(jQuery('.testimonial span:last-child').hasClass('sel')) 
	   {
		  
		   jQuery("div.testimonial span.unsel:first-child").removeClass("unsel").addClass("sel");
		    jQuery("div.testimonial span.sel:last-child").removeClass("sel").addClass("unsel");
 		   jQuery(".sel").css({left:400});						  
		   jQuery(".sel").animate({left:'-=400'},'fast',function(){});
	   }
	   else
	   {
	   jQuery(".testimonial span.sel").removeClass("sel").addClass("unsel").next("span").removeClass("unsel").addClass("sel");
	   jQuery(".sel").css({left:400});						  
	   jQuery(".sel").animate({left:'-=400'},'fast',function(){});
	   }  
	});
	
	/*Previous Button*/	
	jQuery(".testimonialArwLft").click(function(){
   
	   if(jQuery('.testimonial span:first-child').hasClass('sel')) 
	   {
		   
		   jQuery("div.testimonial span.unsel:last-child").removeClass("unsel").addClass("sel");
		   jQuery("div.testimonial span.sel:first-child").removeClass("sel").addClass("unsel");
 		   jQuery(".sel").css({left:-400});						  
	   	   jQuery(".sel").animate({left:'+=400'},'fast',function(){});
	   }
	   else
	   {
	   jQuery(".testimonial span.sel").removeClass("sel").addClass("unsel").prev("span").removeClass("unsel").addClass("sel");
	   jQuery(".sel").css({left:-400});						  
	   jQuery(".sel").animate({left:'+=400'},'fast',function(){});	   
	   }
	   
	});
	
});


