/*
----------------------------------------------------------------------------------------------------

	■ 基本情報
		- 著作権	:	Copyright(c) 2009 アプロコム株式会社 All Rights Reserved.
		- 作成者	:	アプロコム株式会社　田中大士
		- 作成日	:	2009/02/02
		- 更新日	:

	■ ファイル情報
		- 名称
			∟ 基本処理

		- 概要
			∟ ユーザビリティとソースの視認性を向上させるための処理

		- コアファイル
			∟ jQuery 1.3+

	■ ソース内容
		- リンクのフォーカス枠削除
		- テキストの自動選択
		- 新規ウィンドウの作成

	■ 対応ブラウザ
		- Microsoft Internet Explorer
			∟ 6 +		:	○	2009/02/02

		- Mozilla Firefox
			∟ 2.0 +	:	○	2009/02/02

		- Opera
			∟ 9.0 +	:	○	2009/02/02

		- Apple Safari
			∟ 3.0 +	:	○	2009/02/02

		- Google Chrome
			∟ beta		:	○	2009/02/02

	■ 更新履歴

----------------------------------------------------------------------------------------------------
*/


/*
 基本処理
---------------------------------------------------------------------------------------------------- */
$(function(){
	//リンクの枠線削除 
	$('a,area').focus(function(){$(this).blur();});

	//テキスト自動選択 
	$('input[type=text],input[type=password],textarea').focus(function(){$(this).select();});

	//リンクの表示先設定 
	$('a[rel=blank]').click(function(){window.open($(this).attr('href'), '_blank'); return false;}); 
	$('a[rel=window]').click(function(){window.open($(this).attr('href'), $(this).attr('title'), 'width=' + screen.width + ', height=' + screen.height + ', left=0, top=0'); return false;}); 
});
