<!--




function FindScreenMid(){
var mid=screen.width/2
return mid
}
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);
// -->

function MM_findObj(n, d) { //v4.0
  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 && document.getElementById) x=document.getElementById(n); return x;
}

function MM_showHideLayers() { //v3.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; }
}


function ShowHideLayers() { 
  var i,p,v,obj,args=ShowHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=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; }
	var we=322
}
function FindObj(n, d) { 
  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 && document.getElementById) x=document.getElementById(n); return x;
}

function IsEmptyOK(f){
	if(document.forms[0][f].value==0){
	return false;
	}
}
function IsEmpty(f){
	if(document.forms[0][f].value==0){
	return true;
	}
}
function NoHtml(f){
	if(document.forms[0][f].value.indexOf("<")>-1){
		alert("You are not allowed to use HTML tags in the text area");
	return true;
	}
	if (document.forms[0][f].value.indexOf("www.")>0 ||
		document.forms[0][f].value.indexOf("ftp.")>0 ||
		document.forms[0][f].value.indexOf("http")>0){
	 
	alert("You are not allowed to put web addresses in the text area");
	return true;
	}
}

function emailtest(f) {
  if (document.forms[0][f].value==0 || document.forms[0][f].value.indexOf('@', 1) == -1 || 
document.forms[0][f].value.indexOf('.', 3) == -1) 
  {
  	alert("You must emter a valid email address");
    return true;
  } 
}

function NoHtmltext(form,object,value){
	if(value.indexOf(">")>0){
		
	return false;
	}
	if (value.indexOf("www.")>0 ||
		value.indexOf("ftp.")>0 ||
		value.indexOf("http")>0){
	
	return false;
	}
	else
  {
    return true;
  } 

}

function textvalidate2(){
if (IsEmpty("jemail")){
	alert("You must have a valid Email address");
	return false;
	}
if(emailtest("jemail")){
	return false;
	}

}

function textvalidate(){
if (IsEmptyOK("about")){
	return true;
	}
if (IsEmpty("Email")){
	alert("You must have a vaild Email address");
	return false;
	}
if(NoHtml("about")){
	return false;
	}
if(emailtest("Email")){
	return false;
	}
}



function ExpandSection(idVariable, ImgName){

if (idVariable.style.display=="none")
	{
		idVariable.style.display="" ;
		if (ImgName.src != "") {ImgName.src = "Images/dwnex.gif" ;}
		
	}
else{
	idVariable.style.display="none" ;
	if (ImgName.src != "") {ImgName.src = "Images/rtex.gif" ;}
	
     }



}

function ContractSection(idVariable, ImgName){


if (idVariable.style.display==""){idVariable.style.display="none"}

  if (ImgName.src != "") {ImgName.src = "Images/rtex.gif" ;}
}



function ExpandViewingSection(idVariable, ImgName, tdOpen, tdClose){

if (idVariable.style.display=="none")
	{
		idVariable.style.display="" ;
		if (ImgName.src != "") {ImgName.src = "Images/spacer1.gif" ;}
		tdOpen.style.display="" ;
		tdClose.style.display="none" ;
	}
else{
	idVariable.style.display="none" ;
	if (ImgName.src != "") {ImgName.src = "Images/spacer1.gif" ;}
	tdOpen.style.display="none" ;
	tdClose.style.display="" ;
     }



}

function ContractViewingSection(idVariable, ImgName){


if (idVariable.style.display==""){idVariable.style.display="none"}

  if (ImgName.src != "") {ImgName.src = "Images/spacer1.gif" ;}
}

	
	
	
	
	
	dynamicanimAttr = "dynamicanimation"
	animCancel = "skipanim"
	fpanimationPrefix = "fpAnim"
	animateElements = new Array()
	currentElement = 0
	speed = 1
	stepsZoom = 8
	stepsWord = 8
	stepsFly = 17
	stepsSpiral = 16
	stepsSpiralWord = 19
	stepsElastic = 32
	steps = stepsZoom
	step = 0
	cornerPhase=0
	outEffect=0








function openpops(){
reWin=window.open(url2,"","toolbar=no,location=no,directories=no,status=no,scrollbars=yes ,resizable=yes, menubar=no,width=300,height=200,top=15,left=180")
}
function openpops2(){
windowHandle=window.open(url2,"","toolbar=no,location=no,directories=no,status=no,scrollbars=no ,resizable=yes, menubar=no,width=30,height=50,top=60,left=200");setTimeout('resizeWindow()',1000)
}
function resizeWindow() {
    if (document.images) {
        if (windowHandle.document.images.length == 1) {
            if (document.layers) windowHandle.resizeTo(windowHandle.document.images[0].width+20,windowHandle.document.images[0].height+20)
            else if (document.all) windowHandle.resizeTo(windowHandle.document.images[0].width+30,windowHandle.document.images[0].height+75)
        }
        else 
            setTimeout('resizeWindow()',1000);
    }
}

	function remSuffix(str)
	{
		ind=str.indexOf("FP")
		str = str.substring(0,ind)
		return str
	}
	function dynAnimOut(el)
	{
		outEffect=1
		dynAnimation(el)
		outEffect=0
	}
	
	
	function rollIn(el)
	{
		var ms = navigator.appVersion.indexOf("MSIE")
		ie4 = (ms>0) && (parseInt(navigator.appVersion.substring(ms+5, ms+6)) >= 4)
		if(ie4)
		{
			el.initstyle=el.style.cssText;el.style.cssText=el.fprolloverstyle
		}
	}
	function rollOut(el)
	{
		var ms = navigator.appVersion.indexOf("MSIE")
		ie4 = (ms>0) && (parseInt(navigator.appVersion.substring(ms+5, ms+6)) >= 4)
		if(ie4)
		{
			el.style.cssText=el.initstyle
		}
	}
	function clickSwapStyle(el)
	{
		var ms = navigator.appVersion.indexOf("MSIE")
		ie4 = (ms>0) && (parseInt(navigator.appVersion.substring(ms+5, ms+6)) >= 4)
		if(ie4)
		{
			ts=el.style.cssText
			el.style.cssText=el.fprolloverstyle
			el.fprolloverstyle=ts
		}
	}
	function clickSwapImg(el)
	{
        if(document.all || document.layers)
        {
    		ts=el.src
    		el.src=el.lowsrc
    		el.lowsrc=ts
        }
	}


//-->


