$(document).ready(function(){
	//$.reject();
	//$.preload(['bg1', 'bg2', 'om-ovr', 'spn-ovr'], { base:'http://www.icemen.tv/images/', ext:'.jpg', onFinish:function(){ $('img.nav-img').preload({ find: '-up.', replace: '-ovr.' }); $('img.nav-img').preload({ find: '-up.', replace: '-dwn.' }); $.preload('img'); }});
	$('#home-team-nav').hover(function(){ $('#home-om-panel').removeClass('om-inactive').addClass('om-active'); }, function(){ $('#home-om-panel').removeClass('om-active').addClass('om-inactive'); });
	$('#home-nav-panel-right').hover(function(){ $(this).removeClass('spn-inactive').addClass('spn-active'); }, function(){ $(this).removeClass('spn-active').addClass('spn-inactive'); });
	$('img.nav-img').hover(function(){ this.src = this.src.replace('-up.','-ovr.'); }, function(){ this.src = this.src.replace('-ovr.','-up.'); });
	$('img.team').click(function(){ $('img.team').each(function(i){ this.src = this.src.replace('-dwn.','-up.'); }); this.src = this.src.replace('-ovr.','-dwn.'); });
	$('#power-button-img').click(function(){ $("#wrapper").fadeOut('slow'); $("#message").delay(4000).fadeIn('slow').delay(6000).fadeOut('slow', function(){ window.location = 'index.php'; }); });
	//$("#home-team-nav ul").tabs("#home-team-panes > div", {effect: 'fade', initialIndex: 4});
	$("#home-team5-pane").show();
	$('.img-ticker').easyticker({speed: 'slow'});
	$("a[rel]").overlay({fixed: false, mask: {color: '#111'}, left: 'center', top: 'center'});
});
