// JavaScript Document

<!--

// position flash object

// pumkin set column heights
// gets widths too, just in case
function setDivHeight() {
  if (document.getElementById) {
  	var winWidth = 0, winHeight = 0;
	if( typeof( window.innerWidth ) == 'number' ) {
		//Non-IE
		winWidth = window.innerWidth;
		winHeight = window.innerHeight;
	} else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
		//IE 6+ in 'standards compliant mode'
		winWidth = document.documentElement.clientWidth;
		winHeight = document.documentElement.clientHeight;
	} else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
		//IE 4 compatible
		winWidth = document.body.clientWidth;
		winHeight = document.body.clientHeight;
	}
	var divTop = (winHeight/2) - 285;
	var centreItem = document.getElementById("flashWrapper");
	centreItem.style.top = divTop+"px";
  }
	
}
/*
 * Querystring functionality
*/
//
// Define querystring function
function QueryString(key) {
	var value = null;
	for (var i=0;i<QueryString.keys.length;i++)
		if (QueryString.keys[i]==key) {
			value = QueryString.values[i];
			break;
		}
	return value;
}
QueryString.keys = new Array();
QueryString.values = new Array();
//
// Parse querystring for keys and values
function QueryString_Parse() {
	var query = unescape(window.location.search.substring(1) );
	var pairs = query.split("&");
	for (var i=0;i<pairs.length;i++) {
		var pos = pairs[i].indexOf('=');
		if (pos >= 0) {
			var argname = pairs[i].substring(0,pos);
			var value = pairs[i].substring(pos+1);
			QueryString.keys[QueryString.keys.length] = argname;
			QueryString.values[QueryString.values.length] = value;		
		}
	}
}

// Define querystring function

function params(qp) { 
	try{r=unescape(location.search.match(new RegExp(qp+"=+([^&]*)"))[1]);}
	catch(e){r='';} 
	return r;
}


function loadswf(swfpath, width, height)
{
   document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' width='" + width + "' height='" + height + "'>\n");
   document.write("<param name='movie' value='" + swfpath + "' />\n");
   document.write("<param name='quality' value='high' />\n");
   document.write("<param name='allowScriptAccess' value='always' />\n");
   document.write("<embed src='" + swfpath + "' quality='high' allowScriptAccess='always' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='" + width + "' height='" + height + "'></embed>\n");
   document.write("</object>\n");
}

-->