// // <![CDATA[
// window.onload = function(){
// }
// //	]]>
Common = function(){
	/* start:set header menu ----------------------------------------------- */
	for(var x=1,xmax=7;x<=xmax;x++){
		_OMover(document.getElementById("m0" + parseInt(x)));
	}
	/* end:set header menu ------------------------------------------------- */
	/* start:set footer's position ----------------------------------------- */
	var Footer = document.getElementById("footer");
	var SFP = {
		BrowserHeight: (function(){
			var BrowserHeight;
			if(_BrowserDetect.browser == "Explorer"){
				BrowserHeight = document.documentElement.clientHeight
			}else if(_BrowserDetect.browser == "Opera"){
				BrowserHeight = document.body.clientHeight;
			}else{
				BrowserHeight = document.documentElement.clientHeight;
			}
			return BrowserHeight
		})(),
		t: Footer.offsetTop,
		h: Footer.offsetHeight,
		def: 0
	};
	SFP.def = SFP.BrowserHeight - (SFP.t + SFP.h);
	if(SFP.def > 20){
		var SpacerDiv = document.createElement("div");
		var SpacerText = document.createTextNode(" ");
		SpacerDiv.style.marginTop = "20px";
		SpacerDiv.style.height = (SFP.def - 20) + "px";
		SpacerDiv.style.background = "#fff";
		SpacerDiv.appendChild(SpacerText);
		Footer.appendChild(SpacerDiv);
	}
	/* end:set footer's position ------------------------------------------- */
}

TS_OpenWindow = function(theURL,pic_width,pic_height) {
	features = "resizable=yes,";
	if (pic_width > (screen.width - 160)) {
		pic_width = screen.width - 160;
		features = "scrollbars=yes,";
	}
	if (pic_height > (screen.height - 160)) {
		pic_height = screen.height - 160;
		features = "scrollbars=yes,";
	}
	x = (screen.width - pic_width) / 2;
	y = (screen.height - pic_height) / 2;
	features += "width=" + pic_width + ",height=" + pic_height;
	features += ",left=" + x + ",top=" + y;
	window.open(theURL,"",features);
}
