
// remap jQuery to $
(function($){

 





 



})(this.jQuery);



// usage: log('inside coolFunc',this,arguments);
// paulirish.com/2009/log-a-lightweight-wrapper-for-consolelog/
window.log = function(){
  log.history = log.history || [];   // store logs to an array for reference
  log.history.push(arguments);
  if(this.console){
    console.log( Array.prototype.slice.call(arguments) );
  }
};



// catch all document.write() calls
(function(doc){
  var write = doc.write;
  doc.write = function(q){ 
    log('document.write(): ',arguments); 
    if (/docwriteregexwhitelist/.test(q)) write.apply(doc,arguments);  
  };
})(document);


//--------------------------------------------------------------------------- Click to Contact ->>
/* Author: Katherine Compton, Benjamin Brannaka, Frank Stallone

*/

$("#click-to-contact").click(function() {
  $("#quick-contact-form").toggleClass("display-none");
});


$('.quick-contact-form').attr('action','/?validate=1');


  if (getParameterByName('validate')) {
	   $("#quick-contact-form").toggleClass("display-none");
  }

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 false;
  else
    return decodeURIComponent(results[1].replace(/\+/g, " "));
}
