$(document).ready(function(){
	function rolling() {
		var testNum = 3;
		var resultNum = Math.floor(Math.random()*testNum);
		var resultBG = "bg_"+resultNum;
		$('#screen').addClass(resultBG);
	};
	rolling();

	/* GNB */
	$('#gnb li').click(function(){
		if (this.id =='notYet'){
			
		} else {
			$('#gnb li').removeClass('selected')
			$(this).addClass('selected');
		}
	});

	$('#utility').load('include/utility.html');
	$('#footer').load('include/footer.html');
});

//공통팝업

function openPopWindow(szURL, szTarget, iWidth, iHeight, scrollable, resizable, returnwin) {
	var argv = openPopWindow.arguments;
	if (scrollable == undefined) scrollable = "no";
	if (resizable == undefined) resizable = "no";

	openWindow = window.open(szURL, szTarget, 'width=' + iWidth + ',height=' + iHeight + ',resizable=' + resizable + ',scrollbars=' + scrollable + ' ');
	openWindow.focus();

	if (returnwin != undefined && returnwin == true) {
	return openWindow;
	}
}; 

/*
function openPopWindow(szURL, szTarget, iWidth, iHeight, scrollable, resizable, returnwin, itop, ileft) {
	var argv = openPopWindow.arguments;
	if (scrollable == undefined) scrollable = "no";
	if (resizable == undefined) resizable = "no";
	if (itop == undefined) itop = 0;
	if (ileft == undefined) ileft = 0;

	openWindow = window.open(szURL, szTarget, 'width=' + iWidth + ',height=' + iHeight + ',resizable=' + resizable + ',scrollbars=' + scrollable + ',top=' + itop + ',left=' + ileft + ' ');
	openWindow.focus();

	if (returnwin != undefined && returnwin == true) {
	return openWindow;
	}
}; 
*/


