/**
 * Addons and fixes for swfobject.js (v1.5)
 * Requires also prototype.js
 */


	// SWFObject socallfunction helper
if (! deconcept.SWFObject.prototype.callFunction) {
  deconcept.SWFObject.prototype.callFunction = function (name, value) {
		var id = this.getAttribute('id');
		if (id && $(id)) $(id).socallfunction(name, value);
  }
}

	// FIX : encode plus (+) sign => %2B
	// @see http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_14143&sliceId=1
deconcept.SWFObject.prototype.getVariablePairs = function() {
	var variablePairs = new Array();
	var key, value;
	var variables = this.getVariables();
	for(key in variables) {
		value = variables[key];
		if (value.replace) {
			value = value.replace(/\+/g, '%2B');
		}
		variablePairs[variablePairs.length] = key +"="+ value;
	}
	return variablePairs;
};

