// JavaScript Document
jQuery(document).ready(function(){
		
	
	jQuery(".left_slide_1").click(function(){
		//window.location="../solutions/Managed-IT-services-Overview.html" 
		window.location="../solutions/Managed-IT-services-Overview.html";
		closeDiv("left_panel_b1");
		jQuery("#left_panel_b1").slideToggle("slow");		
		jQuery(this).toggleClass("db_active"); return false;
	});	
	
	jQuery(".left_slide_2").click(function(){
		//window.location="../solutions/h1.html" 
		window.location="../solutions/Computer-repair-services-Overview.html";
		closeDiv("left_panel_b2");
		jQuery("#left_panel_b2").slideToggle("slow");		
		jQuery(this).toggleClass("db_active"); return false;
	});	
	
	jQuery(".left_slide_3").click(function(){
										   
		window.location="../solutions/Sales-and-Procurement.html";								   
		closeDiv("left_panel_b3");								   
		jQuery("#left_panel_b3").slideToggle("slow");		
		jQuery(this).toggleClass("db_active"); return false;
	});	
	
	jQuery(".left_slide_4").click(function(){
			window.location="../solutions/Cloud-and-Managed-Hosting.html";
		closeDiv("left_panel_b4");								   
		jQuery("#left_panel_b4").slideToggle("slow");		
		jQuery(this).toggleClass("db_active"); return false;
	});	
	
	jQuery(".left_slide_5").click(function(){
										window.location="../solutions/Data-and-Network-Security.html";
		closeDiv("left_panel_b5");									   
		jQuery("#left_panel_b5").slideToggle("slow");		
		jQuery(this).toggleClass("db_active"); return false;
	});	
	
	jQuery(".left_slide_6").click(function(){
										   
										  window.location="../solutions/Web-Technology.html";
										   //window.location="../solutions/h6.html" 
		closeDiv("left_panel_b6");								   
		jQuery("#left_panel_b6").slideToggle("slow");		
		jQuery(this).toggleClass("db_active"); return false;
	});	
	
	jQuery(".left_slide_c").click(function(){
	
	});	
	
	function closeDiv(id)
	{
		var divArr = new Array();
		divArr[0] = "left_panel_b1";
		divArr[1] = "left_panel_b2";
		divArr[2] = "left_panel_b3";
		divArr[3] = "left_panel_b4";
		divArr[4] = "left_panel_b5";
		divArr[5] = "left_panel_b6";
		for(var i=0;i<divArr.length;i++){
			if(id != divArr[i]){
					jQuery("#"+divArr[i]).hide();
			}
			
		}
		
		/*//jQuery("#left_panel_b1").hide("slow");
		jQuery("#left_panel_b2").hide("slow");
		jQuery("#left_panel_b3").hide("slow");
		jQuery("#left_panel_b4").hide("slow");
		jQuery("#left_panel_b5").hide("slow");
		jQuery("#left_panel_b6").hide("slow");*/
	}

});
