/*----- SIFR ------*/
var rage = {  src: DNN_skinPath+'avantGarde.swf' };
sIFR.activate(rage);
sIFR.replace(rage, {
  selector: 'h1', 
  wmode: 'transparent',
  src: DNN_skinPath+'avantGarde.swf',
  css: [
      '.sIFR-root {color:#FFFFFF;}'
    ]
});



jQuery(document).ready(function(){

jQuery("a.subRollOver").prepend("<span class='leftcap cap'>[</span><span class='rightcap cap'>]</span>");

	/*----- Navigation ------*/
	jQuery('#mainmenu').accordion({
		active: false,
		header: '.menuTitle',
		event: 'click',
		alwaysOpen: false,
		autoheight:false,
		navigation:true,
		animated: 'slide',
		showSpeed: 700,
		hideSpeed: 900
	
});
	
	
	// Preload all rollovers
	jQuery(".rollover").each(function() {
		// Set the original src
		rollsrc = jQuery(this).attr("src");
		rollON = rollsrc.replace(/.jpg$/ig,"_on.jpg");
		jQuery("<img>").attr("src", rollON);
	});
	
	// Navigation rollovers
	jQuery(".rollover").mouseover(function(){
		imgsrc = jQuery(this).attr("src");
		matches = imgsrc.match(/_on/);
		// don't do the rollover if state is already ON
		if (!matches) {
			imgsrcON = imgsrc.replace(/.jpg$/ig,"_on.jpg"); // strip off extension
			jQuery(this).attr("src", imgsrcON);
		}
	}).mouseout(function(){
		jQuery(this).attr("src", imgsrc);
	});
	
	/* THIS REMOVE THE LINE FROM THE EMPTY <UL> ELEMENTS (NOTE: be sure there is NO space between the <ul></ul> elements) */
	jQuery("#mainmenu li ul:empty").remove();

	
	/* remove box from links */
	jQuery("a").focus(function(){
		this.blur();
	});
	
});



