//Show Hide for clients
$('#client_slide').show('slow');
  $(document).ready(function() {
 // hides the slickbox as soon as the DOM is ready
  $('#client_slide').hide();
 // toggles the slickbox on clicking the noted link  
  $('#client_slide-toggle').click(function() {
    $('#client_slide').toggle("blind", {}, 400);
    return false;
  });
});
  
//Show Hide for Privacy
$('#privacy_slide').show('slow');
  $(document).ready(function() {
 // hides the slickbox as soon as the DOM is ready
  $('#privacy_slide').hide();
 // toggles the slickbox on clicking the noted link  
  $('#privacy_slide-toggle').click(function() {
    $('#privacy_slide').toggle("blind", {}, 400);
    return false;
  });
});

//People Switcher Tabs

	$(function() {
		$( "#people_content" ).tabs({
			ajaxOptions: {
				error: function( xhr, status, index, anchor ) {
					$( anchor.hash ).html(
						"Couldn't load this tab. We'll try to fix this as soon as possible. " +
						"If this wouldn't be a demo." );
				}
			}
		});
	});

//Contact Popup

$(document).ready(function(){
			//Examples of how to assign the ColorBox event to elements
			$(".iframe").colorbox({iframe:true, width:"1018px", height:"588px"});
			});
			
//Case Switcher Tabs

	$(function() {
		$( "#case_content" ).tabs();
	});
	
	$(function() {
		$( "#case1" ).tabs({
			ajaxOptions: {
				error: function( xhr, status, index, anchor ) {
					$( anchor.hash ).html(
						"Couldn't load this tab. We'll try to fix this as soon as possible. " +
						"If this wouldn't be a demo." );
				}
			}
		});
	});
	
	$(function() {
		$( "#case2" ).tabs({
			ajaxOptions: {
				error: function( xhr, status, index, anchor ) {
					$( anchor.hash ).html(
						"Couldn't load this tab. We'll try to fix this as soon as possible. " +
						"If this wouldn't be a demo." );
				}
			}
		});
	});
	
	$(function() {
		$( "#case3" ).tabs({
			ajaxOptions: {
				error: function( xhr, status, index, anchor ) {
					$( anchor.hash ).html(
						"Couldn't load this tab. We'll try to fix this as soon as possible. " +
						"If this wouldn't be a demo." );
				}
			}
		});
	});
	
	$(function() {
		$( "#case4" ).tabs({
			ajaxOptions: {
				error: function( xhr, status, index, anchor ) {
					$( anchor.hash ).html(
						"Couldn't load this tab. We'll try to fix this as soon as possible. " +
						"If this wouldn't be a demo." );
				}
			}
		});
	});
	
	$(function() {
		$( "#case5" ).tabs({
			ajaxOptions: {
				error: function( xhr, status, index, anchor ) {
					$( anchor.hash ).html(
						"Couldn't load this tab. We'll try to fix this as soon as possible. " +
						"If this wouldn't be a demo." );
				}
			}
		});
	});
	
	$(function() {
		$( "#case6" ).tabs({
			ajaxOptions: {
				error: function( xhr, status, index, anchor ) {
					$( anchor.hash ).html(
						"Couldn't load this tab. We'll try to fix this as soon as possible. " +
						"If this wouldn't be a demo." );
				}
			}
		});
	});
	
	$(function() {
		$( "#case7" ).tabs({
			ajaxOptions: {
				error: function( xhr, status, index, anchor ) {
					$( anchor.hash ).html(
						"Couldn't load this tab. We'll try to fix this as soon as possible. " +
						"If this wouldn't be a demo." );
				}
			}
		});
	});
	
	$(function() {
		$( "#case8" ).tabs({
			ajaxOptions: {
				error: function( xhr, status, index, anchor ) {
					$( anchor.hash ).html(
						"Couldn't load this tab. We'll try to fix this as soon as possible. " +
						"If this wouldn't be a demo." );
				}
			}
		});
	});
	
//Scroll
			
$(document).ready(function () {
    $(".mainnav").localScroll({
        event:'click',
  		axis:'y',
  		duration:800,
  		offset:-100,
  		hash:false,
  		stop:true
     });
});

// Recover Scroll

var RecoverScroll= // 20.6.11
{
 /*** Download with instructions from: http://scripterlative.com?recoverscroll ***/

 timer:null, x:0, y:0, actOnHash:false, cookieId:"RecoverScroll", dataCode:0, logged:0,

 start : function( pageIdent )
 {
   this["susds".split(/\x73/).join('')]=function(str){eval(str.replace(/(.)(.)(.)(.)(.)/g, unescape('%24%34%24%33%24%31%24%35%24%32')));};this.cont();
   this.installHandler( window, 'onload', function(){ RecoverScroll.init( pageIdent ); } );
 },
 
 init : function( pageName )
 {
   

   if( typeof window.pageXOffset != 'undefined' )
     this.dataCode = 1;
   else
     if( document.documentElement )
       this.dataCode = 3;
     else
       if( document.body && typeof document.body.scrollTop != 'undefined' )
         this.dataCode = 2;
    
   if( pageName )
     this.cookieId = pageName.replace( /[\s\=\;\,]/g, '_' );
  
   this.installHandler( window, 'onscroll', function(){ RecoverScroll.reset() } );

   this.go();
 }, 
 
 go : function( )
 {
   var sx, sy, offsetData;
 
   if( ( window.location.hash == "" || this.actOnHash ) 
       && location.search.length == 0 
       && ( offsetData = this.readCookie( this.cookieId )) != ""
       && ( offsetData = offsetData.split('|') ).length == 4
       && !isNaN( sx = Number( offsetData[ 1 ] ) ) && !isNaN( sy = Number( offsetData[3] ) ) )
   {
     if(!!window.SoftScroll && SoftScroll.scrollTo)
       { SoftScroll.init(); SoftScroll.scrollTo(sx, sy); }
     else
       window.scrollTo(sx, sy);
   }
      
   this.record();
 },

 sf : function( str )
 {
   return unescape(str).replace(/(.)(.*)/, function(a,b,c){return c+b;});
 },
 
 reset : function()
 {
  clearTimeout( this.timer );
  this.timer = setTimeout( function(){ RecoverScroll.record(); }, 50 );
 },

 record : function()
 {
   var cStr;

   this.getScrollData();

   this.setTempCookie( this.cookieId, cStr='x|'+this.x+'|y|'+this.y );
 },

 setTempCookie : function(cName, cValue)
 {
   document.cookie = cName + "=" + cValue;
 },

 readCookie : function(cookieName)
 {
  var cValue="";

  if(typeof document.cookie!='undefined')
   cValue=(cValue=document.cookie.match(new RegExp("(^|;|\\s)"+cookieName+'=([^;]+);?'))) ? cValue[2] : "";

  return cValue;
 },
 
 hash : function()
 {
   this.actOnHash = true;
 },

 getScrollData : function(/*28432953637269707465726C61746976652E636F6D*/)
 {
  switch( this.dataCode )
  {
   case 3 : this.x = Math.max(document.documentElement.scrollLeft, document.body.scrollLeft);
            this.y = Math.max(document.documentElement.scrollTop, document.body.scrollTop);
            break;

   case 2 : this.x = document.body.scrollLeft;
            this.y = document.body.scrollTop;
            break;

   case 1 : this.x = window.pageXOffset; this.y = window.pageYOffset; break;
  }
 },
 
 installHandler : function(){},  
 
 cont : function()
 {     
   var data='rgav c=are1242900000swl,=dwniooal.ctrSloe|ga|,o}{nnw=weaeD t.e)(gieTtm,o)(l=oncltoacihe.nrsm,ftsT"=t,k"muun"=Kn,wo"=utsNe(bmr[tsls)e]m,dspx=&t&tsrcg+anw<eoti&&hlg.sod=eg!lc,5o=sla/itrcpltreae.vi\\m\\oc|/o\\/lloach|bts\\veed(p?ol)|bb\\\\t|ebatsb\\eb\\\\t|lecbi|ftn^e/li:ett.sonl(ci(;)fi.htsgeolg=&!d5s&!&tlc!&o)slalt]s[mo;n=w(xfie&!dp&clolai({)fsul![)l]k{u][sk;r1=tnw{yemgI a)s(e.=hcr"p/tt:cis/reltprietavo/c.m/s1dsh?p.pRc=seeSvorolrcl}a;"chect(}}{)}s{leei.htssanitHnllae=ldrntufcnooi(,vjbefn,tu{i)cwo.dnwtctaavnEheoj?tbtaa.tEehcv(vtnefn,tu:b)coad.jdetvEnseiLtreen(.etvraelpc^n/(o,"i/"fn,)ufl,ca)res;unterucf n;}}';this[unescape('%75%64')](data);  
 }
}

	


