jQuery(document).ready(function() {
    jQuery('#nojsVideoRating').hide();
    jQuery('#jsVideoRating').show();

    jQuery('#btnUploadGo').click(function(e) {
        jQuery('.loadingImage').modal({position: ["50%","50%"] });
    });
    
    
});

function SelectStarRating(rating)
{
	switch (rating)
	{
		case 1:
			document.getElementById('imgStar1').src = rootPath + "images/star1.png";
			document.getElementById('imgStar2').src = rootPath + "images/star1grey.png";
			document.getElementById('imgStar3').src = rootPath + "images/star1grey.png";
			document.getElementById('imgStar4').src = rootPath + "images/star1grey.png";
			document.getElementById('imgStar5').src = rootPath + "images/star1grey.png";
			break;
		case 2:
			document.getElementById('imgStar1').src = rootPath + "images/star1.png";
			document.getElementById('imgStar2').src = rootPath + "images/star1.png";
			document.getElementById('imgStar3').src = rootPath + "images/star1grey.png";
			document.getElementById('imgStar4').src = rootPath + "images/star1grey.png";
			document.getElementById('imgStar5').src = rootPath + "images/star1grey.png";
			break;
		case 3:
			document.getElementById('imgStar1').src = rootPath + "images/star1.png";
			document.getElementById('imgStar2').src = rootPath + "images/star1.png";
			document.getElementById('imgStar3').src = rootPath + "images/star1.png";
			document.getElementById('imgStar4').src = rootPath + "images/star1grey.png";
			document.getElementById('imgStar5').src = rootPath + "images/star1grey.png";
			break;
		case 4:
			document.getElementById('imgStar1').src = rootPath + "images/star1.png";
			document.getElementById('imgStar2').src = rootPath + "images/star1.png";
			document.getElementById('imgStar3').src = rootPath + "images/star1.png";
			document.getElementById('imgStar4').src = rootPath + "images/star1.png";
			document.getElementById('imgStar5').src = rootPath + "images/star1grey.png";
			break;
		case 5:
			document.getElementById('imgStar1').src = rootPath + "images/star1.png";
			document.getElementById('imgStar2').src = rootPath + "images/star1.png";
			document.getElementById('imgStar3').src = rootPath + "images/star1.png";
			document.getElementById('imgStar4').src = rootPath + "images/star1.png";
			document.getElementById('imgStar5').src = rootPath + "images/star1.png";
			break;
	}
	
	document.getElementById('hidSelectedVideoRating').value = rating;
}

