//<!--
// inc/scripts.js


function classChange(element,newclass)
	{
	element.className = newclass;
	}



function classToggle(element,class1,class2)
	{
	if (element.className==class1)
		{
		element.className = class2;
		}
	else if (element.className==class2)
		{
		element.className = class1;
		}
	}




function link_track(id,ip)
	{
	//alert(document.domain);
	var dd = document.domain;
	http.open('post','http://'+dd+'/clickTrack.php',true);
	http.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
	http.send('id='+id+'&domain='+dd+'&ip='+ip);
	}


function getXHTTP() 
	{
	var xhttp;
	try
		{   // The following "try" blocks get the XMLHTTP object for various browsers…
		xhttp = new ActiveXObject("Msxml2.XMLHTTP");
		}
	catch (e) 
		{
		try 
			{
			xhttp = new ActiveXObject("Microsoft.XMLHTTP");
			}
		catch (e2) 
			{
			// This block handles Mozilla/Firefox browsers...
			try 
				{
				xhttp = new XMLHttpRequest();
				}
			catch (e3) 
				{
				xhttp = false;
				}
			}
		}
	return xhttp; // Return the XMLHTTP object
	}

var http = getXHTTP(); // This executes when the page first loads.

// -->
