
function track(where)
{
pageTracker._trackPageview(where);
}


/*
	parseUri 1.2.1
	(c) 2007 Steven Levithan <stevenlevithan.com>
	MIT License
*/

function parseUri (str) {
	var	o   = parseUri.options,
		m   = o.parser[o.strictMode ? "strict" : "loose"].exec(str),
		uri = new Array(),
		i   = 14;

	while (i--) uri[o.key[i]] = m[i] || "";

	uri[o.q.name] = new Array();
	uri[o.key[12]].replace(o.q.parser, function ($0, $1, $2) {
		if ($1) uri[o.q.name][$1] = $2;
	});

	return uri;
};


parseUri.options = {
	strictMode: false,
	key: ["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],
	q:   {
		name:   "queryKey",
		parser: /(?:^|&)([^&=]*)=?([^&]*)/g
	},
	parser: {
		strict: /^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*):?([^:@]*))?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/,
		loose:  /^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*):?([^:@]*))?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/
	}
};


function checkMail(address)
	{
	var filter= /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/; 
	// old: /^(\w+(?:\.\w+)*)@((?:\w+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i;
	if (filter.test(address))
		return true;
	else
		return false;
	}

function ExplorerFix() 
	{ 
	for (a in document.links) document.links[a].onfocus = document.links[a].blur; 
	}

if(document.all) document.onmousedown = ExplorerFix;





function makeRequest(url) {
        var httpRequest;

       if (window.XMLHttpRequest) { // Mozilla, Safari, ...
            httpRequest = new XMLHttpRequest();
        } 
       else if (window.ActiveXObject) { // IE
            try {
                httpRequest = new ActiveXObject("Msxml2.XMLHTTP");
                } 
                catch (e) {
                           try {
                                httpRequest = new ActiveXObject("Microsoft.XMLHTTP");
                               } 
                             catch (e) 
							 {
							 // nothing
							 }
                          }
                                       }

        if (!httpRequest) {
           // alert('Giving up :( Cannot create an XMLHTTP instance');
            return false;
        }
        httpRequest.onreadystatechange = function() 
		{ 
		processResponseOptin(httpRequest); 
		}

        httpRequest.open('GET', url, true);
        httpRequest.send(null);
    }


	 function processResponseOptin(httpRequest) {
        if (httpRequest.readyState == 4) {
            if (httpRequest.status == 200) {
               result = httpRequest.responseText;
			   //alert(result);

				if (result == '')
					{
					result = 'ERROR';
					}
				hideDiv('divsubscribe');
				showDiv('divsubscribe'+result);

					} else {

				hideDiv('divsubscribe');
				showDiv('divsubscribeERROR');
                
            }
        }
    }


function backToForm(closeWhich)
{
hideDiv('divsubscribe'+closeWhich);
showDiv('divsubscribe');
}

function showDiv(whichDiv)
{
div = document.getElementById(whichDiv);
if (div)
	{
	div.style.display = 'block';
	}
}

function hideDiv(whichDiv)
{
div = document.getElementById(whichDiv);
if (div)
	{
	div.style.display = 'none';
	}
}


 function ZylomPopUp(popupURL)
      {
      width = 700; height = 550; leftPosition = (screen.width) ? (screen.width-width)/2 : 0;
      if (screen.height && (screen.height <= 600)) { topPosition = 0; } else { topPosition = (screen.height) ? (screen.height-height)/2 : 0; }
      var settings='width='+width+',height='+height+',left='+leftPosition+',top='+topPosition+'toolbar=0,location=0,directories=0,menubar=0,scrollbar=0,resizable=0,status=0';
      var popup=window.open(popupURL, 'gamepopup', settings); popup.focus();
      }





function webchat()
	{	window.open('/webchat.php?a=fs','Alice','width=470,height=579,scrollbars=no,status=no,menubar=no,status=no,location=no,directories=no,toolbar=no,resizeable=no');
	}