	function show(objet){		
	if (document.layers){			
	if (document.layers[objet]!=null) 
	document.layers[objet].display = 'block';		
	}				
	else if (document.all){			
	document.all[objet].style.display = 'block';		
	}		
	if (document.getElementById(objet))		
	{			
	if (document.getElementById(objet)!=null) 
	document.getElementById(objet).style.display = 'block';		
	}		
	else if (document.all){			
	document.getElementById(objet).display = 'block';		
	}			
	}		
	function close(objet){		
	if (document.layers){			
	if (document.layers[objet]!= null) 
	document.layers[objet].display = 'none';		
	}		
	else if (document.all) {			
	document.all[objet].style.display = 'none';		
	}				
	if (document.getElementById(objet))		
	{			
	if (document.getElementById(objet) != null) 
	document.getElementById(objet).style.display = 'none';		
	}		
	else if (document.all)		
	{			
	document.getElementById(objet).display = 'none';		
	}	
	}
	
	function openWindow(url) {
		email = window.open(url,"eMail",'left=20,top=20,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=yes,resizable=yes,width=485,height=440');
		email.focus();
	}
	
	function submitIt(productform) {
	if (typeof productform.eop_Color != 'undefined') {
		colorChoice = productform.eop_Color.selectedIndex
		if (productform.eop_Color.options[colorChoice].value == "Color???^00.00^0") {
		alert("Por favor, selecione un color")
		productform.eop_Color.focus()
		return false
		}
	}
	if (typeof productform.eop_Talla != 'undefined') {	
		tallaChoice = productform.eop_Talla.selectedIndex
		if (productform.eop_Talla.options[tallaChoice].value == "Talla???^00.00^0") {
		alert("Por favor, selecione una talla")
		productform.eop_Talla.focus()
		return false
		}
	}
	if (typeof productform.eop_Talla != 'undefined') {	
		medidaChoice = productform.eop_Talla.selectedIndex
		if (productform.eop_Talla.options[medidaChoice].value == "Medidas???^00.00^0") {
		alert("Por favor, selecione las medidas")
		productform.eop_Talla.focus()
		return false
		}		
	}	
	return true
	}
	
	function isEmail(elm) {
    if (elm.value.indexOf("@") + "" != "-1" &&
	elm.value.indexOf(".") + "" != "-1" &&
	elm.value != "")
    return true;
    else return false;
}
/****** Simple Validation Checking ******/
function ValidateInput(form) {
     var LB = "\n";
     var msgHdr = "Por favor, introduzca su:" + LB + LB;
     var msg = "";
     if (form.Ref_Producto.value.length == 0) msg += "Numero de Referencia del Producto" + LB;
     if (form.Tienda.value == "" || form.Tienda.value == "http://") msg += "Tienda" + LB;
     if (form.Precio.value.length == 0) msg += "Precio" + LB;
     if (!form.Unidades.value) msg += "Unidades" + LB;
     if (form.Gastos_Envio_Impuestos.value.length == 0) msg += "Gastos de Envio Impuestos" + LB;
     if (form.Contacto.value.length == 0) msg += "Contacto" + LB;
     if (isEmail(form.email) == false) msg += "Correo Electronico" + LB;
     if (form.Telefono.value.length == 0) msg += "Telefono" + LB;
     if (msg.length > 0) {
	  alert(msgHdr + msg);
	  return false;
     }
     else return true;
}
/****** End of Validation Checking ******/

function expandcollapse (postid) {

   whichpost = document.getElementById(postid);

   if (whichpost.className=="postshown") {
      whichpost.className="posthidden";
   }
   else {
      whichpost.className="postshown";
   }
}
current_overID = "";
last_overID = "";

function item (img_name,width,height)
{
	img_prefix = '/images/medium_material/' + img_name;
	this.slide_img = new Image (width,height);
	this.slide_img.src = img_prefix + ".gif";
}

function new_item (img_name,width,height) 
{
	item [img_name] = new item (img_name,width,height);
}

function mouseover (itemID)
{
	current_overID = itemID;
	if (current_overID != last_overID) {
			  document.KTRCOLmap.src = item [current_overID].slide_img.src;
	}
}

function mouseover_CAMCOL (itemID)
{
	current_overID = itemID;
	if (current_overID != last_overID) {
			  document.CAMCOLmap.src = item [current_overID].slide_img.src;
	}
}
function mouseover_LVCOL (itemID)
{
	current_overID = itemID;
	if (current_overID != last_overID) {
			  document.LVCOLmap.src = item [current_overID].slide_img.src;
	}
}
function mouseover_BNCOL (itemID)
{
	current_overID = itemID;
	if (current_overID != last_overID) {
			  document.BNCOLmap.src = item [current_overID].slide_img.src;
	}
}
new_item ("KTRCOL_24",150,54);
new_item ("KTRCOL_25",150,54);
new_item ("KTRCOL_26",150,54);
new_item ("KTRCOL_27",150,54);
new_item ("KTRCOL_28",150,54);	
new_item ("KTRCOL_29",150,54);	
new_item ("KTRCOL",150,54);

new_item ("CAMCOL_41",150,50);
new_item ("CAMCOL_42",150,50);
new_item ("CAMCOL_43",150,50);
new_item ("CAMCOL_44",150,50);
new_item ("CAMCOL_45",150,50);	
new_item ("CAMCOL_46",150,50);	
new_item ("CAMCOL_47",150,50);	
new_item ("CAMCOL_48",150,50);
new_item ("CAMCOL_49",150,50);	
new_item ("CAMCOL_50",150,50);	
new_item ("CAMCOL_51",150,50);	
new_item ("CAMCOL_52",150,50);	
new_item ("CAMCOL_53",150,50);	
new_item ("CAMCOL_54",150,50);	
new_item ("CAMCOL_55",150,50);	
new_item ("CAMCOL_56",150,50);	
new_item ("CAMCOL_57",150,50);	
new_item ("CAMCOL_58",150,50);	
new_item ("CAMCOL_59",150,50);	
new_item ("CAMCOL_60",150,50);	
new_item ("CAMCOL",150,50);

new_item ("LVCOL_1",150,55);
new_item ("LVCOL_2",150,55);
new_item ("LVCOL_3",150,55);
new_item ("LVCOL_4",150,55);
new_item ("LVCOL_5",150,55);	
new_item ("LVCOL_6",150,55);	
new_item ("LVCOL_7",150,55);	
new_item ("LVCOL_8",150,55);
new_item ("LVCOL_9",150,55);	
new_item ("LVCOL",150,55);

new_item ("BNCOL_1",150,42);
new_item ("BNCOL_2",150,42);
new_item ("BNCOL_3",150,42);
new_item ("BNCOL_4",150,42);
new_item ("BNCOL_5",150,42);	
new_item ("BNCOL_6",150,42);	
new_item ("BNCOL_7",150,42);	
new_item ("BNCOL_8",150,42);
new_item ("BNCOL_9",150,42);	
new_item ("BNCOL_10",150,42);	
new_item ("BNCOL_11",150,42);	
new_item ("BNCOL_12",150,42);	
new_item ("BNCOL_13",150,42);
new_item ("BNCOL_14",150,42);
new_item ("BNCOL_15",150,42);
new_item ("BNCOL_16",150,42);
new_item ("BNCOL",150,42);

 
css_browser_selector(navigator.userAgent);
/*
CSS Browser Selector v0.4.0 (Nov 02, 2010)
Rafael Lima (http://rafael.adm.br)
http://rafael.adm.br/css_browser_selector
License: http://creativecommons.org/licenses/by/2.5/
Contributors: http://rafael.adm.br/css_browser_selector#contributors
*/
function css_browser_selector(u){var ua=u.toLowerCase(),is=function(t){return ua.indexOf(t)>-1},g='gecko',w='webkit',s='safari',o='opera',m='mobile',h=document.documentElement,b=[(!(/opera|webtv/i.test(ua))&&/msie\s(\d)/.test(ua))?('ie ie'+RegExp.$1):is('firefox/2')?g+' ff2':is('firefox/3.5')?g+' ff3 ff3_5':is('firefox/3.6')?g+' ff3 ff3_6':is('firefox/3')?g+' ff3':is('gecko/')?g:is('opera')?o+(/version\/(\d+)/.test(ua)?' '+o+RegExp.$1:(/opera(\s|\/)(\d+)/.test(ua)?' '+o+RegExp.$2:'')):is('konqueror')?'konqueror':is('blackberry')?m+' blackberry':is('android')?m+' android':is('chrome')?w+' chrome':is('iron')?w+' iron':is('applewebkit/')?w+' '+s+(/version\/(\d+)/.test(ua)?' '+s+RegExp.$1:''):is('mozilla/')?g:'',is('j2me')?m+' j2me':is('iphone')?m+' iphone':is('ipod')?m+' ipod':is('ipad')?m+' ipad':is('mac')?'mac':is('darwin')?'mac':is('webtv')?'webtv':is('win')?'win'+(is('windows nt 6.0')?' vista':''):is('freebsd')?'freebsd':(is('x11')||is('linux'))?'linux':'','js']; c = b.join(' '); h.className += ' '+c; return c;}; 



