function setcookie(lang,expiredays) {
	var exdate=new Date();
	exdate.setDate(exdate.getDate()+1000);
	document.cookie = "footlocker_lang=" +escape(lang)+ ((expiredays!=null) ? "" : ";expires="+exdate.toGMTString());
	cookieSetComplete();
}

function setSplashCookie()
{
	if (document.cookie.indexOf('splash')==-1)
	{
		document.cookie = "footlocker_splash=true;"+document.cookie; 
	}
}

function getCookieValue(keyname)
{
	if (document.cookie)
	{
		var vars = document.cookie.toString().split(";");
		for (var i=0;i<vars.length;i++)
		{
			var currentKey = (vars[i].split("=")[0].toString()).trim();
			var currentValue = (vars[i].split("=")[1]).trim();	
			if (currentKey.toLowerCase() == keyname.toString().toLowerCase())
			{
				return currentValue;
			}
				
		}
	}
	return;
}

String.prototype.trim = function() 
{

return this.replace(/(?:(?:^|\n)\s+|\s+(?:$|\n))/g,"");

}

function getFlashMovie(movieName) {   var isIE = navigator.appName.indexOf("Microsoft") != -1;   return (isIE) ? window[movieName] : document[movieName];  }  

function cookieSetComplete() {   
				
	getFlashMovie('swfid').cookieSetComplete("CookieSet");    
}    
			 