		
		var nInx=0;
		var iInterval = 0;
		var aImgData=new Array();
		var aVData=new Array();
		var pRedirect="";
		
		function ImgData( path, capt, crdt, wdth, hght )
		{
			this.path = path;
			this.capt = capt;
		}
		
		function VData(idE,p,idR,idD,idP)
		{
  	    
			this.id = idE;
			this.value = p;
			this.idR = idR;
			this.idD = idD;
			this.idP = idP;			
		}
		
		function LData(idE,idP)
		{
		try 
			{		
		    var E=document.getElementById(idE);
		    var ln=E.length;
		    E.options[ln]=new Option(idP);
		    E.options[ln].selected=true;
		    }
		    catch (ee)
		    {
		    }
		}
		
		function prev()
		{
			nInx = nInx > 0 ? nInx-1 : (aImgData.length-1);
			document.images.slides.style.display='block';
			applyeffect(aImgData[nInx]);
		}
		function next()
		{
			nInx = nInx < (aImgData.length-1) ? nInx+1 : 0;
			document.images.slides.style.display='block';
			applyeffect(aImgData[nInx]);
			
		}	
		function applyeffect(oImg)
		{
		    if (document.all)
			   imgcontainer.filters[0].apply();
			var oSlides=document.images.slides;
			try 
			{
				var cpt = document.getElementById('cptn');
				if(typeof(cpt) != "undefined") cpt.innerHTML	= oImg.capt;		
				oSlides.src	= oImg.path;
				imgcontainer.filters[0].play();
			}
			catch (e)
			{
			}
		}	
 	     function goDotNet(who,yep)
  	        {
  	             var L=document.getElementById('L'+who);
  	             var T=document.getElementById('T'+who);
  	             var Tr=document.getElementById('Tr'+who);
  	             for (var i=0; i<aVData.length;i++)
  	              {
  	                if(aVData[i].id==L.id&&L.options[L.selectedIndex].text==aVData[i].idD)
  	                  {
  	                     T.innerHTML=formatAsMoney(aVData[i].value);
  	                     if (yep)
  	                     {
  	                        window.location= pRedirect + '?0001=' + who  + '&0002=' + aVData[i].idR + '&0003=' + aVData[i].idP + '&0004=' + aVData[i].idD + '&0005=' + Tr.options[Tr.selectedIndex].value;
  	                     }
  	                  }

  	              }
  	        }
	
