$(function () {
// Attach interface library for IE	
    if ($.browser.msie  && parseInt($.browser.version) <= 8) {
        $('.interface').each(function () {
           

				try
				  {
				      PIE.attach(this);
				  }
				catch(err)
				  {

					// alert(err);
				  //Handle errors here
				  }


        });
    }
// On DOM Ready modifications
	$('.menu li:last').css({'background':'none'});
	$('.flag').css({'top':'10.5px'});
	$('.crumbs li:last').css({'background':'none'});

	//$('.menu li a.active:first').css({'background':'url(images/layout/navigation_bg.png) no-repeat left -35px;'});
	//$('.menu li a.active:last').css({'background':'url(images/layout/navigation_bg.png) no-repeat right -35px;'});

	if ($.browser.webkit) {
       	$('.flag').css({'top':'12.5px'});
    }
	if ($.browser.mozilla) {
       	$('.flag').css({'top':'12px'});
    }
	if ($.browser.msie  && parseInt($.browser.version) <= 8) {
		$('.flag').css({'top':'12.5px'});
    }
});

$(function(){
	$('.slider').fxcs({
		mode: 'horizontal',
		controls: false,
		autoHover: true,
		infiniteLoop: true,
		auto: true,
		pager: true
	});
});	

(function($) {
        var defaults = {
                mouseOutOpacity:   0.67,
                mouseOverOpacity:  1.0,
                fadeSpeed:         'fast',
                exemptionSelector: '.selected'
        };

        $.fn.opacityrollover = function(settings) {
                // Initialize the effect
                $.extend(this, defaults, settings);

                var config = this;

                function fadeTo(element, opacity) {
                        var $target = $(element);
                        
                        if (config.exemptionSelector)
                                $target = $target.not(config.exemptionSelector);        
                        
                        $target.fadeTo(config.fadeSpeed, opacity);
                }

                this.css('opacity', this.mouseOutOpacity)
                        .hover(
                                function () {
                                        fadeTo(this, config.mouseOverOpacity);
                                },
                                function () {
                                        fadeTo(this, config.mouseOutOpacity);
                                });

                return this;
        };
})(jQuery);




