function show_jpopup(D,B,G,F,C,E,A){sTarget="jContestant_detail.asp?media="+D+"&rContestid="+B+"&rMemberId="+G+"&rSubid="+F+"&mdurl="+C+"&rViewType="+E+"&rContestantId="+A;showpopup(sTarget,"win",560,440,1)}function show_popup(C,A,E,D,B){sTarget="base_video.asp?media="+C+"&contestid="+A+"&memberid="+E+"&subid="+D+"&mdurl="+B;showpopup(sTarget,"win",560,440,1)}function openbarContest(A){url=A;detailsWin="width=550,height=300,scrollbars=yes,toolbar=no,resizable=yes,left=50,top=50";window.open(url,"name",detailsWin)}function CheckEnter(){alert("Please vote contest at the top first (not including Running contests)")}function showToolTip(E,F){var I=elementLeft(E);var G=elementTop(E);var B=document.getElementById("tooltip");while(F.indexOf("&singlequot;")>=0){F=F.replace("&singlequot;","'")}if(B){B.innerHTML=F;B.style.top=G-elementHeight(B);B.style.left=elementWidth(E)/2+I-elementWidth(B)/2;B.style.visibility="visible";if(document.all){var D=document.getElementById("iframe_theLayer");var C=elementLeft(B);var H=elementTop(B);var J=elementHeight(B);var A=elementWidth(B);D.style.position="absolute";D.style.top=H;D.style.left=C;D.style.width=A;D.style.height=J;D.style.filter="progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=0)";D.style.display=""}}}function hideToolTip(C,D){var B=document.getElementById("tooltip");if(B){B.style.visibility="hidden";if(document.all){var A=document.getElementById("iframe_theLayer");A.style.display="none"}}}function elementLeft(C){var B=0;var A;A=C;if(A.style.position=="absolute"){return A.offsetLeft}while(A.tagName.toUpperCase()!="BODY"){if(A.id==C.id||A.style.position!="relative"){B+=A.offsetLeft}A=A.offsetParent;if(A==null){break}}if(A!=null){B+=A.offsetLeft}return B}function elementTop(C){var B=0;var A;A=C;if(A.style.position=="absolute"){return A.offsetTop}while(A.tagName.toUpperCase()!="BODY"){if(A.id==C.id||A.style.position!="relative"){B+=A.offsetTop}A=A.offsetParent;if(A==null){break}}if(A!=null){B+=A.offsetTop}return B}function elementWidth(A){if(A.offsetWidth==null||A.offsetWidth==0){if(A.offsetParent==null){return 0}if(A.offsetParent.offsetWidth==null||A.offsetParent.offsetWidth==0){if(A.offsetParent.offsetParent!=null){return A.offsetParent.offsetParent.offsetWidth}else{return 0}}else{return A.offsetParent.offsetWidth}}else{return A.offsetWidth}}function elementHeight(A){if(A.offsetHeight==null||A.offsetHeight==0){if(A.offsetParent==null){return 0}if(A.offsetParent.offsetHeight==null||A.offsetParent.offsetHeight==0){if(A.offsetParent.offsetParent!=null){return A.offsetParent.offsetParent.offsetHeight}else{return 0}}else{return A.offsetParent.offsetHeight}}else{return A.offsetHeight}};