var color = new Array(
	new Array("bg2.jpg","bg2.gif","#8b0051"),
	new Array("bg1.jpg","bg1.gif","#773da1"),
	new Array("bg3.jpg","bg3.gif","#018a42"),
	new Array("bg4.jpg","bg4.gif","#2b227f"),
	new Array("bg5.jpg","bg5.gif","#4a7323"),
	new Array("bg6.jpg","bg6.gif","#ed1a5d"));
var i= 0;
	function prev(){
		document.getElementById("box").style.display = "block";
		i = i+1;
		if (i>5){i=0;};
		document.getElementById("kist").style.background = 'url(img/' + color[i][1] + ') left top no-repeat';
		$("#img_box").animate({top :0}, 400);
		$("#img_box").animate({top :900}, 500);
		setTimeout("set_color()",300);
		setTimeout("hide_box()",900);
		}
	function set_color(){
		document.getElementById("bg").style.background = 'url(img/' + color[i][0] + ') left center repeat-x';
		document.getElementById("bg").style.backgroundColor = color[i][2];
		}
	function hide_box(){
		document.getElementById("box").style.display = "none";
		}		
