//naviagation function for dropdown functionality in ie6
<!--//--><![CDATA[//><!--
	
	sfHover = function() {
		var sfEls = document.getElementById("nav").getElementsByTagName("LI");
		for (var i=0; i<sfEls.length; i++) {
			sfEls[i].onmouseover=function() {
				this.className+=" sfhover";
			}
			sfEls[i].onmouseout=function() {
				this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
			}
		}
	}
	if (window.attachEvent) window.attachEvent("onload", sfHover);
//--><!]]>
	
	<!--
function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
	//-->
	
//new size chart window
	function openSizeChart(URL) 
	{
		aWindow=window.open(URL,"sizechartwindow","toolbar=no,width=520,height=800,status=no,scrollbars=yes,resize=no,menubar=no");
	}

//open Smaller soles image window
	function openSmallerSoles(URL) 
	{
		aWindow=window.open(URL,"SmallerSoles","toolbar=no,width=275,height=345,status=no,scrollbars=30,resizable=no,menubar=no");
	}
	
//open SKR soles image window
	function openSKRSoles(URL) 
	{
		aWindow=window.open(URL,"SKRSoles","toolbar=no,width=220,height=350,status=no,scrollbars=30,resizable=no,menubar=no");
	}
	
//open ELEVEN soles image window
	function openElevenSoles(URL) 
	{
		aWindow=window.open(URL,"ElevenSoles","toolbar=no,width=285,height=240,status=no,scrollbars=30,resizable=no,menubar=no");
	}
	
//open Smaller packaging image window
	function openSmallerPackaging(URL) 
	{
		aWindow=window.open(URL,"SmallerPackaging","toolbar=no,width=320,height=290,status=no,scrollbars=30,resizable=no,menubar=no");
	}
	
//open giftwrap window
	function openGiftWrap(URL) 
	{
		aWindow=window.open(URL,"giftwrapwindow","toolbar=no,width=250,height=130,status=no,scrollbars=no,resize=no,menubar=no");
	}
	
	//Function to display store locations, by state & province
	function submitForm()
	{
	  document.storeLocation.submit();
	}
	
	
	//open tall article in new window
	function openWin(URL) 
	{
		aWindow=window.open(URL,"articlewindow","toolbar=no,width=320,height=495,status=no,scrollbars=no,resize=no,menubar=no");
	}
	
	//open wide article in new window
	function openWinWide(URL) 
	{
		aWindow=window.open(URL,"articlewindow","toolbar=no,width=420,height=260,status=no,scrollbars=no,resize=no,menubar=no");
	}
	
//show/hide shipping methods depending on location	
var RemoveMethodsForNonHomeCountry = new Array ();
var RemoveMethodsForHomeCountry = new Array ();
RemoveMethodsForNonHomeCountry = [0,1,2,3];
RemoveMethodsForHomeCountry = [4];

var HomeCountry = 461;

var NonGroundStates = new Array ();
NonGroundStates = ['AK', 'HI', 'AA', 'AE', 'AP'];

var RemoveMethodsForNonGroundStates = new Array ();
RemoveMethodsForNonGroundStates = [0,1,2];

var SavedShippingMethods = new Array();
var AlreadyRemoved = 0;

function isInArray (checkArray, forThis)
{
        for (var i=0; i < checkArray.length; i++)
                if (checkArray[i] == forThis)
                        return true;
        return false;
}

function initShipMethodModifier()
{
        /* Add onChange handler for shipcountry select control */
        if (document.my_form.shipcountry.onchange == null) {
                document.my_form.shipcountry.onchange=updateShippingMethod;
        }

        /* Add onChange handler for billcountry select control */
        if (document.my_form.billcountry.onchange == null) {
                document.my_form.billcountry.onchange=updateShippingMethod;
        }

        /* Add onChange handler for shipstate select control */
        if (document.my_form.shipstate.onchange == null) {
                document.my_form.shipstate.onchange=updateShippingMethod;
        }

        /* Add onChange handler for billstate select control */
        if (document.my_form.billstate.onchange == null) {
                document.my_form.billstate.onchange=updateShippingMethod;
        }

        /* Add onClick handler for shiptobilladdr control */
        if ("!---USERNAME---"=="Guest")
          if (document.my_form.shiptobilladdr.onclick == null) {
                document.my_form.shiptobilladdr.onclick=updateShippingMethod;
        }

        /* Save original shipmethod control list */
        for (var i=0; i < document.my_form.shipmethod.length; i++) {
                SavedShippingMethods[i] = document.my_form.shipmethod.options[i].text;
        }

        updateShippingMethod ();

}

function updateShippingMethod ()
{
        var shippingObj, countryObj, stateObj, cIndex, cValue, sIndex, sValue;

        shippingObj = document.my_form.shipmethod;

        /* Determine if the billing country or shipping country is used */
        if ("!---USERNAME---"=="Guest") {
         if (document.my_form.shiptobilladdr.checked) {
                countryObj  = document.my_form.billcountry;
                stateObj    = document.my_form.billstate;
        } else {
                countryObj  = document.my_form.shipcountry;
                stateObj    = document.my_form.shipstate;
        }
                } else {
                countryObj  = document.my_form.shipcountry;
                stateObj    = document.my_form.shipstate;
        }

        cIndex =  countryObj.selectedIndex;
        cValue =  countryObj.options[cIndex].value;
        sIndex =    stateObj.selectedIndex;
        sValue =    stateObj.options[sIndex].value;

        /* Clear out shipping methods and reload it to original */
        for (var i=(shippingObj.length-1); i >=0 ; i--)
                shippingObj.options[i] = null;
        for (var i=0; i < SavedShippingMethods.length; i++)
                shippingObj.options[i] = new Option(SavedShippingMethods[i], i);


        if (cValue == HomeCountry)
        {

                /* For home country, remove requested shipping methods (only need to remove them once) */
                for (var i = (RemoveMethodsForHomeCountry.length - 1); i>=0; i--)
                        shippingObj.options[RemoveMethodsForHomeCountry[i]] = null;

                /* Now check for any local state modifications */
                if (isInArray (NonGroundStates, sValue)) {

                        for (var i = (RemoveMethodsForNonGroundStates.length - 1); i>=0; i--)
                                shippingObj.options[RemoveMethodsForNonGroundStates[i]] = null;

                }

        } else {

                /* For non-home country, remove requested shipping methods (only need to remove them once) */
                for (var i = (RemoveMethodsForNonHomeCountry.length - 1); i>=0; i--)
                        shippingObj.options[RemoveMethodsForNonHomeCountry[i]] = null;

        }

        shippingObj.selectedIndex = 0;

}


	//use billing address as shipping on register page
        function useBillInfo(form)
        {
                var idx;
                {
                        form.shipfirstname.value= form.billfirstname.value;
                        form.shiplastname.value = form.billlastname.value;
                        form.shipstreet1.value = form.billstreet1.value;
						form.shipstreet2.value = form.billstreet2.value;
                        form.shipcity.value = form.billcity.value;
						form.shipstate.value = form.billstate.value;
						form.shipzip.value = form.billzip.value;
						form.shipphone1.value = form.billphone1.value;
						form.shipphone2.value = form.billphone2.value;                       
                }
        }