function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

//special page w:630
function Open_pop630 (url) {
	var object = window.open (url, "", "width=630, height=600, scrollbars=1, resizable=1");
	object.focus ();
	return object;
}

//special page w:840
function Open_pop840 (url) {
	var object = window.open (url, "", "width=840, height=700, scrollbars=1, resizable=1");
	object.focus ();
	return object;
}

//special page w:840_vf
function Open_pop840_vf (url) {
	var object = window.open (url, "", "width=860, height=700, scrollbars=1, resizable=1, location=1");
	object.focus ();
	return object;
}

//special page w:600
function Open_pop600 (url) {
	var object = window.open (url, "", "width=600, height=640, scrollbars=1, resizable=1");
	object.focus ();
	return object;
}

//special page w:1150
function Open_pop1150 (url) {
	var object = window.open (url, "", "width=1150, height=700, scrollbars=1, resizable=1");
	object.focus ();
	return object;
}

//special page w:300
function Open_pop300 (url) {
	var object = window.open (url, "", "width=300, height=280, scrollbars=1, resizable=1");
	object.focus ();
	return object;
}

//special page guest room
function Open_guest (url) {
	var object = window.open (url, "", "width=420, height=560, scrollbars=1, resizable=1");
	object.focus ();
	return object;
}

//outside of asia
function Open_hasbro (url) {
	var object = window.open (url, "", "width=780, height=700, scrollbars=1, resizable=1");
	object.focus ();
	return object;
}

//blythe theater
function Open_theater (url) { //v2.0
	var object = window.open (url, "Open_theater", "width=440, height=500, scrollbars=1, resizable=1");
	object.focus ();
	return object;
}

//News Bahashishi
function Open_bahashishi (url) { //v2.0
	var object = window.open (url, "Open_bahashishi", "width=580, height=450, scrollbars=1, resizable=1");
	object.focus ();
	return object;
}

//Photocon2007_popup
function pop (url) {
  window.open(url,'','toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=600,height=590');
}

//download
function Open_download (url) { //v2.0
	var object = window.open (url, "Open_wallpaper", "width=1000, height=600, scrollbars=1, resizable=1");
	object.focus ();
	return object;
}

//whats new
function main(url) {
	if (window.opener){
	window.opener.location.href=url
	}
else{
	var object = window.open (url, "window", "width=800, height=640, scrollbars=1, resizable=1, toolbar=1");
	object.focus ();
	return object;
	}
}

function sub630(url) {
	var object = window.open (url, "", "width=630, height=600, scrollbars=1, resizable=1");
	object.focus ();
	return object;
}

function sub840(url) {
	var object = window.open (url, "", "width=840, height=700, scrollbars=1, resizable=1, location=1");
	object.focus ();
	return object;
}

function sub840_vf(url) {
	var object = window.open (url, "", "width=860, height=700, scrollbars=1, resizable=1, location=1");
	object.focus ();
	return object;
}

function sub1150(url) {
	var object = window.open (url, "", "width=1150, height=700, scrollbars=1, resizable=1, location=1");
	object.focus ();
	return object;
}

//phtocon2008
function Open_ph2008 (url) {
	var object = window.open (url, "", "width=550, height=650, scrollbars=1, resizable=1");
	object.focus ();
	return object;
}
//phtocon
function Open_phcon (url) {
	var object = window.open (url, "", "width=550, height=650, scrollbars=1, resizable=1");
	object.focus ();
	return object;
}

//lottery
function Open_lot() {
	document.lot.method="post";
	document.lot.action="http://www.blythedoll.com/jpn/lottery/entry.php";
	document.lot.submit();
}

