/* function to toggle visibility */
function toggle( targetId, signId ) {
   if ( document.getElementById ) {
    target = document.getElementById( targetId );
	if (signId != '') {sign = document.getElementById( signId );}
    if ( target.style.display == "none" ) {
     target.style.display = "";
	 if (sign) {sign.src = sign.src.replace('plusSign','minusSign');}
    } else {
     target.style.display = "none";
	 if (sign) {sign.src = sign.src.replace('minusSign','plusSign');}
    }
   }
}

/* function to change a class */
function setClass(objectID,newClass) {
	var object = document.getElementById(objectID);
	if (object) {
		object.className = newClass;
	}
}


// registers a page view
		this.pageView = function()
		{
			var URLFull,URL,pageURL;
			// Register Pageview
			try {
			var pageNumber = this.current;
			
			// Removes hash for slides
			//location.hash = pageNumber;
			
			URLFull=String(document.location).split("?"); 
			pageURL=URLFull[0];

			if (this.current == 1) {
				URLFull=String(pageURL).split("#");
				pageURL = URLFull[0];
			}
			
			// Adds in fake page URL since we removed hash
			pageURL = pageURL + '#' + pageNumber;

			// Makes each page a pageview
			wmdPageview(s_pagename, this.current);
			}
			catch(e) {}
		};