
function loadFlash(swf,width,height,qs,bgcolor) {
    //workaround for Microsoft 'feature' of making you click on Flash to activate it
    //pass in the swf file you're trying to load and the associated query string to pass into Flash
    //also pass in the expected height and width of the movie
    //if no bgcolor set it to white
    if (bgcolor == '' || bgcolor == undefined) bgcolor='#FFFFFF';
    
	document.writeln('<!--[if !IE]> -->');
	document.writeln('<object type="application/x-shockwave-flash" data="' + swf + '" width="' + width + '" height="' + height + '">');
	document.writeln('<!-- <![endif]-->');
	document.writeln('<!--[if IE]>');
	document.writeln('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="' + width + '" height="' + height + '">');
	document.writeln('<param name="movie" value="' + swf + '" />');
	document.writeln('<!--><!---->');
	document.writeln('<param name="loop" value="false" />');
	document.writeln('<param name="menu" value="false" />');
	document.writeln('<param name="quality" value="High" />');
	document.writeln('<param name="WMode" value="Transparent">');
	document.writeln('<param name="bgcolor" value="' + bgcolor + '" />');
	document.writeln('<p><img src="Images/Image1.jpg" /></p>');
	document.writeln('</object>');
	document.writeln('<!-- <![endif]-->');
	
}

function Pre_Load_Images(){
	var d=document; 
	if(d.images)
	{ 
		if(!d.Images) d.Images=new Array();
		var i,j=d.Images.length,a=Pre_Load_Images.arguments; 
		for(i=0; i<a.length; i++)
		if (a[i].indexOf("#")!=0)
		{ 
			d.Images[j]=new Image; d.Images[j++].src=a[i];
		}
	}
}

var arVersion = navigator.appVersion.split("MSIE")
var version = parseFloat(arVersion[1])

if ((version >= 5.5) && (document.body.filters)) 
{
   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) == "PNG")
      {
         var imgID = (img.id) ? "id='" + img.id + "' " : ""
         var imgClass = (img.className) ? "class='" + img.className + "' " : ""
         var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' "
         var imgStyle = "display:inline-block;" + img.style.cssText 
         if (img.align == "left") imgStyle = "float:left;" + imgStyle
         if (img.align == "right") imgStyle = "float:right;" + imgStyle
         if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle
         var strNewHTML = "<span " + imgID + imgClass + imgTitle
         + " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";"
         + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
         + "(src=\'" + img.src + "\', sizingMethod='scale');\"></span>" 
         img.outerHTML = strNewHTML
         i = i-1
      }
   }
}

function Random_Quote()
{
    var num_quotes = 9
    var quotes = new Array(num_quotes)

    quotes[0] = "\"When I was a young man I observed that nine out of ten things I did were failures. I didn't want to be a failure, so I did ten times more work.\"<br /><br />~ George Bernard Shaw"
    quotes[1] = "\"..To achieve, you must first get out of the mind any notion either of the ease or rapidity of success. Nothing ever just happens in this world.\"<br /><br />~ Edward William Bok"
    quotes[2] = "\"Behind every successful man there's a lot of unsuccessful years.\"<br /><br />~ Bob Brown ~"
    quotes[3] = "\"Nothing worthwhile comes easily. Work, continuous work and hard work, is the only way to accomplish results that last.\"<br /><br /> ~ Hamilton Holt"
    quotes[4] = "\"Life is at its best when it's shaken and stirred.\"<br /><br />~ F. Paul Facult"
    quotes[5] = "\"Life is a grindstone. Whether it grinds us down or polishes us up depends on us.\"<br /><br />~ Thomas L. Holdcroft"
    quotes[6] = "\"Life is a great big canvas, and you should throw all the paint on it you can.\"<br /><br />~ Danny Kaye"
    quotes[7] = "\"All things are difficult before they are easy.\"<br /><br />~ John Norley"
	quotes[8] = "\"I am careful not to confuse excellence with perfection. Excellence, I can reach for; perfection is God's business\"<br /><br />~ Michael J. Fox"
    var n = Math.floor(Math.random() * num_quotes)
    document.write( quotes[n] )
}



