$(document).ready(function(){

	/*----- Navigation ------*/
	$('#nav').accordion({
		active: false,
		header: '.menuTitle',
		event: 'click',
		autoheight:false,
		navigation:false,
		showSpeed: 1200,
		hideSpeed: 1400
	});

	
	/* replace media classes */
	$("a.media").media();
	
	/* remove box from links */
	$("a").focus(function(){
		this.blur();
	});
	
	/* THIS REMOVE THE LINE FROM THE EMPTY <UL> ELEMENTS (NOTE: be sure there is NO space between the <ul></ul> elements) */
	jQuery("#nav li ul:empty").remove();
	
	jQuery(".menuRollOver").rollover();
	
});

//here's the sIfr
var optimamedium = {  src: 'optimamedium.swf' };
sIFR.activate(optimamedium);

sIFR.replace(optimamedium, {
  selector: 'h1', 
  wmode: 'transparent', 
  src: 'optimamedium.swf', 
  css: [
		'.sIFR-root {color:#196148;}' ]
});

var optimabold = {  src: 'optimabold.swf' };
sIFR.activate(optimabold);

sIFR.replace(optimabold, {
  selector: '#tlink', 
  wmode: 'transparent', 
  src: 'optimabold.swf', 
  css: [
		'.sIFR-root {color:#196148;}',
		'.sIFR-root a {color:#196148; text-decoration: none; font-weight: bold;}']
});