/**
 * Cashino JavaScript environment
 * 
 * Not much to do here
 * 
 * @author Ollie Maitland <ollie@byng-systems.com>
 * @requires 
 */
var Cashino = {
	
	/**
	 * Start the Cashino environment
	 * 
	 */
	start : function ()
	{
		// native JS selector engine please
		var links = document.getElementsByTagName('a');
		for (var i = 0;i< links.length;i++) {
			if (links[i].className == 'popout') {
				links[i].onclick = Cashino.popout;
			}
		}
	},
	
	/**
	 * Pop a page out
	 * 
	 * @param {Object} event
	 */
	popout : function ( event )
	{
		var popup = window.open(this.href, "popout", "height=600,width=800");
		popup.focus();
		return false;
	}
	
};

// onLoad method
window.onload = function () { Cashino.start(); }
