///#####################################################
// General Functions
//#####################################################
	
//------------------------------------------------------------------------------------------------------------
//- MENUS ----------------------------------------------------------------------------------------------------
//------------------------------------------------------------------------------------------------------------
function pageLinks(vRelDir) {
	document.write('<ul>');
	document.write('<li class="seperator"><a href="' + vRelDir + 'index.php">Home</a></li>');
	document.write('<li class="seperator"><a href="' + vRelDir + 'group/contact.html">Contact Us</a></li>');
	document.write('<li class="seperator"><a href="http://www.scouts.org.uk" target="_blank">scouts.org.uk</a></li>');
	document.write('</ul>');
}	

//------------------------------------------------------------------------------------------------------------
function loadTopMenu(vRelDir, vType) {
	document.write('<a href="' + vRelDir + 'beavers/beavers.php">');
	if (vType == "home") {
		document.write('<img src="' + vRelDir + 'images/TopBar/Beavers.jpg" alt="Beavers: 6 - 8 year olds" name="Beavers" width="53" height="34" hspace="4" vspace="12" border="0" id="Beavers"	title="Beavers: 6-8 year olds" align="left" />');
	} else {
		document.write('<img src="' + vRelDir + 'images/TopBar/Beavers.jpg" alt="Beavers: 6 - 8 year olds" name="Beavers" width="39" height="25" hspace="4" vspace="12" border="0" id="Beavers"	title="Beavers: 6-8 year olds" align="left" />');
	}	
	document.write('</a>');
	document.write('<a href="' + vRelDir + 'cubs/cubs.php">');
	if (vType == "home") {
		document.write('<img src="' + vRelDir + 'images/TopBar/Cubs.jpg" alt="Cubs: 8 - 10&frac12; year olds" name="Cubs" width="61" height="35" hspace="4" vspace="12" border="0" id="Cubs" title="Cubs: 8 - 10&frac12; year olds" align="left" />');
	} else {
		document.write('<img src="' + vRelDir + 'images/TopBar/Cubs.jpg" alt="Cubs: 8 - 10&frac12; year olds" name="Cubs" width="42" height="24" hspace="4" vspace="12" border="0" id="Cubs" title="Cubs: 8 - 10&frac12; year olds" align="left" />');
	}
	document.write('</a>');
	document.write('<a href="' + vRelDir + 'scouts/scouts.php">');
	if (vType == "home") {
		document.write('<img src="' + vRelDir + 'images/TopBar/Scouts.jpg" alt="Scouts: 10&frac12; - 14 year olds" name="Scouts" width="77" height="34" hspace="4" vspace="12" border="0" id="Scouts" title="Scouts: 10&frac12; - 14 year olds" align="left" />');
	} else {
		document.write('<img src="' + vRelDir + 'images/TopBar/Scouts.jpg" alt="Scouts: 10&frac12; - 14 year olds" name="Scouts" width="61" height="26" hspace="4" vspace="12" border="0" id="Scouts" title="Scouts: 10&frac12; - 14 year olds" align="left" />');
	}
	document.write('</a>');
	document.write('<a href="' + vRelDir + 'explorers/explorers.html">');
	if (vType == "home") {
		document.write('<img src="' + vRelDir + 'images/TopBar/Explorer.jpg" alt="Explorers: 14 - 18 year olds" name="Explorers" width="76" height="33" hspace="4" vspace="12" border="0" id="Scouts" title="Explorers: 14 - 18 year olds" align="left" />');
	} else {
		document.write('<img src="' + vRelDir + 'images/TopBar/Explorer.jpg" alt="Explorers: 14 - 18 year olds" name="Explorers" width="56" height="25" hspace="4" vspace="12" border="0" id="Scouts" title="Explorers: 14 - 18 year olds" align="left" />');
	}
	document.write('</a>');	
}	

//------------------------------------------------------------------------------------------------------------
function loadMenu(vRelDir) {
	document.write('<div class="greenback">');
	document.write('<ul>');
	document.write('<li class="bar"><a href="' + vRelDir + 'index.php">Home</a></li>');
	document.write('<li class="bar"><a href="' + vRelDir + 'group/news.php">News</a></li>');
	document.write('<li class="bar"><a href="' + vRelDir + 'group/aboutus.html">About Us</a></li>');
	document.write('<li class="bar"><a href="' + vRelDir + 'group/activities.html">Activities</a></li>');
	document.write('<li class="bar"><a href="' + vRelDir + 'group/annual.html">Annual Events</a></li>');
	document.write('<li class="bar"><a href="' + vRelDir + 'group/general.html">General Information</a></li>');
	document.write('<li class="bar">&nbsp;&nbsp;&nbsp;&nbsp;</li>');
	document.write('<li class="bar"><a href="http://www.gordanoscouting.co.uk/" target="_blank">Gordano District</a></li>');
	document.write('<li class="bar">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</li>');
	document.write('<li class="bar"><a href="' + vRelDir + 'leader/leader.html">Leaders Corner</a></li>');
	document.write('</ul>');
	document.write('</div>');
}
	
//------------------------------------------------------------------------------------------------------------
function loadFooter(vRelDir) {  
	document.write('<table width="100%" border="0" cellpadding="0" cellspacing="0" style="border-bottom-width: medium; border-bottom-style: solid; border-top-color: silver; border-top-width: medium; border-top-style: solid; border-bottom-color: silver">');
	document.write('<tr	style="color: gray; font-size: 8pt" align="center">');
	document.write('<td>');
	document.write('<br><a href="' + vRelDir + 'index.html">Home</a> | <a href="' + vRelDir + 'group/contact.html">Contact Us</a>');
	document.write('<br><br>The contents of this website are the copyright of Cleeve, Claverham and Yatton Scouting Group (CCY)<br>Registered Charity Number 306101.');
	document.write('<br><br><a href="' + vRelDir + 'group/tandcs.html">Terms and Conditions</a> | <a href="' + vRelDir + 'group/tandcs.html#privacy">Privacy Statement</a><br>');
	document.write('<br></td>');
	document.write('</tr>');
//	document.write('<tr><td><BR>&nbsp;</td></tr>');
	document.write('</table>');
}
//------------------------------------------------------------------------------------------------------------
//- General ----------------------------------------------------------------------------------------------------
//------------------------------------------------------------------------------------------------------------
function newPopup(url) {
	popupWindow = window.open(
		url,'popUpWindow','height=400,width=920,left=20,top=50,resizable=yes,scrollbars=yes,toolbar=no,menubar=no,location=no,directories=no,status=yes')
}
	
//------------------------------------------------------------------------------------------------------------
