
function DrawObject(width, height, type, id, file, bgcolor, quality) {
  if (type=='flash') {
    document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,42,0" id="'+id+'" width="'+width+'" height="'+height+'">\n');
    document.write('<param name="movie" value="'+file+'">\n');
    document.write('<param name="bgcolor" value="'+bgcolor+'">\n');
    document.write('<param name="wmode" value="transparent">\n');
    document.write('<param name="quality" value="'+quality+'">\n');
    document.write('<param name="allowscriptaccess" value="samedomain">\n');
    document.write('<embed type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" wmode="transparent" width="'+width+'" height="'+height+'" name="'+id+'" src="'+file+'" bgcolor="'+bgcolor+'" quality="'+quality+'" swLiveConnect="true" allowScriptAccess="samedomain"></embed>\n');
    document.write('</object>\n');
  }
}

function getPageSizeWithScroll(){
	if (window.innerHeight && window.scrollMaxY) {// Firefox
		yWithScroll = window.innerHeight + window.scrollMaxY;
		xWithScroll = window.innerWidth + window.scrollMaxX;
	} else if (document.body.scrollHeight > document.body.offsetHeight){ // all but Explorer Mac
		yWithScroll = document.body.scrollHeight;
		xWithScroll = document.body.scrollWidth;
	} else { // works in Explorer 6 Strict, Mozilla (not FF) and Safari
		yWithScroll = document.body.offsetHeight;
		xWithScroll = document.body.offsetWidth;
  	}
	arrayPageSizeWithScroll = new Array(xWithScroll,yWithScroll);
	//alert( 'The height is ' + yWithScroll + ' and the width is ' + xWithScroll );
	return arrayPageSizeWithScroll;
}



function restartGif(){
	for(var i=0; i<document.images.length; i++){
		var img = document.images[i];
		var imgName = img.src.toUpperCase();
		if (imgName.substring(imgName.length-3, imgName.length) == "GIF"){
			img.src = img.src;
		}
	}
}




