var beforeURL = window.document.referrer;
beforeDomain = beforeURL.substr(0,24);

////////////////////////////////////////
///アクセスカウンター///ハイスコアリセット///
if(beforeDomain != "http://www.gamerlien.com"){
	countIMG = new Image();
	countIMG.src = "http://www.gamerlien.com/counter/countplus.cgi?n=" + Math.floor(Math.random()*100);
	ResetScoreIMG = new Image();
	ResetScoreIMG.src = "../reset_score/reset.cgi?"+Math.floor(Math.random()*999999);
}

///////////////////////////
///NAVI RollOver///////////
for(i=0 ;i<=5 ;i++){
	NAVIimage = new Image();
	NAVIimage.src="../common/navi_"+i+"_over.gif";
}
function BTchange(namae,IMG){
	document[namae].src=IMG;
}

///////////////////////////
///Window Open サイズ指定///
function windowopen(url,w,h){
	window.open(url,"gamerlien","width="+w+",height="+h+",resizable=no,toolbar=no,menubar=no,scrollbars=yes");
}
function fullScreenOpen(url){
	var popupWin = window.open(url,"gamerlien","width=800,height=600,resizable=no,toolbar=no,menubar=no,scrollbars=yes");
	popupWin.moveTo(0, 0);
	popupWin.resizeTo(screen.availWidth, screen.availHeight);
}

//////////////////////////
//////////////////////////
var ran = Math.random()*100;
ranIMG = new Image();
ranIMG2 = new Image();
if(ran<10){
	ranIMG.src = "http://members.jcom.home.ne.jp/masimaro/";
	//ranIMG.src = "http://flashrank.net/ranklink.cgi?id=meshi";
}else if(ran>=10 && ran<25){
	ranIMG.src = "http://members.jcom.home.ne.jp/masimaro/";
}else if(ran>=25 && ran<26){
	ranIMG.src = "http://hp-ranking.net/cgi-bin/12/ranklink.cgi?id=meshi";
}else if(ran>=35 && ran<45){
	ranIMG.src = "http://game.link-search.com/ranklink.cgi?id=meshi";	
}else if(ran>=60 && ran<70){
	ranIMG.src = "http://www.guuguu.net/";	
}
