



function Highlight(j) {
	var n = null;
	if (j.parentNode && j.parentNode.parentNode) {
	    n = j;
	}
	else if (j.parentElement && j.parentElement.parentElement) {
	    n = j;
	}
	if (n) {
	 n.className = "sideNavHover";
	}
}

function Unhighlight(j) {
	var n = null;
	if (j.parentNode && j.parentNode.parentNode) {
	    n = j;
	}
	else if (j.parentElement && j.parentElement.parentElement) {
	    n = j;
	}
	if (n) {
	 n.className = "sideNav";
	}
}


function ClickMe(j) {
	//location.replace(j)
	window.location=j;
}






function Highlight2(j) {

	var n = null;
	if (j.parentNode && j.parentNode.parentNode) {
	    n = j;
	}
	else if (j.parentElement && j.parentElement.parentElement) {
	    n = j;
	}
	//alert(n.className)
	if (n) {
		if (n.className == "servicesSectionSelected"){
			//alert("NO!")
		}else{
	 		n.className = "servicesSectionOver";
		}
	}
}

function Unhighlight2(j) {
	var n = null;
	if (j.parentNode && j.parentNode.parentNode) {
	    n = j;
	}
	else if (j.parentElement && j.parentElement.parentElement) {
	    n = j;
	}
	if (n) {
		if (n.className == "servicesSectionSelected"){
			//alert("NO!")
		}else{
	 		n.className = "servicesSection";
		}
	}
}


function SetHighlight2(j) {
	var n = null;
	if (j.parentNode && j.parentNode.parentNode) {
	    n = j;
	}
	else if (j.parentElement && j.parentElement.parentElement) {
	    n = j;
	}
	if (n) {
		if (n.className == "servicesSectionSelected"){
			n.className = "servicesSection";
		}else{
	 		n.className = "servicesSectionSelected";
		}
	}
}


function ClickMe2(j) {
	//location.replace(j)
	window.location=j;
}





function ExpandDiv(theDivName)
{
	InitializeGlobalData();

	if (null == theDivName || typeof(theDivName) == "undefined") return; var theDiv = allDivsInPage[theDivName]; if (null == theDiv || typeof(theDiv) == "undefined") return;
	theDiv.style.display = "block";


}

function CollapseDiv(theDivName)
{
	InitializeGlobalData();

	if (null == theDivName || typeof(theDivName) == "undefined") return; var theDiv = allDivsInPage[theDivName]; if (null == theDiv || typeof(theDiv) == "undefined") return;
	theDiv.style.display = "none";

}

function ToggleDiv(theDivName)
{
	InitializeGlobalData();

	if (null == theDivName || typeof(theDivName) == "undefined") return; var theDiv = allDivsInPage[theDivName]; if (null == theDiv || typeof(theDiv) == "undefined") return;

	if (theDiv.style.display.toUpperCase() != "BLOCK")
		ExpandDiv(theDivName);
	else
		CollapseDiv(theDivName);
}



function InitializeGlobalData()
{
	if ('undefined' != typeof(strRtl))
		strIsRtl = strRtl;

	var divs = document.body.getElementsByTagName("DIV");
	var spans = document.body.getElementsByTagName("SPAN");

	var countDiv = 0;
	var countSpan = 0;
	if (typeof(divs) != "undefined" && null != divs)
		countDiv = divs.length;

	if (typeof(spans) != "undefined" && null != spans)
		countSpan = spans.length;

	allDivsInPage = new Array();
	for (i=0; i < countDiv; i++)
		if (typeof(divs[i].id) != "undefined" &&
			null != divs[i].id &&
			divs[i].id.length > 0)
			allDivsInPage[divs[i].id] = divs[i];

	for (i=0; i < countSpan; i++)
		if (typeof(spans[i].id) != "undefined" &&
			null != spans[i].id &&
			spans[i].id.length > 0)
			allDivsInPage[spans[i].id] = spans[i];

}












