var formName = "document.MainQueueForm."; var oName; var cbName; var opName; function TF(s) { oName = s.name; cbName = s.name; cbName = cbName.replace("OR", "R" ); if ((eval(formName + cbName).checked) != true) { Highlight(s); } } function TB(s) { oName = s.name; cbName = s.name; cbName = cbName.replace("OR", "R"); opName = s.name; opName = opName.replace("OR", "OP"); if ((eval(formName + cbName).checked) != true) { if ((eval(formName + opName).value) == (eval(formName + oName).value)) { Unhighlight(s); } } } function T(j) { if (j.checked) { Highlight(j,"fromQueue"); } else { Unhighlight(j,"fromQueue"); } } function TA(j) { if (j.checked) { Highlight(j,"fromAwait"); } else { Unhighlight(j,"fromAwait"); } } function Highlight(j,whereFrom) { var n = null; if (j.parentNode && j.parentNode.parentNode) { n = j.parentNode.parentNode; } else if (j.parentElement && j.parentElement.parentElement) { n = j.parentElement.parentElement; } if (n) { if ((whereFrom == "fromQueue") || (whereFrom == "fromAwait")) { n.className = "bgremove"; } else { if (n.className == "bd") { n.className = "bgreorder"; } } } } function Unhighlight(j,whereFrom) { var cbName = j.name; var oName = j.name oName = oName.replace("R", "OR"); var opName = j.name; opName = opName.replace("R", "OP"); var n = null; if (j.parentNode && j.parentNode.parentNode) { n = j.parentNode.parentNode; } else if (j.parentElement && j.parentElement.parentElement) { n = j.parentElement.parentElement; } if (n) { if (whereFrom == "fromQueue") { if ((eval(formName + opName).value) == (eval(formName + oName).value)) { if (n.className == "bgremove") { n.className = "bd"; } } else { if (n.className == "bgremove") { n.className = "bgreorder"; } } } else if (whereFrom == "fromAwait") { if (n.className == "bgremove") { n.className = "bgawaiting"; } } else { if (n.className == "bgreorder") { n.className = "bd"; } } } } function swapSrc (movieId) { button = document.getElementById("mt" + movieId); button.src=""; } function moveToTopMouseover() { this.src = IMAGE_ROOT + "pages/queue/movetop-hv.gif"; window.status = "Move this movie to the top of your Queue"; } function moveToTopMouseout() { this.src = IMAGE_ROOT + "pages/queue/movetop.gif"; window.status = ""; } function moveMovieToTop() { document.location.href=PAGE_ROOT + "MoveToTop?movieid=" + this.movieid + "&lnkctr=qmtt&fromq=true"; } function mt(movieId) { button = document.getElementById("mt" + movieId); button.alt = "Move this movie to the top of your Queue"; button.movieid = movieId; button.onmouseover = moveToTopMouseover; button.onmouseout = moveToTopMouseout; button.onclick = moveMovieToTop; }