// JavaScript Document







function centeredPopUp(pPage,w_width,w_height) {

	var iMyWidth;

	var iMyHeight;

	//gets top and left positions based on user's resolution so hint window is centered.

	iMyWidth = (window.screen.width/2) - (w_width/2 + 10); //half the screen width minus half the new window width (plus 5 pixel borders).

	iMyHeight = (window.screen.height/2) - (w_height/2 + 30); //half the screen height minus half the new window height (plus title and 5 pixel bottom).

	var win2 = window.open(pPage,"Window2","status=no,height="+w_height+",width="+w_width+",resizable=no,left=" + iMyWidth + ",top=" + iMyHeight + ",screenX=" + iMyWidth + ",screenY=" + iMyHeight + ",scrollbars=no");

	win2.focus();

}

	



 function	swaplink(url){



    jumpto = url;



 }







 function	bannerlink(){



		  if(jumpto == "jvopen"){

		  

		   //centeredPopUp('sp/ptu.html',640,360)
		   
			var win2 = window.open("http://www.japan-village.com/japan-v-open/index.shtml","Window2");
		   

		   }else{



		   window.location.href = jumpto;



		 }



 }



