sIFR.replaceElement(named({sSelector:"#main h2",sFlashSrc:"/js/sifr/vagbold.swf",sColor:"#DB131D",sWmode:"transparent"}));
sIFR.replaceElement(named({sSelector:"#main h3",sFlashSrc:"/js/sifr/vagbold.swf",sColor:"#DB131D",sWmode:"transparent"}));
sIFR.replaceElement(named({sSelector:"#sideBar h3",sFlashSrc:"/js/sifr/vagbold.swf",sColor:"#DB131D",sWmode:"transparent"}));

function mycarousel_initCallback(carousel) {
    $('#slideShowMenu a').bind('click', function() {
	 $(this).blur();
        carousel.scroll($.jcarousel.intval($(this).attr('id').slice(3)));
        carousel.startAuto(0);
        return false;
    });
};

function mycarousel_VisibleInCallbackBeforeAnimation(carousel,item,idx,state) {
	$("#slideShowMenu a").removeClass('selected');
	$("#slideShowMenu a#ss_"+idx+"").addClass('selected');
};

function mycarousel_VisibleInCallbackAfterAnimation(carousel,item,idx,state) { };

$(document).ready(function(){

	$("input#newsletter_Name")
		.focus(function(){ if ($(this).val()=="Enter your name here...") $(this).val(""); })
		.blur(function(){ if ($(this).val()=="") $(this).val("Enter your name here..."); });

	$("input#newsletter_Email")
		.focus(function(){ if ($(this).val()=="Enter your email address here...") $(this).val(""); })
		.blur(function(){ if ($(this).val()=="") $(this).val("Enter your email address here..."); });


	$("#slideShowMenu li a").each(function(){
		$(this).prepend("<span>");
		if ($(this).children("span").width()>0) {
			$(this).removeClass('noJS')
			.hover(function(){$(this).children("span").fadeIn('fast')},function(){$("#slideShowMenu li a span").fadeOut('slow');});
		}
	});

	$("#slideShowContainer").jcarousel({
   	   scroll: 1,
	   auto: 4,
	   wrap: 'both',
	   easing: 'easeOutQuad',
	   animation: 'slow',
   	   initCallback: mycarousel_initCallback,
	   itemVisibleInCallback: {
		onBeforeAnimation: mycarousel_VisibleInCallbackBeforeAnimation,
		onAfterAnimation: mycarousel_VisibleInCallbackAfterAnimation
	   }
	});
	
});