function popup(name, loc, width, height) {
	win = window.open(loc, name, "width="+width+",height="+height, 0, "scrollbars=yes");
	win.focus();
}

(function($) {
	var cache = [];
	// Arguments are image paths relative to the current page.
	$.preLoadImages = function() {
		var args_len = arguments.length;
		for (var i = args_len; i--;) {
			var cacheImage = document.createElement('img');
			cacheImage.src = arguments[i];
			cache.push(cacheImage);
		}
	}
})(jQuery);

jQuery.preLoadImages(
	'/IMG/ruboff48.png',
	'/IMG/ruboff49.png',
	'/IMG/ruboff50.png',
	'/IMG/ruboff46.png',
	'/images/topmenu_bg_top.png',
	'/images/topmenu_bg_mid.png',
	'/images/topmenu_bg_bot.png'
);

