// General
function sliding(section){
	document.getElementById('liPopular').className = "none";
	document.getElementById('liRandom').className = "none";
	
	document.getElementById('slidePopular').style.display = "none";
	document.getElementById('slideRandom').style.display = "none";
	
	switch(section){
		case 1: sectionName = "Popular"; break;
		case 2: sectionName = "Random"; break;
	}
	document.getElementById('li' + sectionName).className = "active";
	document.getElementById('slide' + sectionName).style.display = "block";	
}
function activegoogle(){
	 document.getElementById('cx').disabled = false;
	 document.getElementById('cof').disabled = false;
	 document.getElementById('ie').disabled = false;
	 document.getElementById('submitf').name = 'sa';
	 document.getElementById('buscadorf').action = 'http://www.mundohogar.com/busqueda/';
	 document.getElementById('s').name = 'q';
}
function unactivegoogle(){
	 document.getElementById('cx').disabled = true;
	 document.getElementById('cof').disabled = true;
	 document.getElementById('ie').disabled = true;
	 document.getElementById('submitf').name = 'searchsubmit';
	 document.getElementById('buscadorf').action = 'http://www.mundohogar.com/';
	 document.getElementById('s').name = 's';
}
function mycarousel_initCallback(carousel) {
    jQuery('.control a').bind('click', function() {
        carousel.scroll(jQuery.jcarousel.intval(jQuery(this).text()));
        return false;
    });
};
;
$(document).ready(function () {
	// Carousel
	jQuery(".slider").jcarousel({
        scroll: 1,
        // This tells jCarousel NOT to autobuild prev/next buttons
        buttonNextHTML: '<div class="next">Next &raquo;</div>', 
        buttonPrevHTML: '<div class="prev">&laquo; Prev</div>'
    });
	jQuery(".promotions").jcarousel({
        vertical: true,
        scroll: 2,
        // This tells jCarousel NOT to autobuild prev/next buttons
        buttonNextHTML: '<div class="next">Next &raquo;</div>', 
        buttonPrevHTML: '<div class="prev">&laquo; Prev</div>'
    });
});
