function showControls(id, container){
	if($(id).offsetHeight > $(container).offsetHeight) $('controlsDiv').style.display='inline';
}
function highlightArtist(id, cv){
	$('artist'+id).style.color="red";
	if(cv) $('cv'+id).style.color="red";
}
function setTitle(title){
	document.title = 'The Loft Galeria - '+title;
}
function showVControls(id,container){
	if($(id).offsetWidth > $(container).offsetWidth) $('hControls').style.display='inline';
}
function showTip(){
	$('tip').setStyles({
		opacity:99,
		display:"block"
	});
}
function hideTip(){
	$('tip').style.display="none";
}

function fadeTip(inOut,dur){
	dis = (inOut == "in") ? "block" : "none";
	if(inOut=='in'){
		var styles = {opacity:0,display:"block"}
		dir = 1;
	}else{
		var styles = {opacity:99}
		dir = 0;
	}
	var div = $('tip').setStyles(styles);
	new Fx.Style( $('tip'), 'opacity', {duration:dur}).start(dir);
}
function right(){
	vX += 515;
	if(vX >= $('workImages').offsetWidth-30) vX = $('workImages').offsetWidth - 515;
	vScroll.scrollTo(vX,false);
}
function left(){
	vX -= 515;
	if(vX < 0) vX = -1;
	vScroll.scrollTo(vX,false);
}
function up(){
	currentY += 320;
	if(currentY >= $('artistContent').offsetHeight) currentY = $('artistContent').offsetHeight -50;
	scroll.scrollTo(false, currentY);
}
function down(){
	currentY -= 320;
	if(currentY < 0) currentY = -1;
	scroll.scrollTo(false,currentY);
}
