//activates the sIFR
//code for the h1 tags
var pageHeader = {  src: 'centaurFestive.swf' };
sIFR.activate(pageHeader);

sIFR.replace(pageHeader, {
  selector: 'h1', 
  wmode: 'transparent', 
  src: 'centaurFestive.swf', 
  css: [ '.sIFR-root {color:#A29D80; text-align:center; }'  ]
});

var subHead = {  src: 'centaurFestive.swf' };
sIFR.activate(subHead);

sIFR.replace(subHead, {
  selector: 'h4#subHead', 
  wmode: 'transparent', 
  src: 'centaurFestive.swf', 
  css: [ '.sIFR-root {color:#A29D80; text-align:center; }'  ]
});

var smallHead = {  src: 'centaurFestive.swf' };
sIFR.activate(smallHead);

sIFR.replace(smallHead, {
  selector: 'h1#small', 
  wmode: 'transparent', 
  src: 'centaurFestive.swf', 
  css: [ '.sIFR-root {color:#A29D80; text-align:center;}'  ]
});




//  onload="fixPNG(this)"
var arVersion = navigator.appVersion.split("MSIE")
var version = parseFloat(arVersion[1])

function fixPNG(myImage) 
{
    if ((version >= 5.5) && (version < 7) && (document.body.filters)) 
    {
       var imgID = (myImage.id) ? "id='" + myImage.id + "' " : ""
	   var imgClass = (myImage.className) ? "class='" + myImage.className + "' " : ""
	   var imgTitle = (myImage.title) ? 
		             "title='" + myImage.title  + "' " : "title='" + myImage.alt + "' "
	   var imgStyle = "display:inline-block;" + myImage.style.cssText
	   var strNewHTML = "<span " + imgID + imgClass + imgTitle
                  + " style=\"" + "width:" + myImage.width 
                  + "px; height:" + myImage.height 
                  + "px;" + imgStyle + ";"
                  + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
                  + "(src=\'" + myImage.src + "\', sizingMethod='scale');\"></span>"
	   myImage.outerHTML = strNewHTML	  
    }
}


function OpenChildWin(nurl,nname, nwidth,nheight) {
  popupWin = window.open(nurl, nname, 'scrollbars=1,width=' + nwidth +',height=' + nheight)
}



$(document).ready(function(){
	/*----- Navigation ------*/
	$('#nav').accordion({
		active: false,
		header: '.menuTitle',
		event: 'click',
		alwaysOpen: true,
		autoheight:false,
		navigation:true,
		animated: 'slide',
		showSpeed: 400,
		hideSpeed: 800
	});
	
	/* adjusts css*/
	$('#nav>li:last').css('margin-bottom','0px');	
	
	/* faq*/
	$('.element').hide(); 
	$('.toggler').click(function() {
		  $(this).next('.element').slideToggle('fast')
		  .siblings('.element:visible').slideUp('normal');
	});


	/* remove box from links */
	$('a').focus(function(){
		this.blur();
	});
	
	$('#tour').before('<div id="imgNav">')
	.after('<div id="caption" />')
	.cycle({
		fx:     'fade',
		speed:  'slow',
		timeout: 5000,
		pager:  '#imgNav',
		before: function() {$('#caption').html('<p >&nbsp;</p>');    },
		after: function() {$('#caption').html('<p>' + this.alt + '</p>');  },
		nowrap:false,
		pause:	1
	});
	
});

