// Navigation for IE
/* navHover = function() {
	var navLi = document.getElementById("nav").getElementsByTagName("LI");
	for (var i=0; i<navLi.length; i++) {
		navLi[i].onmouseover=function() {
			this.className+=" over";
		}
		navLi[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" over\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", navHover); */

// Navigation for IE6 and Below
navHover = function() {
	var navLi = document.getElementById("nav").getElementsByTagName("LI");
	for (var i=0; i<navLi.length; i++) {
		navLi[i].onmouseover=function() {
			this.className+=" over";
			
			// Remove Form with ID for IE6 when navigation is used
			if (document.all) {
        	var form = document.getElementById("formHide");
				if(form != null) {
        		form.style.visibility="hidden";
				}
   			}
			// End IE6 Crappy workarounds
			
		}
		navLi[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" over\\b"), "");
			
			// Remove Form with ID for IE6 when navigation is used
			if (document.all) {
        	var form = document.getElementById("formHide");
				if(form != null) {
        		form.style.visibility="visible";
				}
   			}
			// End IE6 Crappy workarounds
			
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", navHover);


// Bookmarking
function bookmark(url,title){
if (window.sidebar) // firefox
	window.sidebar.addPanel(title, url, "");
else if(window.opera && window.print){ // opera
	var elem = document.createElement('a');
	elem.setAttribute('href',url);
	elem.setAttribute('title',title);
	elem.setAttribute('rel','sidebar');
	elem.click();
} 
else if(document.all)// ie
	window.external.AddFavorite(url, title);
}

// Pop Up Window
var newwindow;
function sendToFriend(url)
{
	newwindow=window.open(url,'name','height=420, width=540, scrollbars=yes, toolbar=no, menubar=no, resizable=yes');
	if (window.focus) {newwindow.focus()}
}