var Arr=new Array;

function LoadImages()
{ 
  Arr = LoadImages.arguments; 
}

function SwapColor(FontText, inout){
	if (inout==1)  // inside  
			FontText.style.color="black";
	else          // outside
			FontText.style.color="#993300";
}

function FindAString(str,str1)
{ var i=-1;	

i = str.indexOf(str1);
if (i != -1)
	return(i);
else
	return(-1);  		    
}	

function LoadText()
{
	var urltext = location.search;//<META content="Microsoft Visual Studio .NET 7.1" name="Originator">
	var ind, j;
	var cad;
	var newcad;
	
	ind = FindAString(urltext,"submit=true");  
	if (ind != -1)  // success finding result
	{
		j = FindAString(urltext,"id=1&");
		if (j != -1) {
		    cad = "Your Form has been received. <BR>We will work on the information you supplied to answer as soon as possible.";
		}     
		else {
		    cad = "Your message has been received. <BR>One of our representatives will contact you soon using the information you supplied before.";
		}     
	}   
    else
	{
		j = FindAString(urltext,"id=1&");
		if (j != -1)
		    cad = "For some reason the Form could not be submitted. <BR>You can call us or try again later.";
		else
            cad = "For some reason your message could not be sent. Call us or try again later."; 
	}
	document.getElementById("CellMsg").innerHTML = cad; 
}

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 MM_swapImage() { //v3.0
	var i,j=0,x,a=MM_swapImage.arguments; 
	document.MM_sr=new Array; 
	for(i=0;i<(a.length-2);i+=3)
	  if ((x=MM_findObj(a[i]))!=null)
	  {document.MM_sr[j++]=x; 
	   if(!x.oSrc) x.oSrc=x.src; 
	   x.src=a[i+2];}
}
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_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 swapColorImage(FontText, inout, swapObject, img)
{   var i,j=0,x; //,a=swapImage.arguments; 
	
	SwapColor(FontText, inout);
	if (inout == 1) 
	   MM_swapImage(swapObject,'',img,1);
	else
	 {
	   MM_swapImgRestore();   
	 } 
}

function ShowPolicy()
{
   	p = "Privacy.htm";
	win1=window.open(p,"","width=630,height=600,left=20,top=20,scrollbars=yes,menubar=yes,resizable=yes");
}

function ShowPolicyUp()
{
   	p = "../Privacy.htm";
	win1=window.open(p,"","width=630,height=600,left=20,top=20,scrollbars=yes,menubar=yes,resizable=yes");
}

function ShowZoomed(url)
{ var features; 
  features = "width=600,height=560,left=10,top=10,scrollbars=yes,resizable=yes";
  win2 = window.open(url ,"BigWindow",features);
}

function ShowWindow(url)
{ var features; 
  features = "width=750,height=660,left=10,top=10,scrollbars=yes,resizable=yes";
  win2 = window.open(url ,"BigWindow",features);
}

function OpenPDF(url)
{ var features; 
  features = "width=750,height=600,left=10,top=10,scrollbars=yes,resizable=yes,menubar=yes";
  win2 = window.open(url ,"BigWindow",features);
}
