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;clear:both;overflow:hidden;">' + content.innerHTML + '</div>';

	var pos = 'up';

	var box = new Element('div',{
    'id': 'box1',
    'styles': {
      'display': 'block',
			'position': 'absolute',
			'top': '0px',
			'right' : '10px',
			'width': '315px',
			'height': 'auto', 
      'border': '0px solid #808080',
			'z-index': 2000
			}
  });

	var south = new Element('div',{
    'id': 'box2',
    'styles': {
      'display': 'none',
			'overflow': 'auto',
			'margin-top': '3px',
			'width': '100%',
            'border': '0px solid #808080',
            'background':'#ffffff',
			'-moz-border-radius':'0 0 4px 4px',
            '-webkit-border-radius':'0 0 4px 4px',
			'-moz-box-shadow': '5px 5px 8px #000',
            '-webkit-box-shadow': '5px 5px 8px #000',
			'color': '#000',
			'padding': '0px',
			'text-align': 'center',
			'z-index': 2000,
			'overflow-y': 'hidden',
			'overflow-x': 'hidden'
			}
  });
	south.setHTML(cHTML);



	var clicker = new Element('div',{
    'id': 'box3',
    '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="/shop/templates/jxtc_teqmart/images/cartempty.png" style="padding-top:2px;"> Cart / Checkout');

  clicker.injectInside(box);
  south.injectInside(box);

  if (navigator.appName == "Microsoft Internet Explorer"){
    var footer = new Image(315,0);
    footer.src = southBG;
    box.adopt(footer);
  }

  bodyx.setStyle('position', 'relative');
	box.injectInside(bodyx);

		  south.setStyle('display', 'block');
			sautoh = south.getStyle('height');
		  south.setStyle('height', '0px');

	if (navigator.appName == "Microsoft Internet Explorer")
	{
		var pluss = 120;
	}else{
		var pluss = 60;
	}

	clicker.addEvent('click', function(){

		if(pos == 'up'){
			//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';

	});

}
