function OpenContents(){
	sw=screen.width;
	sh=screen.height;
	if(sw >= 1024 && sh >= 768){
	window.open('index_j.html','main','width='+sw+',height='+sh+',left=0,top=0,location=no,toolbar=no,menubar=no,resizable=yes,scrollbars=no');
	}else{
	window.open('index_j.html','main','width='+sw+',height='+sh+',left=0,top=0,location=no,toolbar=no,menubar=no,resizable=yes,scrollbars=yes');
	}
}
function OpenContents2(){
	sw=screen.width;
	sh=screen.height;
	if(sw >= 1024 && sh >= 768){
	window.open('english/index.html','main','width='+sw+',height='+sh+',left=0,top=0,location=no,toolbar=no,menubar=no,resizable=yes,scrollbars=no');
	}else{
	window.open('english/index.html','main','width='+sw+',height='+sh+',left=0,top=0,location=no,toolbar=no,menubar=no,resizable=yes,scrollbars=yes');
	}
}
//Windows/Mac用スタイルシート振り分けJavaScript
<!--
if (navigator.userAgent.indexOf("Win")>=0){
document.write("<link rel=\"stylesheet\" type=\"text/css\" href=\"css/win.css\">");
}
if (navigator.userAgent.indexOf("Mac")>=0){
document.write("<link rel=\"stylesheet\" type=\"text/css\" href=\"css/mac.css\">");
}
function MM_jumpMenu(targ,selObj,restore){ //v3.0
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
}
//-->
//フルサイズ用(FLASH)
	<!--
	function resize() {
	var width=screen.availWidth;
	var height=screen.availHeight;
	self.moveTo(0,0);
	self.resizeTo(Math.ceil(width), Math.ceil(height));
	}
	function MM_openBrWindow(theURL,winName,features) { //v2.0
	  window.open(theURL,winName,features);
	}
	//-->
//サイズ位置指定オープンウィンドウ(FLASH)
<!--
//U=URL N=ウインドウ名 W=幅 H=高さ
function Wopen(U,N,W,H){
	var WO1;
	var centerH=(screen.height-H)/2;
	var centerW=(screen.width-W)/2;
WO1=window.open(U,N,'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=no,resizable=no,width='+ W +',height='+ H +',left='+ centerW +',top='+ centerH +'');
	WO1.focus();
}
Wopen
//-->
//クローズウィンドウ
<!--
function closeBrWindow() { 
  self.close();
}
//-->
//サイズ位置指定オープンウィンドウ(HTML)
<!--
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.01
  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 && d.getElementById) x=d.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];}
}


			
function Wopen(U,N,W,H){
	var WO1;
	var centerH=(screen.height-H)/2;
	var centerW=(screen.width-W)/2;
WO1=window.open(U,N,'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=no,resizable=no,width='+ W +',height='+ H +',left='+ centerW +',top='+ centerH +'');
	WO1.focus();
			}
			
		
function Wopen001(U,N,W,H){
	var WO1;
	var centerH=(screen.height-H)/2;
	var centerW=(screen.width-W)/2;
WO1=window.open(U,N,'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=yes,resizable=yes,width='+ W +',height='+ H +',left='+ centerW +',top='+ centerH +'');
	WO1.focus();
			}
			

			
function win_alb(){
Wopen("../album/index.html","album",580,580);
}

function Wopen01(){
Wopen("http://www.sheltter.vc/webcatalog/sly_gossips/flash/F_viewer_standard.htm","news",1024,768);
}

function Wopen02(){
Wopen("news/100208_newspaper/","news",800,640);
}

function Wopen03(){
Wopen("news/091005_01.html","news",900,635);
}

function Wopen04(){
Wopen("news/091106_01.html","news",640,555);
}

function Wopen05(){
Wopen("news/091112_familysale.html","news",800,590);
}

function Wopen06(){
Wopen("news/100105_01.html","news",630,600);
}

function Wopen07(){
Wopen("news/100106_iphonecase.html","news",360,550);
}

function Wopen08(){
Wopen("news/100112_familysale.html","news",680,600);
}

function Wopen09(){
Wopen("news/100225_01.html","news",800,586);
}

function Wopen10(){
Wopen("news/100220_mook.html","SHELTTERMOOK11",680,430);
}

function Wopen11(){
Wopen("news/080516_01/index.html","TOKYORUNWAY",480,310);
}



//---------------↓ image preload start ↓---------------
//イメージのプリロード
function preLoad(){
//----- set image -----
imglist = 'share/menu_supe_ov.gif#'
	+ 'share/menu_adva_ov.gif#'
	+ 'share/menu_jflb_ov.gif#'
	+ 'share/menu_live_ov.gif#'
	+ 'share/menu_mess_ov.gif#';
setImg = imglist.split("#");
preImg= new Array();
	for (i=0; i<setImg.length; i++){
		preImg[i] = new Image();
		preImg[i].src = setImg[i];
	}
}
//---------------↑ image preload end ↑---------------
//---------------↓ check ObjectModel start ↓---------------
//DOMにおける動作対応
function docGetId(id){
	if(document.getElementById){
		value = document.getElementById(id);
	}
	else{
		value = document.all(id);
	}
	return value;
}
//---------------↑ check ObjectModel end ↑---------------
//---------------↓ share function start ↓---------------
//imgの入れ替え
function changeImg(imgID,image){
	imgDir = "share/";
	docGetId(imgID).src = imgDir + image;
}
//---------------↑ share function end ↑---------------
