var App = function(){
}
var navInt;

var newHeight = 0;

App.prototype.init = function(){
	App.prototype.resize();
	$(window).resize(function() { App.prototype.resize();}); 
}
App.prototype.resize = function(){
	
    var height = $(window).height();
    var width = $(window).width();

	if(newHeight > height){
	
		$('#myContent_outer').css({"height":newHeight+"px"});
		$('#Flashobject0').css({"height":newHeight+"px"});
	}
	else if(height > 780){
		
        $('#myContent_outer').css({"height":height+"px"});
		$('#Flashobject0').css({"height":height+"px"});
	}
    else{
		
        $('#myContent_outer').css({"height": "780px"});
		$('#Flashobject0').css({"height": "100%"});
	}
    if(width > 981)
        $('#myContent_outer').css({"width":width-5+"px"});
    else
        $('#myContent_outer').css({"width": "981px"});
}
var app = new App();

App.prototype.adjustHeight = function(y){
	
	newHeight = y;
	if (y > $(window).height()) {
    	$('#myContent_outer').css({"height":y+"px"});
		$('#Flashobject0').css({"height":y+"px"});
	} else {
		$('#myContent_outer').css({"height":$(window).height()+"px"});
		$('#Flashobject0').css({"height":$(window).height()+"px"});
	}
	$('#myContent_outer').css({"width":$(window).width()-5+"px"});
}

App.prototype.setToTop = function () {
	
	scroll(0,0);
	
}

App.prototype.resetToBrowserHeight = function () {
	
	var height = $(window).height();

	
	if (height > 780) {
		$('#myContent_outer').css({"height":height+"px"});
		$('#Flashobject0').css({"height":height+"px"});
	} else {
		
		$('#myContent_outer').css({"height": "780px"});
		$('#Flashobject0').css({"height": "100%"});
		
	}
	
}