function checkValue(id,result)
{
	var myValue = document.getElementById(id).value;
	if (myValue == result)
	{
		document.getElementById(id).value = '';
	}
	if (myValue == '')
	{
		document.getElementById(id).value = result;
	}
}

function reBrowerSize(setWidth)
{
	var winW = 0, winH = 0;
	if (parseInt(navigator.appVersion)>3) {
		if (navigator.appName=="Netscape") {
			winW = window.innerWidth;
			winH = window.innerHeight;
		}
		if (navigator.appName.indexOf("Microsoft")!=-1) {
			winW = document.body.offsetWidth;
			winH = document.body.offsetHeight;
		}
	}
		//alert(winW);
	if (winW <= setWidth)
	{
		reSize(setWidth, 0);
	} else {
		reSize(setWidth, 1);
	}
}

function reSize(setWidth, step)
{
	var content = document.getElementById('content');
	var border = document.getElementById('border');
	var nav_parent = document.getElementById('nav_parent');
	var subNav_solutions = document.getElementById('subNav_solutions');
	var subNav_support = document.getElementById('subNav_support');
	var subNav_contact = document.getElementById('subNav_contact');
	if (step == 0){
		content.style.width = setWidth+'px';
		border.style.width = setWidth+'px';	
		nav_parent.style.width = String(setWidth-240)+'px';
		subNav_solutions.style.width = '690px';
		subNav_solutions.style.right = '30px';
		subNav_support.style.width = '367px';
		subNav_support.style.right = '30px';
		subNav_contact.style.width = '148px';
		subNav_contact.style.right = '30px';
	}
	if (step == 1){
		content.style.width = '100%';
		border.style.width = '100%';
		nav_parent.style.width = '100%';
		subNav_solutions.style.width = 'auto';
		subNav_solutions.style.right = 'auto';
		subNav_support.style.width = 'auto';
		subNav_support.style.right = 'auto';
		subNav_contact.style.width = 'auto';
		subNav_contact.style.right = 'auto';
	}
}

function refresh()
{
	var sURL = window.location;
	window.location = sURL;
	//alert(sURL);
}

sfHover = function() {
	var sfEls = document.getElementById("nav").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}

if (window.attachEvent) window.attachEvent("onload", sfHover);