function NoSpam(user,domain)
	{
	locationstring = "mailto:" + user + "@" + domain;
	window.location = locationstring;
}
function getWindowHeight() {
			var windowHeight = 0;
			if (typeof(window.innerHeight) == 'number') {
				windowHeight = window.innerHeight;
			}
			else {
				if (document.documentElement && document.documentElement.clientHeight) {
					windowHeight = document.documentElement.clientHeight;
				}
				else {
					if (document.body && document.body.clientHeight) {
						windowHeight = document.body.clientHeight;
					}
				}
			}
			return windowHeight;
		}


function toggleColor(objElement) {
  if (objElement.className=='input-normal')
    objElement.className='input-focus';
  else
    objElement.className='input-normal';
}

function toggleColorSearch(objElement) {
  if (objElement.className=='search-normal')
    objElement.className='search-focus';
  else
    objElement.className='search-normal';
}

function toggleImg(imgSrc, imgName, status) {
    var path = '/interface/' + imgSrc;
    
    if (status == 'on')
      document[imgName].src = path + '_mover.gif';
    else if (status == 'off')
      document[imgName].src = path + '_idle.gif';
}

function checkIt(string) {
	var detect = navigator.userAgent.toLowerCase();
	var OS,browser,version,total,thestring;
	place = detect.indexOf(string) + 1;
	thestring = string;
	return place;
}

function showtip(x,myEvent,descText) {
	var d = document.getElementById('floatBox');
	
	if(checkIt('mac') == 0) {
	
		if (d) {
			d.style.top = eval(myEvent.clientY-65 + document.documentElement.scrollTop + document.body.scrollTop)+'px';
      d.style.left = eval(myEvent.clientX - 15)+'px';
      
			document.getElementById('float-descText').innerHTML=descText;
			d.style.display='block';
		}
	
	}
}
function hidetip() {
	var d = document.getElementById('floatBox');
	if (d) {
		d.style.display='none';
		document.getElementById('float-descText').innerHTML='';
	}
}
