/**
 * pageFade plugin
 * @version  1.0
 * @date 2010.08.30
 * @category jQuery plugin
 * @copyright (c) 2010 beliefire.inc
 * @author   rew <info@beliefire.com>
 * @link     http://www.beliefire.com
 * @license  http://www.beliefire.com
 *
 * 使用方法
 * bodyタグに class="pageFade" を設定。
 *
 *
 */



/**
 * Avoid conflict
 */
jQuery.noConflict();

/**
 * Settings
 */
var DURATION = 1000;


(function($){
window.onpageshow = function(){
};

$(window).unload(function(){
  
});

$(document).ready(function(){
	onInit();	   
});

var onInit = function(){
	//make blind
	$("body").prepend("<div id='filter' style='position:fixed;background:#e0e0e0;z-index:3;margin-top:-15px;'></div>");
	$("#filter").height($(window).height()+15).width($(window).width());
	
	//load
	$(".pageFade").ready(function(){
			$("#filter").fadeOut(DURATION);
			$(document).fadeIn(DURATION);			
	});
	
};


})(jQuery);
