          
		  
		  function SwapMenuColor(FontText, inout){
			if (inout==1)  // inside  
					FontText.style.color="#000000"; // black
			else          // outside
					FontText.style.color="#558eae"; // lite blue
			}
			
		  function SwapLine(FontText, inout){
			if (inout==1)  // inside 
					FontText.style.textDecoration="underline";
			else          // outside
					FontText.style.textDecoration="none";
			}
		 function SwapL(FontText, inout){
				if (inout==1)  // inside 
				{
						FontText.style.textDecoration="underline";
						FontText.style.color="#0000cc";
				}
				else          // outside
				{
						FontText.style.textDecoration="none";
						FontText.style.color="black";
				}
			
			}
		  function SwapBold(FontText, inout){
			if (inout==1)  // inside 
					FontText.style.fontWeight="bold";  // style.fontStyle.bold
			else          // outside
					FontText.style.fontWeight="normal";
			}
			
		  function SwapLineSearch(FontText, imgname, inout){
			if (inout==1)  // inside 
			{
					FontText.style.textDecoration="underline";
					//document.getElementById(imgname).src="images/search.gif";
					MM_swapImage(imgname,"","images/search.gif",1);
			}		
			else {         // outside
					FontText.style.textDecoration="none";
					MM_swapImgRestore(imgname);
					//document.getElementById(imgname).src="images/search0.gif';
			}		
		  }	
		  function SwapLineChart(FontText, imgname, inout){
			if (inout==1)  // inside 
			{
					FontText.style.textDecoration="underline";
					//document.getElementById(imgname).src="images/search.gif';
					MM_swapImage(imgname,"","images/chart.gif",1);
			}		
			else {         // outside
					FontText.style.textDecoration="none";
					MM_swapImgRestore(imgname);
					//document.getElementById(imgname).src="images/search0.gif';
			}		
		  }	
		  	
  		  function SwapH(FontText, inout) {
		    if (inout==1)  // inside  
					FontText.style.color= "blue";
			else          // outside
					FontText.style.color="#ff9900";  // orange
		  }  
		    
	      function SwapRed(FontText, inout) {
		    if (inout==1)  // inside  
					FontText.style.color= "#cc3300";  // "#993300';
			else          // outside
					FontText.style.color="#003399";  // orange
		  }
		  function FindAString(str,str1)
		  { var i=-1;	
		    
		    i = str.indexOf(str1);
		    if (i != -1)
		        return(i);
		    else
		        return(-1);  		    
		  }	
		  function SwapW(FontText, inout){
			if (inout==1)  // inside  
					FontText.style.color= "silver"; // 
			else          // outside
					FontText.style.color="#cc9966";
			}
		  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 CheckCookie (CookieName) {
			    var search = CookieName + "=" ;  
				if (document.cookie.length > 0) { // if there are any cookies 
					offset = document.cookie.indexOf(search);       
					if (offset != -1) { // if cookie exists          
					     //offset += search.length;          
					   // set index of beginning of value 
					     //end = document.cookie.indexOf(';", offset);          
					   // set index of end of cookie value         
					     //if (end == -1)             
		 				 //   end = document.cookie.length;         
						 return true; //return unescape(document.cookie.substring(offset, end));      
						}    
					
					else
					  return false;
				}				
			}
			
		function CommaFormat(amount)
		{// replace comma if desired
			var delimiter = ","; 
			s = new String(i);
			if (s.indexOf('.') < 0) 
				    { amount += '.00'; }
			var a = amount.split('.',2)
			var d = a[1];
			var i = parseInt(a[0]);
			if (isNaN(i)) { return ''; }
			var minus = '';
			if (i < 0) 
				{ minus = '-'; }
			i = Math.abs(i);
			var n = new String(i);
			var a = [];
			while (n.length > 3)
			{
				var nn = n.substr(n.length-3);
				a.unshift(nn);
				n = n.substr(0,n.length-3);
			}
			if (n && n.length > 0) 
				    { a.unshift(n); }
			n = a.join(delimiter);
			if(d.length < 1) 
				{ amount = n; }
			else 
				{ amount = n + '.' + d; }
			amount = minus + amount;
			amount = "$" + amount;
			return amount;
		}	
		  
		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 your 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 LoadText2()
		   {
		      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 = "Su Formulario ha sido recibido. Trabajaremos sobre la información suministrada para responderle <BR>tan pronto como nos sea posible.";
		          }     
		         else {
		               cad = "Su mensaje ha sido recibido. <BR>Uno de nuestros agentes lo contactará pronto usando los datos que Ud. ha dado.";
		          }     
		      }   
              else
		      {
		         j = FindAString(urltext,"id=1&");
		         if (j != -1)
		             cad = "Por algún motivo su formulario no ha podido ser enviado. Llámenos o intente de nuevo más tarde.";
		         else
                     cad = "Por algún motivo su mensaje no ha podido ser enviado. Llámenos o intente de nuevo más tarde."; 
		      }
	          document.getElementById("CellMsg").innerHTML = cad; 
	        }     
	     function OpenFile(filename)
	     {
			 win1=window.open(filename,"","width=750,height=700,left=25,top=25,scrollbars=yes,addressbar=yes,menubar=yes,resizable=yes");
	     }
	     
	     function OpenGallery(thepath)
	     {   
			 p = "Gallery.htm?path=images/" + thepath;
			 win1=window.open(p,"","width=450,height=500,left=25,top=25,scrollbars=no,menubar=yes,resizable=no");
	     }    
	     
	     function Todaysdate()
		 {
				var m_names = new Array("January", "February", "March", 
										"April", "May", "June", "July", "August", "September", 
										"October", "November", "December");
				var d = new Date();
				var curr_date = d.getDate();
				var curr_month = d.getMonth();
				var curr_year = d.getFullYear();
			    document.getElementById("CellDate").innerHTML = m_names[curr_month]+ "-" + curr_date  + "-" + curr_year;
		 }
 
		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);
		}