/* Author: Sue Lockwood
   zombievir.us
*/

if(window['debug'] === undefined) {
  window.debug = function(q,w,e,r){  
    try { if (typeof console != 'undefined') console.log.apply(console,arguments); } 
    catch(err){ if (typeof console != 'undefined')  console.log(q,w,e,r); }
  }
}

// catch all document.write() calls
document._write = document.write;
document.write = function(q){ 
  if (q.match(/docwriteregextopassthrough/)) document._write(q);  
  debug('document.write(): ',q); 
}



/*
  Object: BLAWG
  Object literal to hold code
*/
window.BLAWG = {

  
  // common domrady code
  common : function(){
//gallery code
$(".gallery-icon a").colorbox({slideshow:true,arrowKey:true});
//pallet blocks
$('span.palletBlock').each(function(){
var hex = $(this).text();
$(this).css('background-color',hex);
});  
    
  } // end of BLAWG.common()
  
  
}

// kick off document ready
// this is a lo-fi version of this: http://paulirish.com/2009/markup-based-unobtrusive-comprehensive-dom-ready-execution/
$(document).ready(BLAWG.common);




