function changeLanguage(lan){
	var expdate = new Date();
	expdate.setDate(expdate.getDate()+365);
	//document.cookie = "language=" + lan + "/;expires=" + expdate.toGMTString();
	//document.cookie = "language=" + lan + "/;expires=Thu, 01-Jan-70 00:00:01 GMT" + ";domain=www.sitcorporation.com;path=/"; //delete old style cookies to fix errors
	//document.cookie = "language=" + lan + "/;expires=Thu, 01-Jan-70 00:00:01 GMT" + ";domain=www.sitcorporation.com;path=/parts"; //delete old style cookies to fix errors
	destroyAllCookies();
	document.cookie = "language=" + lan + "/;expires=" + expdate.toGMTString() + ";domain=sitcorporation.com;path=/"; //set language at domain level for consistency
	//alert(document.cookie);
	window.location.reload();
}

var up = new Boolean(true);

function cicle(){
	setTimeout("changeColor('tagline')", 2000);
}

function changeColor(elm){
	if (up) {
		var ul = "#6ED4FF";
		up = false;
	} else {
		var ul = "#00AEEF";
		up = true;
	}
	document.getElementById(elm).style.color = ul;
	cicle();
}

function destroyAllCookies(){
    var C= document.cookie;
    if(!C) return;
    var M,cook,str,ex,path;

    ex= new Date();
    ex.setDate(ex.getDate()-1);
    ex= ex.toUTCString();// yesterday's date in GMT

    var Rx= /([a-z]+) *\= *([^;]+;)?/ig
    while((M= Rx.exec(C))!= null){
        cook= M[1]; // the name part of each cookie
        str=cook+'=;expires='+ex;
        document.cookie= str; // no path (current folder)
        str+= ';path=';
        document.cookie= str+'/'; // root path
        var path= location.pathname;
        while(path){
            path= path.substring(0,path.lastIndexOf('/'));
            if(path)document.cookie= str+path;
        }
    }
}