var cTab;
$(document).ready(function(){	  
  // handle the activation of the currently selected tab
  $('.top_menu').click(function(event) {
		return true;
	});
   //alert(window.location);
   var curPage = window.location + "";
   if (curPage.match('index\.html') != null) {
		$("li.currentTab").removeClass("currentTab"); 
		$('#homeTab').addClass('currentTab').fadeIn('slow');
   };
   if (curPage.match('services\.html') != null
		|| curPage.match('cp_database\.html') != null
		|| curPage.match('cp_coldfusion\.html') != null
		|| curPage.match('cp_ajax\.html') != null
		|| curPage.match('cp_mobile\.html') != null
		|| curPage.match('cp_webdes\.html') != null
		|| curPage.match('cp_tech\.html') != null
		|| curPage.match('itconsult\.html') != null
		|| curPage.match('ittools\.html') != null
		|| curPage.match('ecommerce\.html') != null
		|| curPage.match('qbooks\.html') != null) {
		$("li.currentTab").removeClass("currentTab"); 
		$('#servicesTab').addClass('currentTab').fadeIn('slow');
   };
   if (curPage.match('portfolio\.html') != null) {
		$("li.currentTab").removeClass("currentTab"); 
		$('#portfolioTab').addClass('currentTab').fadeIn('slow');
   };
   if (curPage.match('process\.html') != null) {
		$("li.currentTab").removeClass("currentTab"); 
		$('#processTab').addClass('currentTab').fadeIn('slow');
   };
   if (curPage.match('about\.html') != null) {
		$("li.currentTab").removeClass("currentTab"); 
		$('#aboutTab').addClass('currentTab').fadeIn('slow');
   };
   if (curPage.match('news\.cfm') != null || curPage.match('news2\.cfm') != null) {
		$("li.currentTab").removeClass("currentTab"); 
		$('#newsTab').addClass('currentTab').fadeIn('slow');
   };
   if (curPage.match('techstore\.html') != null) {
		$("li.currentTab").removeClass("currentTab"); 
		$('#storeTab').addClass('currentTab').fadeIn('slow');
   };
   if (curPage.match('contactus\.cfm') != null
		|| curPage.match('confirmreq\.cfm') != null) {
		$("li.currentTab").removeClass("currentTab"); 
		$('#contactTab').addClass('currentTab').fadeIn('slow');
   };	  
})
