// JavaScript Document
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function openPop(theURL,winName,features) {
  	window.open(theURL,winName,features);
}
function details(product){
	if(product != ''){
		openPop('product_details.php?p='+product,'product_details','toolbar=0,location=0,status=1,menubar=0,scrollbars=1,resizable=0,width=450,height=450');
	}
}
function close_win(){
	window.close();
}

function setFocus(el){
	if(document.getElementById(''+el+'') != 'undefined'){
		document.getElementById(''+el+'').focus();
	}
}
function getValue(el){
	if(document.getElementById(''+el+'') != 'undefined'){
		return document.getElementById(''+el+'').value;
	}
}
function getElement(el){
	if(document.getElementById(''+el+'') != 'undefined'){
		return document.getElementById(''+el+'');
	}
}
function engageSWF(){
  if (document.getElementsByTagName) {
      var objs = document.getElementsByTagName("object");
      for (i=0; i<objs.length; i++) {
        objs[i].outerHTML = objs[i].outerHTML;
      }
   }
}

function disengageSWF() {
  if (document.getElementsByTagName) {
    var objs = document.getElementsByTagName("object");
    for (i=0; i<objs.length; i++) {
      objs[i].outerHTML = "";
    }
  }
}

function noop(){return true;}

function go_back(){history.go(-1);}

