jQuery(document).ready(function() {
	function wipeImage(){
		this.changeTile = function changeTile(col,row){
			maxrows = 3;
			maxcols = 16;
			image = $('#bannerphoto').attr('rel');
			baseurl = 'styles/images/bannerphotos/';
				tilehorz = (50 * col) - 50;
				tilevert = (35 * row) - 35;
				tilehorz = "-" + tilehorz;
				tilevert = "-" + tilevert;
			imagestyleattr = "url('"+baseurl + image+"') "+tilehorz+"px "+tilevert+"px";
			tilename = '#bannerPhotoIndiv'+col+'_'+row;
			$(tilename).hide().css('background',imagestyleattr).show();
				nextrow = row;
				nextcol = col;
		
			if (row >= maxrows){
				nextrow = 1;
				nextcol = col+1;
			}
			else{
				nextrow = row+1;
			}
			
			if(nextcol<=maxcols){
				t = setTimeout("this.changeTile(nextcol, nextrow);",5)
			}
		}
		changeTile(1,1);
	}
	$("#photoBanner").removeClass("noScriptBanner");
	
	$(window).load(
	    function() {
	        wipeImage();
	    }
	);	
});