
	//Get User Screen resolution
	var userScreenWidth = screen.width;
	var userScreenHeight = screen.height;
		
	//====================================================================
	//This code is to display the rotating banner on the default page
	//====================================================================
	var fidBannerArray = new Array();
	var myCount=0;
	
	//===================================================
	//Initialize the Array with href and image source
	//===================================================
	//=======================================================================
	//Set the sizxe of the image according to the user screen resolution
	//=======================================================================
	if (userScreenWidth <= 800)
	{
		fidBannerArray[0] = "<A HREF='http://www.fiducial.com/promo/mortgage1.htm\' target='_blank'><IMG SRC=\"/Images/Banners/superbanner-mortgage_Small.jpg\" border=\"0\" width=\"400\" height=\"80\"></A>";
		fidBannerArray[1] = "<A HREF='http://www.fiducial.com/our_services/tax_services\' target='_blank'><IMG SRC=\"/Images/Banners/tax_services_small.jpg\" border=\"0\" width=\"400\" height=\"80\"></A>";
		fidBannerArray[2] = "<A HREF='http://www.fiducial.com/network/franchise\" target='_blank'><IMG SRC=\"/Images/Banners/superbanner-Franchise-op-sm.jpg\" border=\"0\" width=\"400\" height=\"80\"></A>";
	}
	else
	{
		fidBannerArray[0] = "<A HREF='http://www.fiducial.com/promo/mortgage1.htm\' target='_blank'><IMG SRC=\"/Images/Banners/superbanner-mortgage_Large.jpg\" border=\"0\" width=\"590\" height=\"100\"></A>";
		fidBannerArray[1] = "<A HREF='http://www.fiducial.com/our_services/tax_services\' target='_blank'><IMG SRC=\"/Images/Banners/tax_services_Large.jpg\" border=\"0\" width=\"590\" height=\"100\"></A>";
		fidBannerArray[2] = "<A HREF='http://www.fiducial.com/network/franchise\' target='_blank'><IMG SRC=\"/Images/Banners/superbanner-Franchise-op.jpg\" border=\"0\" width=\"590\" height=\"100\"></A>";
	}

	//========================================================
	//Call function to rotate the images on the web page
	//========================================================
	bannerRotate();


	//=======================================================================================================
	//Function bannerRotate()
	//This function is the core of this script. The functionality of the function is to rotate the images
	//=======================================================================================================
	function bannerRotate() 
	{
		if(myCount > fidBannerArray.length-1)
		{
			myCount=0;
		}

		// Write out rotation
			if (document.all)		// it is IE
			{			
				document.all.l3.innerHTML=fidBannerArray[myCount];
			}

			else if (document.layers)		// it is NN
			{	
				document.layers.l1.document.layers.l2.document.open();
				document.layers.l1.document.layers.l2.document.write(fidBannerArray[myCount]);
				document.layers.l1.document.layers.l2.document.close();
			}
			else		//for other browsers
			{
				document.all.l3.innerHTML=fidBannerArray[myCount];
			}
			
		setTimeout("bannerRotate()", 9000);
		myCount++;
	}

