//--------------------------------
// resize(ie対応用)
//						2010.03
//--------------------------------


//
var _size = { w: 0, h: 0 };
var _ie = document.uniqueID;
var _quirks = (document.compatMode || "") !== "CSS1Compat";
var _ieroot = _quirks ? "body" : "documentElement";

function getInnerSize() {
  var root = _ie ? document[_ieroot] : window;
  return { w: root.innerWidth  || root.clientWidth,
           h: root.innerHeight || root.clientHeight };
}


// onresize時の処理
function resize()
{
	var $target	= jQuery('.sub_sec02');
	
	var in_size		= getInnerSize();
	var all_size = { w: 0, h: 0 };
	var _ie = document.uniqueID;
	if(_ie)
	{
		all_size.h = in_size.h + 210;
	}else{
		all_size.h = in_size.h - 220;
	}
	
	$target.css( 'height', all_size.h + 'px' );
	jQuery('#db_pos_x').html( in_size.h + ":" + all_size.h );
	//<span id="db_pos_x">000</span> <!-- デバック用(html内に記述) -->
}

// resizeイベント処理登録
jQuery(document).ready( function() {
	resize();								 
	jQuery(window).resize(resize);
});
