
			var secondsToDisplay = 5; //number often in seconds to rotate
			var theCounter = 0; //start the counter at 0

			// place your images, text, etc in the array elements here
			var CatalogueHTML = new Array();

		    CatalogueHTML[0]="Free Catalogue and Gift Pack<br \/><a href=\"\/-Pindar_OrderCatalogue.asp\" title=\"Order your catalogue today\"><img src=\"/skin_default/templateimages/content/CataloguePack.jpg\" width=\"120\" height=\"164\" border=\"0\" alt=\"Order your catalogue today\" vspace=\"5\" /><\/a><br /><div class=\"WhiteLinks\"><a href=\"/-Pindar_OrderCatalogue.asp\" title=\"Order your catalogue today\">Order Now&gt;&gt;<\/a><\/div>";
		    //CatalogueHTML[1]="Download your Catalogue Now<br /><a href=\"/Catalogue-Download-Page/pg\" title=\"Download your catalogue today\"><img src=\"/skin_default/templateimages/content/mini_catalogue_cover.jpg\" vspace=\"5\" border=\"0\" height=\"166\" width=\"120\" alt=\"Click here to download your catalogue\"><\/a><br /><div class=\"WhiteLinks\"><a href=\"/Catalogue-Download-Page/pg\" title=\"Download your catalogue today\">Download Now&gt;&gt;<\/a><\/div>";
		    CatalogueHTML[1]="Download your Catalogue Now<br /><a href=\"\/-Pindar_OrderCatalogue.asp\" title=\"Download your catalogue today\"><img src=\"/skin_default/templateimages/content/mini_catalogue_cover.jpg\" vspace=\"5\" border=\"0\" height=\"166\" width=\"120\" alt=\"Click here to download your catalogue\"><\/a><br /><div class=\"WhiteLinks\"><a href=\"/-Pindar_OrderCatalogue.asp\" title=\"Download your catalogue today\">Download Now&gt;&gt;<\/a><\/div>";

		function LoadCatalogue() {
			document.getElementById('CatalogueMiniBox').innerHTML = CatalogueHTML[theCounter];
		    theCounter = (theCounter==CatalogueHTML.length-1) ? 0 : theCounter + 1;
		    setTimeout("LoadCatalogue()",secondsToDisplay*1000);
		}


		// place your images, text, etc in the array elements here
		var CatalogueHomeHTML = new Array();

	    CatalogueHomeHTML[0]="<a href=\"\/-Pindar_OrderCatalogue.asp\" title=\"Order your catalogue today\"><img src=\"/images/CataloguePack.jpg\" width=\"100\" height=\"128\" border=\"0\" alt=\"Order your catalogue today\" vspace=\"5\" /><\/a>";
	    //CatalogueHomeHTML[1]="<a href=\"/Catalogue-Download-Page/pg\" title=\"Download your catalogue today\"><img src=\"/skin_default/templateimages/content/mini_catalogue_cover.jpg\" vspace=\"5\" border=\"0\" height=\"128\" width=\"100\" alt=\"Click here to download your catalogue\"><\/a>";
	    CatalogueHomeHTML[1]="<a href=\"\/-Pindar_OrderCatalogue.asp\" title=\"Download your catalogue today\"><img src=\"/skin_default/templateimages/content/mini_catalogue_cover.jpg\" vspace=\"5\" border=\"0\" height=\"128\" width=\"100\" alt=\"Click here to download your catalogue\"><\/a>";

		catalogueHomeLink = [
			'<a href="/-Pindar_OrderCatalogue.asp" title="Order your catalogue today">Order Now&gt;&gt;</a>',
			//'<a href="/Catalogue-Download-Page/pg" title="Download your catalogue today">Download Now&gt;&gt;</a>'
			'<a href="/-Pindar_OrderCatalogue.asp" title="Download your catalogue today">Download Now&gt;&gt;</a>'
		];

		function LoadCatalogueHome() {
			document.getElementById('CatalogueMiniBoxHome').innerHTML = CatalogueHomeHTML[theCounter];
			document.getElementById('catalogueMiniBoxHomeLink').innerHTML = catalogueHomeLink[theCounter];
		    theCounter = (theCounter==CatalogueHomeHTML.length-1) ? 0 : theCounter + 1;
		    setTimeout("LoadCatalogueHome()",secondsToDisplay*1000);
		}


		function ShowHide(id) {
			if (document.getElementById) {
				obj = document.getElementById(id);
				if (obj.style.display == "none") {
					obj.style.display = "";
				} else {
					obj.style.display = "none";
				}
			}
		}


		function BookmarkMe()
		{
		var pageURL=document.location.href
		var pageTitle = document.title
		if(document.all)
		{

		if(window.external)
		//It's Internet Explorer
		{
		window.external.AddFavorite(pageURL, pageTitle)
		}
		else if(window.opera && window.print)
		//It's opera
		{
	    alert("Please bookmark this page by pressing\nCTRL+D")
		}
		}
		else if (window.sidebar)
		//It's Mozilla/Nutscrape
		{
		window.sidebar.addPanel(pageTitle, pageURL, "");
		}
		else
		{
		 alert("Please bookmark this page by pressing\nCTRL+D")
		}
		}


// OM : 2010-05-10 : Drop-down part of top menu:

function LoadMenus() {

	$('.navigation-2 li').remove();
	$('.navigation-2').each(function() {
		var id = $(this).attr('id');
		id = id.split('-')[2];
		LoadMenu(this, id);
	});

}


// href - title - target - text
var cHref = 0;
var cTitle = 1;
var cTarget = 2;
var cText = 3;

var menuData = [
/* 0 : Home */
,
/* 1 : About Us */
[
	["/location/pg", "Location Map", , "Location Map"],
	["/Case-Studies/pg", "Case Studies", , "Case Studies"],
	["/Press-Releases/pg", "Press Releases", , "Press Releases"],
	["/Our-Service/pg", "Our Service", , "Our Service"]
],
/* 2 : My Account */
[
	["/basket.asp", "My Basket", , "My Basket"],
	["/speedorder.asp", "Speed Order", , "Speed Order"],
	["/wishlist.asp", "Wish List", , "Wish Lists"]
],
/* 3 : What's New */
[
	["/Product-News/pg", "Product News", , "Product News"],
	["/-Pindar_TopSellers.asp", "Best Sellers", , "Best Sellers"],
	["/-Pindar_NewProducts.asp", "Winter Preparation", , "Winter Preparation"],
	["/Latest-Offers/pg", "Promotions", , "Promotions"]
],
/* 4 : Public Sector */
[
	["/Building-Schools-Future/pg", "Building Schools for the Future", , "BSF"]/*,
	["/customer_account.asp?strMessage=login", "Set up Credit Account", , "Set up Credit Account"]*/
],
/* 5 : Contact Us */
,
/* 6 : Reseller */
[
/*	["/customer_home.asp", "My Account", , "My Account"],
	["/speedorder.asp", "Speed Order", , "Speed Order"],
	["/wishlist.asp", "Wish List", , "Wish Lists"] */
	["/Locker-Rental-Students/pg", "Students", , "Students"],
	["/Locker-Rental/pg", "Schools", , "Schools"]

],
/* 7 : International */

]

function LoadMenu(el, menu) {
	for (var item in menuData[menu]) {
		var menuItem = menuData[menu][item];
		var target = (menuItem[cTarget] ? ' target="' + menuItem[cTarget] + '"' : '');
		$(el).append('<li><a href="' + menuItem[cHref] + '" title="' + menuItem[cTitle] + '"' + target + '>' + menuItem[cText] + '</a></li>');
	}
}

var curThumbs = 0;

function switchImages(dir) {
	var thumbs = $(".ThumbSelector");
	thumbs.eq(curThumbs).addClass("hide");
	if(dir == 0) {
		if(curThumbs == 0) curThumbs = thumbs.length;
		curThumbs--;
	} else {
		curThumbs++;
		if(curThumbs == thumbs.length) curThumbs = 0;
	}
	thumbs.eq(curThumbs).removeClass("hide");
}

