/***
 *  jQuery based version
 ***/
 sVil = (function() {			// create our namespace as a closure
	var obj = {
		// Extend this object
		extend : function (name, o) {
				this[name] = o;
			},
		bindPopup : function (t) {
				$(t).bind("click", function () {
					s = $(this).attr("alt").split(" ");
					window.open (this.href, s[0], s[1]);
					this.blur();
					return false;
				});
			},
		getHeaderImg : function () {
				var nameImg = new Array();
				nameImg[0] = "image/sunset1.jpg";
				nameImg[1] = "image/sunrise3.jpg";
				var titleImg = new Array();
				titleImg[0] = "Schutzhund Village Winter Sunset";
				titleImg[1] = "Schutzhund Village Winter Sunrise";
				var t = Math.floor((Math.random()*100) % nameImg.length);
				return '<img src="' + nameImg[t] + '" title="' + titleImg[t] + '" />';
			},
		// Version for this program
		printVersion  : function () {
		 		document.write('<h6>superfish v0.02</h6>');
			}
	};
 	return obj;
 })();

