function thumbVRClick(e, contentUrl, caption, imageWidth, imageHeight, fov, fovmin, fovmax, speed,PlayerType,FileURL)
{

	if(document.getElementById || document.all)
	{
		var bigMedia = document.getElementById('ptviewer');
		if(bigMedia != null)
		{
		    if(PlayerType=='JavaPlayer')
		    {	
		        StartWithNewSpeed(0);
			    contentUrl = ResourceURL(contentUrl);
			    document.getElementById('BigVRCaption').innerHTML = caption.replace(/\&/g, '&amp;');
			    SetCurrentImageSize(imageWidth, imageHeight);
			    LoadNewPanoWithFovAndSpeed(contentUrl, fov, fovmin, fovmax, speed);
			    CancelEvent(e);			
		    }
		    else
		    {
			    contentUrl = ResourceURL(FileURL);
			    document.getElementById('BigVRCaption').innerHTML = caption.replace(/\&/g, '&amp;');			
	            LoadNewFlashVR(contentUrl);
	           // CancelEvent(e);	
		    }		
		}
	}
}
function LoadNewFlashVR(FileURL)
{
        var str=window.location.href
        //window.location.href;
        if(str.indexOf("vrstatus")>0)
        {
        str=str.replace('vrstatus=Stop',"vrstatus=Play");        
        }
        else
        {
        str = str+"&vrstatus=Play";
        }
        
        str = str+ "&FileURL=" + FileURL;
        
   
     //   window.location.href = str;   
}
