/**** dnn conflict resolution
for this file to work
jQuery.noConflict(); must be called at some point before this file is called
*/

//here's the sIfr
var trajan = {  src: DNN_skinPath+'trajan.swf' };
sIFR.activate(trajan);

sIFR.replace(trajan, {
  selector: '.headerTitle', 
  wmode: 'transparent', 
  src: DNN_skinPath+'trajan.swf', 
  css: [ '.sIFR-root {color:#ffffff; text-transform:uppercase;}' ]
});

sIFR.replace(trajan, {
  selector: '.headerTitleMain', 
  wmode: 'transparent', 
  src: DNN_skinPath+'trajan.swf', 
  css: [ '.sIFR-root {color:#ffffff; text-transform:uppercase; font-weight: bold; text-align: justify; font-size: 25px;}' ]
}); 

/*sIFR.replace(trajan, {
  selector: '.headerTitleMain', 
  wmode: 'transparent', 
  src: DNN_skinPath+'trajan.swf', 
  css: [ '.sIFR-root {color:#FFAE31; text-transform:uppercase; font-weight: bold; }' ]
});*/

jQuery(document).ready(function(){
	/*----- Navigation ------*/
	jQuery('#navigation').accordion({
		active: false,
		header: '.menuTitle',
		event: 'click',
		autoheight:false,
		navigation:true,
		showSpeed: 1200,
		hideSpeed: 1400
	});
	/* THIS REMOVE THE LINE FROM THE EMPTY <UL> ELEMENTS (NOTE: be sure there is NO space between the <ul></ul> elements) */
	jQuery("#navigation li ul:empty").remove();
	
	// Preload all rollovers
	jQuery(".rolloverJPG").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("#navigation > li").hover(
		function(){
			jQuery(this).addClass("hover");
		},
		function(){
			jQuery(this).removeClass("hover");
		});

	/* apply png fix */
	jQuery(document).pngFix();

	/* replace media classes */
	jQuery("a.media").media();
	
	/* remove box from links */
	jQuery("a").focus(function(){
		this.blur();
	});
	
});