function P7_swapClass(){ 
//Ex. P7_swapClass(1,'p1','open','closed','li')
//Parms...Toggle Option, Set This Element (ID), Swap From Class, Swap To Class, Tag to Use
//"1": Run the SwapClass script in full toggle mode
//"p1": Exclude the element with an ID of p1 from the operation
//"open": Find all elements assigned the .open class
//"closed": Set all elements it finds with the .open class to the .closed class
//"li": Restrict the search to <li> elements only
 var i,x,tB,j=0,tA=new Array(),arg=P7_swapClass.arguments;
 if(document.getElementsByTagName){for(i=4;i<arg.length;i++){tB=document.getElementsByTagName(arg[i]);
  for(x=0;x<tB.length;x++){tA[j]=tB[x];j++;}}for(i=0;i<tA.length;i++){
  if(tA[i].className){if(tA[i].id==arg[1]){if(arg[0]==1){
  tA[i].className=(tA[i].className==arg[3])?arg[2]:arg[3];}else{tA[i].className=arg[2];}
  }else if(arg[0]==1 && arg[1]=='none'){if(tA[i].className==arg[2] || tA[i].className==arg[3]){
  tA[i].className=(tA[i].className==arg[3])?arg[2]:arg[3];}
  }else if(tA[i].className==arg[2]){tA[i].className=arg[3];}}}}
}

function P7_Scrub(obj) { //v1.0 by PVII
 if(obj.blur){obj.blur();}
}

