$(document).ready(function(){

var time=500;
var elm='#area-point ul li img#image';

$('#navigation li img').hover(
function () {
	var getNum = $(this).get(0).id.replace('btn','');
	$(elm+getNum).stop(true, false).fadeIn(time);
},
function () {
	var getNum = $(this).get(0).id.replace('btn','');	
	$(elm+getNum).stop(true, false).css({"display":"none","opacity":"1"});
});

	//IMG PRELOAD FUNCTION
	var preloadedImages = new Array();
	function preloadImage(uri){
		var plength = preloadedImages.length;
		preloadedImages[plength] = new Image();
		preloadedImages[plength].src = uri;
	}
	//ROLLOVER
	var conf02 = {className:"", postfix:"_o"};
	$(".imgover").each(function(){
		this.oSrc = this.src;
		this.rSrc = this.oSrc.replace(/(\.gif|\.jpg|\.png)/, conf02.postfix + "$1");
		preloadImage(this.rSrc);
	}).hover(function(){
		this.src = this.rSrc;
	},function(){
		this.src = this.oSrc;
	});	
	
function position_set(){
	
	var container = $('#all-container');
	
	container.css({
		margin : 0,
		position : 'absolute'
	});
	
	var s_width = document.documentElement.clientWidth;
	var s_height = document.documentElement.clientHeight;
	
	var c_width = container.width();
	var c_height = container.height();
	
	container.css({
		left : 	(s_width - c_width) / 2,
		top : 	(s_height - c_height) / 2
	});

}

position_set();

$(window).resize(function(){
	position_set();
});


});

