jQuery(document).ready(function(){
		jQuery("#innermenu > ul").superfish({
		hoverClass:"hover",
		pathClass:"overideThisToUse",
		delay:600,
		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("#innermenu > ul >li:has(ul)")).bgIframe({opacity:true});
	});
	/* remove box from links */
	jQuery("a").focus(function(){
		this.blur();
	});
	
	jQuery("#innermenu > ul >li:has(ul > li)").find("a:first").attr("href", "#");
	jQuery("#innermenu a[href='#']").click( function(){ return false; });
	jQuery("#navigation > ul >li > ul:empty").css({'border' : 'none', 'height' : '0', 'width' : '0'});

	//hide the site map
	jQuery("#sitemap").hide();
	//on click show the sitemap
	jQuery("#toggler").bind("click", function () {
 		jQuery("#sitemap").slideToggle("slow");
	});
	
	// testimonial side scroller
	jQuery("div#scroll_divs").scrollable({
		size: 1,
		clickable: false,
		keyboard: false
	});
	
});


function runSiteScripts(path) {
//here's the sIfr
//code for the h1 tags
var ITCAvanteGardeGothicBook = {  src: path + 'ITCAvanteGardeGothicBook.swf' };
sIFR.activate(ITCAvanteGardeGothicBook);
sIFR.replace(ITCAvanteGardeGothicBook, {
  selector: 'h1', 
  wmode: 'transparent', 
  src:  path +  'ITCAvanteGardeGothicBook.swf', 
  css: [ '.sIFR-root {color:#392ed3; }'  ]
});
}
