// no conflicts with other frameworks
var $j = jQuery.noConflict();

//
// window.onload function to setup various javascripts
//

//callbacks for carousel
function mycarousel_initCallback(carousel) {
    
    $j('.btn_carousel_next').bind('click', function() {
        carousel.next();
        return false;
    });

    $j('.btn_carousel_prev').bind('click', function() {
        carousel.prev();
        return false;
    });
};

//carousel initiate

$j(function() {
	//fix png transparency in IE<6
	//$j('img[@src$=.png]').ifixpng(); 
	
	//j-carousel
	$j('#bannerCarousel').jcarousel({
        scroll: 4,
        //auto: 2,
				wrap: "both", 
        initCallback: mycarousel_initCallback,
        buttonNextHTML: null,
        buttonPrevHTML: null
    });
	
});

//Placeholder
//$j(function() 
//{

//	$j(".email_footer").placeholder();			
		
//});
