// Swap Image For Product Group Page

function swapImage (img) {
var target = document.getElementById('main_image');
target.src = img;
}

// New Window

function openWindow(theURL,winName,features) {
	window.open(theURL,winName,features);
}

// 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);

// Pop Up Window

var newwindow;
function popup(url)
{
	newwindow=window.open(url,'name','height=400,width=485, scrollbars=yes, toolbar=no, menubar=no, resizable=yes');
	if (window.focus) {newwindow.focus()}
}
function popuppic(url)
{
	newwindow=window.open(url,'name','height=510,width=510, scrollbars=no, toolbar=no, menubar=no, resizable=yes');
	if (window.focus) {newwindow.focus()}
}

function bookmark(url,title){
  if ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4)) {
  window.external.AddFavorite(url,title);
  } else if (navigator.appName == "Netscape") {
    window.sidebar.addPanel(title,url,"");
  } else {
    alert("Press CTRL-D (Netscape) or CTRL-T (Opera) to bookmark");
  }
}