function ChangeVideo(Filename, DescName) {
	var FileNameId = document.getElementById("FileName");
	FileNameId.innerHTML = Filename;
	var FileDescId = document.getElementById("FileDesc");
	var Hidden = document.getElementById("Desc_" + DescName);
	var Description = Hidden.value;
	while (Description.indexOf("&quote;") >= 0) {
		Description = Description.replace("&quote;", "\"");
	}

	FileDescId.innerHTML = Description;

}

function ShowPopUpPhotos(divid, BrandName, Name, Image2, Image3, Image4, Image5) {
    var moveX = 70;
    var moveY = 70;

    var imgPosX = MyfindPosX(document.getElementById(divid));

    var imgPosY = MyfindPosY(document.getElementById(divid));

    var noPx = document.childNodes ? 'px' : 0;
    var PhotBox = document.getElementById("PhotoBox");


    PhotBox.innerHTML += "<table width=310 height=340 cellpadding=0 cellspacing=0>";
    PhotBox.innerHTML += "<tr><td colspan=2 align=left valign=top class=\"MAINTEXTBLACK\" style=\"font-size:12px; line-height:13px;\">" + BrandName + "</td></tr>";
    PhotBox.innerHTML += "<tr><td colspan=2 align=left valign=top class=\"MAINTEXT\" style=\"font-size:12px; line-height:13px;\">" + Name + "</td></tr>";
    /* PhotBox.innerHTML += "<tr><td align=left valign=top>";
    PhotBox.innerHTML += "<table width=160 border=0 cellpadding=0 cellspacing=0>";
    PhotBox.innerHTML += "<tr><td align=left valign=top><img src=\"" + Image3 + "\" height=90></td></tr>";
    PhotBox.innerHTML += "<tr><td align=left valign=top><img src=\"" + Image4 + "\" height=90></td></tr>";
    PhotBox.innerHTML += "<tr><td align=left valign=top><img src=\"" + Image5 + "\" height=90></td></tr>";
    PhotBox.innerHTML += "</table></td>";
    PhotBox.innerHTML += "<td align=right valign=top><img src=\"" + Image2 + "\" width=133></td></tr>";*/
    PhotBox.innerHTML += "</table>";

    PhotBox.style.left = (imgPosX + moveX) + noPx;
    PhotBox.style.top = (imgPosY + moveY) + noPx;
    PhotBox.style.visibility = 'visible';
}

function MyfindPosX(obj) {
    var curleft = 0;

    if (obj.offsetParent) {
        while (1) {
            curleft += obj.offsetLeft;
            if (!obj.offsetParent) {
                break;
            }
            obj = obj.offsetParent;
        }
    } else if (obj.x) {
        curleft += obj.x;
    }
    return curleft;
}
function MyfindPosY(obj) {
    var curtop = 0;
    if (obj.offsetParent) {
        while (1) {
            curtop += obj.offsetTop;
            if (!obj.offsetParent) {
                break;
            }
            obj = obj.offsetParent;
        }
    } else if (obj.y) {
        curtop += obj.y;
    }
    return curtop;
}


function HidePopUpPhotos() {
    var PhotBox = document.getElementById("PhotoBox");
    PhotBox.style.visibility = 'hidden';
}
