// JavaScript Document
	function getWindow(url)
	{
		window.open(url);
	}	
	var imgs = new Array(); 
	var thisimg = 0;
	var imgcnt = 0;

   function previmg(propid)
      {
	    if(document.images)
		  {
			//alert(thisimg);
			
			thisimg++;
			if (thisimg >= imgcnt) thisimg = 0;
			document.getElementById("start").innerHTML=thisimg+1 +" of "+imgcnt;
			document.images.rollimg.src = imgs[thisimg];
		  }
	  }
	function nextimg(propid,totimage)
	{
		if (document.images) 
		{			
			thisimg--;
			if (thisimg < 0) thisimg = imgcnt-1;
			var imgnext=thisimg+1;
			document.getElementById("start").innerHTML=imgnext+" of "+imgcnt;
			document.images.rollimg.src = imgs[thisimg];
		}	  
	}
	
	function setImg(imgid)
	{
		
		document.images.rollimg.src = imgs[imgid];
			  
	}
	

