﻿
  function swapTabs(i)
        {
            var xW=10;
                var x;
                xW= parseInt(xW) + (jQuery(".servicesborder a").eq(i).width())/2;	                
                if(i>0)
                    {
                        xW = parseInt(xW) + parseInt([(i)*10]);
                    }
                for(x=0;x<i;x++)
                    {	   
                        xW = parseInt(xW) + jQuery(".servicesborder a").eq(x).width()-1;	                        
                    }	
                              
                jQuery(".divpagertext div").hide();                
                jQuery(".divpagertext div").eq(i).show();                
        }
      
      
      jQuery(document).ready(function()
        {
           
   	       jQuery(".servicesborder a").each(function(i)
	        {
	            jQuery(this).click(function()
	                {	                
	                    swapTabs(i);
	                });	        
	        });
    	   
	   });	  
	   featuredcontentslider.init({
	id: "slider1", //id of main slider DIV
  	contentsource: ["inline", ""],  //Valid values: ["inline", ""] or ["ajax", "path_to_file"]
	toc: "#increment",  //Valid values: "#increment", "markup", ["label1", "label2", etc]
	nextprev: ["", ""],  //labels for "prev" and "next" links. Set to "" to hide.
	revealtype: "click", //Behavior of pagination links to reveal the slides: "click" or "mouseover"
	enablefade: [true, 0.04],  //[true/false, fadedegree]
	autorotate: [true, 3000],  //[true/false, pausetime]
	onChange: function(previndex, curindex){  //event handler fired whenever script changes slide
		//previndex holds index of last slide viewed b4 current (1=1st slide, 2nd=2nd etc)
		//curindex holds index of currently shown slide (1=1st slide, 2nd=2nd etc)
	}
})    
  

           

