//セットアップか否かは
//conf_setupmode_frag=on/offで取得可能
//取得する値
/*
var conf_setupmode_frag="off";
var backheight_frag="on";
var backheight_int="600";
var backheightArrange="on";
var backheightTwice="on";
var list_or_page="page";
var backheightTwiceint="30";
var pagelistdisplay="on";
*/



$(document).ready(function() {
//■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■
//body調整
windowW = windowsizeget("w");
windowH = windowsizeget("h");



if( conf_setupmode_frag=="off" && backheight_frag=="on" ){  heightsaiteichi()  }
if( conf_setupmode_frag=="off" && backheightArrange=="on" ){  heightawase()  }
if( conf_setupmode_frag=="off" && backheightTwice=="on" ){  heightTwice()  }


if( document.getElementById('body') !=null  )
{
bodyH=$('.body').height();
if( windowH>=bodyH  )
{
document.getElementById('body').style.height=windowH;

}
else
{
document.getElementById('body').style.height='auto';

}
}


if( document.getElementById('body2') !=null  )
{

body2H=$('.body2').height();

if(  windowH>=body2H )
{
document.getElementById('body2').style.height=windowH;
}
else
{
document.getElementById('body2').style.height='auto';
}


}

if( document.getElementById('body3') !=null  )
{

body3H=$('.body3').height();

if(  windowH>=body3H )
{
document.getElementById('body3').style.height=windowH;
}
else
{
document.getElementById('body3').style.height='auto';
}

}



if( document.getElementById('body4') !=null  )
{

body4H=$('.body4').height();

if(  windowH>=body4H )
{
document.getElementById('body4').style.height=windowH;
}
else
{
document.getElementById('body4').style.height='auto';
}

}




if( document.getElementById('body5') !=null  )
{

body5H=$('.body5').height();

if(  windowH>=body5H )
{
document.getElementById('body5').style.height=windowH;
}
else
{
document.getElementById('body5').style.height='auto';
}

}




objcenter(windowW,windowH);


if( parent.document.getElementById('location_value')!=null  )
{
parent.$("#location_value").html($("#conf_pagenamesave").val());
parent.window.focus();
}



/*□□□□□□□□□□□□□□□□□□□□□□□□□□□□
ie用。
1.aタグのクリック状態解除
2.更新システムのリンク＞ページ選択におけるスクロール不可を解除
□□□□□□□□□□□□□□□□□□□□□□□□□□□□*/
if(  IE  )
{
var all_atag = $('a').get()
for (i = 0  ;  i<all_atag.length  ;  i++)
{////////////////////////////////////////////////
all_atag[i].blur();
}////////////////////////////////////////////////

if(  parent.global_scope_daishi =="setup.php" )
{
body.style.overflowY = "auto"
body.style.overflowX = "auto"
}

}



//■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■
});




$(window).resize(function () {
//■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■
//body調整
windowW = windowsizeget("w");
windowH = windowsizeget("h");



if( document.getElementById('body') !=null  )
{
bodyH=$('.body').height();
if( windowH>=bodyH  )
{
document.getElementById('body').style.height=windowH;
}
else
{
document.getElementById('body').style.height='auto';
}
}


if( document.getElementById('body2') !=null  )
{


if(  windowH>=body2H )
{
document.getElementById('body2').style.height=windowH;
}
else
{
document.getElementById('body2').style.height='auto';
}


}



if( document.getElementById('body3') !=null  )
{


if(  windowH>=body3H )
{
document.getElementById('body3').style.height=windowH;
}
else
{
document.getElementById('body3').style.height='auto';
}

}



if( document.getElementById('body4') !=null  )
{


if(  windowH>=body4H )
{
document.getElementById('body4').style.height=windowH;
}
else
{
document.getElementById('body4').style.height='auto';
}

}



if( document.getElementById('body5') !=null  )
{


if(  windowH>=body5H )
{
document.getElementById('body5').style.height=windowH;
}
else
{
document.getElementById('body5').style.height='auto';
}

}



objcenter(windowW,windowH);
//■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■
});





function group_pre_make(hiki)
{////////////////////////
$.ajax({
type: 'POST',
async: false,
url: 'setup.php',
data: 'singlewin_key='+singlewin_key+"&conf_Ajax=o&Ajaxfile=scope-junchange.php&conf_g_category="+hiki ,
success: function(msg)
{/////
msg = msg.split(">>>>>>>>>>")

document.getElementById('temp_pre').value=msg[0]+'/01';
document.getElementById('pre_img').src='setup/kido/temp/'+msg[0]+'/01/img.jpg'
document.getElementById('pre_inner').innerHTML = msg[1]
}/////
});
}////////////////////////
