

/* Thumbnail rotation */
var rotateIndex = 0;
var rotateObject = false;
var rotateTimeout = false;

function rotate()
{
    if(rotateObject)
    {
    rotateIndex ++ ;
    rotateObject.src = rotateObject.src.replace(/[0-9]+\.jpg/,rotateIndex+'.jpg');
    if(rotateIndex > 2) rotateIndex = 0;
    rotateTimeout = setTimeout("rotate()",500);
    }
}

function startRotate()
{
    rotateObject = this;
    rotate();
}

function endRotate() {
    rotateIndex = -1;
    clearTimeout(rotateTimeout);
    rotateObject.src = rotateObject.src.replace(/[0-9]+\.jpg/,'0.jpg');    
    rotateObject = false;
    
}

/* start handlers etc */
 jQuery(document).ready(function() {
                $(".rotate img").mouseover(startRotate);
                $(".rotate img").mouseleave(endRotate);
                
            });
loaderVisible = true;
VFResult = "";
VFProxy = "";
VFThumbnail = "";            
