
	function ProdGetArgs() {	
		var args = new Object();	
		var query = unescape(location.search.substring(1));  // Get query string.	
		var pairs = query.split("&");              // Break at comma.	
		for(var i = 0; i < pairs.length; i++) {	
				var pos = pairs[i].indexOf('=');       // Look for "name=value".	
				if (pos == -1) continue;               // If not found, skip.	
				var argname = pairs[i].substring(0,pos);  // Extract the name.		
				argname = argname.toLowerCase();	
				var value = pairs[i].substring(pos+1); // Extract the value.	
				args[argname] = unescape(value);          // Store as a property.	
		}
	
		return args;                               // Return the object.
	
	}
	
	function ProdSetCookie(cookieName,cookieValue,nDays) {
	 var today = new Date();
	 var expire = new Date();
	 if (nDays==null || nDays==0) nDays=365;
	 expire.setTime(today.getTime() + 3600000*24*nDays);
	 document.cookie = cookieName+"="+escape(cookieValue)
					 + ";path=/;domain=.outblazegames.com;expires="+expire.toGMTString();
	}
	
	function ProdGetCookie(Name) {   
		var search = Name + "="   
		if (document.cookie.length > 0) { // if there are any cookies 
			 offset = document.cookie.indexOf(search)       
			 if (offset != -1) { // if cookie exists          
				 offset += search.length          
				 // set index of beginning of value 
				 end = document.cookie.indexOf(";", offset)          
				 // set index of end of cookie value         
				 if (end == -1)             
					end = document.cookie.length         
				return unescape(document.cookie.substring(offset, end))      
			}    
		}
	}

	function GoToMyGames()
	{
		var user = new UA.User();
		if (user.IsLoggedOn() && !user.isGuest())
			SendToMembership( Membership.userInfo.recentGamesUrl );
		else
			MoveToLogin();
	}
