function pageScripts(){
var Giovanni = {  src: DNN_skinPath + 'Giovanni.swf' };
sIFR.activate(Giovanni);
sIFR.replace(Giovanni, {
  selector: 'h1', 
  wmode: 'transparent', 
  src:  DNN_skinPath +  'Giovanni.swf', 
  css: [ '.sIFR-root {color:#0073ae; font-size:48px;text-transform:uppercase;}'  ]
});
}

function pageScripts1(){
var GiovanniIN = {  src: DNN_skinPath + 'GiovanniIN.swf' };
sIFR.activate(GiovanniIN);
sIFR.replace(GiovanniIN, {
  selector: 'h1', 
  wmode: 'transparent', 
  src:  DNN_skinPath +  'GiovanniIN.swf', 
  css: [ '.sIFR-root {color:#0073ae; font-size:36px;text-transform:uppercase;}'  ]
});
}

///Menu implementation	   
jQuery(document).ready(function($){
	
	//menu	
	function mouseOver(elem) {
		$('.sub', this).slideDown().parent().addClass('current');		
	}
	function mouseOut(elem) {
		$('.sub', this).slideUp().parent().removeClass('current');	
	}
	
	$('.abscontainer').hoverIntent(mouseOver, mouseOut);
					
		
	$("#Navigation > ul").superfish({
		hoverClass:"hover",
		pathClass:"overideThisToUse",
		delay:800,
		animation:{height:"show"},
		speed:"normal"
	});

	//FAQ
	$('.acc h4').click(function() {
	 $(this).toggleClass('active').next().toggle("fast");
	 return false;
	 }).next().hide(); 
	 
	/* remove box from links */
	$("a").focus(function(){
		this.blur();
	});	
	
	/*Preload the menu backgrounds*/
	menuImage1 = new Image(); 
	menuImage1.src = DNN_skinPath + "images/consultationreq_on.png";
	menuImage2 = new Image(); 
	menuImage2.src = DNN_skinPath + "images/directions_on.png";	
	menuImage3 = new Image(); 
	menuImage3.src = DNN_skinPath + "images/directions_on.png";
	
	if ($("#featureorthognathic").length){
		var sshow = new SWFObject("http://tools.televoxsites.com/features/orthognathic.swf", "slideshow", "190", "205", "6", "#000000"); 
		sshow.addParam("wmode", "transparent"); 
		sshow.write("featureorthognathic");
	}
	
	// put in $(document).ready(function($) {
	if ($('#office-tour').length) {
		$('#office-tour').cycle({
			speed: 1500,
			timeout: 6000,
			before: setTitle
		});		
	}
	// set the caption
	function setTitle() {
		$('#caption').text(this.alt);
	}
});
