function createflash(){

var winWidth = document.body.clientWidth?document.body.clientWidth:window.innerWidth; 
var winHeight = document.body.clientHeight?document.body.clientHeight:window.innerHeight; 

//find size function start   
 if(winWidth<840){
 var newWidth = "840";
 } else {
 var newWidth = "100%";
 }
 
 if(winHeight<560){
 var newHeight = "560";
 } else {
 var newHeight = "100%";
 }

//html top start
document.write('<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">');
document.write('<head>');
document.write('<title>Emilio B Photography - Award Winning Wedding Photography - Portrait - Sydney & Worldwide</title>');
document.write('<meta name="author" content="Arsen G.Ghahramanyan">');
document.write('<meta name="description" content="Wedding Photography Sydney by the professional team at Emilio B. Glamorous, Beautiful, Breathtaking. Award Winning Sydney based Wedding Photographer. A unique blend of natural, candid and timeless fashion inspired wedding photography to glamorously portray you and your gorgeous wedding day.Emilio B s avant-garde approach creates beautiful emotion inspiring photos of your wedding. Luxurious custom Digital Wedding Albums designed by Emilio B. Stunning newborn, baby photography and child portraits.  Professional Corporate and Commercial event photography by Emilio B.">');
document.write('<meta name="keywords" content="Professional Wedding photography Sydney, Sydney, Australia, wedding photographer, unique wedding photography, award winning wedding photography, Beautiful candid natural photographer, Emilio B  N.S.W Wedding photography, glamorous, beautiful, breathtaking, Fashion inspired style, elite wedding make up artists double bay, B Beautiful Make Up, Boutique studio">');
document.write('<style type="text/css"> body { margin: 0; width: '+newWidth+'; height: '+newHeight+'; } </style>');
document.write('<script language="JavaScript" type="text/JavaScript" src="main.js"> </script>');
document.write('</head>');
document.write('<body onLoad="createflash()" onResize="location.reload()">');
//html top end

//flash start
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="'+newWidth+'" height="'+newHeight+'">');
document.write('<param name="movie" value="index.swf" />');
document.write('<param name="quality" value="high" />');
document.write('<param name="BGCOLOR" value="#ffffff" />');
document.write('<PARAM NAME="SCALE" VALUE="exactfit">');
document.write('<embed width="'+newWidth+'" height="'+newHeight+'" SCALE="exactfit" src="index.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" bgcolor="#ffffff"></embed>');
document.write('</object>');
//flash end

//html bottom start
document.write('</body>');
document.write('</html>');
//html bottom end
}