<!--
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_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_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 IsEmpty(aTextField) {
  if ((aTextField.value.length==0) || (aTextField.value==null) || (aTextField.value=="")) {
    return true;
  } else { 
    return false; }
}
function isValidEmail(str) {
   return (str.indexOf(".") > 2) && (str.indexOf("@") > 0);
 
}
function ValidateForm(form)
{
   if(IsEmpty(form.Name) || form.Name == '' || form.Name.value.length < 5 || form.Name.value.search("[^A-Za-z ]") > 0) 
   { 
      alert('You have not entered a valid name.') 
      form.Name.focus(); 
      return false; 
   } 
   if(IsEmpty(form.Message) || form.Message == '')
   {
      alert('You have not entered a message.')
      form.Message.focus();
      return false;
   }
   if(!isValidEmail(form.Email.value))
   {
      alert('You have not entered a valid e-mail address.')
      form.Email.focus();
      return false;
   }
return true;
}
function ValidateOrderForm(form)
{
   if(IsEmpty(form.Name) || form.Name == '' || form.Name.value.length < 5 || form.Name.value.search("[^A-Za-z ]") > 0) 
   { 
      alert('You have not entered a valid name.') 
      form.Name.focus(); 
      return false; 
   } 
   if(IsEmpty(form.Message) || form.Message == '')
   {
      alert('You have not entered a message.')
      form.Message.focus();
      return false;
   }
   if(!isValidEmail(form.Email.value))
   {
      alert('You have not entered a valid e-mail address.')
      form.Email.focus();
      return false;
   }
   if(IsEmpty(form.BillingAddress1) || form.BillingAddress1 == '')
   {
      alert('You have not entered a Billing address.')
      form.BillingAddress1.focus();
      return false;
   }
   if(IsEmpty(form.BillingCity) || form.BillingCity == '')
   {
      alert('You have not entered a Billing city.')
      form.BillingCity.focus();
      return false;
   }
   if(IsEmpty(form.BillingState) || form.BillingState == '')
   {
      alert('You have not selected a Billing state.')
      form.BillingState.focus();
      return false;
   }
   if(IsEmpty(form.BillingZip) || form.BillingZip == '')
   {
      alert('You have not entered a Billing zip code.')
      form.BillingZip.focus();
      return false;
   }
   if(IsEmpty(form.ShippingAddress1) || form.ShippingAddress1 == '')
   {
      alert('You have not entered a Shipping address.')
      form.ShippingAddress1.focus();
      return false;
   }
   if(IsEmpty(form.ShippingCity) || form.ShippingCity == '')
   {
      alert('You have not entered a Shipping city.')
      form.ShippingCity.focus();
      return false;
   }
   if(IsEmpty(form.ShippingState) || form.ShippingState == '')
   {
      alert('You have not selected a Shipping state.')
      form.ShippingState.focus();
      return false;
   }
   if(IsEmpty(form.ShippingZip) || form.ShippingZip == '')
   {
      alert('You have not entered a Shipping zip code.')
      form.ShippingZip.focus();
      return false;
   }

return true;
}
function show_div(div_id) {    
  if(document.getElementById(div_id).style.display == 'none') {
    document.getElementById(div_id).style.display = '';
    remember_div(div_id);
  } else {
    document.getElementById(div_id).style.display = 'none';
    unremember_div(div_id);
  }
  return;
}
function load_div()
{
	var last_div = unescape(readCookie("last_div"));
	eraseCookie("last_div");
	
  if(last_div != 'null') {
    tmp_div = new Array();
    tmp_div = last_div.split(',');

	  for (var kCnt=0;kCnt < tmp_div.length;kCnt++) {	  	
      show_div(tmp_div[kCnt]);
  	}
  }	
}
function remember_div(div_id) {
  var last_div = unescape(readCookie("last_div"));
  eraseCookie("last_div");
          
  if(last_div == 'null') {  	
    new_div=new Array(div_id);
  } else {
  	new_div=new Array(last_div);
  	new_div.push(div_id);
  }
      
  new_div = new_div.sort();
  createCookie("last_div", new_div, 1);
  
  return;
}
function unremember_div(div_id) {
  var last_div = unescape(readCookie("last_div"));  
  eraseCookie("last_div");
      
  new_div = new Array();
  new_div = last_div.split(',');

  var arrIndex = arraySearch(new_div,div_id);
  
  new_div.splice(arrIndex,1);
  new_div = new_div.sort();
  createCookie("last_div", new_div, 1);  
  
  return;
}
function preLoad() {    
  var table = document.getElementById("leftnav");
  var rows = table.getElementsByTagName("tr");
  
  for(i in rows) {
    if(rows[i].style != null)
      if((rows[i].style.display=='' || rows[i].style.display=='block') && (rows[i].id != null && rows[i].id != '')) {           
        rows[i].style.display='none';        
      }
  }
  
  load_div();
}
function createCookie(name,value,days)
{
	if (days)
	{
		var date = new Date();
		date.setTime(date.getTime()+(days*24*60*60*1000));
		var expires = "; expires="+date.toGMTString();
	}
	else var expires = "";
	document.cookie = name+"="+value+expires+"; path=/";
}
function readCookie(name)
{
	var nameEQ = name + "=";
	var ca = document.cookie.split(';');
	for(var i=0;i < ca.length;i++)
	{
		var c = ca[i];
		while (c.charAt(0)==' ') c = c.substring(1,c.length);
		if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
	}
	return null;
}
function eraseCookie(name)
{
	createCookie(name,"",-1);
}
function arraySearch(vArray,vValue)
{  
	for (var kCnt=0;kCnt < vArray.length;kCnt++)
		if (vArray[kCnt] == vValue)
		{
			return kCnt;
		}
	
	return -1;
}

function PopupWin(url,w,h){
var how_wide = screen.availWidth;
var how_high = screen.availHeight;
w -= 0;
h -= 0;
var top_pos = (how_high/2) - (h/2);
var left_pos = (how_wide/2) -  (w/2);
window.open(url, "external", "width=" + w +",height=" + h + ",resizable=no,scrollbars=yes,status=no,location=no,toolbar=no,menubar=no,left="+left_pos+",top="+top_pos);
}

/*-------------------------------------------------
************* Parameter Settings ******************
---------------------------------------------------*/

unlock0 = "1647"
unlock1 = "2050"

function cswapdata0()
{

    /*---------------------------------------------
    Content Dimensions
    ---------------------------------------------*/

	this.container_width = 414
	this.container_height = 20



    /*---------------------------------------------
    Message Timing
    ---------------------------------------------*/

	this.initial_swap_delay = 0			//measured in seconds
	this.swap_delay = 6				//measured in seconds



    /*---------------------------------------------
    Container Styles and Padding
    ---------------------------------------------*/

	this.container_padding = "3,3,5,16"
	this.container_styles = "border-width:0px; border-color:#666666; border-style:solid;";



    /*---------------------------------------------
    Container Styles and Padding
    ---------------------------------------------*/

	this.item_styles = "color:#ffffff; cursor:default; text-decoration:none; font-family:Verdana; font-size:11px; border-style:none; border-width:0px; font-weight: bold;";
	this.item_link_styles = "color:#ffffff; text-decoration:none; font-weight:normal; font-family:Verdana; font-size:11px;border-color:#FFFFFF; border-style:none;border-width:0px; font-weight: bold;";
	this.item_link_hover_styles = "color:#000000; text-decoration:none; font-family:Verdana; font-size:11px; border-color:#666666; border-style:none;border-width:0px;";



    /*---------------------------------------------
    Animated Transitions (IE 5.5 & Up only)
    ---------------------------------------------*/

	this.item_transitions = "filter:progid:DXImageTransform.Microsoft.Slide(duration=1, slideStyle='hide', bands=20);";


}

//-->

