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

	// types are case-insensitive

	external_link		: '',
	email				: 'width=430,height=450',
	shipping_tbd		: 'width=430,height=230',
	checkout			: 'width=440,height=350',
	privacy				: 'width=440,height=500',
	enlarge_coin_super	: 'width=480,height=670',
	enlarge_coin_super_wide	: 'width=600,height=670',
	enlarge_coin_super_bs	: 'width=700,height=670',
	enlarge_coin_super_bs_wide	: 'width=950,height=670',
	commercial		: 'width=430,height=450', 
	enlarge_coin		: 'width=330,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];
	}
})();