
// Open pagina in iframe

var iF_timer=null;
function stopScroll(){
clearTimeout(iF_timer)}
function Lvl_iFrameScroller(f,i,t,d,a){ //v1.0 4LevelWebs
  var r="frames['"+i+"']",ie=document.all,y,c=(f&&!i)?f:(f&&i)?r:i;
 var b=(!f)?r:f+"."+r,o=(eval("opener&&opener.parent."+b))?"opener.":'';
 var v=(f&&i)?y=o+"parent."+f+"."+c:y=o+"parent."+r;
  var e=(a==1)?'scrollLeft':'scrollTop',n =(a==1)?'pageXOffset':'pageYOffset';
   var x=(a==1)?'p,0':(a==2)?'10000,0':(a==3)?'0,10000':'0,p',s=(d==0)?(ie)?t:t+.9:(ie)?-t:-(t-.9);
    var p=(document.all)?eval(y+".document.body."+e+"")+s:eval(y+"."+n+"")+s;
     var m =eval(y+".window.scrollTo("+x+")");
  iF_timer=setTimeout("Lvl_iFrameScroller('"+f+"','"+i+"',"+t+","+d+","+a+")",1)
}
function Lvl_iFrameJumpMenu(f,i,selObj,restore){ //v1.0 4LevelWebs
 var p=selObj.options[selObj.selectedIndex].value;
 var b=(!f)?i:f+".frames['"+i+"']",o=(eval("opener&&opener.parent."+b))?"opener.":'';
  if(p){eval(o+"parent."+b+".location='"+p+"'")}
  if(restore){selObj.selectedIndex=0}
}
function Lvl_targetIframe(f,i,u){ //v1.0 4LevelWebs
 var b=(!f)?i:f+".frames['"+i+"']",o=(eval("opener&&opener.parent."+b))?"opener.":'';
 var el=eval(o+"parent."+b);el.location=u;document.MM_returnValue=false;
}

function Lvl_openWin(u,n,w,h,l,t,c,f) { //v1.0 4LevelWebs
  var ww=((screen.width-w)/2);if(c==1){l=ww;t=(screen.height-h)/2;}if(c==2){l=ww}
	f+=',top='+t+',left='+l;LvlWin = window.open(u,n,f);LvlWin.focus();
}




// Swap images


function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}


function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function resizeIframe() {

        // Must launched on the body onload event handler for IE
        // Use document.documentElement if you are in Compat mode
        i = parent.document.getElementById(window.name)
        iHeight = document.body.scrollHeight
        i.style.height = iHeight + "px"
}

//function activate(link){
//if(document.getElementById)
//document.getElementById(link).focus();
//else if (document.all)
//document.all(link).focus();
//alert(link);
//}

function activate(link){
   //alert('link');
   if(document.getElementById) {
       document.getElementById(link).focus();
   } else if (document.all) {
       document.all(link).focus();
   }
}


// hilite about

hilite.current_link = null; 
function hilite(oLink) { oLink.className = 'hiabout'; 
if (hilite.current_link) hilite.current_link.className = 'about'; 
hilite.current_link = oLink; 
}

// hilite experience

hilite2.current_link = null; 
function hilite2(oLink) { oLink.className = 'hiexperience'; 
if (hilite2.current_link) hilite2.current_link.className = 'experience'; 
hilite2.current_link = oLink; 
}

// hilite practice

hilite3.current_link = null; 
function hilite3(oLink) { oLink.className = 'hipractice'; 
if (hilite3.current_link) hilite3.current_link.className = 'practice'; 
hilite3.current_link = oLink; 
}

// hilite news

hilite4.current_link = null; 
function hilite4(oLink) { oLink.className = 'hinews'; 
if (hilite4.current_link) hilite4.current_link.className = 'news'; 
hilite4.current_link = oLink; 
}