var find_home = {
    "http://www.ajchomefinder.com/new-homes/": "New Homes",
    "http://www.ajchomefinder.com/atlanta-rentals/": "Rentals",
    "http://www.ajchomefinder.com/apartments/": "Apartment Communities",
    "http://www.ajchomefinder.com/second-homes/": "Second Homes",
    "http://www.ajchomefinder.com/georgia-foreclosures/": "Foreclosures",
    "http://www.ajchomefinder.com/atlanta-home-auctions/": "Auctions",
    "http://www.ajchomefinder.com/active-adult/": "Active Adult Communities",
    "http://www.ajchomefinder.com/atlanta-senior-living": "Senior Living"
};

var quick_links = {
    "http://www.cityfeet.com/ajc/": "Commercial Listings",
    "http://homes.ajchomefinder.com/for-sale/GA-USA/GOLF-COURSE-commfeat/Price_Sales,1-ns": "Golf Course",
    "http://homes.ajchomefinder.com/for-sale/GA-USA/FIXER-UPPERS-limitsearchto/0-999999999-price/Price_Sales,1-ns": "Fixer-Uppers",
    "http://homes.ajchomefinder.com/for-sale/GA-USA/RIVER-lotfeat/0-999999999-price/Price_Sales,1-ns": "River Views",
    "http://homes.ajchomefinder.com/for-sale/Atlanta-GA-USA/RIVER-lotfeat/0-999999999-price/Price_Sales,1-ns": "Mountain Views",
    "http://homes.ajchomefinder.com/for-sale/GA-USA/OPEN-HOUSE-limitsearchto/0-999999999-price/Price_Sales,1-ns": "Open House Listings"
};

var research_tools = {
    "http://www.ajchomefinder.com/mortgage-center/":"Mortgage Rates",
    "http://schools.ajchomefinder.com/":"School Guide",
    "http://neighborhoods.ajchomefinder.com/atlanta-neighborhoods":"Neighborhoods",
    "http://homesales.ajchomefinder.com/homesales/":"Home Values",
    "http://projects.ajchomefinder.com/atlanta-home-sales-report/":"Home Sales Report",
    "http://homes.ajchomefinder.com/realtors/":"Featured Agents",
 "http://www.kudzu.com/controller.jsp?N=0&searchVal=home%20services&currentLocation=Atlanta%2C%20GA%2030303&searchType=keyword&Ns=P_PremiumPlacement":"Home Services",
  "http://entertainment.accessatlanta.com/search?acat=&new=n&sort=0&srad=60&srss=10&ssrss=5&st=event&svt=text&swhat=&swhen=&swhere=Atlanta%2CGA&trim=1&x=62&y=16&cat=23":"Events Calendar",

    "http://partners.uslegalforms.com/partners/ajc/":"Real Estate Forms"
};

var lifestyle = {
   		    "http://www.ajchomefinder.com/private-quarters/":"Private Quarters",
			    "http://www.ajchomefinder.com/home-decor/":"Home Decor",
			    "http://www.ajchomefinder.com/gardening/":"Gardening",	
			    "http://www.ajchomefinder.com/active-adult/":"Active Adult Living",
			    "http://www.ajchomefinder.com/atlanta-senior-living/":"Senior Living",
			    "http://www.ajchomefinder.com/second-homes/":"Second Homes"
};

var site_wide = {
   		    "http://www.accessatlanta.com/":"AccessAtlanta.com",
			    "http://www.eveningedge.com":"EveningEdge.com",
			    "http://www.ajcjobs.com":"ajcJobs.com",
			    "http://www.ajccars.com/":"ajcCars.com",
			    "http://www.ajcexchange.com/":"ajcExchange.com"
};

var right_rail_link = new Array();
var right_rail_text = new Array();
var right_rail_p = new Array();

right_rail_link[0] = "http://projects.ajchomefinder.com/atlanta-home-sales-report/"
right_rail_text[0] = "Atlanta Home Sales Report"
right_rail_p[0] = "Home sales trends by ZIP code for the past five years"

right_rail_link[1] = "http://homesales.ajchomefinder.com/homesales/homesales_quicksearch/"
right_rail_text[1] = "Atlanta Home Values"
right_rail_p[1] = "Recent home sales by address or subdivision"

right_rail_link[2] = "http://www.ajchomefinder.com/neighborhoods/"
right_rail_text[2] = "Atlanta Neighborhood Guide"
right_rail_p[2] = "Research demographic, school, and lifestyle information for 130+ Atlanta area neighborhoods"

right_rail_link[3] = "http://schools.ajchomefinder.com/"
right_rail_text[3] = "Atlanta School Guide"
right_rail_p[3] = "Complete guide to public and private schools in Georgia"

right_rail_link[4] = "http://www.ajchomefinder.com/mortgage_center/"
right_rail_text[4] = "Atlanta Mortgage Rates"
right_rail_p[4] = "Current Atlanta area mortgage rates, calculators and tips"

right_rail_link[5] = "http://homes.ajchomefinder.com/realtors/"
right_rail_text[5] = "Atlanta - Featured Agents"
right_rail_p[5] = "Directory of Featured Atlanta real estate agents"

right_rail_link[6] = "http://alt.coxnewsweb.com/ajc/ajchomefinder/homefinder-v2/pdf/frbo_guide.pdf"
right_rail_text[6] = "Atlanta Landlord's Guide"
right_rail_p[6] = "A how-to guide (pdf) to setting the right rental rate and more "

right_rail_link[7] = "http://alt.coxnewsweb.com/ajc/ajchomefinder/homefinder-v2/pdf/fsbo_guide.pdf"
right_rail_text[7] = "Atlanta Seller's Guide"
right_rail_p[7] = "A complete guide (pdf) to the For Sale by Owner process"

right_rail_link[8] = "http://partners.uslegalforms.com/partners/ajc/"
right_rail_text[8] = "Georgia Real Estate Forms"
right_rail_p[8] = "Legal forms to help you sell or rent your home "

right_rail_link[9] = "http://www.cityfeet.com/ajc/"
right_rail_text[9] = "Atlanta Commercial Real Estate"
right_rail_p[9] = "Listings for retail and office space in Atlanta "

right_rail_link[10] =  "http://www.kudzu.com/controller.jsp?N=0&searchVal=home%20services&currentLocation=Atlanta%2C%20GA%2030303&searchType=keyword&Ns=P_PremiumPlacement"
right_rail_text[10] = "Atlanta Home Services"
right_rail_p[10] = "Reviews of home service professionals, by Kudzu.com"

right_rail_link[11] = "http://www.accessatlanta.com/event/events2/etc/userAdvanceSearchResult.jspd?longitude=&latitude=&eventOccurCheck=dates&eventOccurdates=-1&timeOfDay=-1&categories=3627&sortBy=&searchText=&addressZip=&distanceCheck=true&venues=-1&searchType=Advanced&currentBlock=1&currentPage=1&sortColumn=nhbd_dist&sortOrder=ASC"
right_rail_text[11] = "Atlanta Real Estate Events Calendar"
right_rail_p[11] = "Listings of real estate events taking place in metro Atlanta."

right_rail_link[12] = "http://www.ajchomefinder.com/atlanta-senior-living/"
right_rail_text[12] = "Atlanta Senior Living"
right_rail_p[12] = "Listings and advice for Atlanta senior housing and senior care options."
	
	




function insert_drop_down(headlines,placement,classs) {
    var notdefined;
    if(headlines == notdefined) {
        return false;
    }
    try {
       area = document.getElementById(placement);
       content = "\n";
       for(url in headlines) {
            headline = headlines[url];
            content = content + '<li class='+classs+'><a href="' + url + '">' + headline + '</a></li>\n';            
       }
       area.innerHTML = area.innerHTML + content;
    }
    catch(e) {
        //pass
        return false;
    }
}


function create_right_rail() {
	right_content = "\n";
	
	for (i=0;i<right_rail_p.length;i++)
	right_content = right_content + '<a href="' + right_rail_link[i] + '" class="homefinder-tool-label">' + right_rail_text[i] + '</a><p class="homefinder-tool-desc">'+ right_rail_p[i] +'</p>\n'; 
	
	document.getElementById("right_rail").innerHTML = right_content; 
}
