// JavaScript Document
function blindUp(id)
{
	/*if($(id).offsetHeight > 0)
	{
		Effect.BlindUp('content'+x);
		setTimeout("blindUp('"+id+"')", 10);
	}*/
}


function gereCheckbox(name,what)
{
	for(i=0;i<document.send.length;i++)
	{
		if(document.send.elements[i].type=="checkbox")
		document.send.elements[i].checked=what;
	}
}


function blindMenu(id,what)
{
	for(x=1;x<4;x++)
	{
		whatSec="";
		switch(x)
		{
			case 1:
				whatSec="Forestry Equipment";
			break;
			
			case 2:
				whatSec="Construction Equipment";
			break;
				
			case 3:
				whatSec="Other";
			break;
		}
		if($('content'+x).offsetHeight > 0)
		{
			Effect.BlindUp('content'+x);
			$('menu'+x).innerHTML = "<a href=\"javascript:;\" onclick=\"javascript:blindMenu("+x+",'"+whatSec+"');\"><span class='puceNo'></span>"+whatSec+"</span>";
			//setTimeout("blindUp('content"+x+"')", 50);
		}
	}
	
	Effect.BlindDown('content'+id);
	$('menu'+id).innerHTML = "<span class='replaceA'><span class='puceBl'></span>"+what+"</span>";
}


function aff_img(src,titre)
{
	$('ficheBigImage').innerHTML = "<a href='includes/equipement/"+src+"' rel='lightbox' title='"+titre+"'><img src='includes/equipement/thumbs/"+src+"' alt='"+titre+"' /><div class='ficheZoom'>[&nbsp;+&nbsp;] Zoom</div></a>";
}

function forOnload()
{
	if($('cols1').offsetHeight > $('cols2').offsetHeight)
	{
		document.getElementsByClassName('cols2Content')[0].style.minHeight = ($('cols1').offsetHeight-119)+'px';
	}
	else
	{
		$('cols1').style.minHeight = ($('cols2').offsetHeight-30)+'px';
	}
}



window.onload = forOnload;
