$(function() {

  $(".serv-scroll").jCarouselLite({
    btnNext: ".next",
    btnPrev: ".prev",
    visible: 1,
    speed: 500,
    circular: true
  });

  $(".h-header a, .h-subhead-wrap a, .h-subhead-wrap3 a").tooltip({
    track: true,
    delay: 0,
    showURL: false,
    fade: 200
  });

  /*$(document).ready(function($) {
    $(".h-wrap").css({"padding-top": $(".h-seo-wrap").height()});
    })*/


  $(".nav > li")
  .bind("mouseenter", function() {
    $(this).addClass("sphover");
    })
  .bind("mouseleave", function() {
    $(".sphover").removeClass("sphover");
    })

  $(".arr").bind("click",function() {
    $(this).parents(".h-dynamic").toggleClass("h-dynamic-hide");
    })

  $(".close").bind("click", function() {
    $(this).parents(".h-citypopup-wrap").css({"display": "none"});
    })

  if(document.attachEvent){
    $(".b-serv:first-child").addClass("first-child");
    $(".breadcrumbs li:first-child").css({"background": "none"});
    $(".call li:first-child").css({"border": "none", "padding-top": "0"});
  }

  $(".h-textcol table tr[class !='th']:even").addClass("bgr");

	$('ul.tabs a').click(
		function() {
			var rel = $(this).attr('rel');

			$(this).parents('ul').find('li').removeClass('active');
			$(this).parent('li').addClass('active');
			$('div.tab').hide();
			$('div.tab[rel=' + rel + ']').show();

			return false;
		}
	);

});

jQuery(document).ready(function($) {
  $('a[rel*=facebox]').facebox()
})

