<?php 
$banner_message = simplexml_load_file('../SitestarMaker.xml');
$width = empty($banner_message->rotatebanner->width) ? 600 : $banner_message->rotatebanner->width;
$height = empty($banner_message->rotatebanner->height) ? 300 : $banner_message->rotatebanner->height;
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>CU3ER - demo!</title>

<!--  STEP ONE: insert path to SWFObject JavaScript -->
<script type="text/javascript" src="js/swfobject/swfobject.js"></script>

<!--  STEP TWO: configure SWFObject JavaScript and embed CU3ER slider -->
<script type="text/javascript">
		var flashvars = {};
		flashvars.xml = "config.xml";
		//flashvars.font = "font.swf";
		var attributes = {};
		attributes.wmode = "transparent";
		attributes.id = "slider";
		swfobject.embedSWF("cu3er.swf", "cu3er-container", "<?php echo $width;?>", "<?php echo $height;?>", "9", "expressInstall.swf", flashvars, attributes);
</script>
<style type="text/css">
<!--
body {text-align:center;}
#cu3er-container {width:<?php echo $width;?>px; outline:0;}
-->
</style>
</head>
<body>
<!--  STEP THREE: insert CU3ER div container -->
<div id="cu3er-container">
    <a href="http://www.adobe.com/go/getflashplayer">
        <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" />
    </a>
</div>
</body>
</html>
