
function openimagewindow(id) { 
  var theURL = '/data/popups/images/products/?id=' + id;
  var features = 'width=550,height=500,status=yes';
  window.open(theURL,'images',features);
  }
  
 function openflowwindow(id) { 
  var theURL = '/data/popups/flows/?id=' + id;
  var features = 'width=550,height=500,status=yes';
  window.open(theURL,'flow',features);
  }
  


function openwindow_popup(d, c, p) { 
  var theURL = '/popups/pop.aspx?d='+d+'&c='+c+'&p='+p ;
  var features = 'width=450,height=500,status=yes,scrollbars=yes';
  window.open(theURL,'images',features);
}  
  
  
function openwindow_popupCustom(option) { 
  var theURL = '/popups/' + option + '/1.aspx';
  var features = 'width=450,height=500,status=yes,scrollbars=yes';
  window.open(theURL,'images',features);
}  


function openwindow_popupTalkAdvisor(c) { 
  var theURL = '/popups/talkAdvisor.aspx?c='+c;
  var features = 'width=450,height=450,status=yes,scrollbars=yes';
  window.open(theURL,'images',features);
} 


function openwindow_popupGMATscore() { 
  var theURL = '/popups/testprep/gmat_scores.aspx';
  var features = 'width=450,height=550,status=yes,scrollbars=yes';
  window.open(theURL,'Gmatscore',features);
}
  

function loadimage()
{
	var objmenu = document.getElementById("imgbig");
	objmenu.src = '';	
}

function ChangeImg(src)
{
	var objmenu = document.getElementById("imgbig");
	objmenu.src = src;
}

function redirectURL(url)
{
	document.location = "/es/busqueda/"+url+"/resultados.aspx";	
}

var boolSwitch = false;

function ShowHideItem(i)
{
	if($(i).style.display == 'none')
		Effect.BlindDown($(i));
	else
		Effect.BlindUp($(i));
}

function ShowHideItem_show(i)
{
	Effect.BlindDown($(i), {duration: 0.09});
}

function ShowHideItem_hide(i)
{
	Effect.BlindUp($(i),{duration: 0.09});
}



function ShowHideItem_special(i)
{
	switch(i)
	{
		case 'box1':
			Effect.BlindDown($('box1'));			
			$('box2').style.display = "none";
			$('box3').style.display = "none";
			
			break;
		case 'box2':			
			$('box1').style.display = "none";
			Effect.BlindDown($('box2'));
			$('box3').style.display = "none";
			break;
		case 'box3':
			$('box1').style.display = "none";			
			$('box2').style.display = "none";
			Effect.BlindDown($('box3'));
			break;
	}
	
	
}



/**/

function df()
{
	
	
	if (document.all || document.getElementById)
	{
		var f = $("Form1");
		for (i = 0; i < f.length; i++) 
		{
			var t = f.elements[i];var s="submit reset button";
			t.disabled = (s.indexOf(t.type.toLowerCase()) >= 0);
			
		}
		
		return true;
		
	} 
	else 
	{
		return false;
	}
}




/**/

function doMenu()
{

	var cssmenuids=["cssmenu1"] //Enter id(s) of CSS Horizontal UL menus, separated by commas
	var csssubmenuoffset=-1 //Offset of submenus from main menu. Default is 0 pixels.

	function createcssmenu2(){
	for (var i=0; i<cssmenuids.length; i++){
	var ultags=document.getElementById(cssmenuids[i]).getElementsByTagName("ul")
		for (var t=0; t<ultags.length; t++){
				ultags[t].style.top=ultags[t].parentNode.offsetHeight+csssubmenuoffset+"px"
    		var spanref=document.createElement("span")
				spanref.className="arrowdiv"
				spanref.innerHTML=""
				ultags[t].parentNode.getElementsByTagName("a")[0].appendChild(spanref)
    		ultags[t].parentNode.onmouseover=function(){
    		this.getElementsByTagName("ul")[0].style.visibility="visible"
    		}
    		ultags[t].parentNode.onmouseout=function(){
				this.getElementsByTagName("ul")[0].style.visibility="hidden"
		}
		}
	}
	}
	
	createcssmenu2();

/*
	if (window.addEventListener)
	window.addEventListener("load", createcssmenu2, false)
	else if (window.attachEvent)
    window.attachEvent("onload", createcssmenu2)
*/
}
