
execOnLoad = function() {

 	//an_StartList();
	//ieUpdate();
}
window.onload=execOnLoad;

//carrito de compras, cambiar cantidades
function crearAjax()
{
    var xmlhttp=false;
     try
    {
      xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
    }
    catch (e)
    {
        try
        {
               xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
          }
        catch (E)
        {
               xmlhttp = false;
          }
     }

    if (!xmlhttp && typeof XMLHttpRequest!='undefined')
    {
          xmlhttp = new XMLHttpRequest();
    }
    return xmlhttp;
}


function cambiarCantidad(id_carrito_01, cantidad, miSession)
{

	//alert (id_carrito_01);
	//alert (cantidad);

	var content;
    content = document.getElementById('total');

    //Crear objeto de AJAX
    ajax=crearAjax();

    //Enviar información por el metodo GET
    ajax.open("GET", "cuyis/script/ajax_cambiar_cantidad.php?id_carrito_01="+id_carrito_01+"&cantidad="+cantidad+"&miSession="+miSession,true);

    ajax.onreadystatechange=function()
    {
        if (ajax.readyState==4)
        {
			//alert (ajax.responseText);
            content.innerHTML = ajax.responseText;
        }
    }
    ajax.send(null);

}

///////menu desplegable
function an_StartList() {
  if (document.all&&document.getElementById && !window.opera) {
    navRoot = document.getElementById("primary-navigation");
    if (navRoot) {
      for (i=0; i<navRoot.childNodes.length; i++) {
   	    node1 = navRoot.childNodes[i];
       	if (node1.nodeName=="UL") {
	      for (j=0; j<node1.childNodes.length; j++) {
    	    node2 = node1.childNodes[j];
        	if (node2.nodeName=="LI") {
	          node2.onmouseover=function() {
    	        this.className+=" over";
        	  }
	          node2.onmouseout=function() {
    	        this.className=this.className.replace(" over", "");
        	  }
    } } } } }



} }
//flash
function ieUpdate(){

	theObjects = document.getElementsByTagName("object");
	for (var i = 0; i < theObjects.length; i++)
	{
		theObjects[i].outerHTML = theObjects[i].outerHTML;
	}

}
//pagina de inicio


function inicio(objk,direccion){
	if ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion)>3)){
		objk.style.behavior="url(#default#homepage)";
		objk.setHomePage(direccion);
	}
	else{
		alert("Su navegador no dispone de esta opción");
	}
}



