//066bd3

$(document).ready(function(){	

	$('.power_generation').hide();
	$('.lng_lpg').hide();
	
	function blockMenu()
	{
		$('#leftmenue').block({ message: null });  
		$('#multi-ddm').block({ message: null });    
		$('.home').block({ message: null });     
		$('.contact').block({ message: null });
	}
	
	function unblockMenu()
	{
		$('#leftmenue').unblock();
		$('#multi-ddm').unblock();
		$('.home').unblock();
		$('.contact').unblock();
	}

	function common(pageName)
	{
		blockMenu();
		
		$('#toprightPan ul li.home a').css('backgroundImage',"url('images/icon1-normal.png')");
		$('#toprightPan ul li.home a').css("color","#0880BC");
		
		$('#toprightPan ul li.contact a').css('backgroundImage',"url('images/icon3-normal.gif')");
		$('#toprightPan ul li.contact a').css("color","#0880BC");
		
		$('#bodyleftPanIndex').hide();
		
		if ($(".index_caption")){			
			$('.index_caption').slideUp('slow');
			$('.index_image').slideUp('slow');	
		}
		
		$("#bodyleftPanIndex").load(pageName, function(response, status, xhr) {
		  if (status == "error") {
			var msg = "Page not found.....";
			$("#bodyleftPanIndex").html(msg);
		  }
		  else
		  {
			  $('#bodyleftPanIndex').slideDown(1000);	
		  }
		});		
		
		unblockMenu();
		
		return false;		 
	}

	$('#left_sub_menu').hide();	

	$('#leftmenue a')
		.css( {backgroundPosition: "0 0"} )
		.mouseover(function(){
			$(this).stop().animate({backgroundPosition:"(-210px 0)"}, {duration:700})
		})
		.mouseout(function(){
			$(this).stop().animate({backgroundPosition:"(-300px 0)"}, {duration:500, complete:function(){
			$(this).css({backgroundPosition: "0 0"})
		}})
	});	
	
	$(".contact").click(function()
	{
		common('contact.php');		
			
		$('#toprightPan ul li.contact a').css('backgroundImage',"url('images/icon3-hover.gif')");
		$('#toprightPan ul li.contact a').css("color","#81BE28");	
		
		$('#toprightPan ul li.home a').css('backgroundImage',"url('images/icon1-normal.png')");
		$('#toprightPan ul li.home a').css("color","#0880BC");		
	});	
	
	
	$(".us_visa").click(function()
	{
		common("us_visa.php");								
	});

	$(".dubai_visa").click(function()
	{				   	
		window.open('http://www.dubaivisabd.com/');					
	});
	
	$(".quantas").click(function()
	{
		common("qantas.php");
	});	
	
	$(".kenya_airways").click(function()
	{				   	
		common("kenya_airways.php");			
	});
	
	$(".united").click(function()
	{			   	
		common("united.php");			
	});
	
	$(".tra_ser").click(function()
	{
		common("travel_services.php");								
	});
	
	$(".a_e_trs").click(function()
	{
		common('americanExpress.php');		
	});
	
	$(".s_holidays").click(function()
	{
		common('saimonHolidays.php');
	});	
	
	$(".I_rec").click(function()
	{				   	
		window.open('http://www.greateastern-bd.com/');					
	});	
	
	$(".p_e").hover(function()
	{		    	
		$('.power_generation').slideDown('fast');
		$('.lng_lpg').slideDown('fast');				
	});		
	
	$("#leftmenue").mouseleave(function()
	{
		$('.power_generation').slideUp('slow');
		$('.lng_lpg').slideUp('slow');		
	});
	
	$(".us_visa, .dubai_visa, .quantas, .kenya_airways, .united, .tra_ser, .a_e_trs, .s_holidays, .I_rec").hover(function()
	{
		$('.power_generation').slideUp('slow');
		$('.lng_lpg').slideUp('slow');		
	});	

	$(".power_generation").click(function()
	{
		common('power_generation.php');
	});	
	
	$(".lng_lpg").click(function()
	{
		common('lng_lpg.php');			   				
	});
	
	$(".power_generation_main").click(function()
	{
		common('power_generation.php');
	});	
	
	$(".lng_lpg_main").click(function()
	{
		common('lng_lpg.php');			   				
	});
	
	$(".home").click(function()
	{
		window.location = "index.php";				   				
	});
	
	$(".UnifiedPowerLtd").click(function()
	{
		common('unifiedPowerLtd.php');	
	});	
	
	$(".SaimonCentre").click(function()
	{
		common('saimonCentre.php');	
	});
	
	$(".chairmanMess").click(function()
	{
		common('message.php');
	});	
	
	$(".management").click(function()
	{	
		common('saimon_centre.php');
	});	
	
	$(".affiliation").click(function()
	{
		common('affiliation.php');
	});	
	
	$(".our_clients").click(function()
	{				   	
		common('clients.php');
	});	
	
	$(".csr").click(function()
	{				   	
		common('saimon_centre.php');
	});	
	
	$(".videos").click(function()
	{				   	
		common('videos.php');
	});	
	
	$(".gallery").click(function()
	{				   	
		common('gallery.php');
	});	
	
	$(".career").click(function()
	{
		common('careers.php');
	});	
	
	$(".great_eastern").click(function()
	{
		common('greatEastern.php');
	});
	
	$(".construction").click(function()
	{
		common('ok_builders.php');
	});
});	



