<!--

function changeColor(elem,newColor){
		elem.style.color = newColor;	
}
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

var ActiveSubMenu = "";

function show(name)
{
	
	if ((ActiveSubMenu != name) && (ActiveSubMenu !='')) 
	{
		var ObjActiveSubMenu = document.getElementById(ActiveSubMenu);
		ObjActiveSubMenu.style.visibility = "hidden"; 
	}
	ActiveSubMenu = name;
	var tip = document.getElementById(name);
	
	if (tip)
	{
	tip.style.visibility = "visible";	
	}
}

function hide(name)
{
	var tip = document.getElementById(name);	
	var menuHeight=tip.offsetHeight;
	var menuWidth=tip.offsetWidth;
	var menuTop=tip.offsetTop;
	var menuLeft=tip.offsetLeft;
		
	if (tip)
	{
		if((event.clientX >=(menuLeft-3) && event.clientX <= (menuLeft + menuWidth)) 
	        &&
	       (event.clientY >=(menuTop) && event.clientY <= (menuTop + menuHeight)))
	    {
			//alert(event.clientX);
			tip.style.visibility ='visible';
	    }	
		else
	    {
			tip.style.visibility = "hidden";
			ActiveSubMenu="";
		}
	
	}
}
// -->

/* Function highlights left nav section when subnavs are chosen */
function highlight(id){
	var x = document.getElementById(id);
	if (x)
	{
	x.style.color = "#FA9A00";
	x.onmouseout = "";
	x.onmouseover = "";
	}
}

<!--
/* Highlight function invoked and defined on a per-page basis */
highlight('nav9')
function MM_findObj(n, d) { //v4.01
	var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
	if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
	for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
	if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function ArthursMagic(el, x, y, a, b, c, s) { //v2.5 PVII
	var g,elo=el,f="",m=false,d="";
	x=parseInt(x);
	y=parseInt(y);
	var t = 'g.p7Magic = setTimeout("ArthursMagic(\''+elo+'\','; 
	if ((g=MM_findObj(el))!=null) {
		d=(document.layers)?g:g.style;
	}else{return;}
	if (parseInt(s)>0) {
		eval(t+x+','+y+','+a+','+b+','+c+',0)",' + s+')');return;
	}
	var xx=(parseInt(d.left))?parseInt(d.left):0;
	var yy=(parseInt(d.top))?parseInt(d.top):0;
	if(parseInt(c)==1) {
		x+=xx;y+=yy;m=true;c=0;
	}
	else if (c==2) {
		m=false;clearTimeout(g.p7Magic);
	}
	else {
		var i=parseInt(a);
		if (eval(g.moved)){
			clearTimeout(g.p7Magic);
		}
		if (xx<x){
			xx+=i;
			m=true;
			if(xx>x){
				xx=x;
			}
		}
		if (xx>x){
			xx-=i;
			m=true;
			if(xx<x){
				xx=x;
			}
		}
		if (yy<y){
			yy+=i;
			m=true;
			if(yy>y){
				yy=y;
			}
		}
		if (yy>y){
			yy-=i;
			m=true;
			if(yy<y){
				yy=y;
			}
		}
	}
	if (m) {if((navigator.appName=="Netscape") && parseInt(navigator.appVersion)>4){
    xx+="px";yy+="px";}
	d.left=xx;d.top=yy;g.moved=true;eval(t+x+','+y+','+a+','+b+','+c+',0)",'+b+')');
	}else {g.moved=false;}
}

function MM_preloadImages() { //v3.0
	var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_swapImgRestore() { //v3.0
	var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_showHideLayers() { //v6.0
	var i,p,v,obj,args=MM_showHideLayers.arguments;
	for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}


//*************below Javascript is for Contact Us Form Validation***************

var IsCntNameValid, IsEMailValid;
function validateCntUsForm() {
	var strCName,strEMail;
	strCName = ContactUs.txtContactName.value;
	//check Contact Name Field whether that's empty or not			
	if (isEmpty(strCName)){
		RqurdFld_CName.innerText = "* Please fill out Contact Name field.";
		ContactUs.txtContactName.focus();
		IsCntNameValid = "false"
	}
	else {
		RqurdFld_CName.innerText = "";
		IsCntNameValid = "true"
	}
	
	//check EMail Name Field whether it has @, . included without with at leat one caracter in between
	strEMail = ContactUs.txtEMail.value;				
	if (isEmail(strEMail)){
		RqurdFld_EMail.innerText = ""
		IsEMailValid = "true";
	}
	else {					
		RqurdFld_EMail.innerText = " * Please fill out eMail field with a@b.c format."
		if (IsCntNameValid == "true") ContactUs.txtEMail.focus();
		IsEMailValid = "false";
	}
	
	//submit the form if above two fields are valid
	if ((IsCntNameValid == "true") && (IsEMailValid == "true")) {
		document.ContactUs.submit();
	}
	else {
		alert('Please fill all the required field with proper format.');
	}
		
}


 
// Email address must be of form a@b.c -- in other words:
// * there must be at least one character before the @
// * there must be at least one character before and after the .
// * the characters @ and . are both required
//
// For explanation of optional argument emptyOK,
// see comments of function isInteger.

function isEmail (s)
{   if (isEmpty(s)) 
       //if (isEmail.arguments.length == 1) return true;
       if (isEmail.arguments.length == 1) return false;
       else return (isEmail.arguments[1] == true);
	
    // is s whitespace?
    if (isWhitespace(s)) return false;
    
    // there must be >= 1 character before @, so we
    // start looking at character position 1 
    // (i.e. second character)
    var i = 1;
    var sLength = s.length;

    // look for @
    while ((i < sLength) && (s.charAt(i) != "@"))
    { i++;
      //alert('@: ' + s.charAt(i));
    }
	
    if ((i >= sLength) || (s.charAt(i) != "@")) return false;
    else i += 2;
	
    // look for .
    while ((i < sLength) && (s.charAt(i) != "."))
    { i++
    }

    // there must be at least one character after the .
    if ((i >= sLength - 1) || (s.charAt(i) != ".")) return false;
    else return true;
}
// Check whether string s is empty.

function isEmpty(s)
{   return ((s == null) || (s.length == 0))
}


var whitespace = " \t\n\r";
// Returns true if string s is empty or 
// whitespace characters only.

function isWhitespace (s)

{   var i;

    // Is s empty?
    if (isEmpty(s)) return true;

    // Search through string's characters one by one
    // until we find a non-whitespace character.
    // When we do, return false; if we don't, return true.

    for (i = 0; i < s.length; i++)
    {   
        // Check that current character isn't whitespace.
        var c = s.charAt(i);

        if (whitespace.indexOf(c) == -1) return false;
    }

    // All characters are whitespace.
    return true;
}

//-->
