(function($){
		
	//Thumbs Slider Callback
	function mycarousel_initCallback(carousel) {
	    $('.gallery .thumbs .nav .next').bind('click', function() {
	        carousel.next();
	        return false;
	    });
	
	    $('.gallery .thumbs .nav .prev').bind('click', function() {
	        carousel.prev();
	        return false;
	    });
	}
	
	
	$(function(){
		// Apply PNG Fix for Internet Explorer 6
		if($.browser.msie && $.browser.version.substr(0,1) == 6) {
			DD_belatedPNG.fix('h1#logo a, .yellow-box .container');
		}
		
	});
	
	$(document).ready(function(){
		$('#navigation .nav-left ul li:last').addClass('last');
		$('#navigation .nav-right ul li:last').addClass('last');
		$('#footer ul li:last').addClass('last');
		
		if ( $('.footer-widgets').length != 0 ) {
			$('.footer-widgets .yellow-box:eq(1)').removeClass('fl').addClass('fr');
		};
		
		//Portfolio Thumbs Slider
		$('.gallery .thumbs .holder ul').jcarousel({
			wrap: "both",
			scroll: 1,
			visible: 1,
			initCallback:  mycarousel_initCallback,
			buttonNextHTML: null,
	        buttonPrevHTML: null
		});
	})
	
})(jQuery)
