/// Switch Between Image And Flash In The Homepage.
function changeMainBanner(id)
{
	
	if ( id == "1" )
	{	
		$("#"+firstBMClientID).css('background','url("' + firstBMOnPath + '") no-repeat scroll top');
		$("#"+secondBMClientID).css('background','url("' + secondBMOffPath + '") no-repeat scroll top');
		$("#"+thirdBMClientID).css('background','url("' + thirdBMOffPath + '") no-repeat scroll top');
		$("#"+firstBMClientID).attr('disabled', 'disabled');
		$("#"+secondBMClientID).attr('disabled', 'disabled');
		$("#"+thirdBMClientID).attr('disabled', 'disabled');
		$("#container3").fadeOut("slow",function (){
			
			$("#container2").fadeOut("slow",function (){
				$("#container1").fadeIn("slow", function (){					
					$("#"+firstBMClientID).removeAttr('disabled');
					$("#"+secondBMClientID).removeAttr('disabled');
					$("#"+thirdBMClientID).removeAttr('disabled');
				});
			});
		});
		
	}
	else if ( id == "2" )
	{
		$("#"+secondBMClientID).css('background','url("' + secondBMOnPath + '") no-repeat scroll top');
		$("#"+firstBMClientID).css('background','url("' + firstBMOffPath + '") no-repeat scroll top');
		$("#"+thirdBMClientID).css('background','url("' + thirdBMOffPath + '") no-repeat scroll top');
		$("#"+firstBMClientID).attr('disabled', 'disabled');
		$("#"+secondBMClientID).attr('disabled', 'disabled');
		$("#"+thirdBMClientID).attr('disabled', 'disabled');
		$("#container1").fadeOut("slow",function (){
			$("#container3").fadeOut("slow",function (){
				$("#container2").fadeIn("slow",function () {
					$("#"+firstBMClientID).removeAttr('disabled');
					$("#"+secondBMClientID).removeAttr('disabled');
					$("#"+thirdBMClientID).removeAttr('disabled');
				});
			});
		});		
	}
	else
	{
		$("#"+thirdBMClientID).css('background','url("' + thirdBMOnPath + '") no-repeat scroll top');
		$("#"+secondBMClientID).css('background','url("' + secondBMOffPath + '") no-repeat scroll top');
		$("#"+firstBMClientID).css('background','url("' + firstBMOffPath + '") no-repeat scroll top');
		$("#"+firstBMClientID).attr('disabled', 'disabled');
		$("#"+secondBMClientID).attr('disabled', 'disabled');
		$("#"+thirdBMClientID).attr('disabled', 'disabled');
		$("#container1").fadeOut("slow",function (){
			$("#container2").fadeOut("slow",function (){
				$("#container3").fadeIn("slow",function (){
					$("#"+firstBMClientID).removeAttr('disabled');
					$("#"+secondBMClientID).removeAttr('disabled');
					$("#"+thirdBMClientID).removeAttr('disabled');
				});
			});
		});
	}
}
