/* Gallery JavaScript Document */


function thumb(obj)
{
	obj.className = (obj.className == 'thumb') ? 'thumb_h' : 'thumb';
}

function gallery(gId, sign)
{
	var spacerLeftTop 	= $('g' + gId + '_spacerLeftTop');
	var top 			= $('g' + gId + '_top');
	var spacerRightTop 	= $('g' + gId + '_spacerRightTop');
	var mid			 	= $('g' + gId + '_mid');
	var title_1 		= $('g' + gId + '_title_1');
	var title_2 		= $('g' + gId + '_title_2');
	var spacerLeftBot 	= $('g' + gId + '_spacerLeftBot');
	var bot 			= $('g' + gId + '_bot');
	var spacerRightBot 	= $('g' + gId + '_spacerRightBot');
	
	
	
	if(sign == 1)
	{
		spacerLeftTop.src = "extras/galeri/oval_leftTop_black.gif";
		top.style.background = "#000000";
		spacerRightTop.src = "extras/galeri/oval_rightTop_black.gif";
		mid.style.background = "#000000";
		title_1.className = "white14pxBold";
		title_2.className = "gray12px";
		spacerLeftBot.src = "extras/galeri/oval_leftBottom_black.gif";
		bot.style.background = "#000000";
		spacerRightBot.src = "extras/galeri/oval_rightBottom_black.gif";
	}
	
	else
	{
		spacerLeftTop.src = "extras/galeri/spacer.gif";
		top.style.background = "";
		spacerRightTop.src = "extras/galeri/spacer.gif";
		mid.style.background = "";
		title_1.className = "gray14pxBold";
		title_2.className = "grayDark12px";
		spacerLeftBot.src = "extras/galeri/spacer.gif";
		bot.style.background = "";
		spacerRightBot.src = "extras/galeri/spacer.gif";
	}
}
