var cl	= jQuery.noConflict();

function showClientele(tid)
{
	cl(document).ready(function ()
	{
		if(tid==1)
		{
			cl("#gov_dept_details").show();
			change_image('tick','gov_dept');
		}
		else
		{
			cl("#gov_dept_details").hide();
		}
		
		if(tid==2)
		{
			cl("#PSE_details").show();
			change_image('tick_pse','PSE');
		}
		else
		{
			cl("#PSE_details").hide();
		}
		
		if(tid==3)
		{
			cl("#architects_details").show();
			change_image('tick_architects','architects');
		}
		else
		{
			cl("#architects_details").hide();
		}

		if(tid==4)
		{
			cl("#const_comp_details").show();
			change_image('tick_const_comp','const_comp');
		}
		else
		{
			cl("#const_comp_details").hide();
		}

		if(tid==5)
		{
			cl("#infra_comp_details").show();
			change_image('tick_infra_comp','infra_comp');
		}
		else
		{
			cl("#infra_comp_details").hide();
		}

		if(tid==6)
		{
			cl("#engg_instt_details").show();
			change_image('tick_engg_instt','engg_instt');
		}
		else
		{
			cl("#engg_instt_details").hide();
		}

		if(tid==7)
		{
			cl("#builders_details").show();
			change_image('tick_builders','builders');
		}
		else
		{
			cl("#builders_details").hide();
		}

		if(tid==8)
		{
			cl("#others_details").show();
			change_image('tick_others','others');
		}
		else
		{
			cl("#others_details").hide();
		}
	
	cl("#gov_dept").click(function(){
	cl("#gov_dept_details").slideToggle(1500);
	cl("#PSE_details").hide(1500);
	cl("#architects_details").hide(1500);
	cl("#const_comp_details").hide(1500);
	cl("#infra_comp_details").hide(1500);
	cl("#engg_instt_details").hide(1500);
	cl("#builders_details").hide(1500);
	cl("#others_details").hide(1500);
	});
	
	cl("#PSE").click(function(){
	cl("#PSE_details").slideToggle(1000);
	cl("#gov_dept_details").hide(2000);
	cl("#architects_details").hide(1500);
	cl("#const_comp_details").hide(1500);
	cl("#infra_comp_details").hide(2000);
	cl("#engg_instt_details").hide(1500);
	cl("#builders_details").hide(1500);
	cl("#others_details").hide(1500);
	});
	
	cl("#architects").click(function(){
	cl("#architects_details").slideToggle(1500);
	cl("#gov_dept_details").hide(2000);
	cl("#PSE_details").hide(1500);
	cl("#const_comp_details").hide(1500);
	cl("#infra_comp_details").hide(2000);
	cl("#engg_instt_details").hide(1500);
	cl("#builders_details").hide(1500);
	cl("#others_details").hide(1500);
	});
	
	cl("#const_comp").click(function(){
	cl("#const_comp_details").slideToggle(1500);
	cl("#gov_dept_details").hide(2000);
	cl("#PSE_details").hide(1500);
	cl("#architects_details").hide(1500);
	cl("#infra_comp_details").hide(2000);
	cl("#engg_instt_details").hide(1500);
	cl("#builders_details").hide(1500);
	cl("#others_details").hide(1500);
	});
	
	cl("#infra_comp").click(function(){
	cl("#infra_comp_details").slideToggle(1500);
	cl("#gov_dept_details").hide(2000);
	cl("#PSE_details").hide(1500);
	cl("#architects_details").hide(1500);
	cl("#const_comp_details").hide(1500);
	cl("#engg_instt_details").hide(1500);
	cl("#builders_details").hide(1500);
	cl("#others_details").hide(1500);
	});
	
	cl("#engg_instt").click(function(){
	cl("#engg_instt_details").slideToggle(1000);
	cl("#gov_dept_details").hide(2000);
	cl("#PSE_details").hide(1500);
	cl("#architects_details").hide(1500);
	cl("#const_comp_details").hide(1500);
	cl("#infra_comp_details").hide(2000);
	cl("#builders_details").hide(1500);
	cl("#others_details").hide(1500);
	});
	
	cl("#builders").click(function(){
	cl("#builders_details").slideToggle(1500);
	cl("#gov_dept_details").hide(2000);
	cl("#PSE_details").hide(1500);
	cl("#architects_details").hide(1500);
	cl("#const_comp_details").hide(1500);
	cl("#infra_comp_details").hide(2000);
	cl("#engg_instt_details").hide(1500);
	cl("#others_details").hide(1500);
	});
	
	cl("#others").click(function(){
	cl("#others_details").slideToggle(1500);
	cl("#gov_dept_details").hide(2000);
	cl("#PSE_details").hide(1500);
	cl("#architects_details").hide(1500);
	cl("#const_comp_details").hide(1500);
	cl("#infra_comp_details").hide(2000);
	cl("#engg_instt_details").hide(1500);
	cl("#builders_details").hide(1500);
	});
	
	});
}

function change_image(img_id,div_id)
{
	//alert(img_id+","+div_id);
	var aa = document.getElementById(img_id).src;
	var path =  document.getElementById('url').value;
	//alert(path);
	var tick = path+'images/round_down.jpg';
	//alert (tick);
	if(div_id == 'gov_dept')
	{
		if(aa == tick)
		{
			document.getElementById(img_id).src="images/round_right.jpg";
			document.getElementById('tick_pse').src="images/round_down.jpg";
			document.getElementById('tick_architects').src="images/round_down.jpg";
			document.getElementById('tick_const_comp').src="images/round_down.jpg";
			document.getElementById('tick_infra_comp').src="images/round_down.jpg";
			document.getElementById('tick_engg_instt').src="images/round_down.jpg";
			document.getElementById('tick_builders').src="images/round_down.jpg";
			document.getElementById('tick_others').src="images/round_down.jpg";
		}
		else
		{
			document.getElementById(img_id).src="images/round_down.jpg";
		}
	}
	if(div_id == 'PSE')
	{
		if(aa == tick)
		{
			document.getElementById(img_id).src="images/round_right.jpg";
			document.getElementById('tick').src="images/round_down.jpg";
			document.getElementById('tick_architects').src="images/round_down.jpg";
			document.getElementById('tick_const_comp').src="images/round_down.jpg";
			document.getElementById('tick_infra_comp').src="images/round_down.jpg";
			document.getElementById('tick_engg_instt').src="images/round_down.jpg";
			document.getElementById('tick_builders').src="images/round_down.jpg";
			document.getElementById('tick_others').src="images/round_down.jpg";
		}
		else
		{
			document.getElementById(img_id).src="images/round_down.jpg";
		}
	}
	if(div_id == 'architects')
	{
		if(aa == tick)
		{
			document.getElementById(img_id).src="images/round_right.jpg";
			document.getElementById('tick').src="images/round_down.jpg";
			document.getElementById('tick_pse').src="images/round_down.jpg";
			document.getElementById('tick_const_comp').src="images/round_down.jpg";
			document.getElementById('tick_infra_comp').src="images/round_down.jpg";
			document.getElementById('tick_engg_instt').src="images/round_down.jpg";
			document.getElementById('tick_builders').src="images/round_down.jpg";
			document.getElementById('tick_others').src="images/round_down.jpg";
		}
		else
		{
			document.getElementById(img_id).src="images/round_down.jpg";
		}
	}
	if(div_id == 'const_comp')
	{
		if(aa == tick)
		{
			document.getElementById(img_id).src="images/round_right.jpg";
			document.getElementById('tick').src="images/round_down.jpg";
			document.getElementById('tick_pse').src="images/round_down.jpg";
			document.getElementById('tick_architects').src="images/round_down.jpg";
			document.getElementById('tick_infra_comp').src="images/round_down.jpg";
			document.getElementById('tick_engg_instt').src="images/round_down.jpg";
			document.getElementById('tick_builders').src="images/round_down.jpg";
			document.getElementById('tick_others').src="images/round_down.jpg";
		}
		else
		{
			document.getElementById(img_id).src="images/round_down.jpg";
		}
	}
	if(div_id == 'infra_comp')
	{
		if(aa == tick)
		{
			document.getElementById(img_id).src="images/round_right.jpg";
			document.getElementById('tick').src="images/round_down.jpg";
			document.getElementById('tick_pse').src="images/round_down.jpg";
			document.getElementById('tick_architects').src="images/round_down.jpg";
			document.getElementById('tick_const_comp').src="images/round_down.jpg";
			document.getElementById('tick_engg_instt').src="images/round_down.jpg";
			document.getElementById('tick_builders').src="images/round_down.jpg";
			document.getElementById('tick_others').src="images/round_down.jpg";
		}
		else
		{
			document.getElementById(img_id).src="images/round_down.jpg";
		}
	}
	if(div_id == 'engg_instt')
	{
		if(aa == tick)
		{
			document.getElementById(img_id).src="images/round_right.jpg";
			document.getElementById('tick').src="images/round_down.jpg";
			document.getElementById('tick_pse').src="images/round_down.jpg";
			document.getElementById('tick_architects').src="images/round_down.jpg";
			document.getElementById('tick_const_comp').src="images/round_down.jpg";
			document.getElementById('tick_infra_comp').src="images/round_down.jpg";
			document.getElementById('tick_builders').src="images/round_down.jpg";
			document.getElementById('tick_others').src="images/round_down.jpg";
		}
		else
		{
			document.getElementById(img_id).src="images/round_down.jpg";
		}
	}
	if(div_id == 'builders')
	{
		if(aa == tick)
		{
			document.getElementById(img_id).src="images/round_right.jpg";
			document.getElementById('tick').src="images/round_down.jpg";
			document.getElementById('tick_pse').src="images/round_down.jpg";
			document.getElementById('tick_architects').src="images/round_down.jpg";
			document.getElementById('tick_const_comp').src="images/round_down.jpg";
			document.getElementById('tick_infra_comp').src="images/round_down.jpg";
			document.getElementById('tick_engg_instt').src="images/round_down.jpg";
			document.getElementById('tick_others').src="images/round_down.jpg";
		}
		else
		{
			document.getElementById(img_id).src="images/round_down.jpg";
		}
	}
	if(div_id == 'others')
	{
		if(aa == tick)
		{
			document.getElementById(img_id).src="images/round_right.jpg";
			document.getElementById('tick').src="images/round_down.jpg";
			document.getElementById('tick_pse').src="images/round_down.jpg";
			document.getElementById('tick_architects').src="images/round_down.jpg";
			document.getElementById('tick_const_comp').src="images/round_down.jpg";
			document.getElementById('tick_infra_comp').src="images/round_down.jpg";
			document.getElementById('tick_engg_instt').src="images/round_down.jpg";
		}
		else
		{
			document.getElementById(img_id).src="images/round_down.jpg";
		}
	}
}

function send_email()
{
	//alert('send email');
	var fname	= document.getElementById('fname').value;
	var email	= document.getElementById('email').value;
	var contact_no	= document.getElementById('contact_no').value;

	var vals	= fname+'|'+email+'|'+contact_no;
	//alert(vals);
	showContent('data-bank-action.php','vals','1','show_msg','');
}
