var time = null;
function showTab(idIndex){
	show = "document.getElementById('" + idIndex + "').style.display = 'block'";
	time = setTimeout(show,50);
}
function hideTab(idIndex){
	show = "document.getElementById('" + idIndex + "').style.display = 'none'";
	time = setTimeout(show,50);
}
function stopTimeOut(){
	clearTimeout(time);
}

var scrollWidth;

function position() {
	if(document.body.scrollWidth>780) {
	x_poz=document.body.scrollWidth/2 - 163;
	document.getElementById('tab_criminal_law').style.left = x_poz+'px';
	document.getElementById('tab_collar_law').style.left = x_poz + 'px';
	} else {
		x_poz=210;
		document.getElementById('tab_criminal_law').style.left = x_poz+'px';
		document.getElementById('tab_collar_law').style.left = x_poz + 'px';
	}
}
function showHide(k)
{
	s = ""+document.getElementById("aq_"+k).innerHTML;
	if (s=="»»»")
	{
		document.getElementById("section_"+k).style.display = "block";
		document.getElementById("aq_"+k).innerHTML = "&laquo;&laquo;&laquo;";
	}else
	{
		document.getElementById("section_"+k).style.display = "none";
		document.getElementById("aq_"+k).innerHTML = "&raquo;&raquo;&raquo;";
	}
	return false;
}

if (document.images)
{
  pic1= new Image; 
  pic1.src="images/home.gif"; 
  pic1.src="images/home_rol.gif"; 

  pic2= new Image; 
  pic2.src="images/attorney_profile.gif"; 
  pic2.src="images/attorney_profile_rol.gif";
  
  pic3= new Image; 
  pic3.src="images/criminal_law.gif"; 
  pic3.src="images/criminal_law_rol.gif";
 
  pic4= new Image; 
  pic4.src="images/criminal_law_2.gif"; 
  pic4.src="images/criminal_law_2_rol.gif";
  
  pic5= new Image; 
  pic5.src="images/collar_crimes.gif"; 
  pic5.src="images/collar_crimes_rol.gif";
  
  pic6= new Image; 
  pic6.src="images/contact.gif"; 
  pic6.src="images/contact_rol.gif";
}