// JavaScript Document


function MM_openBrWindow(theURL,winName,features) 
{ //v2.0
var w =window.open(theURL,'temp1','width=450,height=280,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0');
w.focus(); return false;
}

function MM_openvideoWindow(theURL,winName) 
{ //v2.0
var video=window.open(theURL,'temp2','width=550,height=350,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0');
video.focus(); return false;
}
//-->


function MM_displaydiv(count)
{

		
		for( i=1;i<=10;i++)
		{
			if(document.getElementById('music'+i)!=null)
			{
			document.getElementById('music'+i).style.display = "none";
			}
		}
		document.getElementById('music'+count).style.display = "";

}



var hh=0;
var inter;
var height;

//we show the box by setting the visibility of the element and incrementing the height smoothly
function ShowBox(count,nos)
{

//Depending on the amount of text, set the maximum height here in pixels
	for( i=1;i<=10;i++)
		{
			if(document.getElementById('cover'+i)!=null)
			{
			if(i!=count)
			{
				document.getElementById('cover'+i).style.display = 'none';
				
			}
			}
		}
	
	height=((Math.ceil(nos/2))*115)+100;
	if(hh>=height)
	{
	clearInterval(inter);
	hh=0;
	return;
	}
	
	obj = document.getElementById("cover"+count);
	document.getElementById("music"+count).style.visibility = 'visible';
	obj.style.display = '';
	obj.style.visibility = 'visible';
	hh+=5;
	obj.style.height = hh + 'px';
}

function closebox()
{

//Depending on the amount of text, set the maximum height here in pixels
	
	for( i=1;i<=10;i++)
	{
			if(document.getElementById('cover'+i)!=null)
			{
				
					document.getElementById('cover'+i).style.display = 'none';
					
				
			}
	}
	
}


function ShowBoxvideo(count,nos)
{

//Depending on the amount of text, set the maximum height here in pixels
	for( i=1;i<=10;i++)
		{
			if(document.getElementById('videocover'+i)!=null)
			{
			if(i!=count)
			{
				document.getElementById('videocover'+i).style.display = 'none';
				
			}
			}
		}
	
	height=((Math.ceil(nos/2))*118)+100;
	if(hh>=height)
	{
	clearInterval(inter);
	hh=0;
	return;
	}
	
	obj = document.getElementById("videocover"+count);
	document.getElementById("video"+count).style.visibility = 'visible';
	obj.style.display = '';
	obj.style.visibility = 'visible';
	hh+=5;
	obj.style.height = hh + 'px';
}


function closeboxvideo()
{

//Depending on the amount of text, set the maximum height here in pixels
	
	for( i=1;i<=10;i++)
		{
			if(document.getElementById('videocover'+i)!=null)
			{
			
			
				document.getElementById('videocover'+i).style.display = 'none';
				
			
			}
		}
	
}


//same way as above but reversed


function disable()
{

	if(document.getElementById('type').options[document.getElementById('type').selectedIndex].value=="audiotrack" || document.getElementById('type').options[document.getElementById('type').selectedIndex].value=="videotrack")
	{
		document.getElementById('country').style.display='none';
		document.getElementById('genre').style.display='none';
		document.getElementById('forhide').style.display='none';
		document.getElementById('forhide2').style.display='none';

		
	}

	if(document.getElementById('type').options[document.getElementById('type').selectedIndex].value=="audioalbum" || document.getElementById('type').options[document.getElementById('type').selectedIndex].value=="videoalbum")
	{
		document.getElementById('country').style.display='';
		document.getElementById('genre').style.display='';
		document.getElementById('forhide').style.display='';
		document.getElementById('forhide2').style.display='';
	}

}

function pic(no)
{
		for(i=1;i<=4;i++)
		{
			if(document.getElementById('pict'+i)!=null)
			{
				document.getElementById('pict'+i).style.height = "50";
				document.getElementById('pict'+i).style.width = "50";
			}
			
		}
			document.getElementById('pict'+no).style.height = "150";
			document.getElementById('pict'+no).style.width ='auto';
			
}


function tracksaction( )
{


document.getElementById('prof').style.display = 'none'; 
document.getElementById('tracks').style.display = ''; 

}

function profileaction( )
{

document.getElementById('tracks').style.display = 'none'; 
document.getElementById('prof').style.display = ''; 

}








