window.addEvent('domready', function() {
	var status = {
		'true': 'more...',
		'false': 'reset...'
	};
	/*var myVerticalSlide = new Fx.Slide('vertical_slide');
	myVerticalSlide.slideOut();
	
	
	var myForexSlide = new Fx.Slide('forex_slide');
	myForexSlide.slideOut();
	
		
	$('vertical_status').set('html', status[myVerticalSlide.close]); /////stock market slide in
	
	$('forex_reset').set('html', status[myVerticalSlide.close]);/// forex slide in
	
	$('v_slidein').addEvent('click', function(e){
		e.stop();
		myVerticalSlide.slideIn();
		$('more_status').set('html', status[myVerticalSlide.close]);
		$('vertical_status').set('html', status[myVerticalSlide.open]);
	});
	$('v_slideout').addEvent('click', function(e){
		e.stop();
		myVerticalSlide.slideOut();
		$('vertical_status').set('html', status[myVerticalSlide.close]);
		$('more_status').set('html', status[myVerticalSlide.open]);
	});
	
	$('forex_slidein').addEvent('click', function(e){
		e.stop();
		myForexSlide.slideIn();
		$('forex_more').set('html', status[myForexSlide.close]);
		$('forex_reset').set('html', status[myForexSlide.open]);
	});
	$('forex_slideout').addEvent('click', function(e){
		e.stop();
		myForexSlide.slideOut();
		$('forex_reset').set('html', status[myForexSlide.close]);
		$('forex_more').set('html', status[myForexSlide.open]);
	});*/
	
	
	var myAapKiRaeSlide = new Fx.Slide('aapKiRaeTable');
	myAapKiRaeSlide.slideOut();
	
	$('aapKiRae').addEvent('click', function(e){
		e.stop();
		myAapKiRaeSlide.toggle();
	});
	$('submitData').addEvent('click', function(e){
		e.stop();
		myAapKiRaeSlide.toggle();
	});
	
		$('myOtherElement').addEvents({
		'mouseenter': function(){
			
			
			//alert('i m here');
			// Always sets the duration of the tween to 1000 ms and a bouncing transition
			// And then tweens the height of the element
			this.set('tween', {
				duration: 1000,
				transition: Fx.Transitions.Bounce.easeOut // This could have been also 'bounce:out'
			}).tween('height', '150px');
			$('forex_more').style.display = 'none';
			
		},
		'mouseleave': function(){
			//alert('i m out');
			// Resets the tween and changes the element back to its original size
			
			this.set('tween', {}).tween('height', '20px');
			$('forex_more').style.display = ''
		}
	});
	
	$('stockMarketDiv').addEvents({
		'mouseenter': function(){
			
			//alert('i m here');
			// Always sets the duration of the tween to 1000 ms and a bouncing transition
			// And then tweens the height of the element
			this.set('tween', {
				duration: 1000,
				transition: Fx.Transitions.Bounce.easeOut // This could have been also 'bounce:out'
			}).tween('height', '120px');
			$('more_status').style.display = 'none';
		},
		'mouseleave': function(){
			//alert('i m out');
			// Resets the tween and changes the element back to its original size
			this.set('tween', {}).tween('height', '20px');
			$('more_status').style.display = '';
		}
	});
	
	var IdArray = new Array();
	IdArray = $$('.analysisHeadingClass').getProperty('id');
	lengthOfArr = IdArray.length;
	for(i=0; i<lengthOfArr; i++){
		IdCurrent = IdArray[i].substring(17);
		myCurrentSlide = new Fx.Slide('analysisDetailId'+IdCurrent);
		myCurrentSlide.slideOut();
	}
	
	$$('.analysisHeadingClass').addEvent('click', function(e) {
		e.stop();
		_title = this.getProperty('id');
		subStringId= _title.substring(17);
		myEntertainmentSlide1 = new Fx.Slide('analysisDetailId'+subStringId);
		myEntertainmentSlide1.toggle();
	});



});