
var arHomeSubNav = [];
var arAboutSubNav = [{url:"retained_adv.html",text:"ADVANTAGES"},{url:"results.html",text:"RESULTS"},{url:"promise.html",text:"PROMISE"},{url:"experience.html",text:"EXPERIENCE"}];
var arRecruitSubNav = [{url:"research.html",text:"RESEARCH"},{url:"internet.html",text:"WEB SERVICES"}];
var arOnSiteSubNav = [];
//var arEmploymentSubNav = [{url:"pos_post.html",text:"CURRENT CLIENT OPENINGS"},{url:"onsite_openings.html",text:"ON-SITE HR OPENINGS"}];
var arProgramsSubNav = [{url:"rr_programs.html",text:"RETAINED RECRUITMENT"},{url:"customized_programs.html",text:"CUSTOMIZED PROGRAMS"}];
var arContactSubNav = [];

var arMainNavLinks = [{id:"navHome",url:"rta.html"},{id:"navAbout",url:"retained_adv.html"},{id:"navRecruit",url:"recruit.html"},{id:"navHR",url:"onsite.html"},{id:"navPrograms",url:"programs.html"},{id:"navContact",url:"contact.html"}]; //?employment


var emailLink = "mailto:contact@rta-inc.com"; /* href*/
var siteMapLink = "sitemap.html";
var rssLink = "http://moss07.shrm.org/about/Pages/rss.aspx";
var facebookLink = "";
var linkedLink = "http://www.linkedin.com/company/402013";

$(document).ready(function() {

	var tempSubNav;
	var tempNav;

	var oCurrentPage = oPageInfo;

	/* navMap navRSS navFB navLinked navEmail */

	$("#navMap").click(function() { window.location.href = siteMapLink});
	$("#navRSS").click(function() { window.location.href = rssLink});
	$("#navLinked").click(function() { window.location.href = linkedLink});

	$.each(oCurrentPage["subNav"],function(index,value){
		tempSubNav = $("#navSub" + (index+1));
		tempSubNav.text(value['text']);
		tempSubNav.click(function() {window.location.href = value['url'];return false;  });
	});

	$.each(arMainNavLinks,function(index,value){
	
		tempNav = $("#" + value['id']);
		tempNav.click(function() { window.location.href = value['url']});
	});
  // $("#navHome").click(function() { });


	$("#menu img[id]").hover(
		 function(){this.src = this.src.replace("D.","M.");},
		 function(){this.src = this.src.replace("M.","D.");}
	);
 });





