
	function change_up(){
		global_b = eval(global_a) + 1;
		
		if(global_b > max_number) {
			ChangeImage(global_a);
		} else {
			ChangeImage(global_b);
			global_a = global_b;
		}
	}

	function change_down() {
		global_b = eval(global_a) - 1;
		if(global_b == 0) {
			ChangeImage(global_a);
		} else {
			ChangeImage(global_b);
			global_a = global_b;
		}
	}

	function slideshow_image() {
		var slidespeed	;
		global_a = 1	;
		chbox_slide()	;
	}

	function slideit() {
		ChangeImage(global_a)	;
		clearTimeout(timerID)	;

		if(global_a >= max_number) {
			clearTimeout(timerID);
			slideChecktext('2');
		} else {
			global_a = eval(global_a) + 1;
			chbox_slide();
		}
	}

	function chbox_slide() {

		if(document.form2.checkbox_slide[0].checked) {slidespeed="1000"}
		if(document.form2.checkbox_slide[1].checked) {slidespeed="3000"}
		if(document.form2.checkbox_slide[2].checked) {slidespeed="5000"}

		timerID = setInterval("slideit()",slidespeed);
	}

	function slideshow_timeout() {
		clearTimeout(timerID);
	}

	//¿©±â º¯¼ö´Â ÀÌ¹ÌÁö º¯È¯¿¡ ´ëÇÑ ½ºÅ©¸³Æ®	
	var Init, RealHeight, RealWidth, ImsiHeight, ImsiWidth, OptValue = 100, GrayScaleValue = 0, InverseValue = 0, ComValue;
	
	function action() {
		ComValue 	= 'alpha(opacity=100, style=3, finishopacity=' + OptValue +') '	;
		ComValue 	+= (GrayScaleValue == 1 ? 'gray ':'')					;
		ComValue 	+= (InverseValue == 1 ? 'Invert' : '')						;
		return ComValue;
	}

	function clearEffect() {	
		OptValue						= 100	;
		GrayScaleValue				= 0		;
		InverseValue 					= 0		;
		ComValue 					= ""		;
		document.changeImage.clearAttributes()		;
		document.changeImage.style.filter	= action()	;
	}

	function increaseOpacity() {
		if (OptValue >= 100) OptValue = 100			;
		else OptValue += 10						;
		document.changeImage.style.filter = action()	;
	}

	function decreaseOpacity() {	
		if (OptValue <= 0) OptValue = 0				;
		else OptValue -= 10						;
		document.changeImage.style.filter = action()	;
	}

	function gray() {
		if (GrayScaleValue == 1) GrayScaleValue = 0	;
		else GrayScaleValue = 1					;
		document.changeImage.style.filter = action()	;
	}

	function invert() {
		if (InverseValue == 1) InverseValue = 0		;
		else InverseValue = 1					;
		document.changeImage.style.filter = action()	;
	}

	function reSize(num) {
		initialize();
		if (num > 0) {
			ImsiWidth			= RealWidth * (num / 100)	;
			ImsiHeight		= RealHeight * (num / 100)	;
		} else if (num == -1) {
			if (ImsiWidth > 0 && ImsiHeight >0) {
				ImsiWidth		+= ImsiWidth * 0.1	;
				ImsiHeight 	+= ImsiHeight * 0.1	;
			}
		} else if (num == -2) {
			if (ImsiWidth > 0 && ImsiHeight >0) {
				ImsiWidth		-= ImsiWidth * 0.1	;
				ImsiHeight	-= ImsiHeight * 0.1	;
			}	
		}
		
		document.changeImage.width = ImsiWidth	;
		document.changeImage.height = ImsiHeight	;
	}

	function slideChecktext(num) {
		var fff		;
		fff = num		;
		fileHtml = ""	;
		
		if (fff == '1') {
			fileHtml = "<font size=3 color=yellow><blink><b>½½¶óÀÌµå ÁßÀÔ´Ï´Ù.</b><blink></font>";
		} else if (fff == '2') {
			fileHtml = "";
		}
		
		preViewQue2.innerHTML = fileHtml;
	}

	// ***************************
	// µ¥ÀÌÅ¸ ·Îµù ºÎºÐ stylesheet
	// ***************************
/*	function init() {
		document.all.ready.style.display='none';
		document.all.ok.style.display='';
	}
*/


