jQuery.noConflict();
(function($){
	$(function() {
/* ############### START JQUERY CODE ###############*/

$("body,html").css({"overflow":"hidden"});

function posCenter(){
var windowWidth  = $(window).width();
var windowHeight = $(window).height();
var elementWidth = $("#flashFrame").width();
var elementHeight = $("#flashFrame").height();

if((windowWidth - elementWidth) > 0){
		var marginLeft = (windowWidth - elementWidth)/2;
		$("#flashFrame").css("margin-left",marginLeft);
	}else{
		var marginLeft = (elementWidth - windowWidth)/2;
		$("#flashFrame").css("margin-left",-marginLeft);
	}
	if((windowHeight - elementHeight) > 0){
		var marginTop = (windowHeight - elementHeight)/2;
		$("#flashFrame").css("margin-top",marginTop);
	}else{
		var marginTop = (elementHeight - windowHeight)/2;
		$("#flashFrame").css("margin-top",-marginTop);
	}
};
posCenter();

$(window).resize(function(){
	posCenter();
});
/* ############### END JQUERY CODE ###############*/
	});
})(jQuery);
