//Menu system

//Primary navigation
function loadPrimaryNavigation(){
var html = "";

html += '<table border="0" cellspacing="0" cellpadding="0" width="775">';
html += '<tr>';
html += '<td id="tab1"><img src="images/spacer.gif" height="1" width="1"></td>';

if(onState == "home"){
html += '<td id="tab2" width="65" style="border-right: #000000 1px solid">&nbsp;</td>';
}else
html += '<td id="tab2" width="65" class="primary_nav_off" style="border-left: #000000 1px solid" onMouseOver="this.className=\'primary_nav_on\'" onMouseOut="this.className=\'primary_nav_off\'" onClick="document.location=\'/index.php\'">HOME</td>';

if(onState == "relocation"){
html += '<td id="tab3" width="165" class="primary_nav_active">RELOCATION SOLUTIONS</td>';
}else
html += '<td id="tab3" width="165" class="primary_nav_off" onMouseOver="if (isMac){	y_axis_offset = 0;	x_axis_offset = -4; }; if (isMac && ieBrowser){	y_axis_offset = 15;	x_axis_offset = 6; }; if (isMac && isNetscape){	y_axis_offset = -1;	x_axis_offset = -5; }; showMenu(0,-5,\'relocation\'); this.className=\'primary_nav_on\'" onMouseOut="hideMenu(); this.className=\'primary_nav_off\'" onClick="document.location=\'/corp_services.php\'">RELOCATION SOLUTIONS</td>';

if(onState == "storage"){
html += '<td id="tab4" width="145" class="primary_nav_active">STORAGE SOLUTIONS</td>';
}else
html += '<td id="tab4" width="145" class="primary_nav_off" onMouseOver="this.className=\'primary_nav_on\'" onMouseOut="this.className=\'primary_nav_off\'" onClick="document.location=\'/storage_solutions.php\'">STORAGE SOLUTIONS</td>';

if(onState == "company"){
html += '<td id="tab5" width="110" class="primary_nav_active">OUR COMPANY</td>';
}else
html += '<td id="tab5" width="110" class="primary_nav_off" onMouseOver="if (isMac){	y_axis_offset = 0;	x_axis_offset = -2; }; if (isMac && ieBrowser){	y_axis_offset = 15;	x_axis_offset = 8; };if (isMac && isNetscape){	y_axis_offset = -1;	x_axis_offset = -3; }; showMenu(0,-5,\'company\');this.className=\'primary_nav_on\'" onMouseOut="hideMenu(); this.className=\'primary_nav_off\'" onClick="document.location=\'/our_company.php\'">OUR COMPANY</td>';

if(onState == "resources"){
html += '<td id="tab6" width="90" class="primary_nav_active">RESOURCES</td>';
}else
html += '<td id="tab6" width="90" class="primary_nav_off" onMouseOver="this.className=\'primary_nav_on\'" onMouseOut="this.className=\'primary_nav_off\'" onClick="document.location=\'/resources.php\'">RESOURCES</td>';

html += '<td width="60" class="primary_nav_off" onMouseOver="this.className=\'primary_nav_on\'" onMouseOut="this.className=\'primary_nav_off\'" onClick="document.location=\'/blog/\'">BLOG</td>'

if(onState == "contact"){
html += '<td id="tab7" width="95" class="primary_nav_active" style="border-right: 0">CONTACT US</td>';
}else
html += '<td id="tab7" width="95" class="primary_nav_off" style="border-right: 0" onMouseOver="this.className=\'primary_nav_on\'" onMouseOut="this.className=\'primary_nav_off\'" onClick="document.location=\'/contact_us.php\'">CONTACT US</td>';

html += '</tr>';
html += '</table>';

document.write(html);
}

//Primary navigation support
function loadPrimaryNavSupport(){
var html = "";

html += '<table border="0" cellspacing="0" cellpadding="0" width="775">';
html += '<tr>';
html += '<td><img src="images/spacer.gif" height="1" width="1"></td>';
html += '<td width="66"><img src="images/spacer.gif" height="1" width="1"></td>';
html += '<td width="166" align="left"><img src="images/spacer.gif" height="1" width="1" id="relocation"></td>';
html += '<td width="146"><img src="images/spacer.gif" height="1" width="1"></td>';
html += '<td width="111" align="left"><img src="images/spacer.gif" height="1" width="1" id="company"></td>';
html += '<td width="91" align="left"><img src="images/spacer.gif" height="1" width="1" id="resources"></td>';
html += '<td width="96" align="left"><img src="images/spacer.gif" height="1" width="1" id="contact"></td>';
html += '</tr>';
html += '</table>';

document.write(html);
}

//Drop down menus
function loadDropdownNavigation(){
var html = "";

//Moving dropdown
html += '<div id="dm_relocation" onMouseOver="showMenu(0,-5,\'relocation\'); if(onState == \'relocation\'){ document.getElementById(\'tab3\').className=\'primary_nav_active\';} else document.getElementById(\'tab3\').className=\'primary_nav_on\';" onMouseOut="hideMenu(); active_tab()" style="width: 190px; z-index: 2">';
html += '<table width="100%" border="0" cellpadding="0" cellspacing="0">';
html += '<tr><td><img src="images/spacer.gif" height="5" width="2"></td></tr>';
html += '<tr><td class="dropmenu_off" onMouseOver="this.className=\'dropmenu_on\'" onMouseOut="this.className=\'dropmenu_off\'" onClick="document.location=\'/corp_services.php\'">Corporate Relocation Services</td></tr>';
html += '<tr><td class="dropmenu_off" onMouseOver="this.className=\'dropmenu_on\'" onMouseOut="this.className=\'dropmenu_off\'" onClick="document.location=\'/person_solutions.php\'">Personal Relocation Solutions</td></tr>';
html += '</table>';
html += '</div>';

html += '<div id="dm_relocation_bg" style="background-color: #FFFFFF; filter:alpha(opacity=90); -moz-opacity:.9; opacity:.9; width: 190px; height: 42px; margin-top: 5px; z-index: 1;">';
html += '</div>';

//Company dropdown
html += '<div id="dm_company" onMouseOver="showMenu(0,-5,\'company\'); if(onState == \'company\'){ document.getElementById(\'tab5\').className=\'primary_nav_active\';} else document.getElementById(\'tab5\').className=\'primary_nav_on\';" onMouseOut="hideMenu(); active_tab()" style="width: 170px; z-index: 2">';
html += '<table width="100%" border="0" cellpadding="0" cellspacing="0">';
html += '<tr><td><img src="images/spacer.gif" height="5" width="2"></td></tr>';
html += '<tr><td class="dropmenu_off" onMouseOver="this.className=\'dropmenu_on\'" onMouseOut="this.className=\'dropmenu_off\'" onClick="document.location=\'/our_company.php\'">Overview</td></tr>';
html += '<tr><td class="dropmenu_off" onMouseOver="this.className=\'dropmenu_on\'" onMouseOut="this.className=\'dropmenu_off\'" onClick="document.location=\'/man_team.php\'">Management Team</td></tr>';
html += '<tr><td class="dropmenu_off" onMouseOver="this.className=\'dropmenu_on\'" onMouseOut="this.className=\'dropmenu_off\'" onClick="document.location=\'/our_edge.php\'">Our Edge</td></tr>';
html += '<tr><td class="dropmenu_off" onMouseOver="this.className=\'dropmenu_on\'" onMouseOut="this.className=\'dropmenu_off\'" onClick="document.location=\'/memberships.php\'">Association Memberships</td></tr>';
html += '</table>';
html += '</div>';

html += '<div id="dm_company_bg" style="background-color: #FFFFFF; filter:alpha(opacity=90); -moz-opacity:.9; opacity:.9; width: 170px; height: 83px; margin-top: 5px; z-index: 1;">';
html += '</div>';

document.write(html);
mac_nav_fix();
}

//Footer navigation
function loadFooterNavigation(){
var html = "";

html += '<p class="secondary_nav">';
html += '<a href="/index.php">Home</a> | ';

if(onState == "relocation"){
html += '<span class="secondary_nav_active">Relocation Solutions</span> | ';
}else
html += '<a href="/person_solutions.php">Relocation Solutions</a> | ';

if(onState == "company"){
html += '<span class="secondary_nav_active">Our Company</span> | ';
}else
html += '<a href="/our_company.php">Our Company</a> | ';

if(onState == "storage"){
html += '<span class="secondary_nav_active">Storage Solutions</span> | ';
}else
html += '<a href="/our_company.php">Storage Solutions</a> | ';

if(onState == "resources"){
html += '<span class="secondary_nav_active">Resources</span> | ';
}else
html += '<a href="/resources.php">Resources</a> | ';

if(onState == "contact"){
html += '<span class="secondary_nav_active">Contact Us</span>';
}else
html += '<a href="/contact_us.php">Contact Us</a>';

html += '</p>';

document.write(html);
mac_nav_fix();
}