// JavaScript Document
function tab_over(id, t)
{
	var ll = $('L_' + id);
	$('L_' + id).className = t + "-left-over";	
	$('C_' + id).className = t + "-center-over";	
	$('R_' + id).className = t + "-right-over";	
}
function tab_out(id, t)
{
	$('L_' + id).className = t + "-left-up";	
	$('C_' + id).className = t + "-center-up";	
	$('R_' + id).className = t + "-right-up";	
}

function textRotater_old() { // This had redraw problems all on browsers except Firefox PC
	if( n_ts > 1 ) {
		if( indexerino > ( n_ts - 1 ) ) indexerino = 0;
		Effect.Appear('tradeshow-box-content-'+indexerino, { duration: 0.0, queue: 'end' } );
		Effect.Fade('tradeshow-box-content-'+indexerino, { duration: 0.0, delay: 2.2, afterFinish: textRotater, queue: 'end' } );
		indexerino++;
	} else {
		Effect.Appear('tradeshow-box-content-'+indexerino, { duration: 0.0, queue: 'end' } );
	}	
}

function textRotater() {
	if( n_ts > 1 ) {
		if( indexerino > 0 )
			Element.hide('tradeshow-box-content-'+(indexerino-1));
		if( indexerino > ( n_ts - 1 ) ) indexerino = 0;
		Element.show('tradeshow-box-content-'+indexerino);
		setTimeout("textRotater()", 5000);
		indexerino++;
	} else {
		Element.show('tradeshow-box-content-'+indexerino);
	}	
}

function wopen(url, name, w, h)
{
 var win = window.open(url,
  name,
  'width=' + w + ', height=' + h + ', ' +
  'location=no, menubar=no, ' +
  'status=no, toolbar=no, scrollbars=auto, resizable=no');
}

function image_swap( id, path ) {
	document.getElementById( id ).src = path;
}
