$(function(){
	window.defaultStatus="Design + Programming by FEINHEIT kreativ studio · www.feinheit.ch";
    
    if ($('#flashcontent').length > 0) {
        swfobject.registerObject("flashcontent", "9.0.0", "expressInstall.swf");
    }
    
    $('.childrenContent > div').hide();
    
    $('.childrenContent h2.title a').click(function(event) {
        event.preventDefault();
        
        trigger = $(event.target);
        
        target = trigger.parent().next();
        
        log(target);
        
        $(target).toggle('blind', {}, 500);
    });
    
    $('.thickbox').fancybox({
        'transitionIn'  :   'elastic',
        'transitionOut' :   'elastic',
        'speedIn'       :   600, 
        'speedOut'      :   200, 
        'overlayShow'   :   true
    });
});

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