// window features for specific types of popup
popup.types = {

	// types are case-insensitive

	five_million_nickel	: 'width=400,height=600',
	enlarge_coin_super	: 'width=500,height=670',
	enlarge_coin		: 'width=350,height=520'	// IMPORTANT: NO COMMA ON THE LAST ONE!
	
};


//  *** YOU PROBABLY SHOULD NOT CHANGE ANYTHING BELOW THIS LINE ***  //


// window features for all popups
popup.all = "resizable=yes,scrollbars=yes";

function popup(/*Html <a...> Element*/ a, /*string*/ type, /*string*/ name, /*string*/ features)
{
	name = name ? ('_'+name) : '';
	features = features ? (','+features) : '';
	type = type.toLowerCase();
	window.open(a.href, type+"_popup"+name, popup.all+',' + popup.types[type] + features);
	
	return false;
}

(function() {
	for (var type in popup.types) {
		popup.types[type.toLowerCase()] = popup.types[type];
	}
})();