
if(!window.Prototype) alert("extension.js requires prototype.js")

/**

@created 13/07/2006

@updated 18/11/2006

@methods


@example

*/

if(!window.Prototype) alert("wpopup.js requires Prototype 1.4.0")

/**
@class static
*/

var Extension = {
  Version: '0.0.1'
}

Object.prototype.forin = function(iterator)
{
	if (! (iterator instanceof Function)) return;
	for(var i in this)
	{
		iterator(i, this[i])
	}
}

String.prototype.tpl = function(dict)
{
	var ret = this
	$H(dict).each(function(pair)
		{
			ret = ret.replace(pair.key, pair.value)
		}
	)
	return ret
}
