if (document.images)
{

         gallerygron = new Image(110, 34);
         gallerygron.src = "images/gallery_green_on.gif";
         gallerygroff = new Image(110, 34);
         gallerygroff.src = "images/gallery_green_off.gif";	
		 
		 lotecon = new Image(63, 48);
         lotecon.src = "images/button_lotec_on.gif";
         lotecoff = new Image(63, 48);
         lotecoff.src = "images/button_lotec_off.gif";
		 
		 diabloon = new Image(70, 48);
         diabloon.src = "images/button_diablo_on.gif";
         diablooff = new Image(70, 48);
         diablooff.src = "images/button_diablo_off.gif";
		 
		 gallery01on = new Image(85, 48);
         gallery01on.src = "images/button_gal01_on.gif";
         gallery01off = new Image(85, 48);
         gallery01off.src = "images/button_gal01_off.gif";		
		 
		 gallery02on = new Image(85, 48);
         gallery02on.src = "images/button_gal02_on.gif";
         gallery02off = new Image(85, 48);
         gallery02off.src = "images/button_gal02_off.gif";	
		 
		 contacton = new Image(85, 48);
         contacton.src = "images/button_contact_on.gif";
         contactoff = new Image(85, 48);
         contactoff.src = "images/button_contact_off.gif";				 
	    
 		 projon = new Image(110, 34);
         projon.src = "images/projects_on.gif";
         projoff = new Image(110, 34);
         projoff.src = "images/projects_off.gif";
		 
         gallerywhon = new Image(110, 34);
         gallerywhon.src = "images/gallery_white_on.gif";
         gallerywhoff = new Image(110, 34);
         gallerywhoff.src = "images/gallery_white_off.gif";
		 
         galleryredon = new Image(110, 34);
         galleryredon.src = "images/gallery_red_on.gif";
         galleryredoff = new Image(110, 34);
         galleryredoff.src = "images/gallery_red_off.gif";
		 
		 closeon = new Image(110, 34);
         closeon.src = "images/close_on.gif";
         closeoff = new Image(110, 34);
         closeoff.src = "images/close_off.gif";  
		 
         gallery1on = new Image(101, 26);
         gallery1on.src = "images/development/gallery1_on.gif";
         gallery1off = new Image(101, 26);
         gallery1off.src = "images/development/gallery1_off.gif";
		 
         gallery2on = new Image(101, 26);
         gallery2on.src = "images/development/gallery2_on.gif";
         gallery2off = new Image(101, 26);
         gallery2off.src = "images/development/gallery2_off.gif";

         historyon = new Image(61, 66);
         historyon.src = "images/history_on.gif";
         historyoff = new Image(61, 66);
         historyoff.src = "images/history_off.gif";
			 
         serviceson = new Image(60, 66);
         serviceson.src = "images/services_on.gif";
         servicesoff = new Image(60, 66);
         servicesoff.src = "images/services_off.gif";  
		  
		 developmenton = new Image(66, 66);
         developmenton.src = "images/development_on.gif";
         developmentoff = new Image(66, 66);
         developmentoff.src = "images/development_off.gif";  
			 
         }
         
         
         function reAct(imgName) {
                 if (document.images)
                 {
                 Act = eval(imgName + "on.src");
                 document[imgName].src = Act;
                 }
         }
         
         function deAct(imgName) {
                 if (document.images)
                 {
                 document[imgName].src = eval(imgName + "off.src");
                 }
		}
		 
		 
//open a dynamic popup with given dimensions, 
//randomly place it on screen 
function pop(img,imgWidth,imgHeight,imgName) {
var rndX=Math.floor(Math.random()*50)
var rndY=Math.floor(Math.random()*50)
var rndT=Math.floor(Math.random()*100)
var rndL=Math.floor(Math.random()*150)
  popUp = window.open("",'popWin','status=0,scrollbars=0,resizable=0,width='+imgWidth+',height='+imgHeight+',screenX='+rndX+',screenY='+rndY+',top='+rndT+',left='+rndL+'');

 
  popUp.document.open();
  popUp.document.writeln('<html>');
  popUp.document.writeln('<head>');
  popUp.document.writeln('<title>'+imgName+'</title>');
  popUp.document.writeln('');
  popUp.document.writeln('</head>');
  popUp.document.writeln('<body bgcolor="#ffffff" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" text="#000000" bgcolor="#108c42" background="images/logo.gif" onLoad="if(window.focus)self.focus();"');
  popUp.document.writeln('<center><a href=\"#\" onClick=\"window.close();\">' + '<img border="0" src="'+img+'" width="'+imgWidth+'" height="'+imgHeight+'" alt="'+imgName+'"></a></center>');
  popUp.document.writeln('</body>');
  popUp.document.writeln('</html>');
  popUp.document.close();
  popUp.focus();
}	


	 
