// Musicahead JavaScript Document

function hover(img, whichway) {
	if (whichway == "over") img.src = img.src.substring(0, img.src.length-4) + "-over" + img.src.substring(img.src.length-4)
	else if (img.src.indexOf("over") != -1) img.src = img.src.substring(0, img.src.length-9) + img.src.substring(img.src.length-4)	
}
<!--
function playVid(name,sec,lan,ext) {
	var w=700;
	var h=520;
	var scrW=(screen.availWidth/2-(w/2)) ;
	var scrH=(screen.availHeight/2-(h/2));	
	attS='toolbar=no,location=no,status=yes,menubar=no,scrollbars=no,resizable=no,width='+w+',height='+h+',left='+scrW+',top='+scrH;
	mmwin=window.open('/MAvPlayer/video.php?id='+name+'&cat='+sec+'&lan='+lan+'&ex='+ext, 'ITvPlayer', attS);		     
	mmwin.focus();
}
var Class = {
	create: function() {
		return function() {
			this.initialize.apply(this, arguments);
		}
	}
}

function playAud(name,sec,lan) {
	var w=200;
	var h=100;
	var scrW=(screen.availWidth/2-(w/2)) ;
	var scrH=(screen.availHeight/2-(h/2));	
	attS='toolbar=no,location=no,status=yes,menubar=no,scrollbars=no,resizable=no,width='+w+',height='+h+',left='+scrW+',top='+scrH;
	mmwin=window.open('/MAPlayer/index.php?id='+name+'&cat='+sec+'&lan='+lan, 'MAPlayer', attS);		     
	mmwin.focus();
}
var Class = {
	create: function() {
		return function() {
			this.initialize.apply(this, arguments);
		}
	}
}

function mailSong(id){
	 var scrW=(screen.availWidth/2-150) ;
	 var scrH=(screen.availHeight/2-65);	
	 attS='toolbar=no,location=no,status=yes,menubar=no,scrollbars=no,resizable=no,width=300,height=130,left='+scrW+',top='+scrH;
	 mMmail=window.open('/mailSongs.php?id=' + id+'&lan=1', 'mMmail', attS);	 
	return false;
}

function mailSong(id, report, lan){
	 var scrW=(screen.availWidth/2-150) ;
	 var scrH=(screen.availHeight/2-65);	
	 if(report=='report') {
	 attS='toolbar=no,location=no,status=yes,menubar=no,scrollbars=no,resizable=no,width=300,height=110,left='+scrW+',top='+scrH;
	 mMmail=window.open('/includes/mailsongs.php?id=' + id+'&cat='+report, 'MAmail', attS);	
	 }
	 else {
	attS='toolbar=no,location=no,status=yes,menubar=no,scrollbars=no,resizable=no,width=300,height=240,left='+scrW+',top='+scrH;	
	 mMmail=window.open('/includes/mailsongs.php?id=' + id+'&cat='+report+'&lan='+lan, 'MAmail', attS);	
	 } 
	return false;
}
function showhide(ID)
{
	var o = document.getElementById(ID);
	if (o.style.display == 'none') o.style.display = '';
	else o.style.display = 'none';
}