var clean=1;
var pageName;
var imageName;

if (document.images) {
  news2on 		= new Image(100,25); news2on.src = "/images/battle/scc/pix/p-news2.gif";
  news2off 		= new Image(100,25); news2off.src = "/images/battle/scc/pix/i-news2.gif";
  gen2on 		= new Image(100,34); gen2on.src = "/images/battle/scc/pix/p-gen2.gif";
  gen2off 		= new Image(100,34); gen2off.src = "/images/battle/scc/pix/i-gen2.gif";
  terran2on 	= new Image(100,34); terran2on.src = "/images/battle/scc/pix/p-terran2.gif";
  terran2off 	= new Image(100,34); terran2off.src = "/images/battle/scc/pix/i-terran2.gif";
  proton 		= new Image(100,34); proton.src = "/images/battle/scc/pix/p-prot2.gif";
  protoff 		= new Image(100,34); protoff.src = "/images/battle/scc/pix/i-prot2.gif";
  zergon 		= new Image(100,34); zergon.src = "/images/battle/scc/pix/p-zerg2.gif";
  zergoff 		= new Image(100,34); zergoff.src = "/images/battle/scc/pix/i-zerg2.gif";
  wallon 		= new Image(100,34); wallon.src = "/images/battle/scc/pix/p-wall.gif";
  walloff 		= new Image(100,34); walloff.src = "/images/battle/scc/pix/i-wall.gif";
  battleon 		= new Image(100,34); battleon.src = "/images/battle/scc/pix/p-battle.gif";
  battleoff 	= new Image(100,34); battleoff.src = "/images/battle/scc/pix/i-battle.gif";
  cheatson 		= new Image(100,34); cheatson.src = "/images/battle/scc/pix/p-cheats.gif";
  cheatsoff 	= new Image(100,34); cheatsoff.src = "/images/battle/scc/pix/i-cheats.gif";
  faq2on 		= new Image(100,34); faq2on.src = "/images/battle/scc/pix/p-faq2.gif";
  faq2off 		= new Image(100,34); faq2off.src = "/images/battle/scc/pix/i-faq2.gif";
  mapson 		= new Image(100,34); mapson.src = "/images/battle/scc/pix/p-maps.gif";
  mapsoff 		= new Image(100,34); mapsoff.src = "/images/battle/scc/pix/i-maps.gif";
  enlargedon 	= new Image(100,34); enlargedon.src = "/images/battle/scc/pix/p-enlarged.gif";
  enlargedoff 	= new Image(100,34); enlargedoff.src = "/images/battle/scc/pix/i-enlarged.gif";
  exit2on 		= new Image(100,34); exit2on.src = "/images/battle/scc/pix/p-exit2.gif";
  exit2off 		= new Image(100,34); exit2off.src = "/images/battle/scc/pix/i-exit2.gif";
}

function pop( pageName ) {
  popup=open( "/scc/popup/" + pageName + ".htm", "popup", "width=350,height=335,resizeable=yes" );
  clean=0;
}

function endpop() {
  if ( clean!=1 && !popup.closed ) {
    popup.close();
  }
}

function point( imageName ) {
  if ( document.images ) {
    document[ imageName ].src = eval(imageName + "on.src");
  }
}

function nopoint( imageName ) {
  if ( document.images ) {
    document[ imageName ].src = eval(imageName + "off.src");
  }
}
