// <!--- Hide from old browsers
/************************************************************************************
 * 
 * 	Master JS file for GNGN (Good Neighbours Great Neighbourhoods)
 * 	Written by Gian Pompilio
 * 	May 2008
 * 	
 * 	DO NOT EDIT THIS FILE 	- Unless you are sure you know what you are doing.
 * 							- It is recommended you make a backup before editing.
 * 	
 * 	Functions below are accessible across the entire GNGN website.
 * 		
 ***************************************************************************************/


/****************************************************
     Author: Eric King
     Url: http://redrival.com/eak/index.shtml
     This script is free to use as long as this info is left in
     Featured on Dynamic Drive script library (http://www.dynamicdrive.com)
****************************************************/
var win=null;
function NewWindow(mypage,myname,w,h,scroll,pos){
	if(pos=="random"){
		LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;
		TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;
	}
	if(pos=="center"){
		LeftPosition=(screen.width)?(screen.width-w)/2:100;
		TopPosition=(screen.height)?(screen.height-h)/2:100;
	}
	else if((pos!="center" && pos!="random") || pos==null){
		LeftPosition=0;TopPosition=20
	}
	settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no';
	win=window.open(mypage,myname,settings);
}


/*****************************************************
 * PopUpWindow 
 * Opens a new window of fixed height and width
 *****************************************************/

 function popUpWindow(name,url,height,width) {
	mywindow = window.open (url,name,"location=1,status=1,scrollbars=1,width="+width+",height="+height);
	mywindow.moveTo(0,0);
	mywindow.focus();
 }
 
 
 
/*****************************************************
 * PopUpWindow 
 * Opens a new window of fixed height and width
 *****************************************************/

 
 function deleteConfirmation(val) {

	var response = confirm("Are you sure you want to delete this story?");

	var output;

	if (response == true) {

		window.location = val;

	}

}
 

/*****************************************************
 * BREADCRUMBS  Part: 1
 * Checks URL path and creates bread crumbs (with 
 * appropriate links) for each page dynamically.
 *****************************************************/

function breadcrumbs() {

	var x = 0;
	var stop = 0;
	var output = "<a href=\"/\">GNGN</a> &raquo; ";
	var chunkStart = "";
	
	sURL = new String;
	bits = new Object;
	
	sURL = location.href;
	sURL = sURL.slice(8,sURL.length);
	chunkStart = sURL.indexOf("/");
	sURL = sURL.slice(chunkStart+1,sURL.length)
	
	while(!stop) {
		chunkStart = sURL.indexOf("/");
		if (chunkStart != -1){
			bits[x] = sURL.slice(0,chunkStart)
			sURL = sURL.slice(chunkStart+1,sURL.length);
		}
		else {
			stop = 1;
		}
		x++;
	}
	
	for(var i in bits) {
		output += "<a href=\"";
		for(y=1;y<x-i;y++) {
			output += "../";
		}
		output +=  bits[i] + "/\">" + checkName(bits[i]) + "</a> &raquo; ";

	}

	document.write(output.substring(0,output.length-2));

}


/*****************************************************
 * BREADCRUMBS  Part: 2
 * Exceptions when transforming URL path to usable links.
 * Part 1 found at: /System/_scripts/default.js
 *
 *	NOTE: 	Using the "&" symbol will result in some browsers 
 * 			(randomly in both IE and FF) to not display JS correctly or at all.
 *****************************************************/

function checkName(URL) {
 
 /*
   format:  else if(URL == "<Directory name>"){   // if directory name is different than web section name
     URL = "<new name>";
      }
  */

	if(URL.toLowerCase() == "takethepledge") {
   	URL = "Take The Pledge";
	}  
	else if(URL.toLowerCase() == "forum") {
   	URL = "Discussions";
	}
	else if(URL.toLowerCase() == "doneformelately") {
   	URL = "What has HRM done for me lately?";
	}
	return URL;

}



/***********************************************
* Text character counter
***********************************************/

function textCounter(field, countfield, maxlimit) {

	// if too long...trim it!
	if (field.value.length > maxlimit) {
		field.value = field.value.substring(0, maxlimit);
	
	// otherwise, update 'characters left' counter
	} else {
		countfield.value = maxlimit - field.value.length;
	}

}



/***********************************************
* Custom Trim Code
***********************************************/
function trim(stringToTrim) {
	return stringToTrim.replace(/^\s+|\s+$/g,"");
}


/***********************************************
* Story form validation
***********************************************/

function validateStoryForm() {
	
	var theForm = document.forms[0];
	var theErrorBox = document.getElementById('errorBox');
	var bError = false;
	var sErrorText = '';
	var theErrorField = '';
	var highlightColor = '#ffe9e6';
	var textColor = '#c00';

	
	// reset form elements to white
	for (i=0; i<theForm.elements.length; i++)
		if (theForm.elements[i].type=="text" || theForm.elements[i].type=="textarea" || theForm.elements[i].type=="select-one") {
			theForm.elements[i].style.background='#fff';
			theForm.elements[i].style.color='#000';
		}


	sErrorText += "Oops! The following items need your attention...\n\n";	


	// check Type
	if (trim(theForm.fName.value) == 'Your Name' || trim(theForm.fName.value) == '') {
		bError = true;
		sErrorText += '- Your name\n';
		theForm.fName.style.background=highlightColor;
		theForm.fName.style.color=textColor;

	}

	// check title
	if (trim(theForm.fEmail.value) == 'Your Email' || trim(theForm.fEmail.value) == '') {
		bError = true;
		sErrorText += '- Your email\n';
		theForm.fEmail.style.background=highlightColor;
		theForm.fEmail.style.color=textColor;

	}

	// check title
	if (trim(theForm.fPostalCode.value) == 'Your Postal Code' || trim(theForm.fPostalCode.value) == '') {
		bError = true;
		sErrorText += '- Your Postal Code\n';
		theForm.fPostalCode.style.background=highlightColor;
		theForm.fPostalCode.style.color=textColor;

	}

	// check title
	if (trim(theForm.fTitle.value) == 'Story Title' || trim(theForm.fTitle.value) == '') {
		bError = true;
		sErrorText += '- Your story title\n';
		theForm.fTitle.style.background=highlightColor;
		theForm.fTitle.style.color=textColor;

	}

	// check title
	if (trim(theForm.fStory.value) == '') {
		bError = true;
		sErrorText += '- Your story\n';
		theForm.fStory.style.background=highlightColor;
	}


	if (bError == true) {
//		theErrorBox.innerHTML = sErrorText;
		alert(sErrorText);
		theForm.fSubmit.disabled = false;
//		new Effect.ScrollTo(theErrorBox, {offset: -10});
//		new Effect.Appear(theErrorBox);
		return false;
	}
	
}






/***********************************************
* Pledge form validation
***********************************************/

function validatePledgeForm(form) {

	var theForm = document.forms[0];
	var theErrorBox = document.getElementById('errorBox');
	var bError = false;
	var sErrorText = '';
	var theErrorField = '';
	var highlightColor = '#ffe9e6';
	var textColor = '#c00';

	
	// reset form elements to white
	for (i=0; i<theForm.elements.length; i++)
		if (theForm.elements[i].type=="text" || theForm.elements[i].type=="textarea" || theForm.elements[i].type=="select-one") {
			theForm.elements[i].style.background='#fff';
			theForm.elements[i].style.color='#000';
		}


	sErrorText += "Oops! The following items need your attention...\n\n";	


	// check Type
	if (trim(theForm.fName.value) == 'Your Name' || trim(theForm.fName.value) == '') {
		bError = true;
		sErrorText += '- Your name\n';
		theForm.fName.style.background=highlightColor;
		theForm.fName.style.color=textColor;

	}

	// check title
	if (trim(theForm.fEmail.value) == 'Your Email' || trim(theForm.fEmail.value) == '') {
		bError = true;
		sErrorText += '- Your email\n';
		theForm.fEmail.style.background=highlightColor;
		theForm.fEmail.style.color=textColor;

	}

	// check title
	if (trim(theForm.fPostalCode.value) == 'Your Postal Code' || trim(theForm.fPostalCode.value) == '') {
		bError = true;
		sErrorText += '- Your Postal Code\n';
		theForm.fPostalCode.style.background=highlightColor;
		theForm.fPostalCode.style.color=textColor;

	}


	if (bError == true) {
//		theErrorBox.innerHTML = sErrorText;
		alert(sErrorText);
		theForm.fSubmit.disabled = false;
//		new Effect.ScrollTo(theErrorBox, {offset: -10});
//		new Effect.Appear(theErrorBox);
		return false;
	}
	
}







/***********************************************
* AnyLink Drop Down Menu- © Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

var menuwidth='100px' //default menu width
var menubgcolor='#71c3d5'  //menu bgcolor
var disappeardelay=25  //menu disappear speed onMouseout (in miliseconds)
var hidemenu_onclick="yes" //hide menu when user clicks within menu?
var navitem = '';
var activeMenuColor = '#009fc2';



//Contents for menu 1
var menu1=new Array()
menu1[0]='<a href="http://www.myhrm.ca/Stories/SubmitStory.php" style="border-top:0px;">Submit A Story</a>';
menu1[1]='<a href="http://www.myhrm.ca/Stories/ViewStories.php">View Stories</a>';

//Contents for menu 2, and so on
var menu2=new Array()
menu2[0]='<a href="http://www.myhrm.ca/ToolKit/StartAnAssociation.php" style="border-top:0px;">Start a neighbourhood association</a>';
menu2[1]='<a href="http://www.myhrm.ca/ToolKit/HRMCommunityGrants.php">About HRM\'s community grants</a>';
menu2[2]='<a href="http://www.myhrm.ca/ToolKit/CommunityGrants.php">Getting a permit for  a block party</a>';
menu2[3]='<a href="http://www.myhrm.ca/ToolKit/OrganizeaNeighbourhoodCleanUp.php">Organizing a neighbourhood cleanup</a>';
menu2[4]='<a href="http://www.myhrm.ca/ToolKit/HRMNeighbourhoodWatch.php">Setting up a neighbourhood watch</a>';
menu2[5]='<a href="http://www.myhrm.ca/ToolKit/HowDoIInvolveYouthinMyCommunity.php">Involve youth in your community</a>';
menu2[6]='<a href="http://www.myhrm.ca/ToolKit/HRMCommunityArt.php">Start a Community Art Project</a>';
menu2[7]='<a href="http://www.myhrm.ca/ToolKit/NeighbourhoodWalking.php">Start a Neighbourhood Walking Group</a>';
menu2[8]='<a href="http://www.myhrm.ca/ToolKit/PDFVersion.php">Toolkit in PDF format</a>';

//Contents for menu 3
var menu3=new Array()
menu3[0]='<a href="/Awards/PastWinners.php" style="border-top:0px;">Past Winners</a>';
menu3[1]='<a href="/Awards\nominate.php">Nomination Form</a>';

////\no further editting needed

var ie4=document.all
var ns6=document.getElementById&&!document.all

if (ie4||ns6)
document.write('<div id="dropmenudiv" style="visibility:hidden;width:'+menuwidth+';background-color:'+menubgcolor+'" onMouseover="clearhidemenu()" onMouseout="dynamichide(event)"></div>')

function getposOffset(what, offsettype) {
	
	var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;
	var parentEl=what.offsetParent;
	
	while (parentEl!=null) {
		totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
		parentEl=parentEl.offsetParent;
	}
	
	return totaloffset;
	
}

function showhide(obj, e, visible, hidden, menuwidth) {
	
	if (ie4||ns6)
		dropmenuobj.style.left=dropmenuobj.style.top="-500px"
		
	if (menuwidth!=""){
		dropmenuobj.widthobj=dropmenuobj.style
		dropmenuobj.widthobj.width=menuwidth
	}
	
	if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover")
		obj.visibility=visible
		
	else if (e.type=="click")
		obj.visibility=hidden
		
}

function iecompattest() {
	
	return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body

}

function clearbrowseredge(obj, whichedge) {
	
	var edgeoffset=0
	
	if (whichedge=="rightedge") {
		
		var windowedge=ie4 && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-15 : window.pageXOffset+window.innerWidth-15
		dropmenuobj.contentmeasure=dropmenuobj.offsetWidth
		
		if (windowedge-dropmenuobj.x < dropmenuobj.contentmeasure)
			edgeoffset=dropmenuobj.contentmeasure-obj.offsetWidth
			
	}
	else {
		
		var topedge=ie4 && !window.opera? iecompattest().scrollTop : window.pageYOffset
		var windowedge=ie4 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18
		
		dropmenuobj.contentmeasure=dropmenuobj.offsetHeight
		
		if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure) { //move up?
			edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeight
			
			if ((dropmenuobj.y-topedge)<dropmenuobj.contentmeasure) //up no good either?
				edgeoffset=dropmenuobj.y+obj.offsetHeight-topedge
				
		}
		
	}
	
	return edgeoffset
	
}

function populatemenu(what) {
	
	if (ie4||ns6)
		dropmenuobj.innerHTML=what.join("")
		
}


function dropdownmenu(obj, e, menucontents, menuwidth) {

	if (navitem != '')
		navitem.style.backgroundColor = activeMenuColor;
	
	navitem = obj;
	navitem.style.backgroundColor = '#71c3d5';
	
	if (window.event)
		event.cancelBubble=true
		
	else if (e.stopPropagation)
		e.stopPropagation()
	
	clearhidemenu()
	dropmenuobj=document.getElementById? document.getElementById("dropmenudiv") : dropmenudiv
	populatemenu(menucontents)
	
	if (ie4||ns6){
		
		showhide(dropmenuobj.style, e, "visible", "hidden", menuwidth)
		dropmenuobj.x=getposOffset(obj, "left")
		dropmenuobj.y=getposOffset(obj, "top")
		dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+"px"
		dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+"px"
		
	}
	
	return clickreturnvalue()
	
}

function clickreturnvalue() {
	
	if (ie4||ns6) 
		return false
	else 
		return true
		
}

function contains_ns6(a, b) {
	
	while (b.parentNode)
		if ((b = b.parentNode) == a)
			return true;
			
	return false;
	
}

function dynamichide(e) {
	
	if (ie4&&!dropmenuobj.contains(e.toElement))
		delayhidemenu();

	else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
		delayhidemenu();
	
}

function hidemenu(e) {
	
	if (typeof dropmenuobj!="undefined")
		if (ie4||ns6)
			dropmenuobj.style.visibility="hidden";
	if (navitem != '')
		navitem.style.backgroundColor = activeMenuColor;

}

function delayhidemenu() {

	if (ie4||ns6)
		delayhide=setTimeout("hidemenu()",disappeardelay);

}

function clearhidemenu() {
	
	if (typeof delayhide!="undefined")
		clearTimeout(delayhide)
		
}

if (hidemenu_onclick=="yes") {
	
	document.onclick=hidemenu
	
}









/**

 * SWFObject v1.4.2: Flash Player detection and embed - http://blog.deconcept.com/swfobject/

 *

 * SWFObject is (c) 2006 Geoff Stearns and is released under the MIT License:

 * http://www.opensource.org/licenses/mit-license.php

 *

 * **SWFObject is the SWF embed script formerly known as FlashObject. The name was changed for

 *   legal reasons.

 */

if(typeof deconcept == "undefined") var deconcept = new Object();

if(typeof deconcept.util == "undefined") deconcept.util = new Object();

if(typeof deconcept.SWFObjectUtil == "undefined") deconcept.SWFObjectUtil = new Object();

deconcept.SWFObject = function(swf, id, w, h, ver, c, useExpressInstall, quality, xiRedirectUrl, redirectUrl, detectKey){

	if (!document.getElementById) { return; }

	this.DETECT_KEY = detectKey ? detectKey : 'detectflash';

	this.skipDetect = deconcept.util.getRequestParameter(this.DETECT_KEY);

	this.params = new Object();

	this.variables = new Object();

	this.attributes = new Array();

	if(swf) { this.setAttribute('swf', swf); }

	if(id) { this.setAttribute('id', id); }

	if(w) { this.setAttribute('width', w); }

	if(h) { this.setAttribute('height', h); }

	if(ver) { this.setAttribute('version', new deconcept.PlayerVersion(ver.toString().split("."))); }

	this.installedVer = deconcept.SWFObjectUtil.getPlayerVersion();

	if(c) { this.addParam('bgcolor', c); }

	var q = quality ? quality : 'high';

	this.addParam('quality', q);

	this.setAttribute('useExpressInstall', useExpressInstall);

	this.setAttribute('doExpressInstall', false);

	var xir = (xiRedirectUrl) ? xiRedirectUrl : window.location;

	this.setAttribute('xiRedirectUrl', xir);

	this.setAttribute('redirectUrl', '');

	if(redirectUrl) { this.setAttribute('redirectUrl', redirectUrl); }

}

deconcept.SWFObject.prototype = {

	setAttribute: function(name, value){

		this.attributes[name] = value;

	},

	getAttribute: function(name){

		return this.attributes[name];

	},

	addParam: function(name, value){

		this.params[name] = value;

	},

	getParams: function(){

		return this.params;

	},

	addVariable: function(name, value){

		this.variables[name] = value;

	},

	getVariable: function(name){

		return this.variables[name];

	},

	getVariables: function(){

		return this.variables;

	},

	getVariablePairs: function(){

		var variablePairs = new Array();

		var key;

		var variables = this.getVariables();

		for(key in variables){

			variablePairs.push(key +"="+ variables[key]);

		}

		return variablePairs;

	},

	getSWFHTML: function() {

		var swfNode = "";

		if (navigator.plugins && navigator.mimeTypes && navigator.mimeTypes.length) { // netscape plugin architecture

			if (this.getAttribute("doExpressInstall")) { this.addVariable("MMplayerType", "PlugIn"); }

			swfNode = '<embed type="application/x-shockwave-flash" src="'+ this.getAttribute('swf') +'" width="'+ this.getAttribute('width') +'" height="'+ this.getAttribute('height') +'"';

			swfNode += ' id="'+ this.getAttribute('id') +'" name="'+ this.getAttribute('id') +'" ';

			var params = this.getParams();

			 for(var key in params){ swfNode += [key] +'="'+ params[key] +'" '; }

			var pairs = this.getVariablePairs().join("&");

			 if (pairs.length > 0){ swfNode += 'flashvars="'+ pairs +'"'; }

			swfNode += '/>';

		} else { // PC IE

			if (this.getAttribute("doExpressInstall")) { this.addVariable("MMplayerType", "ActiveX"); }

			swfNode = '<object id="'+ this.getAttribute('id') +'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+ this.getAttribute('width') +'" height="'+ this.getAttribute('height') +'">';

			swfNode += '<param name="movie" value="'+ this.getAttribute('swf') +'" />';

			var params = this.getParams();

			for(var key in params) {

			 swfNode += '<param name="'+ key +'" value="'+ params[key] +'" />';

			}

			var pairs = this.getVariablePairs().join("&");

			if(pairs.length > 0) {swfNode += '<param name="flashvars" value="'+ pairs +'" />';}

			swfNode += "</object>";

		}

		return swfNode;

	},

	write: function(elementId){

		if(this.getAttribute('useExpressInstall')) {

			// check to see if we need to do an express install

			var expressInstallReqVer = new deconcept.PlayerVersion([6,0,65]);

			if (this.installedVer.versionIsValid(expressInstallReqVer) && !this.installedVer.versionIsValid(this.getAttribute('version'))) {

				this.setAttribute('doExpressInstall', true);

				this.addVariable("MMredirectURL", escape(this.getAttribute('xiRedirectUrl')));

				document.title = document.title.slice(0, 47) + " - Flash Player Installation";

				this.addVariable("MMdoctitle", document.title);

			}

		}

		if(this.skipDetect || this.getAttribute('doExpressInstall') || this.installedVer.versionIsValid(this.getAttribute('version'))){

			var n = (typeof elementId == 'string') ? document.getElementById(elementId) : elementId;

			n.innerHTML = this.getSWFHTML();

			return true;

		}else{

			if(this.getAttribute('redirectUrl') != "") {

				document.location.replace(this.getAttribute('redirectUrl'));

			}

		}

		return false;

	}

}



/* ---- detection functions ---- */

deconcept.SWFObjectUtil.getPlayerVersion = function(){

	var PlayerVersion = new deconcept.PlayerVersion([0,0,0]);

	if(navigator.plugins && navigator.mimeTypes.length){

		var x = navigator.plugins["Shockwave Flash"];

		if(x && x.description) {

			PlayerVersion = new deconcept.PlayerVersion(x.description.replace(/([a-zA-Z]|\s)+/, "").replace(/(\s+r|\s+b[0-9]+)/, ".").split("."));

		}

	}else{

		// do minor version lookup in IE, but avoid fp6 crashing issues

		// see http://blog.deconcept.com/2006/01/11/getvariable-setvariable-crash-internet-explorer-flash-6/

		try{

			var axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");

		}catch(e){

			try {

				var axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");

				PlayerVersion = new deconcept.PlayerVersion([6,0,21]);

				axo.AllowScriptAccess = "always"; // throws if player version < 6.0.47 (thanks to Michael Williams @ Adobe for this code)

			} catch(e) {

				if (PlayerVersion.major == 6) {

					return PlayerVersion;

				}

			}

			try {

				axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash");

			} catch(e) {}

		}

		if (axo != null) {

			PlayerVersion = new deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","));

		}

	}

	return PlayerVersion;

}

deconcept.PlayerVersion = function(arrVersion){

	this.major = arrVersion[0] != null ? parseInt(arrVersion[0]) : 0;

	this.minor = arrVersion[1] != null ? parseInt(arrVersion[1]) : 0;

	this.rev = arrVersion[2] != null ? parseInt(arrVersion[2]) : 0;

}

deconcept.PlayerVersion.prototype.versionIsValid = function(fv){

	if(this.major < fv.major) return false;

	if(this.major > fv.major) return true;

	if(this.minor < fv.minor) return false;

	if(this.minor > fv.minor) return true;

	if(this.rev < fv.rev) return false;

	return true;

}

/* ---- get value of query string param ---- */

deconcept.util = {

	getRequestParameter: function(param) {

		var q = document.location.search || document.location.hash;

		if(q) {

			var pairs = q.substring(1).split("&");

			for (var i=0; i < pairs.length; i++) {

				if (pairs[i].substring(0, pairs[i].indexOf("=")) == param) {

					return pairs[i].substring((pairs[i].indexOf("=")+1));

				}

			}

		}

		return "";

	}

}

/* fix for video streaming bug */

deconcept.SWFObjectUtil.cleanupSWFs = function() {

	var objects = document.getElementsByTagName("OBJECT");

	for (var i=0; i < objects.length; i++) {

		objects[i].style.display = 'none';

		for (var x in objects[i]) {

			if (typeof objects[i][x] == 'function') {

				objects[i][x] = null;

			}

		}

	}

}

/*if (typeof window.onunload == 'function') {

	var oldunload = window.onunload;

		window.onunload = function() {

		deconcept.SWFObjectUtil.cleanupSWFs();

		oldunload();

	}

} else {

	window.onunload = deconcept.SWFObjectUtil.cleanupSWFs;

}*/

/* add Array.push if needed (ie5) */

if (Array.prototype.push == null) { Array.prototype.push = function(item) { this[this.length] = item; return this.length; }}



/* add some aliases for ease of use/backwards compatibility */

var getQueryParamValue = deconcept.util.getRequestParameter;

var FlashObject = deconcept.SWFObject; // for legacy support

var SWFObject = deconcept.SWFObject;



