
function init()
{
	
		//menu
		//if($('menu1')) new EMenu('menu1');
		if($("dropdownMainMenu")) { new UvumiDropdown('dropdownMainMenu'); }
	
	
		if(window.init_Portfolio_Thumbs)  init_Portfolio_Thumbs();
		
		
		
		
		
		var el = $('topArrow');
		var fx = new Fx.Tween(el, { 'duration':2000, 'link':'cancel'} );
		
		
		
		window.addEvent('load',(function()
	   	{
			var scrolled = window.getScroll();
			var size = window.getSize();
			
		   fx.start('top', size.y+scrolled.y-50).chain(function()
			{
				window.addEvent("scroll", function() 
				{
					scrolled = window.getScroll();
					size = window.getSize();
					fx.start('top', size.y+scrolled.y-50);
				});
				
				
			});
		   
		   
		   
		   
		   // bg fade in
		   var bg = $("background2");
		   bg.setStyle("opacity", 1);

			var fxBgFade = new Fx.Tween(bg, { 'duration':2500, wait:false, link:'cancel'} );
			fxBgFade.start("opacity", 0);
		
		   
		   
	   	}));
			
		
		
		var fxScroll = new Fx.Scroll(window);
		el.addEvent("click", function(ev) 
		{	
			fxScroll.toTop();
		});

		


	var windowSize = window.getSize();

	/*var obj = new Swiff('/_http/templates/standard/swf/leaf.swf', {
			id: 'bgMovie',
			width: windowSize.x, //2100
			height: windowSize.y, //1600
			container: $("background"),
			params: {
				wmode: 	'transparent',
				menu: 	'false',
				scale: 	'noorder'
			},
			events: {
				onLoad: function() { alert("fdfdf"); }
			}
	});*/

 
	//swfobject.embedSWF("/_http/templates/standard/swf/leaf.swf", "background", "100%", "100%", "8.0.0", "/_http/templates/standard/swf/expressInstall.swf", {}, {wmode:"transparent", scale:"noorder", menu:"false"});



}





window.addEvent('domready', function(){init()});  // domready, load








