/* This file stores JS that is used in Services Page */

jQuery(document).ready(function() {
	
	jQuery('#priceTable .priceHolder').width((parseInt(jQuery('#priceTable .priceMask').width()+30) * jQuery('#priceTable .tabContent').length));
	
	jQuery('#priceTable .tabContent').width(jQuery('#priceTable .priceMask').width());
				
	jQuery('#priceTable .priceMask').height(jQuery('#pack1').height());
	
	jQuery('#priceTable .priceTabs li').click(function () {
		//Get the height of the sub-panel  
		var panelheight = $($(this).find('a').attr('href')).height();  
		
		//Set class for the selected item  
		jQuery('#priceTable .priceTabs li').removeClass('active');  
		jQuery(this).addClass('active');  
		
		//Resize the height  
		jQuery('#priceTable .priceMask').animate({'height':panelheight},{queue:false, duration:500});           
		
		//Scroll to the correct panel, the panel id is grabbed from the href attribute of the anchor  
		jQuery('#priceTable .priceMask').scrollTo(jQuery(this).find('a').attr('href'), 800);
		
		//Discard the link default behavior  
		return false;  	
	});
	



// End of Dom      });  



	
	
	
	
	
	
/*	
	
	jQuery('#priceTable .priceHolder').width((parseInt(jQuery('#priceTable .priceMask').width()+30) * jQuery('#priceTable .tabContent').length));
	
	jQuery('#priceTable .tabContent').width(jQuery('#priceTable .priceMask').width());
*/				
	
/*	jQuery('#priceTable .priceMask').height(jQuery('#pack1').height());
	
	jQuery('#priceTable .priceTabsSmall li').click(function () {
		//Get the height of the sub-panel  
		var panelheight = $($(this).find('a').attr('href')).height();  
		
		//Set class for the selected item  
		jQuery('#priceTable .priceTabsSmall li').removeClass('active');  
		jQuery(this).addClass('active');  
		
		//Resize the height  
		jQuery('#priceTable .priceMask').animate({'height':panelheight},{queue:false, duration:500});           
		
		//Scroll to the correct panel, the panel id is grabbed from the href attribute of the anchor  
		jQuery('#priceTable .priceMask').scrollTo(jQuery(this).find('a').attr('href'), 800);
		
		//Discard the link default behavior  
		return false;  	
	});
	

	
	
	jQuery('#priceTable .priceMask').height(jQuery('#quote1').height());
	
  	jQuery('#priceTable .priceTabs li').click(function () {
		//Get the height of the sub-panel  
		var panelheight = $($(this).find('a').attr('href')).height();  
		
		//Set class for the selected item  
		jQuery('#priceTable .priceTabs li').removeClass('active');  
		jQuery(this).addClass('active');  
		
		//Resize the height  
		jQuery('#priceTable .priceMask').animate({'height':panelheight},{queue:false, duration:500});           
		
		//Scroll to the correct panel, the panel id is grabbed from the href attribute of the anchor  
		jQuery('#priceTable .priceMask').scrollTo(jQuery(this).find('a').attr('href'), 800);
		
		//Discard the link default behavior  
		return false;  	
	});	
	
	
	
	
	
	
	jQuery('#priceTable2 .priceHolder').width((parseInt(jQuery('#priceTable2 .priceMask').width()+30) * jQuery('#priceTable2 .tabContent').length));
	
	jQuery('#priceTable2 .tabContent').width(jQuery('#priceTable2 .priceMask').width());
				
	jQuery('#priceTable2 .priceMask').height(jQuery('#pack1').height());
		
	jQuery('#priceTable2 .priceTabsSmall li').click(function () {
		//Get the height of the sub-panel  
		var panelheight = $($(this).find('a').attr('href')).height();  
		
		//Set class for the selected item  
		jQuery('#priceTable2 .priceTabsSmall li').removeClass('active');  
		jQuery(this).addClass('active');  
		
		//Resize the height  
		jQuery('#priceTable2 .priceMask').animate({'height':panelheight},{queue:false, duration:500});           
		
		//Scroll to the correct panel, the panel id is grabbed from the href attribute of the anchor  
		jQuery('#priceTable2 .priceMask').scrollTo(jQuery(this).find('a').attr('href'), 800);
		
		//Discard the link default behavior  
		return false;  	
	});
	
	






	jQuery('#priceTable3 .priceHolder').width((parseInt(jQuery('#priceTable3 .priceMask').width()+30) * jQuery('#priceTable3 .tabContent').length));
	
	jQuery('#priceTable3 .tabContent').width(jQuery('#priceTable3 .priceMask').width());
				
	jQuery('#priceTable3 .priceMask').height(jQuery('#pack1').height());
		
	jQuery('#priceTable3 .priceTabsSmall li').click(function () {
		//Get the height of the sub-panel  
		var panelheight = $($(this).find('a').attr('href')).height();  
		
		//Set class for the selected item  
		jQuery('#priceTable3 .priceTabsSmall li').removeClass('active');  
		jQuery(this).addClass('active');  
		
		//Resize the height  
		jQuery('#priceTable3 .priceMask').animate({'height':panelheight},{queue:false, duration:500});           
		
		//Scroll to the correct panel, the panel id is grabbed from the href attribute of the anchor  
		jQuery('#priceTable3 .priceMask').scrollTo(jQuery(this).find('a').attr('href'), 800);
		
		//Discard the link default behavior  
		return false;  	
	});
	*/
	

	
	
	
});  //END OF DOM REAFY
