$(document).ready(function() {
						   
						   
$('.questionnaire').colorbox({width:"570", height:"520", iframe:true, href:"questionnaire.htm"});
						   
setHeightForBackground();
$(window).resize(function () { setHeightForBackground() });

$("a.social").hover(
   function() {
      $('#joinUs').addClass('highlight');
   },
   function() {
      $('#joinUs').removeClass('highlight');
   }
);

});

function setHeightForBackground() {
	var docHeight=$(document).height();
	var winHeight=$(window).height();
	
	if (docHeight <= winHeight) {
		$("#leftBG").height(winHeight);
		$("#rightBG").height(winHeight);
		$("#content").height(winHeight);
	} else {
		$("#leftBG").height(docHeight);
		$("#rightBG").height(docHeight);
		$("#content").height(docHeight);
	}		
}

  WebFontConfig = {
    google: { families: [ 'PT+Serif:700italic:latin' ] }
  };
  (function() {
    var wf = document.createElement('script');
    wf.src = ('https:' == document.location.protocol ? 'https' : 'http') +
      '://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js';
    wf.type = 'text/javascript';
    wf.async = 'true';
    var s = document.getElementsByTagName('script')[0];
    s.parentNode.insertBefore(wf, s);
  })();
  
  
  function getParameterByName(name)
{
  name = name.replace(/[\[]/, "\\\[").replace(/[\]]/, "\\\]");
  var regexS = "[\\?&]" + name + "=([^&#]*)";
  var regex = new RegExp(regexS);
  var results = regex.exec(window.location.href);
  if(results == null)
    return "";
  else
    return decodeURIComponent(results[1].replace(/\+/g, " "));
}
  

