// JavaScript Document
$(document).ready(function(){
	$("#jsEnable").hide();

	$("#bannerClose").bind('click', function(e){
		$("#floatBanner").fadeOut('fast');
	});

	popUps.initNow();
});

var popUps = {
	init: function(element) {
		if (!element || !element.getElementsByTagName) {
			return false;
		}

		var as = element.getElementsByTagName('a');
		for(var i=0;i<as.length;i++) {
			if ((as[i].className+'').match(/(.*)popUp(.*)/i))
				as[i].onclick = this.click;
		}
		return true;
	},

	click: function(ev) {
		ev = ev||event;
		try {
			if (this.pp_win && this.pp_win.close && !this.pp_win.closed) {
				this.pp_win.close();
				this.pp_win=false;
			}
		}
		catch(e){}

		try {
			var win = window.open(this.href, '_blank', "dependent=yes,toolbar=no,resizable=no,width=618,height=600");
			if (win && win.opener) {
				this.pp_win = win;
				if (ev.stopPropagation) ev.stopPropagation();
				return false;
			}
		}

		catch(e){}
		return true;
	},

	initNow: function() {
		this.init(document.body);
	}
};



