//<![CDATA[
$(document).ready(function(){
	

	//$("#animation").css('opacity', '0');
	/*$("#animation img").css('opacity', '0');
		$("#animation img.one, #animation img.three").fadeTo(2000, 1);
		$("#animation img.two, #animation img.four").delay(2000).fadeTo(2000, 0.65);
			$("#animation img.seven").css('left', '-500px').css('opacity', '0.65').delay(4000).animate({"left": "191px"}, 500);
				$("#animation img.five").delay(5000).fadeTo(2000, 1);
				$("#animation img.six").delay(5000).fadeTo(2000, 1);*/
				
				
	//$("#animation").css('opacity', '0');
		/*$("#animation img.one, #animation img.two, #animation img.three, #animation img.four").fadeTo(3000, 1);
			$("#animation img.seven").css('top', '-200px').css('left', '0').css('opacity', '1').delay(2000).animate({"top": "28px"}, 1000).delay(500).animate({"left": "191px"}, 1000);
			$("#animation img.five, #animation img.six").delay(3000).fadeTo(3000, 1);
			$("#animation img.two, #animation img.four, #animation img.seven").fadeTo(1000, 0.65);*/

	//$("#animation").css('opacity', '0');
	
		// R starting position
		$("#animation img.three").css('left', '15px')
		// E R fade in to grey
		$("#animation img.one, #animation img.three").fadeTo(4000, 0.65);
		// R slides into place
		$("#animation img.three").animate({'left': '61px'}, 1000)
		// E R slides down then left
		$("#animation img.seven").fadeTo(500, 1)/*.css('opacity', '1')*/.css('top', '-150px').css('left', '0').delay(5000).animate({'top': '28px'}, 2000).delay(500).animate({'left': '191px'}, 2000);
		// everthing else fades in to white
		$("#animation img.two, #animation img.four, #animation img.five, #animation img.six").delay(8000).fadeTo(4000, 1);
		// E R fade to white also
		$("#animation img.one, #animation img.three").delay(4000).fadeTo(4000, 1);
		// fade to grey
		$("#animation img.two, #animation img.four").fadeTo(1000, 0.65);
		$("#animation img.seven").delay(2500).fadeTo(1500, 0.65);
	

// ie fadeTo fix
jQuery.fn.fadeTo = function(speed,to,callback) { 
    return this.animate({opacity: to}, speed, function() { 
        if (to == 1 && jQuery.browser.msie)  
            this.style.removeAttribute('filter');  
        if (jQuery.isFunction(callback)) 
            callback();  
    }); 
};
	
// calculate row width
	/*var width1 = 0;
	$('#thumbslider img').each(function() {
		width1 += $(this).outerWidth( true ) + 3;
	});
	$('#thumbslider').css('width', width1);*/



}); //close doc ready
//]]>
