//
// DOM LOAD FUNCTIONS
// $Rev: 500 $:     Revision of last commit
// $Author: david $:  Author of last commit
// $Date: 2009-02-25 13:23:49 +0000 (Wed, 25 Feb 2009) $:    Date of last commit

// add class to show js enabled (all javascript enabled css styles can be prepended with html.js)
$('html').addClass('js');

if (document.domain != '10.201.0.159' && document.domain != '10.201.0.147') {

	$(document).ready(function(){
		
		//
		//	GLOBAL
		//
		// open rel="external" links in new window (instead of target="_blank")
		$("a[rel='external']").addClass("external").click( function() { window.open( $(this).attr('href') ); return false; } );
		
		$(document).ready( 
			function(){ 
				$('#portfolio').innerfade({ 
					speed: 2000, 
					timeout: 6000, 
					type: 'sequence'
				}); 
			} 
		);
		
		$('#hotbox-small-wrap').css({float: 'right'});
	} ); 

}
