
// Google Tracking App
			var pageTracker = _gat._getTracker("UA-5199031-2");
			pageTracker._trackPageview();
		
// Sets Layout to 1. This will probably be overidden before the website gets put together			
var Layout = 1;

// Declaring Modules for combining on page.


// The contents of the MastHead (Title Bar)
var MastHead = '	  	<div class="Set"> ';
MastHead += '			<div class="Left"><div class="Right"> ';
MastHead += '			<div class="Top"><div class="TopLeft"></div><div class="TopRight"></div></div> ';
MastHead += '					<h1>RSPCA Cambridge Branch</h1> ';
MastHead += '					<p class="charityNumber">Registered charity no.: 205098</p>';
MastHead += '	  		<div class="Bottom"><div class="BottomLeft"></div><div class="BottomRight"></div></div></div> ';
MastHead += '			</div> ';
MastHead += '		</div> ';

// Opening the container for the sidebar and puts in RSPCA logo
var SideBar_Top = '<div class="Set">';
SideBar_Top += '<div class="Left"><div class="Right">';
SideBar_Top += '<div class="Top"><div class="TopLeft"></div><div class="TopRight"></div></div>';
SideBar_Top += '<a target="_parent" href="http://www.rspca.org.uk/"><img class="logo" src="../images/rspca.gif" /></a>';

// Closes the container for the sidebar
var SideBar_Bottom = '<div class="Bottom"><div class="BottomLeft"></div><div class="BottomRight"></div></div>';
SideBar_Bottom += '</div></div></div>';


// Navigation Module for the Sidebar	
var SB_Nav = '		<div id="Nav">';
SB_Nav += '				<h2>Navigation</h2>';
SB_Nav += '				<ul>';
SB_Nav += '					<li><a target="_parent" href="index.html">RSPCA Cambridge</a></li>';
SB_Nav += '					<li><a target="_parent" href="news.html">News &amp; events</a></li>';
SB_Nav += '					<li><a target="_parent" href="services.html">Services we provide</a></li>';
SB_Nav += '					<li><a target="_parent" href="clinic.html">Animal Clinic</a></li>';
SB_Nav += '					<li><a target="_parent" href="rehoming.html">Rehoming and adoption</a></li>';		
SB_Nav += '					<li><a target="_parent" href="LSD.html">Legacies, sponsorship &amp; donations</a></li>';					
SB_Nav += '					<li><a target="_parent" href="shops.html">Shops &amp; online shops</a></li>';		
SB_Nav += '					<li><a target="_parent" href="workexp.html">Work experience</a></li>';
SB_Nav += '					<li><a target="_parent" href="getInvolved.html">Get involved!</a></li>';								
SB_Nav += '					<li><a target="_parent" href="aboutUs.html">About us</a></li>';
SB_Nav += '					<li><a target="_parent" href="Contacts.html">Contact numbers</a></li>';
//SB_Nav += SB_Buttons;
SB_Nav += '				</ul>';
SB_Nav += '			</div>';

// button set
var SB_Buttons = '				<div class="Button_Set">';
SB_Buttons += '					<a id="Join_Button" target="_parent" href="http://www.rspca.org.uk/getinvolved/supportus/joinus"><span>Join the RSPCA today!</span></a>';
SB_Buttons += '					| ';
SB_Buttons += '					<a id="Facebook_Button" target="_parent" href="http://www.facebook.com/pages/RSPCA-Cambridge/204247992954131"><span>Facebook</span></a>';
SB_Buttons += '					| ';
SB_Buttons += '					<a id="Twitter_Button"  target="_parent" href="http://twitter.com/cambstreasurer"><span>Twitter</span></a>';
SB_Buttons += '				</div>';

// News Module for Sidebar
var SB_News = '			<div id="News">';
SB_News += '				<div class="Topic">';
SB_News += '				  <h2>News</h2>';
SB_News += '				  <p>';
SB_News += '					Our <a target="_parent" href="annualreport2010.pdf">Annual Report</a>  ';
SB_News += '				is now online (PDF) ';
SB_News += '				  <p>';
SB_News += '				</div>';
SB_News += '			</div>';

// Rehoming Module for Sidebar
var SB_Rehome = '			<div id="Rehome">';
SB_Rehome += '				<h2><a target="_parent" href="rehoming.html">Give me a home</a></h2>';
SB_Rehome += '				<div class="Rehome_Widgit">';
SB_Rehome += '					<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" type="application/x-shockwave-flash" ';
SB_Rehome += '					    width="170px" height="423px" id="InsertWidget_07f0c9d3-352d-4de6-a1ee-a2f3b70e64d4" align="middle">';
SB_Rehome += '					    <param name="movie" value="http://widgetserver.com/syndication/flash/wrapper/InsertWidget.swf"/>';
SB_Rehome += '					    <param name="quality" value="high" />';
SB_Rehome += '					    <param name="wmode" value="transparent" />';
SB_Rehome += '					    <param name="menu" value="false" />';
SB_Rehome += '					    <param name="flashvars" value="r=2&appId=07f0c9d3-352d-4de6-a1ee-a2f3b70e64d4" />';
SB_Rehome += '					    <embed src="http://widgetserver.com/syndication/flash/wrapper/InsertWidget.swf"  name="InsertWidget_07f0c9d3-352d-4de6-a1ee-a2f3b70e64d4"  ';
SB_Rehome += '					        width="170px" height="423px" quality="high" menu="false" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent" align="middle" flashvars="r=2&appId=07f0c9d3-352d-4de6-a1ee-a2f3b70e64d4" />';
SB_Rehome += '					    </object>';
SB_Rehome += '				</div>';
SB_Rehome += '			</div>';	

// Opens a container for the center area
var Center_Top = '		<div class="Set Alternate_Sidebar">';
Center_Top += '			<div class="Left"><div class="Right">';
Center_Top += '			<div class="Top"><div class="TopLeft"></div><div class="TopRight"></div></div>';

// Closes a container for the center area
var Center_Bottom = '			<div class="Bottom"><div class="BottomLeft"></div><div class="BottomRight"></div></div></div>';
Center_Bottom += '			</div>';
Center_Bottom += '		</div>';

// Twitter Module works in either the sidebar or the center
var Twitter = '				<div id="RSPCA_Twitter">';
Twitter += '					<h2>Twitter Updates</h2>';
Twitter += '					<div class="Twitter">';
Twitter += '						<ul id="twitter_update_list"></ul>';
Twitter += '						<script src="http://twitter.com/javascripts/blogger.js" type="text/javascript"></script>';
Twitter += '						<script src="http://twitter.com/statuses/user_timeline/RSPCA_Bookshop.json?callback=twitterCallback2&amp;count=5" type="text/javascript"></script>';
Twitter += '					</div>';
Twitter += '					<a class="twitter-link" href="http://twitter.com/RSPCA_Bookshop"><span>Follow us on Twitter</span></a>';
Twitter += '				</div>';

// Donation Module works in either the sidebar or the center
var Donate = ' 			<div id="Donate_Cash" class="Donations">';
Donate += ' 					<h2><a target="_parent" href="http://www.justgiving.com/rspcacambridge/donate">Donate Online</a></h2>';
Donate += '						<ul class="WhatYouWouldGet">';
Donate += '							<li><span class="cost">£3.50</span><p>would cover the cost of boarding a cat for a day</p></li>';
Donate += '							<li><span class="cost">£4.00</span><p> would board a dog</p></li>';
Donate += '							<li><span class="cost">£20</span><p>would pay for the cost of neutering a cat</p></li>';
Donate += '							<li><span class="cost">£30</span><p> would buy another humane trap for catching feral cats so that they can be neutered</p></li>';
Donate += '							<li><span class="cost">£95</span><p>would buy a microchip scanner</p></li>';
Donate += '						</ul>';
Donate += '						<a id="Donate_Card" href="http://www.justgiving.com/rspcacambridge/donate">';
Donate += '						<img src="http://www.justgiving.com/charityaccount/content/marketing/buttons/donateonline2.gif"';
Donate += '						  alt="Donation Online button" />';
Donate += '						</a>';
Donate += '				</div>';

// Privacy Footer
var Privacy = '<div class="privacy" style="float:left"><a href="privacy.html">Privacy Statement</a></div>' ;
Privacy += '<div class="privacy" style="float:right;left:-40px;"><a href="http://www.hyperspheric.com">Site hosted by Hyperspheric</a></div>';

$(document).ready(function() {
	// Insert MastHead
	$('#MastHead').append(MastHead);
	
	// Inserts the different layouts of the Pages
	if (Layout == 1) {
			var SideBar = SideBar_Top + SB_Nav + SB_News + SB_Rehome + Twitter + Donate + SideBar_Bottom;
			$('#SideBar').append(SideBar);
	}
	else if (Layout == 2) {
			var SideBar = SideBar_Top + SB_Nav + SB_News + SB_Rehome + Donate + SB_Buttons + SideBar_Bottom;
			var Footer = '';	
			$('#SideBar').append(SideBar);	
			$('#CenterBlock').append(Footer);
	}
	else if (Layout == 3) {
			var SideBar = SideBar_Top + SB_Nav + SB_News + SB_Rehome + Donate + SideBar_Bottom;
			var Topper = Center_Top + C_Amazon + Center_Bottom;
			var Footer = Center_Top + Twitter + Center_Bottom; 
			$('#SideBar').append(SideBar);	
			$('#CenterBlock').prepend(Topper);
			$('#CenterBlock').append(Footer);
	}
	else if (Layout == 4) {
			var SideBar = SideBar_Top + SB_Nav + SB_News + SB_Rehome + SideBar_Bottom; 	// Sets up the parts for the Sidebar
			var Topper = Center_Top + Donate + Center_Bottom;							// Sets up the parts to appear above the main text
			var Footer = Center_Top + C_Amazon + Twitter + Center_Bottom;				// Sets up the parts to appear below the main text
			$('#SideBar').append(SideBar);												// Inserts the Sidebar
			$('#CenterBlock').prepend(Topper);											// Prepends the main text
			$('#CenterBlock').append(Footer);											// appends the main text
	}	
	
	// Inserts Privacy Footer
	$('#CenterBlock').append(Privacy);
});



