function imgCycle(){
	$('.bannerleft').cycle({
		fx:    'fade',
		timeout: 4000,
        speed:  2000,
	    delay: -3000
	});
}

function site(){
    
    /*** Top Nav ***/
    $("#topnav li").prepend("<span></span>");

    $("#topnav li").each(function() {
        var linkText = $(this).find("a").html();
        $(this).find("span").show().html(linkText);
    });

    $("#topnav li").hover(
        function() {
            $(this).find("span").stop()
                    .animate({marginTop: "-40"}, 150);
        } ,
        function() {
            $(this).find("span").stop()
                    .animate({marginTop: "0"}, 250);
        }
     );

    /*** END Top Nav ***/

	$('table.tableclass tr:even').addClass('evenClass');
	$('table.tableclass tbody tr').mouseover(function(){ 
        $(this).addClass('hightlight');
        $(this).css('cursor','pointer');
	});
	
	$('table.tableclass tbody tr').mouseout(function(){
	    $(this).removeClass('hightlight');
	});
	
	$('.answer').hide();

    /*** Paint ***/
    $('#paint h4').toggle(
        function() {
		    $(this).next('.answer').fadeIn();
		    $(this).addClass('close');
		},
		function() {
		    $(this).next('.answer').fadeOut();
			$(this).removeClass('close');
	    }
	); 

    $('.paintHide').hide();

	$('.murexin').toggle(
		function() {
		    $(this).next('.paintHide').fadeIn();
		    //$(this).addClass('close');
		},
		function() {
		    $(this).next('.paintHide').fadeOut();
			//$(this).removeClass('close');
	  }
	); // end toggle

    $('.closePaint').click(function(){
	    $('.paintHide').fadeOut();
    });

    
    $('#paint a').toggle(
	    function(){
			$(this).css({'z-index':'20'});
			$(this).find('img').stop()
			    .animate({top:'-100px',
				    	 left:'-40px',
					     width:'400px',
					    height:'400px'
				        },400);
			$(this).find('span').hide();
			$(this).find('span').fadeIn(500);
		},
		function(){
		    $(this).css({'z-index':'0'});
			$(this).find('img').stop()
			    .animate({top:'0',
				    left:'0',
					 width:'150px',
					 height:'150px'
					 },250);
			$(this).find('span').remove();
        }
    );
    /*** END Paint ***/


    $('#gallery a').toggle(
	    function(){
			$(this).css({'z-index':'10'});
			$(this).find('img').stop()
			    .animate({top:'-40px',
					 left:'-40px',
					 width:'650px',
					 height:'198px'
					 },400);
		    $(this).find('span').hide();
			$(this).find('span').fadeIn(500);
		},
		function(){
			$(this).css({'z-index':'0'});
			$(this).find('img').stop()
			    .animate({top:'0',
					 left:'-50',
					 width:'260px',
					 height:'80px'
					 },250);
			$(this).find('span').remove();
        }
    );//end

    /*** Menu Links ***/
    $('#menu a:not([href~=javascript])').each(function(){
		$(this).click(function(){
		    location = $(this).attr('href');
		});
	});
    /*** END Menu Links ***/

    /*** Submenu Slider ***/
    $('#menu > li > a').toggle(
        function() {
            $(this).addClass('close');
            $(this).next('#menu ul').slideDown(600);
        },
        function() {
            $(this).removeClass('close');
            $(this).next('#menu ul').slideUp();
        }
    );
    /*** END Submenu Slider ***/
	
	/*** Rounded Corners ***/
	$(".navBanner").corner("bl");
	$("#sidebar2").corner("round");
	$(".example").corner("round top");
	/*** END Rounded Corners ***/
}
