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

/*var scrollWidth;

function position() {
	if(document.body.scrollWidth>780) {
	x_poz=document.body.scrollWidth/2 - 14;
	document.getElementById('tab_family_law').style.left = x_poz+'px';
	x_poz=document.body.scrollWidth/2 + 119;
	document.getElementById('tab_business_law').style.left = x_poz+'px';
	x_poz=document.body.scrollWidth/2 + 256;
	document.getElementById('tab_imigration').style.left = x_poz+'px';
	} else {
		x_poz=376;
		document.getElementById('tab_family_law').style.left = x_poz+'px';
		x_poz=509;
		document.getElementById('tab_business_law').style.left = x_poz+'px';
		x_poz=646;
		document.getElementById('tab_imigration').style.left = x_poz+'px';
	}
}
*/
if (document.images)
{
  pic1= new Image; 
  pic1.src="images/menu/menu_1.gif";
  pic2= new Image; 
  pic2.src="images/menu/menu_1_over.gif"; 

  pic3= new Image; 
  pic3.src="images/menu/menu_2.gif";
  pic4= new Image; 
  pic4.src="images/menu/menu_2_over.gif";
  
  pic5= new Image; 
  pic5.src="images/menu/menu_3.gif";
  pic6= new Image; 
  pic6.src="images/menu/menu_3_over.gif";
 
  pic7= new Image; 
  pic7.src="images/menu/menu_4.gif"; 
  pic16= new Image; 
  pic16.src="images/menu/menu_4_over.gif";
  
  pic8= new Image; 
  pic8.src="images/menu/menu_5.gif"; 
  pic9= new Image; 
  pic9.src="images/menu/menu_5_over.gif";
  
  pic10= new Image; 
  pic10.src="images/menu/menu_6.gif"; 
  pic11= new Image; 
  pic11.src="images/menu/menu_6_over.gif";
  
  pic12= new Image; 
  pic12.src="images/menu/menu_7.gif"; 
  pic13= new Image; 
  pic13.src="images/menu/menu_7_over.gif";
  
  pic14= new Image; 
  pic14.src="images/menu/menu_8.gif"; 
  pic15= new Image; 
  pic15.src="images/menu/menu_8_over.gif";

  pic16= new Image; 
  pic16.src="images/bg.jpg";
}

var TRange = null;
var dupeRange = null;
var TestRange = null;
var win = null;


var nom = navigator.appName.toLowerCase();
var agt = navigator.userAgent.toLowerCase();
var is_major   = parseInt(navigator.appVersion);
var is_minor   = parseFloat(navigator.appVersion);
var is_ie      = (agt.indexOf("msie") != -1);
var is_ie4up   = (is_ie && (is_major >= 4));
var is_not_moz = (agt.indexOf('netscape')!=-1)
var is_nav     = (nom.indexOf('netscape')!=-1);
var is_nav4    = (is_nav && (is_major == 4));
var is_mac     = (agt.indexOf("mac")!=-1);
var is_gecko   = (agt.indexOf('gecko') != -1);
var is_opera   = (agt.indexOf("opera") != -1);

var is_rev=0
if (is_gecko) {
temp = agt.split("rv:")
is_rev = parseFloat(temp[1])
}

var frametosearch = self;


function search(whichform, whichframe) {



if (is_ie4up && is_mac) return;



if (is_gecko && (is_rev <1)) return;



if (is_opera) return;



if(whichform.findthis.value!=null && whichform.findthis.value!='') {

       str = whichform.findthis.value;
       win = whichframe;
       var frameval=false;
       if(win!=self)
{

       frameval=true; 
       win = parent.frames[whichframe];

}

    
}

else return;

var strFound;



if(is_nav4 && (is_minor < 5)) {
   
  strFound=win.find(str); // case insensitive, forward search by default



 
        }


if (is_gecko && (is_rev >= 1)) {
   
    if(frameval!=false) win.focus(); // force search in specified child frame
    strFound=win.find(str, false, false, true, false, frameval, false);



    if (is_not_moz)  whichform.findthis.focus();

}

 if (is_ie4up) {

  // EXPLORER-SPECIFIC CODE revised 5/21/03

  if (TRange!=null) {
	  
   TestRange=win.document.body.createTextRange();
 
	  

   if (dupeRange.inRange(TestRange)) {

   TRange.collapse(false);
   strFound=TRange.findText(str);
    if (strFound) {
        //the following line added by Mike and Susan Keenan, 7 June 2003
        win.document.body.scrollTop = win.document.body.scrollTop + TRange.offsetTop;
        TRange.select();
        }


   }
   
   else {

     TRange=win.document.body.createTextRange();
     TRange.collapse(false);
     strFound=TRange.findText(str);
     if (strFound) {
        //the following line added by Mike and Susan Keenan, 7 June 2003
        win.document.body.scrollTop = TRange.offsetTop;
        TRange.select();
        }



   }
  }
  
   if (TRange==null || strFound==0) {
   TRange=win.document.body.createTextRange();
   dupeRange = TRange.duplicate();
   strFound=TRange.findText(str);
    if (strFound) {
        //the following line added by Mike and Susan Keenan, 7 June 2003
        win.document.body.scrollTop = TRange.offsetTop;
        TRange.select();
        }

   
   }

 }

  if (!strFound) alert ("String '"+str+"' not found!") // string not found

        
}