function sstab(hg){

	var bodyx = $('search');
	bodyx.setStyle('z-index',2000);

	var sautoh;
	var content = $('southslidetab');
	var southBG = content.getAttribute('rev');
	var cHTML = '<div style="padding:28px;">' + content.innerHTML + '</div>';

	var pos = 'up';

	var box = new Element('div',{
			'styles': {
      'display': 'block',
			'overflow': 'hidden',
			'position': 'absolute',
			'top': '0px',
			'right' : '10px',
			'width': '394px',
			'height': 'auto', 
      'border': '0px solid #808080',
			'z-index': 2000
			}
  });

	var south = new Element('div',{
			'styles': {
      'display': 'none',
			'overflow': 'auto',
			'margin-top': '3px',
			'width': '100%',
      'border': '0px solid #808080',
			'background': 'none',
			'background-image': 'url(' + southBG + ')',
			'color': '#000',
			'padding': '0px',
			'text-align': 'center',
			'z-index': 2000,
			'overflow-y': 'hidden',
			'overflow-x': 'hidden'
			}
  });
	south.setHTML(cHTML);
 


	var clicker = new Element('div',{
			'styles': {
      'display': 'block',
			'display':'block',
			'bottom': '0px',
			'width': '100%',
			'padding-top': '10px',
			'padding-bottom': '12px',
			'color': '#898989',
      'border': '0px solid #808080',
			'text-align': 'right',
			'font-weight': 'normal',
			'cursor': 'pointer'
			}
  });
	clicker.setHTML('<img src="images/cartempty.png" style="padding-top:2px;"> Wishlist');

	var footer = new Image(394,0);
	footer.src = "templates/jxtc_teqmart/images/cartbkgcor.png";

	clicker.injectInside(box);
	south.injectInside(box);
	box.adopt(footer);
  bodyx.setStyle('position', 'relative');
	box.injectInside(bodyx);

		  south.setStyle('display', 'block');
			sautoh = south.getStyle('height');
		 // south.setStyle('height', '0px');
var mySlide = new Fx.Slide(south);
mySlide.hide();


	if (navigator.appName == "Microsoft Internet Explorer")
	{
		var pluss = 120;
	}else{
		var pluss = 60;
	}

	/*clicker.addEvent('click', function(){

		if(pos == 'up'){
		//		sautoh = south.getStyle('height');
			x = $('sendcart').getStyle('height')
			sautoh = sautoh+x;
			footer.effect('height', {duration: 200, transition: Fx.Transitions.linear}
			).start(0,20);

			south.effect('height', {duration: 200, transition: Fx.Transitions.linear}
			).start(0,sautoh + 150);
			posv = 1;
		}

		if(pos == 'down'){
			footer.effect('height', {duration: 200, transition: Fx.Transitions.linear}
			).start(20,0);

			south.effect('height', {duration: 200, transition: Fx.Transitions.linear}
			).start(sautoh + 150,0);
			posv = 2;
		}

		if(posv == 1) pos = 'down';
		if(posv == 2) pos = 'up';
		doit();

	});
*/

clicker.addEvent('click', function(e){
	e = new Event(e);
	if (pos == 'up') {
		footer.effect('height', {
			duration: 200,
			transition: Fx.Transitions.linear
		}).start(0, 20);
		posv = 1;
	}	
	if (pos == 'down') {
		footer.effect('height', {
			duration: 200,
			transition: Fx.Transitions.linear
			}).start(20, 0);
			posv = 2;
	}	
	mySlide.toggle();
		
		if(posv == 1) pos = 'down';
		if(posv == 2) pos = 'up';
		doit();
	e.stop();
});

}
