if(typeof HTMLElement!="undefined" && !	HTMLElement.prototype.insertAdjacentElement) {
	HTMLElement.prototype.insertAdjacentElement = function (where,parsedNode)
	{
		switch (where){
			case 'beforeBegin':
			this.parentNode.insertBefore(parsedNode,this)
			break;
			case 'afterBegin':
			this.insertBefore(parsedNode,this.firstChild);
			break;
			case 'beforeEnd':
			this.appendChild(parsedNode);
			break;
			case 'afterEnd':
			if (this.nextSibling)
			this.parentNode.insertBefore(parsedNode,this.nextSibling);
			else this.parentNode.appendChild(parsedNode);
			break;
		}
	}

	HTMLElement.prototype.insertAdjacentHTML = function (where,htmlStr)
	{
		var r = this.ownerDocument.createRange();
		r.setStartBefore(this);
		var parsedHTML = r.createContextualFragment(htmlStr);
		this.insertAdjacentElement(where,parsedHTML)
	}

	HTMLElement.prototype.insertAdjacentText = function (where,txtStr)
	{
		var parsedText = document.createTextNode(txtStr)
		this.insertAdjacentElement(where,parsedText)
	} 
}

function showInfo (inforef)
{
		var activeinfo = new Array("280905", "261005", "231105", "230106", "220206", "220306", "260406", "240506");
		
		for (var i=0; i<activeinfo.length; i++)
		{
			moreinfo = document.all(activeinfo[i]).style;
			moreinfo.visibility = 'hidden';
		}
		moreinfo = document.all(inforef).style;		
		moreinfo.left = (document.body.clientWidth / 2);
		moreinfo.visibility = 'visible';
}

function extradownloadinfo ()
{
		moreinfo = document.all['extradownloadinfo'].style;		
		moreinfo.left = (document.body.clientWidth / 2);
		moreinfo.visibility = 'visible';
}

function hideInfo (inforef)
{
		moreinfo = document.all(inforef).style;
		moreinfo.visibility = 'hidden';
}

// Make a layer that stays in the same place on screen when scrolling the browser window.
// Version 1.2
// See http://www.mark.ac/help for browser support.

var mySticky;
var theLayer;

// Setup variables for sliding.
// lastY and staticYOffset should match your CSS top definition.

lastY=10;YOffset=0;staticYOffset=10;refreshMS=8;



// -------------------------
// emulate css 'position: fixed' in IE5+ Win
// code by aclover@1value.com
	fix_elements = new Array();
	
	function fix_event(){
		var i;
		for (i=0; i < fix_elements.length; i++){
			fix_elements[i].style.left = parseInt(fix_elements[i].fix_left)+document.getElementsByTagName('html')[0].scrollLeft+document.getElementsByTagName('body')[0].scrollLeft+'px';
			fix_elements[i].style.top = parseInt(fix_elements[i].fix_top)+document.getElementsByTagName('html')[0].scrollTop+document.getElementsByTagName('body')[0].scrollTop+'px';
		}
	}

	function fix_bind(){
		var i;
		for (i=0; i < document.all.length; i++){
			if (document.all[i].style.position=="fixed" || document.all[i].currentStyle.position=="fixed"){
				document.all[i].fix_left = document.all[i].currentStyle.left;
				document.all[i].fix_top = document.all[i].currentStyle.top;
				document.all[i].style.position = 'absolute';
				fix_elements[fix_elements.length] = document.all[i];
				window.attachEvent('onscroll', fix_event);
				window.attachEvent('onresize', fix_event);
			} 		
		}
	}

// -------------------------
	
// Setup function that runs when the page loads.
	function setup(eID){
/*		bw=new checkBrowser;
		if(bw.ns4||bw.opera){MM_reloadPage(true);}
		var noFix=bw.ie4||bw.ns4||(bw.ns6&&bw.mac)||(bw.macie5)?true:false;
		if (window.attachEvent){fix_bind();}
		else if(noFix){	
			if(bw.ns6){document.getElementById(eID).style.position="absolute";}
			if(bw.macie5){document.getElementById(eID).style.position="absolute";document.getElementById(eID).style.backgroundColor="#ccffcc";}
			if(bw.ns6&&YOffset==0){YOffset=-15}
			mySticky=new makeLayerObj(eID);
			layerSlide(eID)}
		else{
			mySticky=new makeLayerObj(eID);
			mySticky.css.position="fixed";}

		if(!mySticky){mySticky=new makeLayerObj(eID);}
		//mySticky.css.visibility="visible";
*/		
	}

// -------------------------
// DHTML menu sliding. Requires checkBrowser()
// Based on source at http://www.simplythebest.net/
	function layerSlide(layerID) {
		if(bw.dhtml){
			if(!mySticky){mySticky=new makeLayerObj(layerID);}
			if (bw.ns) {winY = window.pageYOffset;}
			else if (bw.ie) {winY = document.body.scrollTop;}
			if (bw.ie||bw.ns) {
				if (winY!=lastY&&winY>YOffset-staticYOffset){smooth = .3 * (winY - lastY - YOffset + staticYOffset);}
				else if (YOffset-staticYOffset+lastY>YOffset-staticYOffset){smooth = .3 * (winY - lastY - (YOffset-(YOffset-winY)));}
				else{smooth=0}
				if(smooth > 0) {smooth = Math.ceil(smooth);}
				else{smooth = Math.floor(smooth);}
				if (bw.ie){mySticky.css.pixelTop+=smooth;}
				else if (bw.ns){mySticky.css.top=parseInt(mySticky.css.top)+smooth;}
				lastY = lastY+smooth;
				setTimeout('layerSlide("'+layerID+'")', refreshMS)}}}
// -------------------------

// Netscape 4.x browser resize fix
	function MM_reloadPage(init) {
  	if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    	document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; top.onresize=MM_reloadPage; }}
  	else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) {location.reload();}}
  	
// Create browser-independent layer and browser objects
	function makeLayerObj(eID){
		if(document.getElementById){this.css=document.getElementById(eID).style}
		else if(document.all){this.css=document.all[eID].style;}
		else if(document.layers){this.css=document.layers[eID];}
		return this
	}

	function checkBrowser(){
		this.ver=navigator.appVersion;
		this.name=navigator.appName;
		this.mac=(navigator.platform.toLowerCase().indexOf('mac')>-1)?true:false;
		this.opera=(navigator.userAgent.toLowerCase().indexOf('opera')>-1)?true:false;
		this.dom=document.getElementById?true:false;
		this.ns=(this.name=='Netscape');
		this.ie4=(document.all && !this.dom)?true:false;
		this.ie=(this.name =='Microsoft Internet Explorer'&&!this.opera)?true:false;
		this.ie5=(this.ie && (navigator.userAgent.indexOf("MSIE 5")!=-1))?true:false;
		this.macie5=(this.mac&&this.ie5&&(navigator.userAgent.indexOf("MSIE 5.")!=-1))?true:false
		this.ns4=(this.ns && parseInt(this.ver) == 4)?true:false;
		this.ns6=((this.name=="Netscape")&&(parseInt(this.ver)==5))?true:false
		this.standards=document.getElementById?true:false;
		this.dhtml=this.standards||this.ie4||this.ns4;
	}
	
	function showMe(eID){
		myFloater=new makeLayerObj(eID)
		myFloater.css.visibility="visible";
	}
	
	function hideMe(eID){
		myFloater=new makeLayerObj(eID)
		myFloater.css.visibility="hidden";
	}
	
	//----------------------------------------------------------------------------
	//function to expand flowers from the picture
	
	// based om VBScript code from
	// Edgar V. Poirier
	// moomoo@nbnet.nb.ca
	// Revised August 2000

	
	var fW = new Array();
	var fH = new Array();
	var fT = new Array();
	var fL = new Array();
	var R = new Array();
	var di = new Array();
	var A = new Array();
	var numFlowers = 10;
	var pw, ph, picRatio, cx, cy, ms;

	function expandIt()
	{
		for (i=0; i < numFlowers; i++)
		{
      R[i] = R[i] + di[i];
      fT[i] = R[i] * (Math.sin(A[i])) + cy;
      fL[i] = R[i] * (Math.cos(A[i])) + cx;
      document.all["F"+i].style.left = fL[i];
      document.all["F"+i].style.top = fT[i];
      if (fW[i] < ms)
      {
        fW[i] += 1;
        fH[i] += 1;
        document.all["F"+i].style.width = fW[i];
        document.all["F"+i].style.height = fH[i];
      }
      if ((fL[i] < -ms) || (fL[i] > fW+ms) || (fT[i] < -ms) || (fT[i] > fH + ms))
      {
      	createFlower(i);
      }
    }
		setTimeout("expandIt()",100);			
	}

	function createFlower(n)
	{
		fW[n] = 1;
		fH[n] = 1;
		R[n] = 1;
		di[n] = Math.floor (Math.random() * 8) + 4;
		A[n] = Math.random() * (3.14159) + 3.141596 / 2;
	}

	function setUp()
	{
		var cW = document.body.clientWidth;
		var cH = document.body.clientHeight;
		var picTop = document.body.scrollTop;
		var picWidth, picHeight;
    if (cH > ph)
    {
    	picWidth = pw;
      picHeight = ph;
      picTop = (cH-picHeight) / 2;
    }
    else
    {
      picHeight = cH;
      picWidth = picHeight * picRatio;
    }
		cx = ((cW-picWidth) / 2) + (picWidth / 2) + 150;
    ms = flower.style.pixelWidth;
    cy = picTop + (picHeight / 2) + 370;
    for (i=0; i < numFlowers; i++)
    {
    	createFlower(i);
    }
  	expandIt();    
	}
	
	//initFlowers initzialize and start animating the flowers.
	//numFlowers: the number of flowers showed.
	function initFlowers()
	{
		picRatio = 335 / 434;
		var flowerData = "";
		for (i=0; i < numFlowers; i++)
		{
			flowerData="<IMG id='F"+i+"' src='"+flower.src+"' style='z-index: 1; position: absolute; top: -1800px; left: -1800px; width: 1; height: 1; overflow: hidden;'>";
			document.body.insertAdjacentHTML ('afterBegin', flowerData);
		}
		setUp();
	}