function docTitle(str){
	window.document.title = str + " - ¸ÂÃã°Ç°­ ±Â½æ";
}

function toggler(obj,idx,j) {
	for(i = 1; i <= j ; i++ ) {
		document.getElementById(obj+i).className = "hide";
	}
		document.getElementById(obj+idx).className = "show";

	setTimeout('res()','500');

}


function toggle(obj) {
	var object = document.getElementById(obj);
	if (object.className == 'hide') {
    	object.className = 'show';
	} else {
    	object.className = 'hide';
	}
}

function res(){
	var targ = document.getElementById('body');
	targ.style.height='100';
}

function stripeHover(obj) {
	switch(obj.className) {
		case "first-child":
    		obj.className="first-child-over";
    		break;
		case "first-child-over":
			obj.className="first-child";
			break;
		case "over":
			obj.className="";
			break;
		default:
			obj.className="over";
			break;
	}
}

//resizeByObj('container','overlay')

function resizeByObj(source,target) {
	var source = document.getElementById(source);
	var target = document.getElementById(target);
	var source_h = source.height|parseInt(source.style.height)||source.offsetHeight;
	target.style.height = source_h + 40;
}

function resizeWin(w,h) {
	document.body.style.overflow='hidden';
	var clintAgent = navigator.userAgent;
	if ( clintAgent.indexOf("MSIE") != -1 ) {
		window.resizeBy(w-document.body.clientWidth, h-document.body.clientHeight);
	} else {
		window.resizeBy(w-window.innerWidth, h-window.innerHeight);
	}
}

