/*
 * Google Analytics
 * 使い方
 * "＊"(アスタリスク)の部分は自分のIDを記入
*/
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");

var header = document.getElementsByTagName("head")[0];
var scriptTag = document.createElement("script");
scriptTag.setAttribute("src", gaJsHost + "google-analytics.com/ga.js");
scriptTag.setAttribute("type", "text/javascript");

header.appendChild(scriptTag);

function analytics() {
　try {
　　var pageTracker = _gat._getTracker("UA-22401449-3");
　　pageTracker._trackPageview();
　} catch(err) {
　　// alert("Google Analytics:" + err);
　}
}

if (window.attachEvent) {
　window.attachEvent("onload", analytics);
} else {
　window.addEventListener("load", analytics, false);
}


/*
 * jQuery.BiggerLink v2.0.1
 * customLink
*/ 

$(function(){
// Supporting target _blank
$('a[target="_blank"]').click(function(){
window.open(this.href);
return false;
});
// Adding biggerlink
$('.links div.box_ov').biggerlink();
});


//ブラウザフル

function fullsize(){
	window.resizeTo(window.screen.width, window.screen.height);
	window.moveTo(0,0);
	window.focus();
}


//popup.js
/**
 * 
 * ※参考サイト（http://blog.magical-remix.net/igalog/archives/176）
 * 
 * <a href="http://www.yahoo.co.jp" rel="300,500" class="popup">ウィンドウ01</a>
 * 
 * rel="幅, 高さ"
 * 
*/

window.onload = function (){
	var node_a = document.getElementsByTagName('a');
		for (var i in node_a) {
			if(node_a[i].className == 'popup'){
				node_a[i].onclick = function() {
					return winOpen(this.href, this.rel)
				};
			}
		}
} ;

function winOpen(url, rel) {
	var split = rel.split(',') ;
	window.open(
	url,'popup',
	'width='+ split[0] +',height='+ split[1] +',toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes');

	return false;
};


function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}



