/*
var isIE =(/\bmsie\b/i.test(navigator.userAgent)&& document.all&&!(/\bopera\b/i.test(navigator.userAgent)));
var isIE6 =(/\bmsie 6.0\b/i.test(navigator.userAgent));

$ = function (a) { return document.getElementById(a); };

function mostraFlash(){
	var id = arguments[0];
	var swf = arguments[1];
	var width = arguments[2];
	var height = arguments[3];	
	var params = arguments[4] || null;
	var valor = arguments[5] || null;
	
	var so = new SWFObject(swf, id+"movie", width, height, "8", "transparent", true);
	so.addParam("scale", "noscale");
	so.addParam("wmode", "transparent");
	
	if(params){
		if(params.length != valor.length){
			alert("os arrays de paramentros são diferentes"); 
			return false;
		}
		for(var i = 0;i<params.length;i++){
			so.addParam(params[i], valor[i]);	
		}		
	}
	so.write(id);
}

// Retorna o tamanho de um objeto
getSize = function (e) {
	if (typeof e == 'string') e = $(e);
	return {x:e.offsetWidth, y:e.offsetHeight};
};

// Retorna o scroll da página
getScroll = function () {
	if (self.pageXOffset) {
		sX = self.pageXOffset;
	} else if (document.documentElement && document.documentElement.scrollLeft) {
		sX = document.documentElement.scrollLeft;
	} else if (document.body) {
		sX = document.body.scrollLeft;
	}
	if (self.pageYOffset) {
		sY = self.pageYOffset;
	} else if (document.documentElement && document.documentElement.scrollTop) {
		sY = document.documentElement.scrollTop;
	} else if (document.body) {
		sY = document.body.scrollTop;
	}
	return {x:sX, y:sY};
};

// Retorna o tamanho da área visivel
getDocVisibleSize = function () {
	var _x, _y;
	if (window.innerWidth) {
		_x = window.innerWidth;
	} else if (document.documentElement && document.documentElement.clientWidth) {
		_x = document.documentElement.clientWidth;
	} else if (document.body) {
		_x = document.body.clientWidth;
	}
	if (window.innerHeight) {
		_y = window.innerHeight;
	} else if (document.documentElement && document.documentElement.clientHeight) {
		_y = document.documentElement.clientHeight;
	} else if (document.body) {
		_y = document.body.clientHeight;
	}
	return {x:_x, y:_y};	
};

// Retorna o tamanho total do documento
getDocSize = function () {
	return {x:document.body.offsetWidth, y:document.body.offsetHeight};
};

// Aplica um valor alpha de 0 a 100
setAlpha = function (e, a) {
	a = Math.round(a);
	if (typeof e == 'string') e = $(e);
	with (e.style) {
		if (isIE) {
			filter = 'alpha(opacity='+a+')';
		} else {
			opacity = a/100;
		}
	}
};
*/

/*MENU PRODUTOS*/
var SUBOPEN = LINHAOPEN = ""

function showSub(id){
	if (SUBOPEN != "" && SUBOPEN != id) {
		$('categoria'+SUBOPEN).className = "menuCategoria1";
		$('submenu'+SUBOPEN).style.display = "none";
		$('flecha'+SUBOPEN).src = "/media/img/setaMenu.gif";
	}
	
	if (LINHAOPEN != ""){
		$('linhas'+SUBOPEN+""+LINHAOPEN).style.display = "none";
		$('mais'+SUBOPEN+""+LINHAOPEN).src = "/media/img/menuMais.gif";
		LINHAOPEN = "";
	}
	
	if ($('submenu'+id).style.display == "none"){
		$('categoria'+id).className = "menuCategoria2";
		$('submenu'+id).style.display = "block";
		$('flecha'+id).src = "/media/img/setaMenuAtivo.gif";
		SUBOPEN = id
	}else{
		$('categoria'+id).className = "menuCategoria1";
		$('submenu'+id).style.display = "none";
		$('flecha'+id).src = "/media/img/setaMenu.gif";
		SUBOPEN = ""
	}
}

function showLinha(id){
	if (LINHAOPEN != "" && LINHAOPEN != id){
		$('linhas'+SUBOPEN+""+LINHAOPEN).style.display = "none";
		$('mais'+SUBOPEN+""+LINHAOPEN).src = "/media/img/menuMais.gif";
	}
	
	if ($('linhas'+SUBOPEN+""+id).style.display == "none"){
		$('linhas'+SUBOPEN+""+id).style.display = "block";
		$('mais'+SUBOPEN+""+id).src = "/media/img/menuMenos.gif";
		LINHAOPEN = id
	}else{
		$('linhas'+SUBOPEN+""+id).style.display = "none";
		$('mais'+SUBOPEN+""+id).src = "/media/img/menuMais.gif";
		LINHAOPEN = ""
	}
}