$(document).ready(function() {

	$("a[rel='example2'],a[rel='example3'],a[rel='example4']").colorbox({transition:"fade"});

	$('.MainNews_d1').show();

	$('#news_tab>ul>li').click(function(){

	$('.MainNews_d1').hide();

	$('.MainNews_d2').hide();

	$('.MainNews_d3').hide();

	$('.MainNews_d4').hide();

	$('.MainNews_d'+$(this).attr('MainNews')).show();

	});

	

	$(".ImagesShow").hide();

	$(".sliderkit").hover(function(){

		$(".ImagesShow").fadeIn();

	},function(){

		$(".ImagesShow").fadeOut();

	});


	var fontSize = 16;	
	    $("#increase-font").click(function() {
        fontSize = fontSize + 2;
        fontSize = fontSize >= 24 ? 24 : fontSize;
        $("#ArtSec").find("p,span").each(function() {
            $(this).attr("style", $(this).attr("style") + ";font-size:" + fontSize + "px;");
        });
        return false;
    });
    $("#decrease-font").click(function() {
        fontSize = fontSize - 2;
        fontSize = fontSize <= 12 ? 12 : fontSize;
        $("#ArtSec").find("p,span").each(function() {
            $(this).attr("style", $(this).attr("style") + ";font-size:" + fontSize + "px;");
        });
        return false;
    });
	

});


