<!--


/* Flash Resize Functions */
//First force IE to use the DOM standards
if(document.all && !document.getElementById){
    document.getElementById = function(id){ return document.all[id] }
}

//This is the actual function that resizes your swf-conainer
function setFlashHeight(targetDiv,newHeight){
	if (document.getElementById) {document.getElementById(targetDiv).style.height=newHeight+'px'; } else { alert("error"); }
}

// jump menu
function jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}


// popup a html window that self sizes to the image being passed in
function highlightLG(img){
	window.open('/_scripts/imgPopup.php?/_images/products/'+img, 'detail', 'width=300,height=300,menu=false,scrollbars=false,resizable=true,toolbar=false,menubar=false,location=false,status=true,directories=false');
}


// hide email from bots
function emailLink(email, emailHost){
  document.write("<a href=" + "mail" + "to:" + email + "@" + emailHost+ ">" + email + "@" + emailHost+ "</a>")
}


/* popup */
function htmlPopup(url, width, height){
	window.open(url, 'popup', 'width='+width+',height='+height+',menu=false,scrollbars=false,resizable=true,toolbar=false,menubar=false,location=false,status=true,directories=false');
}


function jsInclude(url){
  document.write('<script type="text/javascript" src="' + url + '"></script>');
}

/* confirm an action via <a> link */
function confirmAction(message, url){
	if(confirm(message)) window.location=url;
}

//--> 
