 $(document).ready(function(){	
							
							$("ul.thumb li").hover(function() {
$(this).css({'z-index' : '10'});
$(this).find('img').addClass("hover").stop()
		.animate({
			marginTop: '-110px',
			marginLeft: '-110px',
			top: '50%',
			left: '50%',
			width: '174px',
			height: '174px'

		}, 200);

	} , function() {
$(this).css({'z-index' : '0'});
$(this).find('img').removeClass("hover").stop()
		.animate({
			marginTop: '0',
			marginLeft: '0',
			top: '0',
			left: '0',
			width: '100px',
			height: '100px'
	
		}, 400);
});
																																								  
$('#submenu .ro01').hover(function() {  
    $("#mainimageindex").attr('src', '/images/template/specials/01.jpg');  
}, function() {  
    $("#mainimageindex").attr('src', '/images/template/specials/temp-big.jpg');   
});  
	
$('#submenu .ro02').hover(function() {  
    $("#mainimageindex").attr('src', '/images/template/specials/02.jpg');  
}, function() {  
    $("#mainimageindex").attr('src', '/images/template/specials/temp-big.jpg');   
}); 
		
$('#submenu .ro03').hover(function() {  
    $("#mainimageindex").attr('src', '/images/template/specials/03.jpg');  
}, function() {  
    $("#mainimageindex").attr('src', '/images/template/specials/temp-big.jpg');   
}); 
				
$('#submenu .ro04').hover(function() {  
    $("#mainimageindex").attr('src', '/images/template/specials/04.jpg');  
}, function() {  
    $("#mainimageindex").attr('src', '/images/template/specials/temp-big.jpg');   
}); 
	
$('#submenu .ro05').hover(function() {  
    $("#mainimageindex").attr('src', '/images/template/specials/05.jpg');  
}, function() {  
    $("#mainimageindex").attr('src', '/images/template/specials/temp-big.jpg');   
}); 

$('#submenu .ro06').hover(function() {  
    $("#mainimageindex").attr('src', '/images/template/specials/06.jpg');  
}, function() {  
    $("#mainimageindex").attr('src', '/images/template/specials/temp-big.jpg');   
}); 

$('#submenu .ro07').hover(function() {  
    $("#mainimageindex").attr('src', '/images/template/specials/07.jpg');  
}, function() {  
    $("#mainimageindex").attr('src', '/images/template/specials/temp-big.jpg');   
}); 

$('#submenu .ro08').hover(function() {  
    $("#mainimageindex").attr('src', '/images/template/specials/08.jpg');  
}, function() {  
    $("#mainimageindex").attr('src', '/images/template/specials/temp-big.jpg');   
}); 

$('#submenu .ro09').hover(function() {  
    $("#mainimageindex").attr('src', '/images/template/specials/09.jpg');  
}, function() {  
    $("#mainimageindex").attr('src', '/images/template/specials/temp-big.jpg');   
}); 

$('#submenu .ro10').hover(function() {  
    $("#mainimageindex").attr('src', '/images/template/specials/10.jpg');  
}, function() {  
    $("#mainimageindex").attr('src', '/images/template/specials/temp-big.jpg');   
}); 

$('#submenu .ro11').hover(function() {  
    $("#mainimageindex").attr('src', '/images/template/specials/11.jpg');  
}, function() {  
    $("#mainimageindex").attr('src', '/images/template/specials/temp-big.jpg');   
}); 

$('#submenu .ro12').hover(function() {  
    $("#mainimageindex").attr('src', '/images/template/specials/12.jpg');  
}, function() {  
    $("#mainimageindex").attr('src', '/images/template/specials/temp-big.jpg');   
}); 

$('#submenu .ro13').hover(function() {  
    $("#mainimageindex").attr('src', '/images/template/specials/13.jpg');  
}, function() {  
    $("#mainimageindex").attr('src', '/images/template/specials/temp-big.jpg');   
}); 

$('#submenu .ro14').hover(function() {  
    $("#mainimageindex").attr('src', '/images/template/specials/14.jpg');  
}, function() {  
    $("#mainimageindex").attr('src', '/images/template/specials/temp-big.jpg');   
}); 

$('#submenu .ro15').hover(function() {  
    $("#mainimageindex").attr('src', '/images/template/specials/15.jpg');  
}, function() {  
    $("#mainimageindex").attr('src', '/images/template/specials/temp-big.jpg');   
}); 

$('#submenu .ro16').hover(function() {  
    $("#mainimageindex").attr('src', '/images/template/specials/16.jpg');  
}, function() {  
    $("#mainimageindex").attr('src', '/images/template/specials/temp-big.jpg');   
}); 

$('#submenu .ro17').hover(function() {  
    $("#mainimageindex").attr('src', '/images/template/specials/17.jpg');  
}, function() {  
    $("#mainimageindex").attr('src', '/images/template/specials/temp-big.jpg');   
}); 
					
$("ol li:odd, dl dd:odd").css("background-color", "transparent");
$("ol li:even, dl dd:even").css("background-color", "#f9f9f9");
$(".templates table table td:nth-child(2)").addClass("text"); 
$('.rollover-01').hover(function() {  
    $("#rollover-01").show();  }); 
$('#rollover-01').mouseout(function() { 
    $("#rollover-01").hide();   
}); 
$('.rollover-02').hover(function() {  
    $("#rollover-02").show();  }); 
$('#rollover-02').mouseout(function() { 
    $("#rollover-02").hide();   
}); 

 $('.rollover-03').hover(function() {  
    $("#rollover-03").show();  }); 
$('#rollover-03').mouseout(function() { 
    $("#rollover-03").hide();   
});

 $('.rollover-04').hover(function() {  
    $("#rollover-04").show();  }); 
$('#rollover-04').mouseout(function() { 
    $("#rollover-04").hide();   
});

 $('.rollover-05').hover(function() {  
    $("#rollover-05").show();  }); 
$('#rollover-05').mouseout(function() { 
    $("#rollover-05").hide();   
});

$("#dd li").hover(			 
   	function(){
		$(this).find('ul:first').css({visibility: "visible",display: "none"}).slideDown(600);
		},function(){
		$(this).find('ul:first').css({visibility: "hidden"});
});
	 
var path = location.pathname; 
if(location.pathname != "/") { 
	jQuery("a[href$='" + path + "']").addClass("selected"); 
	
	} 
	else $('#submenu a:eq()').addClass('selected'); 
 });
 
$(function(){ 
settings = {
          tl: { radius: 10 },
          tr: { radius: 10 },
          bl: { radius: 10 },
          br: { radius: 10 },
          antiAlias: true,
          autoPad: true,
          validTags: ["div"]
      };
	  
	    settingsalt = {
          tl: { radius: 10 },
          tr: { radius: 10 },
          bl: { radius: 10 },
          br: { radius: 10 },
          antiAlias: true,
          autoPad: true,
          validTags: ["div"]
      };
 
$('.myboxa, .myboxb, .myboxc').corner(settings);
  
$('.mybox1, .mybox2, .mybox3, .mybox4, .mybox5, .mybox6, .mybox7, .mybox8, .mybox9').corner(settingsalt);
  
 });
 function MM_showHideLayers() { //v9.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) 
  with (document) if (getElementById && ((obj=getElementById(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 MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
};

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 openBrochure() {
  window.open('brochure.asp','PriceList',"location=0,menubar=0,resizable=1,scrollbars=1,height=800,width=700,directories=0,toolbar=0,status=1");
};
function MM_validateForm() { //v4.0
  if (document.getElementById){
    var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;
    for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=document.getElementById(args[i]);
      if (val) { nm=val.name; if ((val=val.value)!="") {
        if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
          if (p<1 || p==(val.length-1)) errors+='- '+nm+' must contain an e-mail address.\n';
        } else if (test!='R') { num = parseFloat(val);
          if (isNaN(val)) errors+='- '+nm+' must contain a number.\n';
          if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
            min=test.substring(8,p); max=test.substring(p+1);
            if (num<min || max<num) errors+='- '+nm+' must contain a number between '+min+' and '+max+'.\n';
      } } } else if (test.charAt(0) == 'R') errors += '- '+nm+' is required.\n'; }
    } if (errors) alert('The following error(s) occurred:\n'+errors);
    document.MM_returnValue = (errors == '');
} };

function YY_checkform() { //v4.66
//copyright (c)1998,2002 Yaromat.com
  var args = YY_checkform.arguments; var myDot=true; var myV=''; var myErr='';var addErr=false;var myReq;
  for (var i=1; i<args.length;i=i+4){
    if (args[i+1].charAt(0)=='#'){myReq=true; args[i+1]=args[i+1].substring(1);}else{myReq=false}
    var myObj = MM_findObj(args[i].replace(/\[\d+\]/ig,""));
    myV=myObj.value;
    if (myObj.type=='text'||myObj.type=='password'||myObj.type=='hidden'){
      if (myReq&&myObj.value.length==0){addErr=true}
      if ((myV.length>0)&&(args[i+2]==1)){ //fromto
        var myMa=args[i+1].split('_');if(isNaN(myV)||myV<myMa[0]/1||myV > myMa[1]/1){addErr=true}
      } else if ((myV.length>0)&&(args[i+2]==2)){
          var rx=new RegExp("^[\\w\.=-]+@[\\w\\.-]+\\.[a-z]{2,4}$");if(!rx.test(myV))addErr=true;
      } else if ((myV.length>0)&&(args[i+2]==3)){ // date
        var myMa=args[i+1].split("#"); var myAt=myV.match(myMa[0]);
        if(myAt){
          var myD=(myAt[myMa[1]])?myAt[myMa[1]]:1; var myM=myAt[myMa[2]]-1; var myY=myAt[myMa[3]];
          var myDate=new Date(myY,myM,myD);
          if(myDate.getFullYear()!=myY||myDate.getDate()!=myD||myDate.getMonth()!=myM){addErr=true};
        }else{addErr=true}
      } else if ((myV.length>0)&&(args[i+2]==4)){ // time
        var myMa=args[i+1].split("#"); var myAt=myV.match(myMa[0]);if(!myAt){addErr=true}
      } else if (myV.length>0&&args[i+2]==5){ // check this 2
            var myObj1 = MM_findObj(args[i+1].replace(/\[\d+\]/ig,""));
            if(myObj1.length)myObj1=myObj1[args[i+1].replace(/(.*\[)|(\].*)/ig,"")];
            if(!myObj1.checked){addErr=true}
      } else if (myV.length>0&&args[i+2]==6){ // the same
            var myObj1 = MM_findObj(args[i+1]);
            if(myV!=myObj1.value){addErr=true}
      }
    } else
    if (!myObj.type&&myObj.length>0&&myObj[0].type=='radio'){
          var myTest = args[i].match(/(.*)\[(\d+)\].*/i);
          var myObj1=(myObj.length>1)?myObj[myTest[2]]:myObj;
      if (args[i+2]==1&&myObj1&&myObj1.checked&&MM_findObj(args[i+1]).value.length/1==0){addErr=true}
      if (args[i+2]==2){
        var myDot=false;
        for(var j=0;j<myObj.length;j++){myDot=myDot||myObj[j].checked}
        if(!myDot){myErr+='* ' +args[i+3]+'\n'}
      }
    } else if (myObj.type=='checkbox'){
      if(args[i+2]==1&&myObj.checked==false){addErr=true}
      if(args[i+2]==2&&myObj.checked&&MM_findObj(args[i+1]).value.length/1==0){addErr=true}
    } else if (myObj.type=='select-one'||myObj.type=='select-multiple'){
      if(args[i+2]==1&&myObj.selectedIndex/1==0){addErr=true}
    }else if (myObj.type=='textarea'){
      if(myV.length<args[i+1]){addErr=true}
    }
    if (addErr){myErr+='* '+args[i+3]+'\n'; addErr=false}
  }
  if (myErr!=''){alert('The required information is incomplete or contains errors:\t\t\t\t\t\n\n'+myErr)}
  document.MM_returnValue = (myErr=='');
};

function FrontPage_Form1_Validator(theForm) {

  if (theForm.name.value == "")
  {
    alert("Please enter a value for the \"First Name\" field.");
    theForm.name.focus();
    return (false);
  }

  if (theForm.name.value.length < 1)
  {
    alert("Please enter at least 1 characters in the \"First Name\" field.");
    theForm.name.focus();
    return (false);
  }

  if (theForm.name.value.length > 50)
  {
    alert("Please enter at most 50 characters in the \"First Name\" field.");
    theForm.name.focus();
    return (false);
  }

  if (theForm.LastName.value == "")
  {
    alert("Please enter a value for the \"Last Name\" field.");
    theForm.LastName.focus();
    return (false);
  }

  if (theForm.LastName.value.length < 1)
  {
    alert("Please enter at least 1 characters in the \"Last Name\" field.");
    theForm.LastName.focus();
    return (false);
  }

  if (theForm.LastName.value.length > 50)
  {
    alert("Please enter at most 50 characters in the \"Last Name\" field.");
    theForm.LastName.focus();
    return (false);
  }

  if (theForm.company.value == "")
  {
    alert("Please enter a value for the \"Company Name\" field.");
    theForm.company.focus();
    return (false);
  }

  if (theForm.company.value.length < 2)
  {
    alert("Please enter at least 2 characters in the \"Company Name\" field.");
    theForm.company.focus();
    return (false);
  }

  if (theForm.company.value.length > 50)
  {
    alert("Please enter at most 50 characters in the \"Company Name\" field.");
    theForm.company.focus();
    return (false);
  }

  if (theForm.phone.value == "")
  {
    alert("Please enter a value for the \"Phone\" field.");
    theForm.phone.focus();
    return (false);
  }

  if (theForm.phone.value.length < 10)
  {
    alert("Please enter at least 10 characters in the \"Phone\" field.");
    theForm.phone.focus();
    return (false);
  }

  if (theForm.phone.value.length > 50)
  {
    alert("Please enter at most 50 characters in the \"Phone\" field.");
    theForm.phone.focus();
    return (false);
  }

  if (theForm.fax.value == "")
  {
    alert("Please enter a value for the \"Fax\" field.");
    theForm.fax.focus();
    return (false);
  }

  if (theForm.fax.value.length < 10)
  {
    alert("Please enter at least 10 characters in the \"Fax\" field.");
    theForm.fax.focus();
    return (false);
  }

  if (theForm.fax.value.length > 50)
  {
    alert("Please enter at most 50 characters in the \"Fax\" field.");
    theForm.fax.focus();
    return (false);
  }

  if (theForm.Email.value == "")
  {
    alert("Please enter a value for the \"Email Address\" field.");
    theForm.Email.focus();
    return (false);
  }

  if (theForm.Email.value.length < 2)
  {
    alert("Please enter at least 2 characters in the \"Email Address\" field.");
    theForm.Email.focus();
    return (false);
  }

  if (theForm.Email.value.length > 50)
  {
    alert("Please enter at most 50 characters in the \"Email Address\" field.");
    theForm.Email.focus();
    return (false);
  }

	if(theForm.Referral.selectedIndex == "0"){
		alert("Please enter where you heard about us");
	    theForm.Referral.focus();
	    return false;
    }

  return (true);
};

function Check(){
    if(document.myform.name.value==""){
        alert("Please enter First Name");
        return false;
    }
    if(document.myform.lastname.value==""){
        alert("Please enter Last Name");
        return false;
    }
	if(document.myform.company.value==""){
        alert("Please enter Company");
        return false;
    }
	if(document.myform.phone.value==""){
        alert("Please enter Phone Number");
        return false;
    }
	if(document.myform.fax.value==""){
        alert("Please enter your Fax Number");
        return false;
    }
	if(document.myform.Email.value==""){
        alert("Please enter Email Address");
        return false;
    }
	if (document.myform.Referral) { 
		if(document.myform.Referral.selectedIndex == "0"){
			  alert("Please enter how you heard about us");
		      return false;
	    }
	}
    return true;
}
