var ma = new Object();

var MASite = Class.create({

	initialize: function()
	{
		// background
		if($('bgMain')){
			this.bgMain = new FSImage($('bgMain'));
			Event.observe(window, 'resize', this.handleResize.bindAsEventListener(this));
		}
	},
	
	enableNavRollover: function(page,navToPop)
	{
		// set current page id
		ma.page = page;
		ma.navToPop = navToPop;
		
		// nav
		if($('nav')){
			this.navItems = new Array($('nav_shop'),$('nav_love'),$('nav_share'),$('nav_you'),$('nav_press'));
			this.nav = new Nav($('nav'),this.navItems);
		}
		
		// hover thumbnail
		if($('hoverThumb')){
			this.hoverThumb = new HoverThumbNail($('hoverThumb'));
		}
		
	},
	
	handleResize: function()
	{
		this.bgMain.scale();
	},
	
	showThumb: function(trgt,src)
	{
		this.hoverThumb.enable(trgt,src);
	},
	
	hideThumb: function()
	{
		this.hoverThumb.disable();
	}
});// JavaScript Document