<embed allowscriptaccess="always" wmode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" src="http://www.pixnet.net/event/pizzahut/images/wheel.swf" height="350" width="180" flashvars="user=James0310">
<script type="text/javascript">
var PizzaHotFlashContainer;
var PizzaHotFlashContainer2;
var PizzaHotURL1 = "http://www.pixnet.net/event/pizzahut/images/lunch_cad.swf";
var PizzaHotURL2 = "http://www.pixnet.net/event/pizzahut/images/dinner_cad.swf";
function showPizzaHot(playlist){
if(playlist == 1){
if(!PizzaHotFlashContainer){
document.body.innerHTML += '<div id="PizzaHotFlashContainer" style="width:100%; height:100%;position:absolute; padding-left:20%;z-index:9999;"></div>';
PizzaHotFlashContainer = document.getElementById('PizzaHotFlashContainer');
PizzaHotFlashContainer.innerHTML += '<embed src="'+PizzaHotURL1+'" id="PizzaHotFlashEmbed" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="510" height="500" pluginspage="http://www.macromedia.com/go/getflashplayer" wmode="transparent" allowScriptAccess="always" />';
}
PizzaHotFlashContainer.style.display = 'block';
PizzaHotFlashContainer.style.top =document.documentElement.scrollTop+document.body.scrollTop+'px';
}else if(playlist == 2){
if(!PizzaHotFlashContainer2){
document.body.innerHTML += '<div id="PizzaHotFlashContainer2" style="width:500; height:510; padding-left:20%;position:absolute;z-index:9999;"></div>';
PizzaHotFlashContainer2 =document.getElementById('PizzaHotFlashContainer2');
PizzaHotFlashContainer2.innerHTML += '<embed src="'+PizzaHotURL2+'" id="PizzaHotFlashEmbed2" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="510" height="500" pluginspage="http://www.macromedia.com/go/getflashplayer" wmode="transparent" allowScriptAccess="always" />';
}
PizzaHotFlashContainer2.style.display = 'block';
PizzaHotFlashContainer2.style.top = document.documentElement.scrollTop+document.body.scrollTop+'px';
}
}
function hidePizzaHot(){ if(PizzaHotFlashContainer){
document.body.removeChild(PizzaHotFlashContainer);
PizzaHotFlashContainer = null;
}
if(PizzaHotFlashContainer2){
document.body.removeChild(PizzaHotFlashContainer2);
PizzaHotFlashContainer2 = null;
}
}
</script>