/* -------------- Horizonal Slide 1 -------------------*/

function ShowCust(){
	document.getElementById('TblNews').style.visibility='visible';
//	parent.myHorizontalSlide2.slideOut();
//	setTimeout('ChangePic2()',500);
//	parent.myHorizontalSlide3.slideOut();
//	setTimeout('ChangePic3()',500);
        DivHeight=document.getElementById('DivPositionNews').offsetHeight;
			if (DivHeight>150){
			document.getElementById('SpacerDiv').height =DivHeight-150;
			}
}
function ChangePic(){
	document.getElementById('MorePic').src='images/moreNews1.gif'
	}
var myHorizontalSlide ;
window.addEvent('domready', function() {
	var status = {
		'true': 'open',
		'false': 'close'
	};
	
     myHorizontalSlide = new Fx.Slide('horizontal_slide', {mode: 'horizontal'});
	$('h_slidein').addEvent('click', function(e){
		if (h1==0) {
		HDivPosition();
		e.stop();
		document.getElementById('MorePic').src="images/SMore.gif";
		myHorizontalSlide.slideIn();
		setTimeout("ShowCust()",100);
		h1=1;
		}
		else{
		e.stop();
	    myHorizontalSlide.slideOut();
		h1=0;
		//h2=0;
		//h3=0;
		setTimeout("ChangePic()",500);
		setTimeout("SamllDiv()",500);
			}
	});

	$('h_slideout').addEvent('click', function(e){
		e.stop();
		myHorizontalSlide.slideOut();
	});
	 
	myHorizontalSlide.hide();
	document.getElementById('horizontal_slide').style.display="block";

 });

function HDivPosition(){
var browser=navigator.appName;
if (browser=="Microsoft Internet Explorer") {
		document.getElementById('DivPositionNews').style.left =0;
	}
}
function SamllDiv(){
	h1=0;
	}

