/* -------------------------------------------------------------------- */
/* TRADE.CH Website - common.js 08-30-2007 */
/* Version: 1.0 */
/* Created by: net4visions.com */
/* Last edited: 07-30-2008 */
/* Requirements: mootools 1.2.js
/* -------------------------------------------------------------------- */

// domready - init site
window.addEvent('domready', function() {
var aaa;
var bbb;
		$$('div.maziau').hide();
		var els = $$('div.container div.content');
		
		var maz = $$('div.container div.maziau');
		var dau = $$('div.container div.daugiau');
		
		if (els.length == 0) return false;
		
		var fx = els.map(function(el) {
			return new Fx.Slide(el, { 	duration: 'normal', mode: 'vertical'	}).hide();
		});	

		$$('div.container  div.daugiau ').each( function(el, idx) {

			el.addEvent('click', function(evt) {
										  
				els.style=" border:1px;border-style: solid; border-color: #CCCCCC; background-color:#FDFDF1";
				evt.stop();
				fx[idx].toggle();
				el.hide();
				maz[idx].show();
			});	
		});

		$$('div.container  div.maziau ').each( function(el, idx) {

			el.addEvent('click', function(evt) {
				evt.stop();
				fx[idx].toggle();
				el.hide();
				dau[idx].show();
			});	
		});



	
});
	


	



								 


