/* VARIABLES */

/* LISTENERS */
$(document).ready(function() {
	smoothToTop();
});
$(window).resize(function() {

});

/* FUNCTIONS */
function smoothToTop() {
	$('a[href*=#]').click(
			function() {

				if (location.pathname.replace(/^\//, '') == this.pathname
						.replace(/^\//, '')
						&& location.hostname == this.hostname) {

					var $target = $(this.hash);
					$target = $target.length && $target
							|| $('[name=' + this.hash.slice(1) + ']');

					if ($target.length) {
						var targetOffset = $target.offset().top;
						$('html,body').animate( {
							scrollTop : targetOffset
						});
						return false;
					}
				}
			});
}

// <[CDATA[

// SIFR

var gamezonefont = {
	src : 'swf/font.swf'
};

sIFR.useStyleCheck = true;

sIFR.activate(gamezonefont);

sIFR.replace(gamezonefont, {
	selector : '.pink',
	css : {
		'.sIFR-root' : {
			'color' : '#f05fa3',
			'font-size' : '14px',
			'text-transform' : 'uppercase'
		}
	},
	wmode: 'transparent'
});

sIFR.replace(gamezonefont, {
	selector : '.green',
	css : {
		'.sIFR-root' : {
			'color' : '#a2cd3a',
			'font-size' : '14px',
			'background-color' : '#123945',
			'text-transform' : 'uppercase'
		}
	},
	wmode: 'transparent'
});

sIFR.replace(gamezonefont, {
	selector : '.blue',
	css : {
		'.sIFR-root' : {
			'color' : '#52c5ce',
			'font-size' : '14px',
			'background-color' : '#123945',
			'text-transform' : 'uppercase'
		}
	},
	wmode: 'transparent'
});

sIFR.replace(gamezonefont, {
	selector : '#nav li',
	css : [ '.sIFR-root { color:#ffffff; text-align: right; font-size: 14px; text-transform:uppercase;}',
			'#nav li a {color: #ffffff; text-decoration: none;}',
			'#nav li a:hover {color: #d6006d;}',
			'.active { color: #d6006d;}'
	],
	wmode : 'transparent'
});

// ]]>
