jQuery(document).ready(function() {
	
	
  // jQuery('#mycarousel').jcarousel({wrap: 'circular'});
  // jQuery('#slideProducts').jcarousel({wrap: 'circular', visible: 3});
  // jQuery('#slideNews').jcarousel({wrap: 'circular'});
 
  
	//SUBMENU PRODUCTS
	$('#btn3').mouseover(function() {
	  $('#submnu_products').show();
	});
	
	$('#btn3').mouseout(function() {
	  $('#submnu_products').hide();
	});
	
	$('#submnu_products').mouseout(function() {
	  $('#submnu_products').hide();
	});
	//FIN SUBMENU PRODUCTS
	
});

function swapImg(id, src)
{
    var obj = getObject(id);
    if(obj != null) obj.src = src;
}

function swapClass(id, classname)
{
    var obj = getObject(id);
    if(obj != null) obj.className = classname;
}


function getObject(idOrObj) {
    return (typeof(idOrObj) == "object")?idOrObj:document.getElementById(idOrObj);
}
function getDisplayBlockValue(tagName) {
    var sDisplay;
    if(BROWSER_DETECT.browser != "Explorer")
    {
        switch(tagName.toUpperCase()) {
            case "TD":
            case "TH": sDisplay = "table-cell"; break;
            case "TR": sDisplay = "table-row"; break;
            case "TABLE": sDisplay = "table"; break;
            default: sDisplay = "block"; break;
        }
    } else {
        sDisplay = "block";
    }
    return sDisplay;
}
function turnDisplayBlock(id)
{
    var obj = getObject(id);
    if(obj != null && obj.style != null) {
        var sDisplay = getDisplayBlockValue(obj.tagName);
        obj.style.display = sDisplay;
    }
}
function turnObjDisplayBlock(obj)
{
    if(obj != null && obj.style != null) {
        var sDisplay = getDisplayBlockValue(obj.tagName);
        obj.style.display = sDisplay;
    }
}
function turnDisplayNone(id)
{
    var obj = getObject(id);
    if(obj != null && obj.style != null) obj.style.display = "none";
}
function turnObjDisplayNone(obj)
{
    if(obj != null) obj.style.display = "none";
}


/* Menu Top */
var aMnuItems = new Array('btn1','btn2','btn3','btn4','btn5','btn6','btn7');

function showMenuTop(itemMnuId)
{
	for(var i=0; i<aMnuItems.length; i++)
	{
		swapClass(aMnuItems[i], '');
	}
	swapClass(itemMnuId, 'select');	
}
/* end Menu Top */

/* Menu Top */
var aMnuItemsBot = new Array('btnBot1','btnBot2','btnBot3','btnBot4','btnBot5','btnBot6','btnBot7');

function showMenuBot(itemMnuBotId)
{
	for(var i=0; i<aMnuItemsBot.length; i++)
	{
		swapClass(aMnuItemsBot[i], '');
	}
	swapClass(itemMnuBotId, 'select');	
}
/* end Menu Top */
