// JavaScript Document


/* jQuery Menu */	
	/* Enters jQuery  ta da!!!!!!!*/
$(document).ready(function(){
		$('#mnu00').hover(
		function(){ // Change the input image's source when we "roll on"
			$(this).attr({ src : 'img/mnu00_o.gif' });
		},
		function(){ // Change the input image's source back to the default on "roll off"
				$(this).attr({ src : 'img/mnu00.gif'});    
			}
        );			
		$('#mnu0a').hover(
		function(){ // Change the input image's source when we "roll on"
			$(this).attr({ src : 'img/mnu0a_o.gif' });
		},
		function(){ // Change the input image's source back to the default on "roll off"
			$(this).attr({ src : 'img/mnu0a.gif'});    }
        );			
		$('#mnu0b').hover(
		function(){ // Change the input image's source when we "roll on"
			$(this).attr({ src : 'img/mnu0b_o.gif' });
		},
		function(){ // Change the input image's source back to the default on "roll off"
			$(this).attr({ src : 'img/mnu0b.gif'});    }
        );			
		$('#mnu0c').hover(
		function(){ // Change the input image's source when we "roll on"
			$(this).attr({ src : 'img/mnu0c_o.gif' });
		},
		function(){ // Change the input image's source back to the default on "roll off"
			$(this).attr({ src : 'img/mnu0c.gif'});    }
        );			
/*		
		$('#mnu01').hover(
		function(){ // Change the input image's source when we "roll on"
			$(this).attr({ src : 'img/mnu_01_o.gif' });
		},
		function(){ // Change the input image's source back to the default on "roll off"
				$(this).attr({ src : 'img/mnu_01.gif'});    
			}
        );			
*/		
		$('#tMenu1').hover(
		function(){ // Change the input image's source when we "roll on"
			$("#mnu02").attr({ src : 'img/mnu_02_o.gif' });
			$("#tsubMenu1").css("display","block");			
		},
		function(){ // Change the input image's source back to the default on "roll off"
				$("#mnu02").attr({ src : 'img/mnu_02.gif'});    		
				if (document.getElementById("serv") == null) $("#tsubMenu1").css("display","none");
				
			}
        );			

		$('#tMenu2').hover(
		function(){ // Change the input image's source when we "roll on"
			$("#mnu02").attr({ src : 'img/mnu_02_o.gif' });
			$("#tsubMenu2").css("display","block");			
		},
		function(){ // Change the input image's source back to the default on "roll off"
				$("#mnu02").attr({ src : 'img/mnu_02.gif'});    		
				if (document.getElementById("payroll") == null) $("#tsubMenu2").css("display","none");
				
			}
        );			

		$('#tMenu3').hover(
		function(){ // Change the input image's source when we "roll on"
			$("#mnu02").attr({ src : 'img/mnu_02_o.gif' });
			$("#tsubMenu3").css("display","block");			
		},
		function(){ // Change the input image's source back to the default on "roll off"
				$("#mnu02").attr({ src : 'img/mnu_02.gif'});    		
				if (document.getElementById("careers") == null) $("#tsubMenu3").css("display","none");
			}
        );			

		$('#tMenu4').hover(
		function(){ // Change the input image's source when we "roll on"
			$("#mnu02").attr({ src : 'img/mnu_02_o.gif' });
			$("#tsubMenu4").css("display","block");			
		},
		function(){ // Change the input image's source back to the default on "roll off"
				$("#mnu02").attr({ src : 'img/mnu_02.gif'});    		
				if (document.getElementById("tools") == null) $("#tsubMenu4").css("display","none");
			}
        );	

		$('#mnu_02_01').hover(
		function(){ // Change the input image's source when we "roll on"
			$(this).attr({ src : 'img/mnu_02_01_o.gif' });
		},
		function(){ // Change the input image's source back to the default on "roll off"
			$(this).attr({ src : 'img/mnu_02_01.gif'});    }
        );	
		$('#mnu_02_02').hover(
		function(){ // Change the input image's source when we "roll on"
			$(this).attr({ src : 'img/mnu_02_02_o.gif' });
		},
		function(){ // Change the input image's source back to the default on "roll off"
			$(this).attr({ src : 'img/mnu_02_02.gif'});    }
        );	
		$('#mnu_02_03').hover(
		function(){ // Change the input image's source when we "roll on"
			$(this).attr({ src : 'img/mnu_02_03_o.gif' });
		},
		function(){ // Change the input image's source back to the default on "roll off"
			$(this).attr({ src : 'img/mnu_02_03.gif'});    }
        );	
		$('#mnu_02_04').hover(
		function(){ // Change the input image's source when we "roll on"
			$(this).attr({ src : 'img/mnu_02_04_o.gif' });
		},
		function(){ // Change the input image's source back to the default on "roll off"
			$(this).attr({ src : 'img/mnu_02_04.gif'});    }
        );	
		$('#mnu_02_05').hover(
		function(){ // Change the input image's source when we "roll on"
			$(this).attr({ src : 'img/mnu_02_05_o.gif' });
		},
		function(){ // Change the input image's source back to the default on "roll off"
			$(this).attr({ src : 'img/mnu_02_05.gif'});    }
        );	
		$('#mnu_02_06').hover(
		function(){ // Change the input image's source when we "roll on"
			$(this).attr({ src : 'img/mnu_02_06_o.gif' });
		},
		function(){ // Change the input image's source back to the default on "roll off"
			$(this).attr({ src : 'img/mnu_02_06.gif'});    }
        );	


		$('#mnu01').hover(
		function(){ // Change the input image's source when we "roll on"
			$(this).attr({ src : 'img/mnu_01_o.gif' });
		},
		function(){ // Change the input image's source back to the default on "roll off"
			$(this).attr({ src : 'img/mnu_01.gif'});    }
        );			
		$('#mnu03').hover(
		function(){ // Change the input image's source when we "roll on"
			$(this).attr({ src : 'img/mnu_03_o.gif' });
		},
		function(){ // Change the input image's source back to the default on "roll off"
			$(this).attr({ src : 'img/mnu_03.gif'});    }
        );			
		$('#mnu04').hover(
		function(){ // Change the input image's source when we "roll on"
			$(this).attr({ src : 'img/mnu_04_o.gif' });
		},
		function(){ // Change the input image's source back to the default on "roll off"
			$(this).attr({ src : 'img/mnu_04.gif'});    }
        );			

		$('#mnu_04_01').hover(
		function(){ // Change the input image's source when we "roll on"
			$(this).attr({ src : 'img/mnu_04_01_o.gif' });
		},
		function(){ // Change the input image's source back to the default on "roll off"
			$(this).attr({ src : 'img/mnu_04_01.gif'});    }
        );			

		$('#mnu05').hover(
		function(){ // Change the input image's source when we "roll on"
			$(this).attr({ src : 'img/mnu_05_o.gif' });
		},
		function(){ // Change the input image's source back to the default on "roll off"
			$(this).attr({ src : 'img/mnu_05.gif'});    }
        );			
		$('#mnu06').hover(
		function(){ // Change the input image's source when we "roll on"
			$(this).attr({ src : 'img/mnu_06_o.gif' });
		},
		function(){ // Change the input image's source back to the default on "roll off"
			$(this).attr({ src : 'img/mnu_06.gif'});    }
        );			
		
		$('#mnu07').hover(
		function(){ // Change the input image's source when we "roll on"
			$(this).attr({ src : 'img/mnu_07_o.gif' });
		},
		function(){ // Change the input image's source back to the default on "roll off"
			$(this).attr({ src : 'img/mnu_07.gif'});    }
        );			
		
		$('#mnu08').hover(
		function(){ // Change the input image's source when we "roll on"
			$(this).attr({ src : 'img/mnu_08_o.gif' });
		},
		function(){ // Change the input image's source back to the default on "roll off"
			$(this).attr({ src : 'img/mnu_08.gif'});    }
        );			
		
		$('#mnu09').hover(
		function(){ // Change the input image's source when we "roll on"
			$(this).attr({ src : 'img/mnu_09_o.gif' });
		},
		function(){ // Change the input image's source back to the default on "roll off"
			$(this).attr({ src : 'img/mnu_09.gif'});    }
        );			

		$('#mnu10').hover(
		function(){ // Change the input image's source when we "roll on"
			$(this).attr({ src : 'img/mnu_10_o.gif' });
		},
		function(){ // Change the input image's source back to the default on "roll off"
			$(this).attr({ src : 'img/mnu_10.gif'});    }
        );			
		
	
	$("#radiox").change(function() {
		switch ($(this).attr('checked'))
		{
			case true:
				$("#Checkbox5").attr('checked', true);
				$("#Checkbox6").attr('checked', false);
				break;
			default:
				$("#Checkbox5").attr('checked', false);
		}
	});
	$("#radio2").change(function() {
		switch ($(this).attr('checked'))
		{
			case true:
				$("#Checkbox5").attr('checked', false);
				$("#Checkbox6").attr('checked', true);
				break;
			default:
				$("#Checkbox6").attr('checked', false);
		}
	});

	$("#radio3").change(function() {
		switch ($(this).attr('checked'))
		{
			case true:
				$("#Checkbox7").attr('checked', true);
				$("#Checkbox8").attr('checked', false);
				break;
			default:
				$("#Checkbox7").attr('checked', false);
		}
	});
	$("#radio4").change(function() {
		switch ($(this).attr('checked'))
		{
			case true:
				$("#Checkbox7").attr('checked', false);
				$("#Checkbox8").attr('checked', true);
				break;
			default:
				$("#Checkbox8").attr('checked', false);
		}
	});
	$("#selectx").change(function() {
		switch ($(this).val())
		{
			case '0':
				$("#Checkbox12").attr('checked', false);
				$("#Checkbox13").attr('checked', false);
				$("#Checkbox14").attr('checked', false);
				break;
			case '1':
				$("#Checkbox12").attr('checked', true);
				$("#Checkbox13").attr('checked', false);
				$("#Checkbox14").attr('checked', false);
				break;
			case '2':
				$("#Checkbox12").attr('checked', false);
				$("#Checkbox13").attr('checked', true);
				$("#Checkbox14").attr('checked', false);
				break;
			case '3':
				$("#Checkbox12").attr('checked', false);
				$("#Checkbox13").attr('checked', false);
				$("#Checkbox14").attr('checked', true);
				break;
		}
	});
});
