function SwapImage()

{
   var doc=document, args=arguments;
   doc.$imgSwaps = new Array();
   for(var i=2; i<args.length; i+=2)
   {
      var elem=FindObject(args[i]);
      if(elem)
      {
         doc.$imgSwaps[doc.$imgSwaps.length]=elem;
         elem.$src=elem.src;
         elem.src=args[i+1];
      }
   }
}

function FindObject(id, doc)
{
   var child, elem;
   if(!doc)
      doc=document;
   if(doc.getElementById)
      elem=doc.getElementById(id);
   else
   if(doc.layers)
      child=doc.layers;
   else
   if(doc.all)
      elem=doc.all[id];
   if(elem)
      return elem;
   if(doc.id==id || doc.name==id)
      return doc;
   if(doc.childNodes)
      child=doc.childNodes;
   if(child)
   {
      for(var i=0; i<child.length; i++)
      {
         elem=FindObject(id,child[i]);
         if(elem)
            return elem;
      }
   }
   var frm=doc.forms;
   if(frm)
   {
      for(var i=0; i<frm.length; i++)
      {
         var elems=frm[i].elements;
         for(var j=0; j<elems.length; j++)
         {
            elem=FindObject(id,elems[i]);
            if(elem) return elem;
         }
      }
   }
   return null;
}
function getURLParam(strParamName){
  var strReturn = "";
  var strHref = window.location.href;
  if ( strHref.indexOf("&") > -1 ){
    var strQueryString = strHref.substr(strHref.indexOf("&"));
    var aQueryString = strQueryString.split("&");
    for ( var iParam = 0; iParam < aQueryString.length; iParam++ ){
      if (
aQueryString[iParam].indexOf(strParamName + "=") > -1 ){
        var aParam = aQueryString[iParam].split("=");
        strReturn = aParam[1];
        break;
      }
    }
  }
  return strReturn;
}
function showbigled (picture, height, width) {
	window.showModalDialog("bigPicLED.html?open&picture="+picture,picture,"dialogHeight:"+height+"px;dialogWidth:"+width+"px;resizable: No; status: No; scroll: Yes ");
}
function showBigPic (picture, height, width) {
	window.showModalDialog("bigPic.php?open&picture="+picture,picture,"dialogHeight:"+height+"px;dialogWidth:"+width+"px;resizable: No; status: No; scroll: No ");
}
function showBigPicLED (picture, height, width) {
	window.showModalDialog("bigPicLED.php?open&picture="+picture,picture,"dialogHeight:"+height+"px;dialogWidth:"+width+"px;resizable: No; status: No; scroll: Yes ");
}
function showBigPicSW (picture, height, width) {
	window.showModalDialog("bigPicswfir.html?open&picture="+picture,picture,"dialogHeight:"+height+"px;dialogWidth:"+width+"px;resizable: No; status: No; scroll: No ");
}
function showBigPicSCAGSm (picture, height, width) {
	window.showModalDialog("bigPicSCAGSm.html?open&picture="+picture,picture,"dialogHeight:"+height+"px;dialogWidth:"+width+"px;resizable: No; status: No; scroll: Yes ");
}