// JavaScript Document

/**
 * exicute on start - up so that the first vieo plays automatically
 *
 * by Inna Gutnik
 */
function init(){
	var rand_num = Math.ceil(10*Math.random());

	playVideo(rand_num);
	
	 //playVideo(rand_num);
	 setSplashToCenter();
	 document.body.style.cursor = '';
}
var currentVideo;
/**
 * recieves a int 
 * Runs through an xml document and filters information
 * returns a string
 * by Inna Gutnik
 */
function playVideo(videoNum){
	currentVideo = videoNum;
	resetVideoButtons();
	mouseOverVideoIcon(videoNum);

		
			
			if(currentVideo == 1 ){
	var str =  '<object width="480" height="350"><param name="movie" value="http://www.youtube.com/v/ILWSp0m9G2U&hl=en_GB&fs=1&rel=0"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/ILWSp0m9G2U&hl=en_GB&fs=1&rel=0&autoplay=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="350"></embed></object> '; 
	document.getElementById('videos_container').innerHTML = str;
	
	}
else if(currentVideo == 2){
/*	<object width="480" height="350"><param name="movie" value="http://www.youtube.com/v/slldMEPvUqA&hl=en_GB&fs=1&rel=0"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/slldMEPvUqA&hl=en_GB&fs=1&rel=0&autoplay=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="350"></embed></object>
*/	
	
	var str ='<object width="480" height="350"><param name="movie" value="http://www.youtube.com/v/q9H3mTsR3II&hl=en_GB&fs=1&"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/q9H3mTsR3II&hl=en_GB&fs=1&rel=0&autoplay=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="350"></embed></object>';  
	document.getElementById('videos_container').innerHTML = str;
	
	}
else if(currentVideo == 3){
	var str = '<object width="480" height="350"><param name="movie" value="http://www.youtube.com/v/GtfZbj4J71A&hl=en_GB&fs=1&rel=0"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/GtfZbj4J71A&hl=en_GB&fs=1&rel=0&autoplay=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="350"></embed></object>';
	document.getElementById('videos_container').innerHTML = str;
	
	}
else if(currentVideo == 4){
	var str = '<object width="480" height="350"><param name="movie" value="http://www.youtube.com/v/WqHQ_wWbG9Y&hl=en_GB&fs=1&rel=0"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/WqHQ_wWbG9Y&hl=en_GB&fs=1&rel=0&autoplay=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="350"></embed></object>';
	document.getElementById('videos_container').innerHTML = str;
	
	}
else if(currentVideo == 5){
	var str = '<object width="480" height="350"><param name="movie" value="http://www.youtube.com/v/rPJz3syNbtE&hl=en_GB&fs=1&rel=0"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/rPJz3syNbtE&hl=en_GB&fs=1&rel=0&autoplay=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="350"></embed></object>';
	document.getElementById('videos_container').innerHTML = str;
	
	}
else if(currentVideo == 6){
	var str = '<object width="480" height="350"><param name="movie" value="http://www.youtube.com/v/2kXMcjKhBgU&hl=en_GB&fs=1&rel=0"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/2kXMcjKhBgU&hl=en_GB&fs=1&rel=0&autoplay=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="350"></embed></object> ';
	document.getElementById('videos_container').innerHTML = str;
	
	}
else if(currentVideo == 7){
	var str = '<object width="480" height="350"><param name="movie" value="http://www.youtube.com/v/ihi7FtIRBE0&hl=en_GB&fs=1&rel=0"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/ihi7FtIRBE0&hl=en_GB&fs=1&rel=0&autoplay=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="350"></embed></object>';
	document.getElementById('videos_container').innerHTML = str;
	
	}
else if(currentVideo == 8){
	var str = '<object width="480" height="350"><param name="movie" value="http://www.youtube.com/v/guB_jQkCzCo&hl=en_GB&fs=1&rel=0"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/guB_jQkCzCo&hl=en_GB&fs=1&rel=0&autoplay=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="350"></embed></object>';
	document.getElementById('videos_container').innerHTML = str; 
	
	
	}
else if (currentVideo == 9){
	/*<object width="480" height="350"><param name="movie" value="http://www.youtube.com/v/-1YjmXSyHa8&hl=en_GB&fs=1&rel=0"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/-1YjmXSyHa8&hl=en_GB&fs=1&rel=0&autoplay=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="350"></embed></object>
*/	
	
	
	
	var str = '<object width="480" height="350"><param name="movie" value="http://www.youtube.com/v/aJMZUeGshvU&hl=en_GB&fs=1&"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/aJMZUeGshvU&hl=en_GB&fs=1&rel=0&autoplay=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="350"></embed></object>';
	document.getElementById('videos_container').innerHTML = str;
	
	}
	else if(currentVideo == 10){
	var str = '<object width="480" height="350"><param name="movie" value="http://www.youtube.com/v/b9xBAtCsCTQ&hl=en_GB&fs=1&rel=0"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/b9xBAtCsCTQ&hl=en_GB&fs=1&rel=0&autoplay=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="350"></embed></object>';
	document.getElementById('videos_container').innerHTML = str;
	
	
	}

	
}


/**
 * closes the PopupWindow
 *
 * by Inna Gutnik
 */

function close_Popup(){
	document.getElementById('popup_Image').style.display ="none";
	var rand_num = Math.ceil(10*Math.random());

	playVideo(rand_num);
	
}
/**
 * exicute on start - up so that the first vieo plays automatically
 *
 * by Inna Gutnik
 */
function mouseOverVideoIcon(iconNum){
	
	document.body.style.cursor = 'pointer';
	
	
	if(iconNum == 1){
	 	
	 document.images[5].src = "unidisc_site_images/video_Icon_1-over.png"
	}
	if(iconNum == 2){
	document.images[6].src = "unidisc_site_images/video_Icon_234-over.png"
	}

	if(iconNum == 3){
	document.images[7].src = "unidisc_site_images/video_Icon_234-over.png";
	}
	if(iconNum == 4){
		document.images[8].src = "unidisc_site_images/video_Icon_234-over.png";
	}

	if(iconNum == 5){
		document.images[9].src = "unidisc_site_images/video_Icon_5678910-over.png";
	}
		if(iconNum == 6){
		document.images[10].src = "unidisc_site_images/video_Icon_5678910-over.png";
	}
		if(iconNum == 7){
		document.images[11].src = "unidisc_site_images/video_Icon_5678910-over.png";
	}

	if(iconNum == 8){
		document.images[12].src = "unidisc_site_images/video_Icon_5678910-over.png";
	}
		if(iconNum == 9){
		document.images[13].src = "unidisc_site_images/video_Icon_5678910-over.png";
	}
	if(iconNum == 10){
		document.images[14].src = "unidisc_site_images/video_Icon_5678910-over.png";
	}
		

	



	
}

function mouseOutVideoIcon(iconNum){
		document.body.style.cursor = '';
	if(iconNum == 1 && iconNum!= currentVideo){
	 	
	 document.images[5].src = "unidisc_site_images/video_Icon_1.png"
	}
	if(iconNum == 2 && iconNum!= currentVideo){
	document.images[6].src = "unidisc_site_images/video_Icon_234.png"
	}

	if(iconNum == 3 && iconNum!= currentVideo){
	document.images[7].src = "unidisc_site_images/video_Icon_234.png"
	}
	if(iconNum == 4 && iconNum!= currentVideo){
		document.images[8].src = "unidisc_site_images/video_Icon_234.png"
	}

	if(iconNum == 5 && iconNum!= currentVideo){
		document.images[9].src =  "unidisc_site_images/video_Icon_5678910.png";
	}
		if(iconNum == 6 && iconNum!= currentVideo){
		document.images[10].src = "unidisc_site_images/video_Icon_5678910.png";
	}
		if(iconNum == 7 && iconNum!= currentVideo){
		document.images[11].src = "unidisc_site_images/video_Icon_5678910.png";
	}

	if(iconNum == 8 && iconNum!= currentVideo){
		document.images[12].src = "unidisc_site_images/video_Icon_5678910.png";
	}
		if(iconNum == 9 && iconNum!= currentVideo){
		document.images[13].src = "unidisc_site_images/video_Icon_5678910.png";
	}
	if(iconNum == 10 && iconNum!= currentVideo){
		document.images[14].src = "unidisc_site_images/video_Icon_5678910.png";
	}
		

	
}
function resetVideoButtons(){
	
	
	 	
	 document.images[5].src = "unidisc_site_images/video_Icon_1.png"
	
	
	document.images[6].src =  "unidisc_site_images/video_Icon_234.png"


	document.images[7].src =  "unidisc_site_images/video_Icon_234.png"
	

		document.images[8].src =  "unidisc_site_images/video_Icon_234.png"


	
		document.images[9].src = "unidisc_site_images/video_Icon_5678910.png";
	
	
		document.images[10].src ="unidisc_site_images/video_Icon_5678910.png";
	
	
		document.images[11].src = "unidisc_site_images/video_Icon_5678910.png";



		document.images[12].src ="unidisc_site_images/video_Icon_5678910.png";

		document.images[13].src = "unidisc_site_images/video_Icon_5678910.png";

	
		document.images[14].src = "unidisc_site_images/video_Icon_5678910.png";

		
	
}
function musicLinks(musicNumber){
	
	if(musicNumber == 1){	

	}
	else if(musicNumber == 2){
		
	}
		else if(musicNumber == 3){
		
	}
		else if(musicNumber == 4){
		
	}
		else if(musicNumber == 5){
		
	}
		else if(musicNumber == 6){
		
	}
		else if(musicNumber == 7){
		
	}
		else if(musicNumber == 8){
		
	}
		else if(musicNumber == 9){
		
	}
		else if(musicNumber == 10){
		
	}
	
	
}
/*---------------------------------------------------
			Top 100 pages
-----------------------------------------------------*/
var currentTop100Page;
var currentCategory;
function init_top_100(pageCat){
	
	currentTop100Page = 1;
	
	document.getElementById("page_1").style.fontSize = 'large';
	document.getElementById("page_1").style.color = '#F90';
	document.getElementById("page_1").style.border='thin solid #F90';
	setSplashToCenter();
	if(pageCat == 1){
		
		//videos
		currentCategory = 1;
		get_25_from_VideoXML(currentTop100Page);
	}else{
		
		//music
		currentCategory = 2;
	 get_25_from_XML(currentTop100Page);
	}
	
}

function change_top_100_page(pageNum){
	
	currentTop100Page = pageNum;
	
	if(pageNum == 1){
		document.getElementById("page_1").style.fontSize = 'large';
		document.getElementById("page_1").style.color = '#F90';
		document.getElementById("page_1").style.border='thin solid #F90';
		if(currentCategory == 1){
			get_25_from_VideoXML(1);
		}else{
			get_25_from_XML(1);
		}
		
		
	}else if(pageNum == 2){
		document.getElementById("page_2").style.fontSize = 'large';
		document.getElementById("page_2").style.color = '#F90';
		document.getElementById("page_2").style.border='thin solid #F90';
		if(currentCategory == 1){
			get_25_from_VideoXML(2);
		}else{
			get_25_from_XML(2);
		}
	}else if(pageNum == 3){
		document.getElementById("page_3").style.fontSize = 'large';
		document.getElementById("page_3").style.color = '#F90';
		document.getElementById("page_3").style.border='thin solid #F90';
		if(currentCategory == 1){
			get_25_from_VideoXML(3);
		}else{
			get_25_from_XML(3);
		}
			
	}else if(pageNum ==4){
		document.getElementById("page_4").style.fontSize = 'large';
		document.getElementById("page_4").style.color = '#F90';
		document.getElementById("page_4").style.border='thin solid #F90';
		if(currentCategory == 1){
			get_25_from_VideoXML(4);
		}else{
			get_25_from_XML(4);
		}
	}
	if(pageNum!= 1){
		document.getElementById("page_1").style.fontSize = '';
		document.getElementById("page_1").style.color = '';
		document.getElementById("page_1").style.border='';
	}
		if(pageNum!= 2){
		document.getElementById("page_2").style.fontSize = '';
		document.getElementById("page_2").style.color = '';
		document.getElementById("page_2").style.border='';
	}
		if(pageNum!= 3){
		document.getElementById("page_3").style.fontSize = '';
		document.getElementById("page_3").style.color = '';
		document.getElementById("page_3").style.border='';
	}
		if(pageNum!= 4){
		document.getElementById("page_4").style.fontSize = '';
		document.getElementById("page_4").style.color = '';
		document.getElementById("page_4").style.border='';
	}
	
	
}

function get_25_from_XML(pageNum){
	
if (window.XMLHttpRequest)
  {
  xhttp=new XMLHttpRequest();
  }
else // Internet Explorer 5/6
  {
  xhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
xhttp.open("GET","scripts/music_XML.xml",false);
xhttp.send();
xmlDoc=xhttp.responseXML; 
var x=xmlDoc.getElementsByTagName("item");
var str = '<table align="center" cellpadding="0" cellspacing="10" width="1150">';
var startNum =0;
var rowNumber=0;
if(pageNum == 1){
	
startNum = 0;
 rowNumber=0;
}
if(pageNum == 2){

startNum = 25;
rowNumber=25;

}
if(pageNum == 3){
	startNum = 50
	 rowNumber=50;
}
if(pageNum == 4){
	startNum = 75;
	rowNumber =75;
}

var strArtist;
var strSong;

for (i=startNum; i < startNum + 25; i = i + 5)
  {
	  
 strArtist=x[i].getElementsByTagName("artist")[0].childNodes[0].nodeValue;  
 strSong=x[i].getElementsByTagName("title")[0].childNodes[0].nodeValue;
 
	 str +='<tr><td valign="top"><a href="'+x[i].getElementsByTagName("itunes_link")[0].childNodes[0].nodeValue +'" target="_blank"><img src="top_100_images/'+x[i].getElementsByTagName("image")[0].childNodes[0].nodeValue+'" width="58" height="58"/></a></td>';
             str +=' <td valign="top" width="162"><a href="'+x[i].getElementsByTagName("itunes_link")[0].childNodes[0].nodeValue +'" target="_blank"><span class="number">'+ (rowNumber + 1) +'</span><br/><span class="artist">'+strArtist.replace(".3..3.","&")+'</span><br/><span class="song_title">'+strSong.replace(".3..3.","&")+'</span></a><br/></td>';
             
			 
 strArtist=x[i+1].getElementsByTagName("artist")[0].childNodes[0].nodeValue;  
 strSong=x[i+1].getElementsByTagName("title")[0].childNodes[0].nodeValue;
 
			 str +='<td valign="top" ><a href="'+x[i+1].getElementsByTagName("itunes_link")[0].childNodes[0].nodeValue +'" target="_blank"><img src="top_100_images/'+x[i+1].getElementsByTagName("image")[0].childNodes[0].nodeValue+'" width="58" height="58"/></a></td>';
             str +='<td valign="top" width="162"><a href="'+x[i+1].getElementsByTagName("itunes_link")[0].childNodes[0].nodeValue +'" target="_blank"><span class="number">'+ (rowNumber + 6) +'</span><br/><span class="artist">'+strArtist.replace(".3..3.","&")+'</span><br/><span class="song_title">'+strSong.replace(".3..3.","&")+'</span></a><br/></td>';
			 
			 
 strArtist=x[i+2].getElementsByTagName("artist")[0].childNodes[0].nodeValue;  
 strSong=x[i+2].getElementsByTagName("title")[0].childNodes[0].nodeValue;
             
			 str +='<td valign="top"><a href="'+x[i+2].getElementsByTagName("itunes_link")[0].childNodes[0].nodeValue +'" target="_blank"><img src="top_100_images/'+x[i+2].getElementsByTagName("image")[0].childNodes[0].nodeValue+'" width="58" height="58"/></a></td>';
             str +='<td valign="top" width="162"><a href="'+x[i+2].getElementsByTagName("itunes_link")[0].childNodes[0].nodeValue +'" target="_blank"><span class="number">'+ (rowNumber + 11) +'</span><br/><span class="artist">'+strArtist.replace(".3..3.","&")+'</span><br/><span class="song_title">'+ strSong.replace(".3..3.","&") +'</span></a><br/></td>';
			 
			 
 strArtist=x[i+3].getElementsByTagName("artist")[0].childNodes[0].nodeValue;  
 strSong=x[i+3].getElementsByTagName("title")[0].childNodes[0].nodeValue;
			 str +='<td valign="top" ><a href="'+x[i+3].getElementsByTagName("itunes_link")[0].childNodes[0].nodeValue +'" target="_blank"><img src="top_100_images/'+x[i+3].getElementsByTagName("image")[0].childNodes[0].nodeValue+'" width="58" height="58"/></a></td>';
             str +='<td valign="top" width="162"><a href="'+x[i+3].getElementsByTagName("itunes_link")[0].childNodes[0].nodeValue +'" target="_blank"><span class="number">'+ (rowNumber + 16) +'</span><br/><span class="artist">'+strArtist.replace(".3..3.","&")+'</span><br/><span class="song_title">'+ strSong.replace(".3..3.","&")+'</span></a><br/></td>';
			 
			 
 strArtist=x[i+4].getElementsByTagName("artist")[0].childNodes[0].nodeValue;  
 strSong=x[i+4].getElementsByTagName("title")[0].childNodes[0].nodeValue;
            
			str +='<td valign="top" ><a href="'+x[i+4].getElementsByTagName("itunes_link")[0].childNodes[0].nodeValue +'" target="_blank"><img src="top_100_images/'+x[i+4].getElementsByTagName("image")[0].childNodes[0].nodeValue+'" width="58" height="58"/></a></td>';
             str +='<td valign="top" width="162"><a href="'+x[i+4].getElementsByTagName("itunes_link")[0].childNodes[0].nodeValue +'" target="_blank"><span class="number">'+ (rowNumber + 21) +'</span><br/><span class="artist">'+strArtist.replace(".3..3.","&") +'</span><br/><span class="song_title">'+strSong.replace(".3..3.","&")+'</span></a><br/></td>';
             str+='</tr>';   
	  
	rowNumber++;  
	  
 
  }
str+="</table>";
document.getElementById('top_100').innerHTML =str;
	
	
}
function get_25_from_VideoXML(pageNum){
	
if (window.XMLHttpRequest)
  {
  xhttp=new XMLHttpRequest();
  }
else // Internet Explorer 5/6
  {
  xhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
xhttp.open("GET","scripts/video_XML.xml",false);
xhttp.send();
xmlDoc=xhttp.responseXML; 
var x=xmlDoc.getElementsByTagName("item");
var str = '<table align="center" cellpadding="0" cellspacing="10" width="1150">';
var startNum =0;
var rowNumber=0;
if(pageNum == 1){
	
startNum = 0;
 rowNumber=0;
}
if(pageNum == 2){

startNum = 25;
rowNumber=25;

}
if(pageNum == 3){
	startNum = 50
	 rowNumber=50;
}
if(pageNum == 4){
	startNum = 75;
	rowNumber =75;
}


for (i=startNum; i < startNum + 25; i = i + 5)
  {
	 str +='<tr><td valign="top"><a href="'+x[i].getElementsByTagName("itunes_link")[0].childNodes[0].nodeValue +'" target="_blank"><img src="top_100_images/'+x[i].getElementsByTagName("image")[0].childNodes[0].nodeValue+'" width="58" height="58"/></a></td>';
             str +=' <td valign="top" width="162"><a href="'+x[i].getElementsByTagName("itunes_link")[0].childNodes[0].nodeValue +'" target="_blank"><span class="number">'+ (rowNumber + 1) +'</span><br/><span class="artist">'+ x[i].getElementsByTagName("artist")[0].childNodes[0].nodeValue +'</span><br/><span class="song_title">'+ x[i].getElementsByTagName("title")[0].childNodes[0].nodeValue +'</span></a><br/></td>';
             
			 str +='<td valign="top" ><a href="'+x[i+1].getElementsByTagName("itunes_link")[0].childNodes[0].nodeValue +'" target="_blank"><img src="top_100_images/'+x[i+1].getElementsByTagName("image")[0].childNodes[0].nodeValue+'" width="58" height="58"/></a></td>';
             str +='<td valign="top" width="162"><a href="'+x[i+1].getElementsByTagName("itunes_link")[0].childNodes[0].nodeValue +'" target="_blank"><span class="number">'+ (rowNumber + 6) +'</span><br/><span class="artist">'+ x[i+1].getElementsByTagName("artist")[0].childNodes[0].nodeValue +'</span><br/><span class="song_title">'+ x[i+1].getElementsByTagName("title")[0].childNodes[0].nodeValue +'</span></a><br/></td>';
             
			 str +='<td valign="top"><a href="'+x[i+2].getElementsByTagName("itunes_link")[0].childNodes[0].nodeValue +'" target="_blank"><img src="top_100_images/'+x[i+2].getElementsByTagName("image")[0].childNodes[0].nodeValue+'" width="58" height="58"/></a></td>';
             str +='<td valign="top" width="162"><a href="'+x[i+2].getElementsByTagName("itunes_link")[0].childNodes[0].nodeValue +'" target="_blank"><span class="number">'+ (rowNumber + 11) +'</span><br/><span class="artist">'+ x[i+2].getElementsByTagName("artist")[0].childNodes[0].nodeValue +'</span><br/><span class="song_title">'+ x[i+2].getElementsByTagName("title")[0].childNodes[0].nodeValue +'</span></a><br/></td>';
             
			 str +='<td valign="top" ><a href="'+x[i+3].getElementsByTagName("itunes_link")[0].childNodes[0].nodeValue +'" target="_blank"><img src="top_100_images/'+x[i+3].getElementsByTagName("image")[0].childNodes[0].nodeValue+'" width="58" height="58"/></a></td>';
             str +='<td valign="top" width="162"><a href="'+x[i+3].getElementsByTagName("itunes_link")[0].childNodes[0].nodeValue +'" target="_blank"><span class="number">'+ (rowNumber + 16) +'</span><br/><span class="artist">'+ x[i+3].getElementsByTagName("artist")[0].childNodes[0].nodeValue +'</span><br/><span class="song_title">'+ x[i+3].getElementsByTagName("title")[0].childNodes[0].nodeValue +'</span></a><br/></td>';
            
			str +='<td valign="top" ><a href="'+x[i+4].getElementsByTagName("itunes_link")[0].childNodes[0].nodeValue +'" target="_blank"><img src="top_100_images/'+x[i+4].getElementsByTagName("image")[0].childNodes[0].nodeValue+'" width="58" height="58"/></a></td>';
             str +='<td valign="top" width="162"><a href="'+x[i+4].getElementsByTagName("itunes_link")[0].childNodes[0].nodeValue +'" target="_blank"><span class="number">'+ (rowNumber + 21) +'</span><br/><span class="artist">'+ x[i+4].getElementsByTagName("artist")[0].childNodes[0].nodeValue +'</span><br/><span class="song_title">'+ x[i+4].getElementsByTagName("title")[0].childNodes[0].nodeValue +'</span></a><br/></td>';
             str+='</tr>';   
	  
	rowNumber++;  
	  
 
  }
str+="</table>";
document.getElementById('top_100').innerHTML =str;
	
	
}

function curserOver(){
		document.body.style.cursor = 'pointer';
}
function curserOut(){
		document.body.style.cursor = '';
}




