                // Getting all ads
                function getAllAds2(){
                        var arr2 = new Array();

                        // All those pictures are in the same folder as this script
                        arr2[0] = new Array("<a href=http://oms.reosource.com/agents_products_f.htm><img src=http://www.reosource.com/images/agt_banner_1.gif border=1></a>");
				 arr2[1] = new Array("<a href=http://oms.reosource.com/agents_products_f.htm><img src=http://www.reosource.com/images/agt_banner_2.jpg border=1></a>");
		//arr2[2] = new Array("<a href=http://www.sourceoneservices.com?src=reosource><img src=http://www.reosource.com/images/out_ad_1.gif width=468 height=60 border=1></a>");
	
//arr2[0] = new Array("<a href=/cgi-bin/fl_ad.pl><img src=http://www.reosource.com/images/Flagstar_Banner_Side_A.jpg border=1></a>");
//                               arr2[1] = new Array("<a href=/cgi-bin/fl_ad.pl><img src=http://www.reosource.com/images/Flagstar_Banner_Side_A.jpg border=1></a>");
//                 arr2[2] = new Array("<a href=/cgi-bin/fl_ad.pl><img src=http://www.reosource.com/images/Flagstar_Banner_Side_B.jpg border=1></a>");
//      arr2[3] = new Array("<a href=/cgi-bin/fl_ad.pl><img src=http://www.reosource.com/images/Flagstar_Banner_Side_B.jpg width=468 height=60 border=1></a>");

	   	return arr2;
                }

                function getAllAds(){
                        var arr = new Array();

                        // All those pictures are in the same folder as this script

			 arr[0] = new Array("<a href=http://oms.reosource.com/agents_products_f.htm><img src=http://www.reosource.com/images/agt_sky_1.jpg border=1></a>");
                                 arr[1] = new Array("<a href=http://oms.reosource.com/agents_products_f.htm><img src=http://www.reosource.com/images/agt_sky_2.jpg border=1></a>");

                        return arr;
                }

                // Getting a random number
                function getRandomNumber(maxVal){
                        var ran_unrounded = Math.random()*maxVal;
                        var num = Math.round(ran_unrounded);
                        return num;
                }
                
                // Rotating Ads
                function rotate(){
			var arr2 = new Array();
			arr2 = getAllAds2();
                        var randomAdIndex2 = getRandomNumber(arr2.length-1);
                        document.getElementById("ad2").innerHTML = arr2[randomAdIndex2];
	
                        var arr = new Array();
                        arr = getAllAds();
                        var randomAdIndex = getRandomNumber(arr.length-1); 
			document.getElementById("ad").innerHTML = arr[randomAdIndex];
			//setTimeout("rotate()", 1);
                }
        

                // Delaying rotations

