var isBackend = false;
document.write('<script type="text/javascript" src="' + (isBackend?'../':'') + 'lib/js/frontend/swfobject.js"></script>');
document.write('<script type="text/javascript" src="' + (isBackend?'../':'') + 'lib/js/frontend/jsGallery.js"></script>');

var currentFontSize = 11;
function incrementDecrementFont(step, object1, object2)
{		
	if ((currentFontSize+step) <= 9 || (currentFontSize+step) >= 15) 
	{	
		return false;
	}
	else
	{	
		$('decrText').className = 'decrease_font';
		$('incrText').className = 'increase_font';
		currentFontSize += step;
		document.getElementById(object1).style.fontSize = currentFontSize + 'px';
		document.getElementById(object2).style.fontSize = currentFontSize + 'px';
	}
	
	if ((currentFontSize+step) <= 9)
	{			
		$('decrText').className = 'decrease_font_max';
	}
	
	if ((currentFontSize+step) >= 15)
	{
		$('incrText').className = 'increase_font_max';
	}
}

function popup(url,winWidth,winHeight,sb) 
{
	winTop = (screen.height - winHeight) / 2;
	winLeft = (screen.width - winWidth) / 2;
	window.open(url,"","width=" + winWidth + ",height=" + winHeight + ",top=" + winTop  + ",left=" + winLeft  + ",resizable=no,scrollbars=" + sb + ",toolbar=no");
}

function changeCollapsedExpanded(object){
	var object = document.getElementById(object);

	if(object){
		if(object.className == "results_close") object.className = "results_open";
		else if(object.className == "results_open") object.className = "results_close";
		
	}
}