// JavaScript Document
var minHeight = 520;

var myHeight = 0;
var myWidth = 0;

//
$(document).ready(function(){
						   
	$('#naviTable .rollover').preload({
		 find:'.png',
	 	replace:'_over.png'
	});
	
	$('#naviTable .inactive').hover(function(){
		this.src = this.src.replace('.png','_over.png');
		},function(){
		this.src = this.src.replace('_over','');
	});
	
	$('#naviTable .active').each(function(){
		this.src = this.src.replace('.png','_over.png');								 
	}) 
	//
	onResize();
	$(window).resize(function(){
		onResize();
	});
	
	var flashvars	= {};		try{ flashvars = variables;		}catch(e){ null; };
	var flashattri	= {};		try{ flashattri = attributes;	}catch(e){ null; };
	
	var params		= {allowScriptAccess:'always', menu:'false', wmode:'transparent'};
	
	swfobject.embedSWF(swfAddress, "flaArea", myWidth, myHeight, "9.0.0", 'expressInstall.swf', flashvars, params, flashattri); 
});
//
function onResize() {
	myHeight = ($(window).height() - 76);
	myWidth = $(window).width();
	//
	if(Number(myHeight) < Number(minHeight) ){
		myHeight = minHeight;
		$('body').css('overflow', 'visible');
	}


	$('#flaArea').css('height', myHeight + 'px');
	$('#flaArea').css('width', myWidth + 'px');
}
//
function openExtra() {
	var address = 'contents/extra/smooth_refiner.html';
	window.open(address,'win','width=400,height=500');	
}
//