// JavaScript Document
	function mycarousel_itemFirstInCallback(carousel, item, idx, state) {
		var f_i = 1;
		while(document.getElementById('ci'+f_i)){
			document.getElementById('ci'+f_i).style.backgroundColor = '#FFFFFF';
			document.getElementById('ci'+f_i).style.color= '#FFFFFF';
			f_i++;
		}
	    document.getElementById('ci'+idx).style.backgroundColor = '#CCCCCC';
	    document.getElementById('ci'+idx).style.color= '#CCCCCC';
		$('#d_mycarousel').fadeOut("slow","");
		$('#d_mycarousel').fadeIn("slow","");
	};
	function mycarousel_initCallback(carousel) {
	    jQuery('.jcarousel-control a').bind('click', function() {
	        carousel.stopAuto();
			carousel.scroll(jQuery.jcarousel.intval(jQuery(this).text()));
			document.getElementById('mycarousel-play').style.display='inline';
			document.getElementById('mycarousel-pause').style.display='none';
	        return false;
	    });
	    jQuery('#mycarousel-play').bind('click', function() {
	        carousel.startAuto();
			document.getElementById('mycarousel-play').style.display='none';
			document.getElementById('mycarousel-pause').style.display='inline';
	        return false;
	    });
	    jQuery('#mycarousel-pause').bind('click', function() {
	        carousel.stopAuto();
			document.getElementById('mycarousel-play').style.display='inline';
			document.getElementById('mycarousel-pause').style.display='none';
	        return false;
	    });
	    jQuery('#mycarousel-next').bind('click', function() {			
	        carousel.next();
			//document.write('<img src="http://hits.e.cl/cert/hit.dll?sitio_id=107303&amp;path=/carrusel/next&amp;referer=&amp;size=1024&amp;colors=32&amp;java=true" alt="Certifica.com" border="0" width="1" height="1">');
	        return false;
	    });
	    jQuery('#mycarousel-prev').bind('click', function() {
	        carousel.prev();
	        return false;
	    });
	};
	jQuery(document).ready(function() {
	    jQuery("#mycarousel").jcarousel({
	        scroll: 1,
			auto: 8,
			wrap: 'both',
			animation:0,
			easing:'swing',
	        initCallback: mycarousel_initCallback,
			itemFirstInCallback:  mycarousel_itemFirstInCallback,
	        buttonNextHTML: null,
	        buttonPrevHTML: null
	    });
	});
