function object_tag(url, width, height, mode){
	var tag_str;
	tag_str="<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0'";
	tag_str+=" width='"+width+"' height='"+height+"'>";
	tag_str+="<param name=movie value='"+url+"'>";
	tag_str+="<param name=quality value=high>";
	if (mode){
	tag_str+="<param name='wmode' value='"+mode+"'>";
	}
	tag_str+="<embed src='"+url+"' quality=high pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash'";
	tag_str+="type='application/x-shockwave-flash' width='"+width+"' height='"+height+"'>";
    tag_str+="</embed>";
    tag_str+="</object>";
	document.write(tag_str);
}

//	오픈용 이미지뷰어
var x=0;
var y=0;
drag = 0;
move = 0;
window.document.onmousemove = mouseMove;
window.document.onmousedown = mouseDown;
window.document.onmouseup = mouseUp;
window.document.ondragstart = mouseStop;

var resizecount=0;
var originalsize;
var resizetarget;

//레이어
function check_kk(){
	view_layer.style.top = 0;
	view_layer.style.left = 0;
	resizecount=0;
	GetData();
}

function GetData(){
	hidden.location.replace("/show_layer.html");
}

function HideImg() {
view_layer.filters.blendTrans.apply();
view_layer.style.visibility = "hidden";
view_layer.filters.blendTrans.play();
}

//레이어이동
function mouseUp() {
move = 0;
}

function mouseDown() {
if (drag) {
clickleft = window.event.x - parseInt(view_layer.style.left);
clicktop = window.event.y - parseInt(view_layer.style.top);
view_layer.style.zIndex += 1;
move = 1;
}
}

function mouseMove() {
if (move) {
view_layer.style.left = window.event.x - clickleft;
view_layer.style.top = window.event.y - clicktop;
}
}

//오프윈
function mouseStop() {
window.event.returnValue = false;
}
