// JavaScript Document

$(document).ready(function(){

	resizeFlashContent();
	$(window).bind("resize",doResize);
});
 
function doResize(){
	
	resizeFlashContent();
}

function resizeFlashContent(){
	var view = viewWindow();
	
	if(view.width>960){
		$(".index_content").width("100%");
	}else{
		$(".index_content").width(960);
	}
	
	if(view.height>600){
		$(".index_content").height(view.height);
	}else{
		$(".index_content").height(600);
	}
}


function viewWindow(){
	return {
		x: $(document).scrollLeft(),
		y: $(document).scrollTop(),
		width: $(window).width(),
		height: $(window).height(),
		allW: $(document).width()
	};
}
