CountryDropDown.prototype.DropDown = null;
CountryDropDown.prototype.Presets = new Array()

function CountryDropDown(_element)
{
	this.DropDown = $(_element);
	if(arguments.length > 1)
		this.Load(this.Presets[arguments[1]]);
	else
		this.Load(this.Presets["default"]);	
	return this;
}

CountryDropDown.prototype.AddOption = function(_name, _value)
{
	this.DropDown.append($('<option></option').html(_name).val(_value));	
	return this;
}

CountryDropDown.Create = function(_element)
{
	return new CountryDropDown(_element);
}

CountryDropDown.prototype.Load = function(keyValArr)
{
	for(i = 0; i<keyValArr.length; i++)
	{
		this.AddOption(keyValArr[i][0], keyValArr[i][1]); 
		//this.DropDown.append($('<option></option').html(keyValArr[i][1]).val(keyValArr[i][0]));
	}
}

CountryDropDown.prototype.Presets["default"] = 
[
 ["Austria", "Austria"],
 ["Belgium & Holland", "BENE"],
 ["Denmark", "Denmark"],
 ["Sweden", "Sweden"],
 ["Norway", "Norway"],
 ["Finland", "Finland"],
 ["Iceland", "Iceland"],
 ["Ireland", "Ireland"],
 ["France", "France"],
 ["Germany", "Germany"],
 ["Greece", "Greece"],
 ["Israel", "Israel"],
 ["Japan", "Japan"],
 ["Malaysia", "Malaysia"],
 ["Saudi Arabia", "Saudi Arabia"],
 ["Scotland", "Scotland"],
 ["Singapore", "Singapore"],
 ["Switzerland", "Switzerland"],
 ["Thailand", "Thailand"],
 ["Turkey", "Turkey"],
 ["United Kingdom", "United Kingdom"],
 ["Slovenia", "Slovenia"]
 
];

