// JavaScript Document
//Bookmark this page function
function bookmarkThisPage(){

var browser=navigator.userAgent.toLowerCase();
var os=navigator.platform.toLowerCase();
var opera=(window.opera ? true : false);

if (browser.indexOf("opera") != -1) { 
 if (os.indexOf("win") != -1) {
 window.alert('Your browser does not support this function. Please click OK then press CTRL+T on your keyboard to bookmark this page.');
 }
 if (os.indexOf("mac") != -1) {
 window.alert('Your browser does not support this function. Please click OK then press APPLE+T on your keyboard to bookmark this page.');
 }
}

if (browser.indexOf("msie") != -1) { 
 if (os.indexOf("win") != -1) {
 window.external.AddFavorite(self.location.href,document.title)
 }
 if (os.indexOf("mac") != -1) {
 window.alert('Your browser does not support this function. Please click OK then press APPLE+D on your keyboard to bookmark this page.');
 }
 if (opera == true) {
    if (os.indexOf("win") != -1) {
	window.alert('Your browser does not support this function. Please click OK then press CTRL+T on your keyboard to bookmark this page.');
	}
	if (os.indexOf("mac") != -1) {
	window.alert('Your browser does not support this function. Please click OK then press APPLE+T on your keyboard to bookmark this page.');
	}
 }
}

if (browser.indexOf("netscape") != -1) { 
 if (os.indexOf("win") != -1) {
 window.alert('Your browser does not support this function. Please click OK then press CTRL+D on your keyboard to bookmark this page.');
 }
 if (os.indexOf("mac") != -1) {
 window.alert('Your browser does not support this function. Please click OK then press APPLE+D on your keyboard to bookmark this page.');
 }
 if (opera == true) {
    if (os.indexOf("win") != -1) {
	window.alert('Your browser does not support this function. Please click OK then press CTRL+T on your keyboard to bookmark this page.');
	}
	if (os.indexOf("mac") != -1) {
	window.alert('Your browser does not support this function. Please click OK then press APPLE+T on your keyboard to bookmark this page.');
	}
 }
}

if (browser.indexOf("firefox") != -1) { 
 if (os.indexOf("win") != -1) {
 window.alert('Your browser does not support this function. Please click OK then press CTRL+D on your keyboard to bookmark this page.');
 }
 if (os.indexOf("mac") != -1) {
 window.alert('Your browser does not support this function. Please click OK then press APPLE+D on your keyboard to bookmark this page.');
 }
}

if (browser.indexOf("safari") != -1) { 
 if (os.indexOf("win") != -1) {
 window.alert('Your browser does not support this function. Please click OK then press CTRL+D on your keyboard to bookmark this page.');
 }
 if (os.indexOf("mac") != -1) {
 window.alert('Your browser does not support this function. Please click OK then press APPLE+D on your keyboard to bookmark this page.');
 }
}
}
//end bookmark this page

//drop downs 
sfHover = function() {
	var sfEls = document.getElementById("nav").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
sfHover2 = function() {
	var sfEls = document.getElementById("cart").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover2";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover2\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);
if (window.attachEvent) window.attachEvent("onload", sfHover2);
