window.onload = function()
{
//showPr('lesso')	
}

var IE6 = false /*@cc_on || @_jscript_version < 5.7 @*/;

function showPr(ID)
{
	
	$(ID).style.filter = 'alpha(opacity=0)';
	$(ID).style.opacity = '0';
	
	$(ID).style.top = '150px';
	$(ID).style.left = '0px';
	$(ID).style.display = 'block';

	var alinf = $$('#'+ID+' div.project_content_holder')[0];
	var prtxt = alinf.offsetHeight - 8;
	
	if(IE6){prtxt += 18}
	
	$('project_bg').style.height = prtxt + 'px';
	$(ID).style.height = prtxt + 'px';
	$('project_bg').style.display = 'block';
	
	
	
	new Effect.Opacity(ID, {from: 0, to: 1, duration: 0.4 }) 
	new Effect.Opacity('project_bg', {from: 0, to: 0.6, duration: 0.4 }) 
	
	
}
function hidePr(ID)
{
	$(ID).style.top = '';
	$(ID).style.left = '';
	$(ID).style.filter = 'alpha(opacity=0)';
	$(ID).style.opacity = '0';
	$(ID).style.display = 'none';
	$('project_bg').style.display = 'none';
	$('project_bg').style.filter = 'alpha(opacity=0)';
	$('project_bg').style.opacity = '0';
	
}
function getheight()
{
	var d= document.documentElement;
	var b= document.body;
	var who= d.offsetHeight? d: b ;
	return Math.max(who.scrollHeight,who.offsetHeight);
}

function getwidth()
{
	var d= document.documentElement;
	var b= document.body;
	var who= d.offsetWidth? d: b ;
	return Math.max(who.scrollWidth,who.offsetWidth);
}

function $$() {

  return $A(arguments).map(function(expression) {

        return expression.strip().split(/\s+/).inject([null], function(results, expr) {

          var selector = new Selector(expr);

          return results.map(selector.findElements.bind(selector)).flatten();

        });

   }).flatten();

}
