$(document).ready(function(){	
// var bgUrl = "http://31.186.169.4/~prinse1b/sites/all/themes/prinsenhof/images/";
 var bgUrl = "http://www.prinsenhof.info/sites/all/themes/prinsenhof/images/";
 //var bgUrl = "http://www.fronttaal.nl/clients/prinsenhof/sites/all/themes/prinsenhof/images/";
 //var bgUrl = "http://localhost/~guusvandewal/prinsenhof/sites/all/themes/prinsenhof/images/";

if ($("body").hasClass('section-homepage')) {$.backstretch(bgUrl+"red_lobby.jpg");$(".main-stage").css('background-color','#FFF');} else {};
if ($("body").hasClass('section-kantoorplanner')) {$.backstretch(bgUrl+"kantoorplanner_bg.jpg");$(".main-stage").css('background-color','#FFF');} else {};
if ($("body").hasClass('type-nieuws')) {$.backstretch(bgUrl+"red_lobby.jpg");$(".main-stage").css('background-color','#FFF');} else {};
//if ($("body").hasClass('section-business-center')) {$.backstretch(bgUrl+"business_center_bg.jpg");} else {}; 
if ($("body").hasClass('section-business-center')) {$.backstretch(bgUrl+"bc_balie_big.jpg");} else {}; 
if ($("body").hasClass('section-congrescentrum-prinsenhof')) {$.backstretch(bgUrl+"congres_bg.jpg");} else {};
//if ($("body").hasClass('section-congress-center')) {$.backstretch(bgUrl+"congres_bg.jpg");} else {};
if ($("body").hasClass('section-kantoren')) {$.backstretch(bgUrl+"kantoren.jpg");} else {};
if ($("body").hasClass('section-faciliteiten-services')) {$.backstretch(bgUrl+"services.jpg");$("#block-block-1").css('background-color','#ffd800');} else {};
if ($("body").hasClass('section-servicediensten')) {$.backstretch(bgUrl+"services_bg.jpg");$("#block-block-1").css('background-color','#ffd800');} else {};
if ($("body").hasClass('section-faciliteiten')) {$.backstretch(bgUrl+"faciliteiten_bg.jpg");$("#block-block-1").css('background-color','#ffd800');} else {};
if ($("body").hasClass('section-duurzaam-prinsenhof')) {$.backstretch(bgUrl+"duurzaamheid.jpg");$("#block-block-1").css('background-color','#ffd800');} else {};
if ($("body").hasClass('section-bereikbaarheid')) {$.backstretch(bgUrl+"bereikbaarheid.jpg");} else {};
if ($("body").hasClass('section-ov-reisinformatie')) {$.backstretch(bgUrl+"bereikbaarheid.jpg");} else {};
if ($("body").hasClass('section-directions')) {$.backstretch(bgUrl+"bereikbaarheid.jpg");} else {};
if ($("body").hasClass('section-la-carte-business-center')) {$.backstretch(bgUrl+"alacarte.jpg");} else {};
if ($("body").hasClass('section-wonen')) {$.backstretch(bgUrl+"wonen_bg.jpg");$("#block-block-3").css('background-color','#aad565');} else {};
if ($("body").hasClass('section-voor-huurders')) {$.backstretch(bgUrl+"birdseye.jpg");} else {};
if ($("body").hasClass('section-contact')) {$.backstretch(bgUrl+"contact_2.jpg");} else {};
if ($("body").hasClass('section-zakelijke-diensten-en-servicediensten')) {$.backstretch(bgUrl+"bc-sofas.jpg");} else {};
if ($("body").hasClass('section-onderhoud_melden')) {$.backstretch(bgUrl+"red_lobby.jpg");} else {};
if ($("body").hasClass('section-10-redenen-om-te-kiezen')) {$.backstretch(bgUrl+"bc_stoelen_big.jpg");} else {};
if ($("body").hasClass('section-huidige-huurders')) {$.backstretch(bgUrl+"red_lobby.jpg");} else {};
if ($("body").hasClass('section-disclaimer')) {$.backstretch(bgUrl+"red_lobby.jpg");} else {};
if ($("body").hasClass('section-colofon')) {$.backstretch(bgUrl+"red_lobby.jpg");} else {};
if ($("body").hasClass('section-congress-center')) {$.backstretch(bgUrl+"congress-people-bg.jpg");} else {};
if ($("body").hasClass('section-extra-faciliteiten-en-servicediensten')) {$.backstretch(bgUrl+"congress-crowd-bg.jpg");} else {};
if ($("body").hasClass('section-10-redenen-om-te-kiezen-voor-congress-center-hague')) {$.backstretch(bgUrl+"congress-screen-bg.jpg");} else {};






$(".logo").click(function(){
     window.location=$(this).find("a").attr("href");
     return false;
});


$("#webform-client-form-13 input,#webform-client-form-13 textarea").addClass('swaptextbox');



/*
var swap_text_boxes = [];

function init_swap_text_boxes(){
  //Store the default value for each box
  $('input[type=text][value].swaptextbox').each(function() {
    swap_text_boxes[$(this).attr('id')] = $(this).attr('value');
  });
  
  $('textarea.swaptextbox').each(function() {
    swap_text_boxes[$(this).attr('id')] = $(this).attr('value');
  });
  
  //Add focus and blur events to set or clear the value
  $('input[type=text][value].swaptextbox').bind('focus', function() {
    if($(this).val() == swap_text_boxes[$(this).attr('id')]) {
      $(this).val('');
    }
  });
  
   $('textarea.swaptextbox').bind('focus', function() {
    if($(this).val() == swap_text_boxes[$(this).attr('id')]) {
      $(this).val('');
    }
  });
  
  
  $('input[type=text][value].swaptextbox').bind('blur', function() {
    if($(this).val() == '') {
      $(this).val(swap_text_boxes[$(this).attr('id')]);
    }
  });
  
  $('textarea.swaptextbox.swaptextbox').bind('blur', function() {
    if($(this).val() == '') {
      $(this).val(swap_text_boxes[$(this).attr('id')]);
    }
  });

  
  
}

$(document).ready(function(){ init_swap_text_boxes(); }); 
	
*/

});



