//here's the sIfr
//code for the h1 tags
var futura = {  src: 'futura.swf' };
sIFR.activate(futura);

sIFR.replace(futura, {
  selector: 'h1', 
  wmode: 'transparent', 
  src: 'futura.swf', 
  css: [ '.sIFR-root {color:#000000; }'  ]
});




//start jQuery functions
jQuery(document).ready(function(){
	
	$("#nav")
	.superfish({
		hoverClass	: "sfHover",
		pathClass	: "overideThisToUse",
		delay		: 500,
		animation	: {opacity:"show",height:"show"},
		speed		: "normal",
		oldJquery	: false, /* set to true if using jQuery version below 1.2 */
		disableHI	: false, /* set to true to disable hoverIntent detection */
		onInit		: function(){},
		onBeforeShow	: function(){},
		onShow		: function(){},
		onHide		: function(){}
	})
	.find(">li:has(ul)") //fixes ie6 bug
		.mouseover(function(){
			jQuery("ul", this).bgIframe({opacity:true});
		})
		.find("a")
			.focus(function(){
				jQuery("ul", jQuery("#nav>li:has(ul)")).bgIframe({opacity:true});
			});
	
	$("#nav li:last").css("background","none");
	
	
	$('.faqAnswer').hide(); 
	$('.question a').click(function() {
		  $(this).next('.faqAnswer').slideToggle('fast')
		  .siblings('.faqAnswer:visible').slideUp('normal');
	});


	/* replace all media files */
	$("a.media").media();
	
	/* remove box from links */
	$("a").focus(function(){
		this.blur();
	});
	
});

//here's a toggle function

 

function toggleDiv(id,flagit) {
 
if (flagit=="1"){


if (document.layers){ 

            if(document.layers[''+id+''].display == "show"){

                         document.layers[''+id+''].display = "hide"; 

                         }

                         else document.layers[''+id+''].display = "show";

                         }

else if (document.all){

            if( document.all[''+id+''].style.display == "block"){

                        document.all[''+id+''].style.display = "none";
                        }

                        else  document.all[''+id+''].style.display = "block";

                        }


            

 

                        

 

else if (document.getElementById){

 

            if( document.getElementById(''+id+'').style.display == "block"){

 

                        document.getElementById(''+id+'').style.display = "none"

 

            }

 

            else document.getElementById(''+id+'').style.display = "block"

 

 

 

}

 

 

 

 

 

}

 

 

 

}

 
