function MakeArrayday(size) {
	this.length = size;
	for(var i = 1; i <= size; i++) {
		this[i] = "";
	}
	return this;
}
function MakeArraymonth(size) {
	this.length = size;
	for(var i = 1; i <= size; i++) {
		this[i] = "";
	}
	return this;
}
function funClock() {
	if (!document.layers && !document.all)
	return;
	var runTime = new Date();
	var hours = runTime.getHours();
	var minutes = runTime.getMinutes();
	var seconds = runTime.getSeconds();
	var dn = "AM";
	var months=new Array(13);
	months[1]="January";
	months[2]="February";
	months[3]="March";
	months[4]="April";
	months[5]="May";
	months[6]="June";
	months[7]="July";
	months[8]="August";
	months[9]="September";
	months[10]="October";
	months[11]="November";
	months[12]="December";
	var time=new Date();
	var lmonth=months[time.getMonth() + 1];
	var date=time.getDate();
	var year=time.getYear();
	if (year < 2000)    // Y2K Fix, Isaac Powell
	year = year + 1900; // http://onyx.idbsu.edu/~ipowell
	
	if (hours >= 12) {
		dn = "PM";
		hours = hours - 12;
	}
	if (hours == 0) {
		hours = 12;
	}
	if (minutes <= 9) {
		minutes = "0" + minutes;
	}
	if (seconds <= 9) {
		seconds = "0" + seconds;
	}
	movingtime = hours + ":" + minutes + ":" + seconds + " " + dn;
	if (document.layers) {
		document.layers.clock.document.write(movingtime);
		document.layers.clock.document.close();
	}
	else if (document.all) {
		clock.innerHTML = date + " " + lmonth + " " + year + " " + movingtime;
	}
	setTimeout("funClock()", 1000)
}
function addFlash(divName, flaSource, width, height, mouseDownEvent, mouseOverEvent, mouseUpEvent, quality, wmode, id, paramvalues){
		var div;
		var html;

		/*if(divName == ''){
			return;
		}*/
		if(id == null || id == "") { 
			id = "";
		} else {
			id = id;
		}
		if(paramvalues == null || paramvalues == "") { 
			paramvalues = "";
		} else {
			paramvalues = paramvalues;
		}
		if(quality == ''){
			 quality = "high";
		}
		
		if(wmode == ''){
			wmode = "transparent";
		}
		
		div = window.document.getElementById(divName);
		
		if(div != null){
			
			//add Png file
			//musicPictureLayer.innerHTML = "<img src=\"images/" + itemContentArray[0] + "/" + itemContentArray[3] + ".png\" width=\"147\" height=\"193\">";
			
			html = '<object id="'+ id + '" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="'+width+'" height="' + height + '" onMouseDown="' +mouseDownEvent+ '" onMouseOver="'+mouseOverEvent+'" onMouseUp="'+ mouseUpEvent+'"><param name="movie" value="' + flaSource + '"><param name="FlashVars" value="'+paramvalues+'"><param name="quality" value="' + quality + '"><param name="wmode" value="' + wmode + '"><param name="allowScriptAccess" value="sameDomain"/><embed src="' + flaSource + '" name="'+ id + '" quality="high" width="' + width + '" height="' + height+ '" allowScriptAccess="sameDomain" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed></object>';
			
			div.innerHTML = html;
						
		} else {

			return '<object id="'+ id + '" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="'+width+'" height="' + height + '" onMouseDown="' +mouseDownEvent+ '" onMouseOver="'+mouseOverEvent+'" onMouseUp="'+ mouseUpEvent+'"><param name="movie" value="' + flaSource + '"><param name="quality" value="' + quality + '"><param name="wmode" value="' + wmode + '"><param name="allowScriptAccess" value="sameDomain"/><embed src="' + flaSource + '" name="'+ id + '" quality="high" width="' + width + '" height="' + height+ '" allowScriptAccess="sameDomain" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed></object>';
		}
					
	return;
	}
