function showImgTimer(){
	setTimeout("showImg()",2000);
}

function showImg(i) {
	
		$(id).fadeIn("nomal",function() {$(id).fadeOut("nomal");});
}

function chgImgLarge(file) {
	
	filecode = "#"+file;
	
	var h = $(filecode).height();
	var w = $(filecode).width();
		
	var mw = $("#detailarea").width()-772;
		
	var mh = h*mw/w;

	if (mh < height) {
		$(filecode).width(mw);
		$(filecode).height(mh);
	} else {
		$(filecode).height(height);
		
	}
	
	if (modelcode) {
		if (modelcode != filecode) {
			$(modelcode).fadeOut("nomal",function() {$(filecode).fadeIn("nomal");});
			modelcode = filecode;
		}
	}
	else {
		$("#main").fadeOut("nomal",function() {$(filecode).fadeIn("nomal");});
		modelcode = filecode;
	}
	
	//var marginpx = ($("#detailarea").width()-712-$(modelcode).width())/2;
	//$("#detailphotoblock").css({marginLeft: marginpx});
}


function resize() {
	var h = $("#main").height();
	var w = $("#main").width();
		
	var mw = $("#detailarea").width()-772;
		
	var mh = h*mw/w;

	if (mh < height) {
		$("#main").width(mw);
		$("#main").height(mh);
	} else {
		$("#main").width(height*w/h);
		$("#main").height(height);
		
	}
	//var marginpx = ($("#detailarea").width()-712-$("#main").width())/2;
	//$("#detailphotoblock").css({marginLeft: marginpx});
	$("#detailrightblock").css({height: height});
	$("#detailthumbblockmen").css({height: height});
	$("#detailthumbblockwomen").css({height: height});
}

function getWindowHeight() {
	$("#scrl_recruite").css({height: height-30});
	$("#scrl_contact").css({height: height-30});
	$("#container_contents").css({height: height-30});
}


$(document).ready(function(){
	$("#logo,#btn_post,#send,#back02,#b_toppage,#btn_login,#btn_logout,#btn_autoaddr").mouseover(function () {
		$(this).fadeTo("fast", 0.33);
	});
	$("#logo,#btn_post,#send,#back02,#b_toppage,#btn_login,#btn_logout,#btn_autoaddr").mouseout(function () {
		$(this).fadeTo("fast", 1);
	});
});

$(document).ready(function(){
  $(document).bind("contextmenu",function(e){
    return false;
  });
});
