function showAd() {
}

var ord=100000+Math.floor( 1000000*Math.random() );
function viewImage(W, H) {
		imageWindow = window.open("", "imageViewer", "directories=no,height=" + H + ",width=" + W + ",location=no,scrollbars=auto,toolbar=no,resizable=yes,hotkeys=yes");
		imageWindow.focus();
		return true;
}


function openBlackboxWindow( contentIds )
{
    var NETSCAPE = "Netscape";
    var MSIE = "Microsoft Internet Explorer";

    var netscapeVersionThreshold = 4;
    var msieVersionThreshold = 5;
    
    var browserVersionText = navigator.appVersion;
    var browserName = navigator.appName;
    
    if( browserName==MSIE )
    {
        if( browserVersionText.indexOf("MSIE ") != -1 )
        {
						browserVersionText = browserVersionText.substring(browserVersionText.indexOf("MSIE ") + 5, browserVersionText.indexOf("MSIE ") + 6);
        }
    }
    var browserVersion = parseInt( browserVersionText );
    
    var okayForWindow = false;
    
    // okay to open window for Netscape Navigator 4.0+
    if( (browserName==NETSCAPE && browserVersion>=netscapeVersionThreshold) || (browserName==MSIE && browserVersion>=msieVersionThreshold) )
    {
        okayForWindow = true;       
    }
   
    // alert( "browser name = '" + browserName + "'\n browser version = '" + browserVersion + "'\nokayForWindow = " + okayForWindow );
   
    // open window if it works, otherwise just add and send them to blackbox
    if( okayForWindow )
    {
        addToBlackbox = window.open( "", "add_to_blackbox", "directories=no,height=200,width=300,location=no,scrollbars=yes,toolbar=no" );
        document.BlackboxAdder.coid.value = contentIds;
        document.BlackboxAdder.submit();
    }
    else
    {
        window.location = '/blackbox?view=folder_manager&mode=add&coid=' + contentIds + '&target=InboxFolder,0&link_key=' + Math.random();
    }
}


			function popup(W, H) {
					popupViewer = window.open("", "popupViewer", "directories=no,height=" + H + ",width=" + W + ",location=no,scrollbars=auto,toolbar=no,resizable=yes,hotkeys=yes");
					popupViewer.focus();
					return true;
			}


			var its;
			var browserName = '';
			var browserNameLong = '';
			var browserNew = '';
			var preloadFlag = false;
			var Macintosh = navigator.userAgent.indexOf('Mac')>0;

			function its() {
				var n = navigator;
				var ua = ' ' + n.userAgent.toLowerCase();
				var pl = n.platform.toLowerCase();
				var an = n.appName.toLowerCase();
		
				// browser version
				this.version = n.appVersion;
				this.nn = ua.indexOf('mozilla') > 0;
		
				// 'compatible' versions of mozilla aren't navigator
				if(ua.indexOf('compatible') > 0) {
					this.nn = false;
				}
				
				this.opera = ua.indexOf('opera') > 0;
				this.ie = ua.indexOf('msie') > 0;
				this.major = parseInt( this.version );
				this.minor = parseFloat( this.version );
		
				// platform
				this.mac = ua.indexOf('mac') > 0;
				this.win = ua.indexOf('win') > 0;
		
				// workaround for IE5 which reports itself as version 4.0
				if(this.ie) {
					if(ua.indexOf("msie 5") > 1) {
					var msieIndex = navigator.appVersion.indexOf("MSIE") + 5;
					this.major = parseFloat(navigator.appVersion.substr(msieIndex,3));
					}
				}
		
				return this;
			}
		
			function browserNaming() {
				its = new its();
				
				// is it a DOM-enabled browser?
				if (!document.getElementById) {
					browserNew = false;
				}
				else {
					browserNew = true;
				}
		
				// need the name, too
				if (its.opera) {
					browserName = "Opera";
				}
				else if (its.ie) {
					browserName = "IE";
				}
				else {
					browserName = "NS";
				}
		
				// and the number
				browserNameLong = browserName + its.major;
			}
			
			function resizeBrowser(w,h) 
			{
				thisTargetWidth = w;
				thisTargetHeight = h;
				// NS6 HAS DECENT SUPPORT FOR THIS
				if (self.innerWidth) {
					frameWidth = parent.innerWidth;
					frameHeight = parent.innerHeight;
					realWidth = self.outerWidth;
					realHeight = self.outerHeight;
					widthMod = (realWidth - frameWidth);
					heightMod = (realHeight - frameHeight);
					parent.window.resizeTo(thisTargetWidth+widthMod,thisTargetHeight+heightMod);
				}
				// WHEREAS THE IE SUPPORT SUCKS ASSCOCK
				else {
					// ie4-ie4.5 mac
					if ((Macintosh) && (navigator.appVersion.indexOf("MSIE 4.") > 1)) {
						parent.window.resizeTo(thisTargetWidth,thisTargetHeight+101);
					}
					// ie5+ mac
					else if (Macintosh) {
						if (self.screen.height == 768) {
							parent.window.moveTo(20,5);
						}
						parent.window.resizeTo(thisTargetWidth,thisTargetHeight+107);
					}
					// ie pc
					else {
						frameWidth = parent.document.body.offsetWidth;
						frameHeight = parent.document.body.offsetHeight;
						calcWidth = thisTargetWidth - frameWidth;
						calcHeight = thisTargetHeight - frameHeight + 3;
						parent.window.resizeBy(calcWidth,calcHeight);
					}
				}
			}

				function checkForSubmit() {
					var sindex = helpform.elements[3].selectedIndex;
					var stext = helpform.elements[3].options[sindex].text;

					if (stext == "I want to get my music on epitonic.com") {
						alert('Currently Epitonic is not accepting submissions!!! (See above)\nIf you feel the need to send in a submission then go ahead, but we\nwill most likely not respond. We\'re sorry, but we just don\'t have the\nstaff to keep up with submissions anymore.');
					}
				}

				
var prefs = '<table border="0" cellpadding="0" cellspacing="2"><tr><td valign="top"><a href="javascript:cClick(); resizeBrowser(835,700);"><img alt="resize your browser" border="0" height="14" hspace="3" src="/art/resize.gif" width="14"></a></td><td valign="top">set your browser\'s size to best fit epitonic</td></tr><tr><td valign="top"><img alt="set your font size" border="0" height="14" hspace="3" src="/art/fontsize.gif" width="14"></td><td valign="top">choose your font face:<br> <font style="font: 11px;"><a class="selecteddefaultfont" href="#" onclick="setActiveStyleSheet(\'default\');  window.location.reload()" style="font: 11px;"><b>default</b></a>, <a class="selectedbigfont" href="#" onclick="setActiveStyleSheet(\'big fonts\');  window.location.reload()" style="font: 13px;"><b>big</b></a>, <a class="selectedbiggerfont" href="#" onclick="setActiveStyleSheet(\'bigger fonts\'); window.location.reload()" style="font: 15px;"><b>bigger</b></a></font> </td></tr><tr><td valign="top"><a href="/blackbox/bb_edituser.jsp"><img alt="blackbox preferences" border="0" height="16" hspace="3" src="/art/bb_prefs.gif" width="14"></a></td><td valign="top">edit your blackbox prefs</td></tr><tr><td valign="top"><a href="/app/player_prefs.jsp" onclick="cClick(); return popup(\'300\', \'242\');" target="popupViewer"><img alt="launch player prefs" border="0" height="14" hspace="3" src="/art/player.gif" width="14"></a></td><td valign="top">choose your player prefs</td></tr></table>';