// JavaScript Document

function mouseOverImage(id)
    {
		var a, x, z;
		var ById;
//		alert(id);
		x=0; z=0;
		
		do
		{
		if(id=="img1") 
		{x=0; z=255;}
		else if (id=="img2")
		{x=1; y="rep"; z=255}
		else if (id=="img3")
		{x=2; y="rep"; z=255}
		else if (id=="img4")
		{x=3; y="rep"; z=255}
		else if (id=="img5")
		{x=4; y="rep"; z=255}
		else
		{x=255; z=255;}
		}
		while (z!=255);
		a='img';
		z=x+1;
		a=a+z;
		
		var l, i, IdLeft, IdRight, Ins, ByIdNew;
		
		ById=document.getElementById(a).src;
		l = ById.length;
		i = ById.search('-pc');
	
		Ins = '-ipc';
				
		IdLeft = ById.substr(0, i);
		IdRight = ById.substr(i + 3, l);
//		alert(IdLeft + "   " + IdRight);
		ByIdNew = IdLeft + Ins + IdRight;
		document.getElementById(a).src = ByIdNew;
//		alert(ById + "   " + ByIdNew); 
    }
 
 function mouseOutImage(id)
    {
		var a, x, z;
		x=0; z=0;
//		loadimageBas();
		do
		{
		if(id=="img1") 
		{x=0; z=255;}
		else if (id=="img2")
		{x=1; y="rep"; z=255}
		else if (id=="img3")
		{x=2; y="rep"; z=255}
		else if (id=="img4")
		{x=3; y="rep"; z=255}
		else if (id=="img5")
		{x=4; y="rep"; z=255}
		else
		{x=255; z=255;}
		}
		while (z!=255);
		a='img';
		z=x+1;
		a=a+z;
		
		var l, i, IdLeft, IdRight, Ins, ByIdNew;
		
		ById=document.getElementById(a).src;
		l = ById.length;
		i = ById.search('-ipc');
	
		Ins = '-pc';
				
		IdLeft = ById.substr(0, i);
		IdRight = ById.substr(i + 4, l);
		
		ByIdNew = IdLeft + Ins + IdRight;
		document.getElementById(a).src = ByIdNew; 
//		alert(ById + "   " + ByIdNew); 
    }
 

