function setLanguage (val )
{
alert('setLanguage ' + val);
	window.location = "home";
}

//TESTO MOBILE
var firstTime = true
function moveIt() 
{
var useragent = navigator.userAgent;
if (useragent.indexOf('MSIE') > -1) 
   {
      //Internet Explorer
      document.getElementById('mover').style.pixelLeft += 2
      if (document.getElementById('mover').style.pixelLeft>(document.body.clientWidth-285)) 
	  { 
		 document.getElementById('mover').style.pixelLeft=5;
      }
   } else { 			   
      //Mozilla
	  if (firstTime) {
			moverObj = document.getElementById('mover').style
			leftPos = 5
			firstTime = false
	  }
	  if ( leftPos > window.innerWidth-285 ) 
	  {
			leftPos=5
	  }
	  else 
	  {
			leftPos+=2
	  }
	  moverObj.left = leftPos + "px"
   }
   setTimeout("moveIt()",20)
}

			/*function setMover() 
			{
			alert('setMover');  
			   if (document.all) 
			   { 
				   vari = 'mover';
				}
				document.mymover.id.value=vari;
			}*/	  

	onload = init;
	function init() 
	{
	// If you have any other scripts which use the "onload" event,
	// call them here:
		 moveIt();
	}

		function clientSideInclude(id, url) {
		

  var req = false;
  // For Safari, Firefox, and other non-MS browsers
  if (window.XMLHttpRequest) {
    try {
      req = new XMLHttpRequest();
    } catch (e) {
      req = false;
    }
  } else if (window.ActiveXObject) {
    // For Internet Explorer on Windows
    try {
      req = new ActiveXObject("Msxml2.XMLHTTP");
    } catch (e) {
      try {
        req = new ActiveXObject("Microsoft.XMLHTTP");
      } catch (e) {
        req = false;
      }
    }
  }
 var element = document.getElementById(id);
 if (!element) {
  alert("Bad id " + id +
   " passed to clientSideInclude." +
   "You need a div or span element " +
   "with this id in your page.");
  return;
 }
  if (req) {
    // Synchronous request, wait till we have it all
    req.open('GET', url, false);
    req.send(null);
    element.innerHTML = req.responseText;
  } else {
    element.innerHTML =
   "Sorry, your browser does not support " +
      "XMLHTTPRequest objects. This page requires " +
      "Internet Explorer 5 or better for Windows, " +
      "or Firefox for any system, or Safari. Other " +
      "compatible browsers may also exist.";
  }
}	

function changeBgcolor( element )
{	
 
		//alert(element);
		//alert( document.getElementById( element ).style.backgroundColor );
		if( document.getElementById( element ).style.backgroundColor == '' 
		|| document.getElementById( element ).style.backgroundColor == 'rgb(255, 255, 255)' 
		|| document.getElementById( element ).style.backgroundColor == '#FFFFFF'
		|| document.getElementById( element ).style.backgroundColor == '#ffffff'  
		)
			document.getElementById( element ).style.backgroundColor = '#49E20E';
		else 
			document.getElementById( element ).style.backgroundColor = '#FFFFFF';
}
