// Config.js
// Sets up site location for rotating image banners
// & Flash banners

sitename = 'http://www.losspreventionfoundation.org';

//secure site
secure_sitename = 'https://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 + 'about_us.html" style="color:white;" onMouseover="dropdownmenu(this, event, menu1, \'215px\');" onMouseout="delayhidemenu();">About Us</a></b> ');
	document.write (' | <b><a href="' + extraPath + 'certification.html" style="color:white;" onMouseover="dropdownmenu(this, event, menu2, \'210px\');" onMouseout="delayhidemenu();">Certification</a></b>');
	document.write (' | <b><a href="' + extraPath + 'certification.html" style="color:white;" onMouseover="dropdownmenu(this, event, menu7, \'210px\');" onMouseout="delayhidemenu();">LPQ</a></b>');
	document.write (' | <b><a href="' + extraPath + 'certification.html" style="color:white;" onMouseover="dropdownmenu(this, event, menu8, \'210px\');" onMouseout="delayhidemenu();">LPC</a></b>');
	document.write (' | <b><a href="' + extraPath + 'membership.html" style="color:white;" onMouseover="dropdownmenu(this, event, menu3, \'150px\');" onMouseout="delayhidemenu();">Membership</a></b>');
	document.write (' | <b><a href="' + extraPath + 'councils_committees.html" style="color:white;" onMouseover="dropdownmenu(this, event, menu4, \'250px\');" onMouseout="delayhidemenu();">Committees</a></b>');
	document.write (' | <b><a href="' + extraPath + 'Press.html" style="color:white;" onMouseover="dropdownmenu(this, event, menu5, \'150px\');" onMouseout="delayhidemenu();">Newsroom</a></b>');
	document.write (' | <b><a href="' + extraPath + 'resources.html" style="color:white;" onMouseover="dropdownmenu(this, event, menu6, \'175px\');" onMouseout="delayhidemenu();">Resources</a></b>');
	document.write (' | <b><a href="' + extraPath + 'contact_us.html" style="color:white;">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">');
	document.write ('<tr>');	
	document.write ('	<td height="19"> <img border="0" src="' + extraPath + 'images/bullet1.gif" width="10" height="10"></td>');
	document.write ('	<td height="19">&nbsp;</td>');
	document.write ('	<td height="19"><a href="' + extraPath + 'default.asp#RecentNews">Recent News</a></td>');
	document.write ('</tr>');
	document.write ('<tr>');	
	document.write ('	<td height="19"> <img border="0" src="' + extraPath + 'images/bullet1.gif" width="10" height="10"></td>');
	document.write ('	<td height="19">&nbsp;</td>');
	document.write ('	<td height="19"><a href="' + extraPath + 'industry_supporters.html">Foundation Partners</a></td>');
	document.write ('</tr>');
	document.write ('<tr>');
	document.write ('	<td height="19"> <img border="0" src="' + extraPath + 'images/bullet1.gif" width="10" height="10"></td>');
	document.write ('	<td height="19">&nbsp;</td>');
	document.write ('	<td height="19"><a href="' + extraPath + 'association_partners.html">Association Partners</a></td>');
	document.write ('</tr>');
	document.write ('<tr>');
	document.write ('	<td height="19"><img border="0" src="' + extraPath + 'images/bullet1.gif" width="10" height="10"></td>');
   	document.write ('	<td height="19">&nbsp;</td>');
	document.write ('	<td height="19"><a href="' + extraPath + 'academic_supporters.html">Academic Committee</a></td>');
	document.write ('</tr>');
	document.write ('<tr>');
	document.write ('	<td height="19"><img border="0" src="' + extraPath + 'images/bullet1.gif" width="10" height="10"></td>');
	document.write ('	<td height="19">&nbsp;</td>');
	document.write ('	<td height="19"><a href="' + extraPath + 'student_center.html">Student Center</a></td>');
	document.write ('</tr>');	
	document.write ('<tr>');
	document.write ('	<td height="19"><img border="0" src="' + extraPath + 'images/bullet1.gif" width="10" height="10"></td>');
	document.write ('	<td height="19">&nbsp;</td>');
	document.write ('	<td height="19"><a href="' + extraPath + 'scholarships.html">Scholarships</a></td>');
	document.write ('</tr>');	
	document.write ('<tr>');	
	document.write ('	<td width="4%" height="19"> <img border="0" src="' + extraPath + 'images/bullet1.gif" width="10" height="10"></td>');		
	document.write ('	<td width="4%" height="19"> <img border="0" src="' + extraPath + 'images/blank.gif" width="10" height="10"></td>');			
	document.write ('	<td width="92%" height="19"><a href="' + extraPath + 'industry_events.html">Industry Events </a></td>');
	document.write ('</tr>');	
	document.write ('<tr>');
	document.write ('	<td height="19"><img border="0" src="' + extraPath + 'images/bullet1.gif" width="10" height="10"></td>');
	document.write ('	<td height="19">&nbsp;</td>');
	document.write ('	<td height="19"><a href="' + extraPath + 'promotions_career_moves.asp">Promotions & Career Moves</a></td>');
	document.write ('</tr>');	
/*
	document.write ('<tr>');
	document.write ('	<td height="19"><img border="0" src="' + extraPath + 'images/bullet1.gif" width="10" height="10"></td>');
	document.write ('	<td height="19">&nbsp;</td>');
   	document.write ('	<td height="19"><a href="' + extraPath + 'http://lpfoundation.invisionzone.com/" target="_blank">Information Boards</a></td>');
	document.write ('</tr>');
*/
	document.write ('<tr>');
	document.write ('	<td height="19"><img border="0" src="' + extraPath + 'images/bullet1.gif" width="10" height="10"></td>');
	document.write ('	<td height="19">&nbsp;</td>');
   	document.write ('	<td height="19"><a href="' + extraPath + 'frequently_asked_questions1.html">Frequently Asked Questions</a></td>');
	document.write ('</tr>');	
	document.write ('<tr>');
	document.write ('	<td height="19"><img border="0" src="' + extraPath + 'images/bullet1.gif" width="10" height="10"></td>');
	document.write ('	<td height="19">&nbsp;</td>');
   	document.write ('	<td height="19"><a href="' + extraPath + 'Canada_cert.html">Canadian Certification</a></td>');
	document.write ('</tr>');

	document.write ('<tr>');
	document.write ('	<td height="19" colspan="3">');
	document.write ('	<!-- BEGIN: Constant Contact Square Email List Button -->');
	document.write ('	<br><div align="center">');
	document.write ('	<table width="100" border="0" cellpadding="0" cellspacing="0">');
	document.write ('	<tr>');
	document.write ('	<td><img src="http://img.constantcontact.com/ui/images/visitor/bevel_tl_ltblue.gif" width="6" height="6" alt=""></td>');
	document.write ('	<td background="http://img.constantcontact.com/ui/images/visitor/bevel_bg_top_ltblue.gif"> </td>');
	document.write ('	<td><img src="http://img.constantcontact.com/ui/images/visitor/bevel_tr_ltblue.gif" width="6" height="6" alt=""></td>');
	document.write ('	</tr>');
	document.write ('	<tr>');
	document.write ('	<td background="http://img.constantcontact.com/ui/images/visitor/bevel_bg_left_ltblue.gif" width="6"></td>');
	document.write ('	<td bgcolor="#0099ff" align="center" style="padding:10px;"><a href="http://visitor.constantcontact.com/d.jsp?m=1102941867390&p=oi" target="_blank" style="text-decoration:none; font-weight: bold;  font-family:Arial; font-size:13px; color:#000000;" width="188">Join Our Mailing List</a></td>');
	document.write ('	<td background="http://img.constantcontact.com/ui/images/visitor/bevel_bg_right_ltblue.gif" width="6"></td>');
	document.write ('	</tr>');
	document.write ('	<tr>');
	document.write ('	<td background="http://img.constantcontact.com/ui/images/visitor/bevel_bg_left_blue.gif"></td>');
	document.write ('	<td bgcolor="#003399"align="right"><div  style="margin-top:2"><a href="http://visitor.constantcontact.com/d.jsp?m=1102941867390&p=oi" target="_blank" style="text-decoration:none; font-weight:bold;  font-family:Arial; font-size:10px; color:#ffffff;">&raquo; JOIN NOW</a></div></td>');
	document.write ('	<td background="http://img.constantcontact.com/ui/images/visitor/bevel_bg_right_blue.gif"></td>');
	document.write ('	</tr>');
	document.write ('	<tr>');
	document.write ('	<td><img src="http://img.constantcontact.com/ui/images/visitor/bevel_bl_blue.gif" width="6" height="6" alt=""></td>');
	document.write ('	<td background="http://img.constantcontact.com/ui/images/visitor/bevel_bg_bottom_blue.gif"> </td>');
	document.write ('	<td><img src="http://img.constantcontact.com/ui/images/visitor/bevel_br_blue.gif" width="6" height="6" alt=""></td>');
	document.write ('	</tr>');
	document.write ('	</table>');
	document.write ('	</div>');
	document.write ('	<!-- END: Constant Contact Square Email List Button -->');
	document.write ('	</td>');
	document.write ('</tr>');	

    document.write ('</table>');		
	
}	