$(document).ready(function() {
  $("#close").hide();
  $("#address").hide();
  $(".social_bookmark .d").hide();
	// Expand Panel
	$("#open").click(function(){
		$("div#panel").slideDown("slow");
    $('#SWFUpload_0').after('<div id="upload_button_placeholder">&nbsp;</div>');
	});
	// Collapse Panel
	$("#close").click(function(){
		$("div#panel").slideUp("slow");
    $('#upload_button_placeholder').remove();
	});
	// Switch buttons from "Log In | Register" to "Close Panel" on click
	$("#toggle a").click(function () {
		$("#toggle a").toggle();
	});




  $("#business_link").mouseover(function () {
    $("#business_link_hover").show();
  });

  $("#business_link").mouseout(function(){
     $("#business_link_hover").hide();
  });

  $("#adwords").mouseover(function () {
    $("#adwords_hover").show();
  });

  $("#adwords").mouseout(function(){
     $("#adwords_hover").hide();
  });

  $("#sage").mouseover(function () {
    $("#sage_hover").show();
  });

  $("#sage").mouseout(function(){
     $("#sage_hover").hide();
  });

  $("#paypal").mouseover(function () {
    $("#paypal_hover").show();
  });

  $("#paypal").mouseout(function(){
     $("#paypal_hover").hide();
  });

  $("#aib_merchant").mouseover(function () {
    $("#aib_merchant_hover").show();
  });

  $("#aib_merchant").mouseout(function(){
     $("#aib_merchant_hover").hide();
  });

  $("#drapter").mouseover(function () {
    $("#drapter_hover").show();
  });

  $("#drapter").mouseout(function(){
     $("#drapter_hover").hide();
  });

  $("#istock").mouseover(function () {
    $("#istock_hover").show();
  });

  $("#istock").mouseout(function(){
     $("#istock_hover").hide();
  });

  $("#northdigital").mouseover(function () {
    $("#northdigital_hover").show();
  });

  $("#northdigital").mouseout(function(){
     $("#northdigital_hover").hide();
  });

  $("#nebusiness").mouseover(function () {
    $("#nebusiness_hover").show();
  });

  $("#nebusiness").mouseout(function(){
     $("#nebusiness_hover").hide();
  });

  $("#chamber").mouseover(function () {
    $("#chamber_hover").show();
  });

  $("#chamber").mouseout(function(){
     $("#chamber_hover").hide();
  });

  $("#investors").mouseover(function () {
    $("#investors_hover").show();
  });

  $("#investors").mouseout(function(){
     $("#investors_hover").hide();
  });

  $("#passionate").mouseover(function () {
    $("#passionate_hover").show();
  });

  $("#passionate").mouseout(function(){
     $("#passionate_hover").hide();
  });





  $("#button_contact_by_post").click(function(){
    $("#initial_contact").hide();
    $("#address").show();
    $("#postcode_container").hide();
  });
  $("#button_get_directions").click(function(){
    $("#postcode_container").show();
    $("#initial_contact").hide();
    $("#address").hide();
  });

  $(".close_button_map").click(function(){
    $("#get_directions").hide();
  });

  $(".close_button_postcode").click(function(){
    $("#no_postcode").hide();
  });


  $(".social_bookmark").click(function() {
    $(this).find(".d").slideToggle();
  });
});
function hideQuestions(){
  $(".faq_answer").hide();
}
function hideCareer(){
  $(".career_answer").hide();
}
function hideWhat(){
  $(".what_answer").hide();
}
