/* ================================================================================
* Title: Jquery Function
*
* Copyright (c) 2009 Astra The Studio Inc.
* http://www.studio.co.jp/
* Date: Feb.13, 2009
* @author: Chihiro Mori
* @version: 1.0.3
*
* jQuery 1.3.2
* exFixed 1.2.2
* jQuery.ScrollTo 1.4.2
*
* 確認済ブラウザ: [Mac] FireFox3.0, Safari3.1.2 [Win] IE6.0, 7.0
* Macで作業するときの注意：バックスラッシュ\を入力するときはoptionを押しながらエンマーク
================================================================================ */
/* 目次
selfLink()     : 自ページリンクにクラス付与
loadFlash()    : SWFObject使ったFlashファイルの埋め込み
fontSwitcher()  : フォントサイズ変更
menuRollover() : 透明効果を使ったナビゲーションのマウスオーバー
btnRollover()  : 透明効果を使ったナビゲーションのマウスオーバー(クラス付与)
selfScroll()   : ページ内スムーススクロール。jQuery.ScrollTo を使用
loadCseId()    : Googleカスタム検索のロゴ読み込み
*/
(function($)
{
//---------------------------------------------------------------------
	$(function()
	{
		$.ASconf.pulldown();
		$.ASconf.contentFade();
		$.ASconf.btnRollover();
	});
//---------------------------------------------------------------------
	$.ASconf =
	{
	//---------------------------------------------------------------------
		pulldown: function()
		{
			var c = $.extend(
			{
				selector:'#header ul li[id]'
			});
			
			$(c.selector).hover(function()
			{
				$(this).find('ul:not(:animated)').slideDown('normal');
				//$('#headerWrap').css('height','300');
			}
			,function()
			{
				$(this).find('ul').slideUp(0);
				//$('#headerWrap').css('height','auto');
			});
		},
		contentFade: function()
		{
			var c = $.extend(
			{
				selector:'#fade_content'
			});
			$(c.selector).fadeIn(2000);
			$(c.selector).css('display','block');
		},
		//-----------------------------------------------------------------
		btnRollover: function()
		{
			var c = $.extend(
			{
				selector:'img.btn'
			});

			$(c.selector).each(function()
			{
				if($(this).parent().attr('class'))
				{
					$(this).fadeTo(0, 0.8);
				}
				else
				{
					$(c.selector).hover(function()
					{
						$(this).stop().fadeTo('fast', 0.8);
					}
					,function()
					{
						$(this).stop().fadeTo('fast', 1);
					});
				};
			});
		}
	//-----------------------------------------------------------------
	};
//---------------------------------------------------------------------
})(jQuery);