	
	/*function startmanager (name) {
		var img = (name=="exhibition")?document.getElementById("startbutton"):null;
		var base = document.getElementById(name);
		var back = document.getElementById(name+"back");
		var timer = null;
		
		var show = function() {
			back.className="transbackhover";
			base.style.borderColor="#FFFF00";
			if (img!=null)
				img.src=img.src.replace("startbutton.jpg","startbutton_hover.jpg");
				
			timer=null;
		}
		
		var hide = function() {
			back.className="transback";
			base.style.borderColor="#FFFFFF";
			if (img!=null)
				img.src=img.src.replace("startbutton_hover.jpg","startbutton.jpg");
			timer=null;
		}
		
		base.onmouseover = function () {
			if (timer!=null)
				window.clearTimeout(timer);
			timer = window.setTimeout(function() {show(); },20);
		}
		
		base.onmouseout = function () {
			if (timer!=null)
				window.clearTimeout(timer);
			timer = window.setTimeout(function() {hide();},20);
		}	
	}
	
	function StartNavHandler () {
		var tops = Ext.query('div[class="topbar"] ul[class="infolist"] li');
		tops.pop();
		tops.shift();
		//console.log(tops);
		Ext.each(tops,function(item,index,all) {
			all[index]=Ext.get(item);
			
		});
		
		var infos = Ext.query('div[class="transback"] div[class="info"]');
		Ext.each(infos,function(item,index,all) {			
			all[index]=Ext.get(item);
		});
		Ext.each(infos,function(item,index,all) {
			item.show();
			item.setX(tops[index].first().getX()-5);
			item.setWidth(tops[index].findParent("li",2,true).getWidth());
			item.hide();
			item.update("<a href=\""+tops[index].first().dom.href+"\">"+item.dom.innerHTML+"</a>");
			//console.log(item.dom.innerHTML);
			
			//alert(tops[index].first().dom.href);
			
		});
		
		Ext.each(tops,function(item,index,all) {
			var timer = new Ext.util.DelayedTask(function() {
				infos[index].hide();
			});
			
			var myshow = function() {
				timer.cancel();
				infos[index].show();
			}
			
			var myhide = function() {
				timer.delay(50);	
			}
			
			item.on("mouseover",myshow);
			
			item.on("mouseout",myhide);
			
			infos[index].on("mouseover",myshow);
			
			infos[index].on("mouseout",myhide);
		});
		
	
	}
	*/
	function StartPageManager() {
		//alert(startpageimages.length);
		var leftbutton = Ext.get("leftbutton");
		var rightbutton = Ext.get("rightbutton");
		var img = Ext.get(Ext.query(".newstartpageimage")[0]);
		var hoverbutton = function(el,color,tcolor,bcolor) {
			el.applyStyles("background-color:#"+color);
			el.applyStyles("color:#"+tcolor);
			img.applyStyles("border: 1px solid #"+bcolor);
		}
		rightbutton.hover(function() {
			img.applyStyles("background-image:url("+startpageimages[1]+")");
		},function() {
			img.applyStyles("background-image:url("+startpageimages[0]+")");
		});
		leftbutton.hover(function() {
			hoverbutton(leftbutton,"f8d42f","FFFFFF","f8d42f");
		},function() {
			hoverbutton(leftbutton,"FFFFFF","8C8C8C","FFFFFF");
		});
		rightbutton.hover(function() {
			hoverbutton(rightbutton,"f8d42f","FFFFFF","f8d42f");
		},function() {
			hoverbutton(rightbutton,"8C8C8C","D6D6D6","FFFFFF");
		});
		img.hover(function() {
			hoverbutton(leftbutton,"f8d42f","FFFFFF","f8d42f");
		},function() {
			hoverbutton(leftbutton,"FFFFFF","8C8C8C","FFFFFF");
		});
	};
	
	/*stack.push(function() { new StartNavHandler(); });
	stack.push(function() { new startmanager("exhibition"); });
	stack.push(function() { new startmanager("artfair"); }); */
	stack.push(function() { new StartPageManager(); });
	


