//$(function(){		
jQuery(document).ready(function(){
 
 if (jQuery.browser.safari && document.readyState != "complete"){
    //console.info('ready...');
    setTimeout( arguments.callee, 100 );
    return;
  }
	
	// EXTERNAL & BLANK LINKS
	$('a.external,a.blank').attr('target','_blank'); 

	
	$('a[rel^="prettyPhoto"]').prettyPhoto();

	
	$('#slideshow img:not(:first)').hide();
	$('#slideshow').slideshow({
		slide_element: 'img',
		timeout:5000,
		pan:true,
		center:false
	});
	
	//$('#newsletter_email').focus(function() {
	$('input[type=text]').focus(function() {
		if( this.value == this.defaultValue ) {
			this.value = "";
		}
	}).blur(function() {
		if( !this.value.length ) {
			this.value = this.defaultValue;
		}
	});
	

	
});	 // END INIT JQUERY	

$(window).load(function() { $('#slider').nivoSlider({controlNav:false,pauseTime:5000}); });


////////////////////////
function log($s) {
    if (window.console && window.console.log)
     window.console.log($s);
  };
function debug($obj) {
	if (window.console && window.console.debug)
	 window.console.debug('debug: %o', $obj);
};



