/* !!!! BELOW THIS LINE DO NOT EDIT !!!! */
var isIE6 = (navigator.userAgent).indexOf("MSIE 6.0") != -1;
var isPS3 = (navigator.userAgent.indexOf('PLAYSTATION') != -1) ? true : false;
//Flash Enabled
var flash = (isPS3) ? false : isFlash();

//Global
$(function(){

	var asset_required = new Array();
	asset_required[0] = '/images/warhammer_background_1.jpg';
	asset_required[1] = '/images/warhammer_background_2.jpg';
	$.preload(asset_required);

});

$(window).ready(function(){

	$('#sub-block .screen_1').fadeIn();
	/*$('#container .trailer').unbind().click(function(){
		$('#sub-block .win').hide()
		$("#section2").hide();
		$('#sub-block .screen_3').fadeIn();
	});*/
	$('#container .game').unbind().click(function(){
		$('#sub-block .win').hide()
		$('#sub-block .screen_2').fadeIn(500, function(){
			callBox('section2');
		});
		$('#videoContainer').css({display: 'none'});
		$('#videoItself').css({display: 'none'}).html('');
	});
	$('#container .home').unbind().click(function(){
		$('#sub-block .win').hide();
		$("#section2").hide();
		$('#sub-block .screen_1').fadeIn();
		$('#videoContainer').css({display: 'none'});
		$('#videoItself').css({display: 'none'}).html('');
	});
	$('#trailerBtn').click(function ()
	{
		$('#sub-block .win').hide()
		$("#section2").hide();
		//$('#videoContainer').css({display: 'block'});
		$('#videoItself').css({display: 'block'}).html('<iframe width="560" height="349" src="http://www.youtube.com/embed/OyxedcEgSvU" frameborder="0" allownetworking="internal" allowfullscreen></iframe>');
	});

});
