// Config.js

// Sets up site location for rotating image banners & Flash banners
// Sets up top & side menus

//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
sitename = 'http://www.losspreventionfoundation.org';

//secure site
secure_sitename = 'http://www.losspreventionfoundation.org';
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

// detect if user is in Members section 
// (will need to adjust menu paths accordingly
var extraPath = "";
if(location.href.indexOf("members/") > -1){
	extraPath = "../";
}


//*******************************************************
// top menu
function WriteTopMenu(ShowHome)
{
	document.write ('<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" height="32">');
	document.write ('<tr>');
	document.write ('<td width="100%" background="images/hbar_back.gif">');
	
	//ShowHome determines whether we show "Home" link or not (i.e. won't be shown on home page)
	if (ShowHome==1) {
		//show Home link
		document.write ('<b><a href="' + extraPath + './" style="color:white;">Home</a></b> | ');
	}
	document.write ('<b><a href="' + extraPath + 'default.asp" style="color:white;">Home</a></b>');
	document.write (' | <b><a href="' + extraPath + 'about_us.html" style="color:white;" onMouseover="dropdownmenu(this, event, menu1, \'175px\');" onMouseout="delayhidemenu();">About Us</a></b> ');
	document.write (' | <b><a href="' + extraPath + 'certification.html" style="color:white;" onMouseover="dropdownmenu(this, event, menu2, \'200px\');" onMouseout="delayhidemenu();">LPF Certifications</a></b>');
	document.write (' | <b><a href="' + extraPath + 'certification.html" style="color:white;" onMouseover="dropdownmenu(this, event, menu7, \'200px\');" onMouseout="delayhidemenu();">LPQ</a></b>');
	document.write (' | <b><a href="' + extraPath + 'certification.html" style="color:white;" onMouseover="dropdownmenu(this, event, menu8, \'200px\');" onMouseout="delayhidemenu();">LPC</a></b>');
	document.write (' | <b><a href="' + extraPath + 'membership.html" style="color:white;" onMouseover="dropdownmenu(this, event, menu3, \'150px\');" onMouseout="delayhidemenu();">LPF Membership</a></b>');
	document.write (' | <b><a href="' + extraPath + 'committees.html" style="color:white;" onMouseover="dropdownmenu(this, event, menu4, \'200px\');" onMouseout="delayhidemenu();">Committees</a></b>');
	document.write (' | <b><a href="' + extraPath + 'Press.html" style="color:white;" onMouseover="dropdownmenu(this, event, menu5, \'200px\');" onMouseout="delayhidemenu();">News & Events</a></b>');
	document.write (' | <b><a href="' + extraPath + 'resources.html" style="color:white;" onMouseover="dropdownmenu(this, event, menu6, \'200px\');" onMouseout="delayhidemenu();">Resources</a></b>');
	document.write (' | <b><a href="' + extraPath + 'contact_us.html" style="color:white;" onMouseover="dropdownmenu(this, event, menu9, \'125px\');" onMouseout="delayhidemenu();">Contact Us</a></b>');
	document.write ('</td>');
	document.write ('</tr>');
	document.write ('</table>');
}	

//*******************************************************
// side menu
function WriteSideMenu()
{
	document.write ('<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" class="p">');
//document.write ('	<td height="19"> <img border="0" src="' + extraPath + 'images/bullet1.gif" width="10" height="10"></td>');
//*******************************************************
//	document.write ('<tr>');
//	document.write ('<td>&nbsp;</td>');
//	document.write ('</tr>');
//*******************************************************
	document.write ('<tr>');
	document.write ('	<td height="19">&nbsp;&nbsp;&nbsp;</td>');
	document.write ('	<td height="19"><font color="#203596">&#8226;</font></td>');
   	document.write ('	<td height="19"><a href="' + extraPath + 'certification.html" class="sideMenuLink">LPF Certifications</a></td>');
	document.write ('</tr>');
//*******************************************************
	document.write ('<tr>');	
	document.write ('	<td height="19">&nbsp;&nbsp;&nbsp;</td>');
	document.write ('	<td height="19"><font color="#203596">&#8226;</font></td>');
	document.write ('	<td height="19"><a href="' + extraPath + 'news_LPFpress.html" class="sideMenuLink">Recent News</a></td>');
	document.write ('</tr>');
//*******************************************************
	document.write ('<tr>');	
	document.write ('	<td height="19">&nbsp;&nbsp;&nbsp;</td>');
	document.write ('	<td height="19"><font color="#203596">&#8226;</font></td>');
	document.write ('	<td height="19"><a href="' + extraPath + 'aboutus_foundationprtnrs.html" class="sideMenuLink">Foundation Partners</a></td>');
	document.write ('</tr>');
//*******************************************************
	document.write ('<tr>');
	document.write ('	<td height="19">&nbsp;&nbsp;&nbsp;</td>');
	document.write ('	<td height="19"><font color="#203596">&#8226;</font></td>');
	document.write ('	<td height="19"><a href="' + extraPath + 'aboutus_associationprtnrs.html" class="sideMenuLink">Association Partners</a></td>');
	document.write ('</tr>');
//*******************************************************
	document.write ('<tr>');
	document.write ('	<td height="19">&nbsp;&nbsp;&nbsp;</td>');
	document.write ('	<td height="19"><font color="#203596">&#8226;</font></td>');
	document.write ('	<td height="19"><a href="' + extraPath + 'aboutus_academicprtnrs.html" class="sideMenuLink">Academic Partners</a></td>');
	document.write ('</tr>');
//*******************************************************
	document.write ('<tr>');
	document.write ('	<td height="19">&nbsp;&nbsp;&nbsp;</td>');
	document.write ('	<td height="19"><font color="#203596">&#8226;</font></td>');
	document.write ('	<td height="19"><a href="' + extraPath + 'academic_index.html" class="sideMenuLink">Academic/Retail Program</a></td>');
	document.write ('</tr>');
//*******************************************************
	document.write ('<tr>');
	document.write ('	<td height="19">&nbsp;&nbsp;&nbsp;</td>');
	document.write ('	<td height="19"><font color="#203596">&#8226;</font></td>');
	document.write ('	<td height="19"><a href="' + extraPath + 'cert_testimonials.html" class="sideMenuLink">LPQ Testimonials</a></td>');
	document.write ('</tr>');
//*******************************************************
	document.write ('<tr>');
	document.write ('	<td height="19">&nbsp;&nbsp;&nbsp;</td>');
	document.write ('	<td height="19"><font color="#203596">&#8226;</font></td>');
	document.write ('	<td height="19"><a href="' + extraPath + 'LPC_testimonials.html" class="sideMenuLink">LPC Testimonials</a></td>');
	document.write ('</tr>');
//*******************************************************
	document.write ('<tr>');
	document.write ('	<td height="19">&nbsp;&nbsp;&nbsp;</td>');
	document.write ('	<td height="19"><font color="#203596">&#8226;</font></td>');
	document.write ('	<td height="19"><a href="' + extraPath + 'scholarships.html" class="sideMenuLink">Scholarships</a></td>');
	document.write ('</tr>');
//*******************************************************
	document.write ('<tr>');	
	document.write ('	<td height="19">&nbsp;&nbsp;&nbsp;</td>');
	document.write ('	<td height="19"><font color="#203596">&#8226;</font></td>');		
	document.write ('	<td width="92%" height="19"><a href="' + extraPath + 'news_RetailEventFocus.html" class="sideMenuLink">Industry Events </a></td>');
	document.write ('</tr>');
//*******************************************************	
	document.write ('<tr>');
	document.write ('	<td height="19">&nbsp;&nbsp;&nbsp;</td>');
	document.write ('	<td height="19"><font color="#203596">&#8226;</font></td>');
	document.write ('	<td height="19"><a href="' + extraPath + 'promotions_career_moves.asp" class="sideMenuLink">Promotions & Career Moves</a></td>');
	document.write ('</tr>');	
//*******************************************************
	document.write ('<tr>');
	document.write ('	<td height="19">&nbsp;&nbsp;&nbsp;</td>');
	document.write ('	<td height="19"><font color="#203596">&#8226;</font></td>');
   	document.write ('	<td height="19"><a href="' + extraPath + 'faq.html" class="sideMenuLink">Frequently Asked Questions</a></td>');
	document.write ('</tr>');
//*******************************************************
	document.write ('<tr>');
	document.write ('	<td height="19">&nbsp;&nbsp;&nbsp;</td>');
	document.write ('	<td height="19"><font color="#203596">&#8226;</font></td>');
   	document.write ('	<td height="19"><a href="' + extraPath + 'Canada_cert.html" class="sideMenuLink">Canadian Certification</a></td>');
	document.write ('</tr>');
//*******************************************************
	document.write ('<tr>');
	document.write ('	<td height="19">&nbsp;&nbsp;&nbsp;</td>');
	document.write ('	<td height="19"><font color="#203596">&#8226;</font></td>');
   	document.write ('	<td height="19"><a href="' + extraPath + 'military_index.html" class="sideMenuLink">&quot;Hire A Vet&quot; Program</a></td>');
	document.write ('</tr>');
//*******************************************************
	document.write ('<tr>');
	document.write ('	<td height="19">&nbsp;&nbsp;&nbsp;</td>');
	document.write ('	<td height="19"><font color="#203596">&#8226;</font></td>');
   	document.write ('	<td height="19"><a href="' + extraPath + 'student_center.html" class="sideMenuLink">Student Resources</a></td>');
	document.write ('</tr>');
//*******************************************************
// Add Extra Space to get below blue background of subnav div tag
	document.write ('<tr>');
	document.write ('	<td height="60">&nbsp;</td>');	
	document.write ('	<td height="60">&nbsp;</td>');
   	document.write ('	<td height="60">&nbsp;</td>');
	document.write ('</tr>');
//*******************************************************
// BEGIN Events Calendar Icon
	document.write ('<tr >');
   	document.write ('	<td colspan="3" align="center"><a href="news_RetailIndustryCalendar.html" target="_blank"><img src="http://www.losspreventionfoundation.org/images/buttons/events_icon.jpg" width="120" height="121" border="0" alt="Events Calendar" ></a></td>');
	document.write ('</tr>');
//*******************************************************
// Add Extra Space to get below blue background of subnav div tag
	document.write ('<tr>');
	document.write ('	<td height="15">&nbsp;</td>');	
	document.write ('	<td height="15">&nbsp;</td>');
   	document.write ('	<td height="15">&nbsp;</td>');
	document.write ('</tr>');
//*******************************************************
// Begin Constant Contact Mail Email Join Icon
	document.write ('<tr>');
	document.write ('	<td colspan="3" align="center"><a href="http://visitor.constantcontact.com/d.jsp?m=1102941867390&p=oi" target="_blank"><img src="http://www.losspreventionfoundation.org/images/buttons/mailingList.jpg" width="90" height="42" border="0" alt="JoinEmail"></a></td>');
	document.write ('</tr>');
//*******************************************************
// Add Extra Space to get below blue background of subnav div tag
	document.write ('<tr>');
	document.write ('	<td height="15">&nbsp;</td>');	
	document.write ('	<td height="15">&nbsp;</td>');
   	document.write ('	<td height="15">&nbsp;</td>');
	document.write ('</tr>');
//*******************************************************
    document.write ('</table>');		
	
}

