jQuery(document).ready(function($){
								
	$('.acc li h4').click(function() {
		$(this).toggleClass('active').next().toggle("fast");
		return false;
	}).next().hide();	

	$("#Navigation > ul").superfish({
		hoverClass:"hover",
		pathClass:"overideThisToUse",
		delay:800,
		animation:{height:"show"},
		speed:"normal"
	});

	$(".Lvl1").append("<li><img src='/Portals/_default/Skins/seaofsmiles/images/subbtm.jpg' class='subbtm'></li>");
 
 	$("#sitemapnavigation79 a").append("<br />");
	$("#sitemapnavigation104 a").append("<br />");

		/* remove box from links */
	$("a").focus(function(){ this.blur(); });
	
	if ($('.lightbox').length) {
		$(".lightbox").lightbox();
	}
	
	$('area[rel]').overlay({
		mask: 'black',
		onBeforeLoad: function() {
			var wrap = this.getOverlay().find('.overlay-content');
			wrap.load(this.getTrigger().attr('href'));
		},
		onClose: function() {
			$('.overlay-content').empty();				
		}
	});
	
	//slideshow pro 
	if ($('#slideshow').length) {
		var so = new SWFObject(DNN_skinPath+"flash/ssp_640x462.swf", "movie", "640", "462", "10", "#000000");
		so.addParam("wmode", "transparent", "high");
		so.addParam("allowfullscreen", "true");
		so.addVariable("xmlFilePath", "/Portals/0/officetour/images.xml");
		so.addVariable("xmlFileType", "Default");
		so.write("slideshow");
	}
	
	/*Preload the menu backgrounds*/
	menuImage1 = new Image(); 
	menuImage1.src = DNN_skinPath + "images/home_on.png";
	menuImage2 = new Image(); 
	menuImage2.src = DNN_skinPath + "images/newpatients_on.png";	
	menuImage3 = new Image(); 
	menuImage3.src = DNN_skinPath + "images/patientinfo_on.png";
	menuImage4 = new Image(); 
	menuImage4.src = DNN_skinPath + "images/ouroffice_on.png";
	menuImage5 = new Image(); 
	menuImage5.src = DNN_skinPath + "images/treatmentinfo_on.png";
	menuImage6 = new Image(); 
	menuImage6.src = DNN_skinPath + "images/kidsclub_on.png";
	menuImage7 = new Image(); 
	menuImage7.src = DNN_skinPath + "images/contactus_on.png";
	menuImage8 = new Image(); 
	menuImage8.src = DNN_skinPath + "images/PLoginTop_hover.png";
	
	if ($("#orthodontist").length){
		var sshow = new SWFObject("http://tools.televoxsites.com/features/beOrtho.swf", "slideshow", "500", "373", "6", "#000000");
		sshow.addVariable("colorslocation", location.host+DNN_skinPath+"colors.txt"); 
      sshow.addParam("wmode", "transparent"); 
      sshow.write("orthodontist");
	}

});

function pageScripts(){
	var KozGoPr6N = {  src: DNN_skinPath + 'KozGoPr6N.swf' };
	sIFR.activate(KozGoPr6N);
	sIFR.replace(KozGoPr6N, {
		selector: 'h1', 
		wmode: 'transparent', 
		src:  DNN_skinPath +  'KozGoPr6N.swf', 
		css: [ '.sIFR-root {color:#1e5f92; font-size:35px;}'  ]
	});
}
function pageScripts1(){
	var KozGoPr6N = {  src: DNN_skinPath + 'KozGoPr6N.swf' };
	sIFR.activate(KozGoPr6N);
	sIFR.replace(KozGoPr6N, {
		selector: '.submenu', 
		wmode: 'transparent', 
		src:  DNN_skinPath +  'KozGoPr6N.swf', 
		css: [ '.sIFR-root {color:#ffffff; font-size:24px;}'  ]
	});
}
