
// remap jQuery to $
(function($){
  var myheight = 0;
  $('.home article #articletext').each(function(index) {
    //alert(index + ":" + $(this).height());
	if($(this).height() > myheight){
		myheight = $(this).height();
	}
	
  });
  $('article #articletext').height(myheight);

//dorflaw splash.swf
//width="570" height="330"

  flashembed("welcome", {
	src: "/dorflaw splash.swf",
	version: [8, 0]
  });
  //Cufon.replace('#homenews h1, .sub h1, #newsinsert h3, h1.attorneys, h2.attorneys'); // Works without a selector engine




})(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);



