﻿var newImage = null;
		
		function init() {
			if (document.getElementById) {
				newImage = document.getElementById('number');
				var sureNav = document.getElementById('office');
				var aTags = sureNav.getElementsByTagName('A');
				for (x = 0; x < aTags.length; x++) {
					aTags[x].onmouseover = showImage;
					aTags[x].onmouseout = hideImage;
				}
			}
		}
	
		function hideImage() {
			newImage.style.display = "none";
		}
		
		function showImage() {
			newImage.style.display = "block";
		}
		
		function showLargeImage(imgName)
		{
			document.getElementById('TeleImg').src = 'assets/images/' + imgName
		}
		
		
		
		
		/*Left Nav*/
		
		
		/* ================================================================ 
This copyright notice must be untouched at all times.
Copyright (c) 2008 Stu Nicholls - stunicholls.com - all rights reserved.
=================================================================== */

		
		
$(document).ready(function() {

$("#nav ul").hide();
$("#nav li:has(ul)").each(function() {
$(this).children().slideUp(400);
});

$("li.p1:has(ul)").click(function(event){
if (this == event.target) {
var current = this;
$("#nav li:has(ul)").each(function() {
if (this != current) $(this).children().slideUp(400);
});
$("ul:first", $(this)).slideToggle(400);
}
});

$("li.p2:has(ul)").click(function(event){
if (this == event.target) {
var current = this;
$("li.p2:has(ul)").each(function() {
if (this != current) $(this).children().slideUp(400);
});
$("li.p3:has(ul)").each(function() {
if (this != current) $(this).children().slideUp(400);
});
$("ul:first", $(this)).slideToggle(400);
}
});

$("li.p3:has(ul)").click(function(event){
if (this == event.target) {
var current = this;
$("li.p3:has(ul)").each(function() {
if (this != current) $(this).children().slideUp(400);
});
$("ul:first", $(this)).slideToggle(400);
}
});

$("ul.current", $(this)).slideToggle(400);
});