<!--  
function embed_write(url2){
	var flashstr1='<center><embed src="'+url2+'" autostart=true></center><p>';

	document.write(flashstr1);
}

function flash_write(url,w,h,id,bg,win){

	var flashstr='<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" WIDTH="'+w+'" HEIGHT="'+h+'" id="'
	+id+'"> ';
	flashstr+='<PARAM NAME=allowScriptAccess value="always"> ';
	flashstr+='<PARAM NAME=movie VALUE="'+url+'"> ';
	flashstr+='<PARAM NAME=quality VALUE=high> ';
	flashstr+='<PARAM NAME=menu VALUE=false> ';
	if(win){flashstr+='<PARAM NAME=wmode VALUE="'+win+'"> ';}
	if(bg){	flashstr+='<PARAM NAME=bgcolor VALUE="'+bg+'"> ';}
	flashstr+='<EMBED src="'+url+'" wmode="'+win+'"  bgcolor="'+bg+'" quality=high menu=false WIDTH="'+w+'" HEIGHT="'+h+'" NAME="'+id+'" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>';
	flashstr+='</OBJECT>';

	document.write(flashstr);
}

function main_open_photo1(code, width, height){
	if (screen.width < 1024){
		LeftPosition=0;
		TopPosition=0;
	}else{
		LeftPosition=(screen.width)?(screen.width-width)/2:100;
		TopPosition=(screen.height)?(screen.height-height)/2:100;
	}
	window.open('/shop/product/photo_win.php?code='+code, '', 'top='+TopPosition+', left='+LeftPosition+', width='+width+', height='+height+', resizable=no, toolbars=no, scrollbars=no');
}

function main_open_photo2(code, width, height){
	if (screen.width < 1024){
		LeftPosition=0;
		TopPosition=0;
	}else{
		LeftPosition=(screen.width)?(screen.width-width)/2:100;
		TopPosition=(screen.height)?(screen.height-height)/2:100;
	}
	window.open('/shop/sale/photo_win.php?code='+code, '', 'top='+TopPosition+', left='+LeftPosition+', width='+width+', height='+height+', resizable=no, toolbars=no, scrollbars=no');
}

//-->
