// Slide Menu

jQuery(document).ready(function () {	
	jQuery('#nav ul li').hover(
		function () {
			jQuery('ol', this).slideDown(330);
		}, 
		function () {
			jQuery('ol', this).fadeOut(320);
		}
	);
});

// Slide Select Language

jQuery(document).ready(function () {	
	jQuery('.account li.language').click(
		function () {
			jQuery('ul', this).slideDown(300);
		}
	);
});

jQuery(document).ready(function () {	
	jQuery('.account li.language').hover(
		function () {
			jQuery('ul', this).slideUp(250);
		}
	);
});

// Anchor

jQuery(document).ready(function() {
	jQuery("a.anchorLink").anchorAnimate()
});
jQuery.fn.anchorAnimate = function(settings) {
 	settings = jQuery.extend({
		speed : 400
	}, settings);	
	return this.each(function(){
		var caller = this
		jQuery(caller).click(function (event) {	
			event.preventDefault()
			var locationHref = window.location.href
			var elementClick = jQuery(caller).attr("href")
			var destination = jQuery(elementClick).offset().top;
			jQuery("html:not(:animated),body:not(:animated)").animate({ scrollTop: destination}, settings.speed, function() {
				window.location.hash = elementClick
			});
		  	return false;
		})
	})
}

// ÀÔ·Â¹Ú½º ÄÃ·¯¸µ

jQuery(document).ready(function($){
    $("input.id, input.oid, input.password, input.inputTypeText").fadeTo("slow", 0.5);
    $("input.id, input.oid, input.password, input.inputTypeText").focus(function(){
    $(this).css({"background-color":"#eff5e1"}).fadeTo("slow", 1.0);
    });
});

jQuery(document).ready(function($){
    $("input.id, input.oid, input.password, input.inputTypeText").blur(function(){
    $(this).css({"background-color":"#ffffff"}).fadeTo("slow", 0.5);
    });
});
