// Enables Section Menu in Shop Header functionality 

function changeSection(section_id) 
{
	if (section_id == 'home' || section_id == '**') {
		location.href = '/';
	} else if (section_id == 'brand') {
		location.href = 'http://espanol.soccer.com/soccer/enes/24/_www_soccer_com/channels/features.php?story=vendors';
	} else {
		location.href = 'http://espanol.soccer.com/soccer/enes/24/_www_soccer_com/IWCatSectionView.process?IWAction=Load&Merchant_Id=1&Section_Id=' + section_id + '&Sort=Product_Name';
	}
}



// Name: Cookie
// Language: JavaScript
// Author: Travis Beckham | squidfingers.com
// Description: Remove anchor outlines from all links in the document
// --------------------------------------------------

function blurAnchors(){
  if(document.getElementsByTagName){
    var a = document.getElementsByTagName("a");
    for(var i = 0; i < a.length; i++){
      a[i].onfocus = function(){this.blur()};
    }
  }
}
window.onload = blurAnchors;

// clamshell menu

/***********************************************
* Switch Menu script- by Martial B of http://getElementById.com/
* Modified by Dynamic Drive for format & NS4/IE4 compatibility
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

// initializes display by hiding submenus

function resetMenu(obj){
	if(document.getElementById){
	var el = document.getElementById(obj);
	var ar = document.getElementById("menu").getElementsByTagName("ol"); //DynamicDrive.com change
		if(el.style.display != "block"){ //DynamicDrive.com change
			for (var i=0; i<ar.length; i++){
				if (ar[i].className=="submenu") { //DynamicDrive.com change
					ar[i].style.display = "none";
				}
			}
			el.style.display = "block";
		} else {
			el.style.display = "none";
		}
	}
}

