window.addEvent("domready", function() {

/* Multibox */
var box = {};
box = new MultiBox('mb', {descClassName: 'multiBoxDesc', useOverlay: true, showControls: false});

/*----------*/

if(window.gecko) {
	new Asset.css('ff.css', {id: 'ff', title: 'ff'});
}
									 
									 
			var scroll = new Fx.Scroll('intro', {
				wait: false,
				duration: 2000,
				transition: Fx.Transitions.Expo.easeInOut
			});
			var scroll2 = new Fx.Scroll('content2', {
				wait: false,
				duration: 2000,
				transition: Fx.Transitions.Expo.easeInOut
			});
			var scroll3 = new Fx.Scroll(window, {
				wait: false,
				duration: 1000,
				transition: Fx.Transitions.Expo.easeInOut
			});
			var scroll4 = new Fx.Scroll('c2_right', {
				wait: false,
				duration: 2000,
				transition: Fx.Transitions.Expo.easeInOut
			});
			
			var fx = new Fx.Style('content2','height',{
				duration:700,
				transition: Fx.Transitions.Back.easeInOut
			});
			
			scroll.toElement('i1');						 
			
									 
			$('link1').addEvent('click', function(event) {
				event = new Event(event).stop();
				
				
					scroll.toElement('i1');
					scroll2.toElement('c1').chain(function() { scroll3.toTop(); });
					
				
							  			
				
			});
			
			$('link2').addEvent('click', function(event) {
				event = new Event(event).stop();
				
				
				
					
					scroll.toElement('i2');
					scroll2.toElement('c2').chain(function() { scroll3.toTop(); });
										
				
							  			
				
			});
			$('link2a').addEvent('click', function(event) {
				event = new Event(event).stop();
				
				
				
					
					scroll.toElement('i2');
					scroll2.toElement('c2').chain(function() { scroll3.toTop(); });
										
				
							  			
				
			});
			
			
			
			
			
			
			$('link3').addEvent('click', function(event) {
				event = new Event(event).stop();
				
				
					
					scroll.toElement('i3');
					
					scroll2.toElement('c3').chain(function() { scroll3.toTop(); });
					
							  			
				
			});
			
			$('link3a').addEvent('click', function(event) {
				event = new Event(event).stop();
				
				
					
					scroll.toElement('i3');
					scroll2.toElement('c3').chain(function() { scroll3.toTop(); });
					
							  			
				
			});
			
			
			
			$('link4').addEvent('click', function(event) {
				event = new Event(event).stop();
				
				
					
					scroll.toElement('i4');
					scroll2.toElement('c4').chain(function() { scroll3.toTop(); });
					
							  			
				
			});
			
			$('link5').addEvent('click', function(event) {
				event = new Event(event).stop();
				
				
					
					scroll.toElement('i5');
					scroll2.toElement('c5').chain(function() { scroll3.toTop(); });
					
							  			
				
			});
									 
									 
			$('c2_menu1').addEvent('click', function(event) {
				event = new Event(event).stop();
				
				
					
					scroll4.toElement('c2_forwarding');
					
					
							  			
				
			});
			$('c2_menu2').addEvent('click', function(event) {
				event = new Event(event).stop();
				
				
					
					scroll4.toElement('c2_trading');
					
					
							  			
				
			});
			
			
			/*var olink = $$('#linkler li');
			olink.each(function(elm) {
								
							var cElm=elm.getProperty('id');
							var sImg="url(images/menu_a_bg.jpg)";
							var cImg="url(images/menu_a_bg_"+cElm+".jpg)";
							
							elm.addEvent('mouseenter',function() {
								elm.setStyle('background-image',cImg);   
															  });
							
							elm.addEvent('mouseleave',function() {
								elm.setStyle('background-image','');   
															  });
			});*/
			
			
if($$('.c2_list')) {
	$$('.c2_list').setOpacity(0.8);	
}
if($('c3_right')) {
	$('c3_right').setOpacity(0.7);	
}									 
if($$('.c4_ul')) {
	$$('.c4_ul').setOpacity(0.8);	
}									 



}); //domready

