﻿startList = function() {
	if (document.all&&document.getElementById) {
		navRoot = document.getElementById("nav");
		for (i=0; i<navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];
			if (node.nodeName=="LI") {
				node.onmouseover=function() {
					this.className+=" over";
				}
				node.onmouseout=function() {
					this.className=this.className.replace(" over", "");
				}
			}
		}
	}
}
window.onload=startList;


$(document).ready(function() {
 
 // toggles the slickbox on clicking the noted link 
  $('a#sm_toggle').click(function() {
    $('#sm_outer').slideToggle(400);
    return false;
  });
 
});

$(document).ready(function() {
  $('a#loginLink').click(function() {
	if (document.getElementById('loginFormMiniMain').style.display == 'block')
	{
		$('#loginFormMiniMain').fadeOut('fast');
	}
	else
	{
		$('#loginFormMiniMain').fadeIn('fast');
		document.getElementById('username').focus();
	}
    return false;
  });
});

$(document).ready(function(){
	
	$(".accordion h3:first").addClass("active");
	$(".accordion p:not(:first)").hide();

	$(".accordion h3").click(function(){
		$(this).next("p").slideToggle("slow")
		.siblings("p:visible").slideUp("slow");
		$(this).toggleClass("active");
		$(this).siblings("h3").removeClass("active");
	});

});

var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));

var pageTracker = _gat._getTracker("UA-8513033-1");
pageTracker._trackPageview();