/*SHOW HIDE*/ 
$(document).ready(function() {

$('#quote').hide();
$('#page').show();
$("#btnQuote").click(function () {
	$('#page').hide();
	$('#quote').show();
});
$('#btnPage').click(function() {
	$('#quote').hide();
	$('#page').show();
});

//MENU
//$("#menuSlide").slideToggle("medium");
//$("#menuOpen").hover(function () {
//	$('#a_menuOpen').hide();					   
//  	
//});
//	$('#a_menuOpen').hide();
//	$("#menuSlide").slideDown("medium");
$("#a_menuOpen").hover(function () {
	$("#menuSlide").slideDown("medium");
});

$("#menuOpen").hover(function () {
},function () {
	$("#menuSlide").slideUp("medium");		   
});

//SITE MAP   
	$('#sitemap').show();
	$('#infoRha,#infoBrc,#infoUkas,.actions').hide();

	$('.infoX').click(function() {
		$('#infoRha,#infoBrc,#infoUkas').hide();
		$('#sitemap').show();
    });
	$('.logoRha').click(function() {
		$('#sitemap,#infoBrc,#infoUkas').hide();
		$('#infoRha').show();
		$(".logoRha").addClass('on');
    });
	$('.logoBrc').click(function() {
		$('#sitemap,#infoRha,#infoUkas').hide();
		$('#infoBrc').show();
		$(".logoBrc").addClass('on');
    });
	$('.logoUkas').click(function() {
		$('#sitemap,#infoRha,#infoBrc').hide();
		$('#infoUkas').show();
		$(".logoUkas").addClass('on');
    });
	
	$(".logoInfo").hover(
	  function() { $(this).children(".actions").show(); },
	  function() { $(this).children(".actions").hide(); }
	);

//FORM BUTTONS
  $('#btnQ_Reset').click(function() {
	$(':input','#form.quote')
	 .not(':button, :submit, :reset, :hidden')
	 .val('')
	 .removeAttr('checked')
	 .removeAttr('selected');
	 $('select')[0].selectedIndex = 0;
  });
  
  $('#btnReset').click(function() {
	$(':input','#form')
	 .not(':button, :submit, :reset, :hidden')
	 .val('')
	 .removeAttr('checked')
	 .removeAttr('selected');
	 $('select')[0].selectedIndex = 0;
  });
  
  $('#submit').hover(
	  function(){ // Change the input image's source when we "roll on"
		  $(this).attr({ src : 'site_images/inputSend_over.gif'});
	  },
	  function(){ // Change the input image's source back to the default on "roll off"
		  $(this).attr({ src : 'site_images/inputSend.gif'});             }
  );	
  $('#inputReset').hover(
	  function(){ // Change the input image's source when we "roll on"
		  $(this).attr({ src : 'site_images/inputReset_over.gif'});
	  },
	  function(){ // Change the input image's source back to the default on "roll off"
		  $(this).attr({ src : 'site_images/inputReset.gif'});             }
  );
    $('#inputLogin').hover(
	  function(){ // Change the input image's source when we "roll on"
		  $(this).attr({ src : 'site_images/inputLogin_over.gif'});
	  },
	  function(){ // Change the input image's source back to the default on "roll off"
		  $(this).attr({ src : 'site_images/inputLogin.gif'});             }
  );
	
  $('#map_image').hover(
	  function(){ // Change the input image's source when we "roll on"
		  $(this).attr({ src : 'site_images/map_close_up.png'});
	  },
	  function(){ // Change the input image's source back to the default on "roll off"
		  $(this).attr({ src : 'site_images/map_full.png'});             }
  );

//Default Action
	$(".tab_content").hide(); //Hide all content
	$("ul.tabs li:first").addClass("active").show(); //Activate first tab
	$(".tab_content:first").show(); //Show first tab content	
//On Click Event
	$("ul.tabs li").click(function() {
	$("ul.tabs li").removeClass("active"); //Remove any "active" class
	$(this).addClass("active"); //Add "active" class to selected tab
	$(".tab_content").hide(); //Hide all tab content
	var activeTab = $(this).find("a").attr("href"); //Find the rel attribute value to identify the active tab + content
	$(activeTab).fadeIn(); //Fade in the active content
	return false;
	});

});
