
    
	$(".events").click(function() {							

				var selectedEffect = $('#effectTypes').val();
				var options = {};
				if(selectedEffect == 'scale'){  options = {percent: 100}; }
				else if(selectedEffect == 'transfer'){ options = { to: "#button", className: 'ui-effects-transfer' }; }
				else if(selectedEffect == 'size'){ options = { to: {width: 280,height: 185} }; }													 				
				
					
					$(".tab-latestnews").hide();
					$(".tab-events").show();
					$(".events").addClass('active');
					$(".latestnews").removeClass('active');		
				
	});	
	$(".latestnews").click(function() {					
			var selectedEffect = $('#effectTypes').val();
			var options = {};
			if(selectedEffect == 'scale'){  options = {percent: 100}; }
			else if(selectedEffect == 'transfer'){ options = { to: "#button", className: 'ui-effects-transfer' }; }
			else if(selectedEffect == 'size'){ options = { to: {width: 280,height: 185} }; }
			$(".tab-latestnews").show();
			$(".tab-events").hide();
			$(".events").removeClass('active');
			$(".latestnews").addClass('active');		
			
	});

$(window).resize(function() {   var minheight = $(window).height() -460; 	$(".s-content").css("min-height", minheight); var minheight1 = $(window).height() - 420; 	$(".s-content-inner").css("min-height", minheight1);  });
$(window).load(function() {    var minheight = $(window).height() -460 ;  	$(".s-content").css("min-height", minheight); var minheight1 = $(window).height() -420 ;  	$(".s-content-inner").css("min-height", minheight1);   });

$("#nav ul ").css({ display: "none" }); // Opera Fix
$("#nav li").hover(function() {
    $(this).find('ul:first').css({ visibility: "visible", display: "none" }).show(350);
}, function() {
    $(this).find('ul:first').css({ visibility: "hidden" });
});



$(window).resize(function() { var minheight = $(window).height() - 196; $(".no-banner").css("min-height", minheight); });
$(window).load(function() { var minheight = $(window).height() - 196; $(".no-banner").css("min-height", minheight); });

$.fn.extend({
    customStylesm: function(options) {
        if (!$.browser.msie || ($.browser.msie && $.browser.version > 6)) {
            return this.each(function() {
                var currentSelected = $(this).find(':selected')
                $(this).after('<span class="customStyleSelectBox-small"><span class="customStyleSelectBox1Inner-small">' + currentSelected.text() + '</span></span>').css({ position: 'absolute', opacity: 0, fontSize: $(this).next().css('font-size') });
                var selectBoxSpan = $(this).next();
                var selectBoxWidth = parseInt($(this).width()) - parseInt(selectBoxSpan.css('padding-left')) - parseInt(selectBoxSpan.css('padding-right'));
                var selectBoxSpanInner = selectBoxSpan.find(':first-child');
                selectBoxSpan.css({ display: 'inline-block' });
                selectBoxSpanInner.css({ width: selectBoxWidth, display: 'inline-block' });
                var selectBoxHeight = parseInt(selectBoxSpan.height()) + parseInt(selectBoxSpan.css('padding-top')) + parseInt(selectBoxSpan.css('padding-bottom'));
                $(this).height(selectBoxHeight).change(function() {
                    //selectBoxSpanInner.text($(this).val()).parent().addClass('changed-small');
                    selectBoxSpanInner.text($(this).find(':selected').text()).parent().addClass('changed-small');
                    // Thanks to Juarez Filho & PaddyMurphy
                });
            });
        }
    }
});



$(function() { $('select.styled-small').customStylesm(); });
	  
