﻿// JavaScript Document
function chirashiOp(shop,file_swf,folder,Page,LastP){
var w = screen.width;
var h = screen.height;
var winX = new String;
var winY = new String;
var CZ = 0;
var CX = 0;
var CY = 0;
if (h < 490){
winX=620;
winY=480;
obj_width=576;
obj_height=408;
 }
else if(h < 690){
winX=760;
winY=600;
obj_width=765;
obj_height=544;
}
else if(h > 700){
winX=980;
winY=720;
obj_width=960;
obj_height=680;
}
/*=============================*/
var name=shop;

var valueSt ="folderN="+folder+"&pageN="+Page+"&cZ="+CZ+"&cX="+CX+"&cY="+CY+"&lP="+LastP+"&";
var newW = window.open("","chirashi", "width="+winX+",height="+winY+",scrollbars=1,location=0,menubar=0,resizeable=0,status=0,toolbar=0,directories=0");
newW.window.focus();
newW.window.moveTo(0,0);
newW.document.writeln('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">');
newW.document.writeln('<html xmlns="http://www.w3.org/1999/xhtml">');
newW.document.writeln('<head>');
newW.document.writeln('<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />');
newW.document.writeln('<title>WEBチラシ：キッピーモール</title>');
newW.document.writeln('<style type="text/css" media="all">');
newW.document.writeln('*{margin:0;padding:0;}');
newW.document.writeln('#wrapper{width:'+obj_width+'px; height:'+obj_height+'px;margin:10px auto;}');
newW.document.writeln("</style>");
newW.document.writeln('</head>');
newW.document.writeln('<body>');
newW.document.writeln('<div id="wrapper">');
newW.document.writeln('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="100%" height="100%">');
newW.document.writeln('<param name="allowScriptAccess" value="sameDomain" />');
newW.document.writeln('<param name="movie" value="'+file_swf+'" />');
newW.document.writeln('<param name="quality" value="high" />');
newW.document.writeln('<param name="menu" value="false" />');
newW.document.writeln('<param name="FlashVars" value="'+valueSt+'">');
newW.document.writeln('<embed src="'+file_swf+'" FlashVars="'+valueSt+'" quality="high" bgcolor="#ffffff" menu="false" name="swfembed" id="swfembed" width="100%" height="100%" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer" />');
newW.document.writeln('</object>');
newW.document.writeln('</div>');
newW.document.writeln('</body>');
newW.document.writeln('</html>');
newW.document.close();
}