function loadedWindow(){


}

$(document).ready(function(){
		
		
		
/*
	var frame = document.getElementById("imagechanger");
	var image = document.createElement('img');
	//image.style.display="none";
	image.setAttribute('src', RH.pageimage);
	image.setAttribute('class', "floatingimage");
	
	image.style.zIndex = "1";
	
	frame.appendChild(image);
	
	//image.style.display="block";
	$(".floatingimage").hide();
	$(".floatingimage").fadeIn(5000);
	$(".floatingimage").fadeOut(5000);
*/

	$('#imagechanger').append('<img src="'+ RH.pageimage +'" />');
	//$('#imagechanger img').;
	$('#imagechanger img').hide().fadeIn(1000).addClass("floatingimage").css({'position': 'absolute', 'top': 0, 'left': 0, 'z-index':10 });
	//$('#imagechanger img').;
		
});


RH.changeImage = function(url){	
		
		$('#imagechanger :first-child').after('<img src="'+ url +'" style="position:absolute; top: 0; left: 0; z-index: 9;" class="newimage" />');
		$('#imagechanger :first-child').fadeOut(1000, function(){
			$(this).remove();
			$('#imagechanger :not(:first-child)').remove();
			$('#imagechanger :first-child').css('z-index', 10); 
		});
		

};





