// script by Bernhard Friedrich; should work in all browsers, modified by Yong Chen
var a;
a=new Date();
year=a.getYear();
if (year<1000){ 				//just in case date is delivered with 4 digits
	if (year<70){
	year=2000+year;
	}
	else year=1900+year;
}								//end workaround
month=a.getMonth();
day=a.getDate();
dayofweek=a.getDay();			
weekName = new Array(7)
weekName[0] = 'Sun'
weekName[1] = 'Mon'
weekName[2] = 'Tue'
weekName[3] = 'Wed'
weekName[4] = 'Thu'
weekName[5] = 'Fri'
weekName[6] = 'Sat'				
monthName = new Array(12)
monthName[0] = 'Jan'
monthName[1] = 'Feb'
monthName[2] = 'Mar'
monthName[3] = 'Apr'
monthName[4] = 'May'
monthName[5] = 'June'
monthName[6] = 'July'
monthName[7] = 'Aug'
monthName[8] = 'Sep'
monthName[9] = 'Oct'
monthName[10] = 'Nov'
monthName[11] = 'Dec'

/********************************************************************/
/* Function for pop-up album cover */

function viewCover(url)
{
 window.open(url, "cover", "width=330, height=330, scrollbars=0, toolbar=0, resizable=0, status=0, directories=0, location=0");
}

// original code by Bill Trefzger 12/12/96
function go1(){
if (document.selecter1.select1.options[document.selecter1.select1.selectedIndex].value != "none") {
location = document.selecter1.select1.options[document.selecter1.select1.selectedIndex].value
		}
	}

/* Code to resize an object when browser font-size changes 
 * src: http://alistapart.com/articles/fontresizing
 * date: 2/25/07
 */
 
//id of element to check for and insert control
TextResizeDetector.TARGET_ELEMENT_ID = 'pop_songs';
//function to call once TextResizeDetector has init'd
TextResizeDetector.USER_INIT_FUNC = init; 

function init()  {
   var iBase = TextResizeDetector.addEventListener(onFontResize,null);
   resizeColumn();
}
function onFontResize(e,args) {
    resizeColumn();
}

function resizeColumn() {
    column = document.getElementById('pop_songs');
    toChange = document.getElementById('pop_artists');
    toChange.style.height = column.clientHeight+1 + 'px';
}