var Home = Class.create({
	initialize: function() {
		this.scrollTO();		
	},

	scrollTO: function() {
		$$('.scrollTO[rel]').invoke('observe', 'click', function(event) {
			event.element().blur();
			event.stop();
			if ($(this.rel)) {
				new Effect.ScrollTo(this.rel, { duration: 0.5 });
			}
		});
	}
});

function initpage(){
	var expressInstall = "../../swfobject/expressInstall.swf";
	cp.base = new Base(expressInstall);
	cp.home = new Home();

	if(UClass) {
		for (var _loc1 = 0; _loc1 < Object.keys(UClass).length; _loc1++) {
			var key = Object.keys(UClass)[_loc1];
			var value = Object.values(UClass)[_loc1];
			cp.key = new value();
		}
	}					
}

document.observe("dom:loaded",initpage);
