/**
 * @author fuku
 */
$(function(){
	$(document).ready(
		function() {
			$("ul.menu").dropShadow({left: 3,top: 1,blur: 4});
			initHeaderEffect();
			initTitle();
		}
	);
});

function initTitle(){
	$("h2")
		.css({
		"height": "1.8em",
		"padding": "0.4em 0 0 1em"
	})
	.gradient({
		from: 'ff9900',
		to: 'ffffff',
		direction: 'vertical'
	});
	
	$("h3")
		.css({
		"height": "1.6em",
		"padding": "0.2em 0 0 1em"
	})
	.gradient({
		from: 'ffaa77',
		to: 'ffffff',
		direction: 'vertical'
	});
}
	
function initHeaderEffect() {
	var VarUsrAgt = navigator.userAgent.toLowerCase();
	if (VarUsrAgt.indexOf("opera") == -1) {
  	$("#logo h1").hide();
  	$("#logo").append('<div class="headerview" id="headerview">' + $("#logo h1").html() + '</div>')
  	$("#logo").append('<div class="clear"></div>')
  }
	$("#all").dropShadow();
	$("#headerview")
							.css({
								"font-weight":"bold",
								"font-size":"300%",
								"float":"left"
							})
							.dropShadow({left: 5,top: 5});
	//effectheader();
}

function effectheader() {
	var len = $("#headerview").length;
	var rnd = Math.floor(Math.random()*len);
	$("#headerview").effect("bounce", {}, 1200); 
	setTimeout(effectheader, 30000);
}

