var obj = new Object();

obj.ad_url = escape('http://shopping.expressindia.com/buy/Cakes/Heart-shaped-cake/23135');
obj.small_path = 'http://static.expressindia.com/frontend/shoppingFrontend/swf/small.swf';
obj.small_image = escape('http://static.expressindia.com/frontend/shoppingFrontend/images/deal-day/s8.gif');
obj.small_width = '100';
obj.small_height = '100';
obj.small_params = 'ico=' + obj.small_image;


randNo = Math.round(Math.random()*5);
obj.big_path = 'http://static.expressindia.com/frontend/shoppingFrontend/swf/large.swf?rand='+randNo;

imgNameTemp = "http://static.expressindia.com/frontend/shoppingFrontend/images/deal-day/deal_img.jpg?rand="+randNo
obj.big_image = (imgNameTemp);
obj.big_width = '650';
obj.big_height = '650';
obj.big_params = 'big=' + obj.big_image + '&ad_url=' + obj.ad_url;


function sizeup987(){
	document.getElementById('jcornerBig').style.top = '0px';
	document.getElementById('jcornerSmall').style.top = '-1000px';
}

function sizedown987(){
	document.getElementById("jcornerSmall").style.top = "0px";
	document.getElementById("jcornerBig").style.top = "-1000px";
}

obj.putObjects = function () {
// <jcornerSmall>
document.write('<div id="jcornerSmall" style="position:absolute;width:'+ obj.small_width +'px;height:'+ obj.small_height +'px;z-index:9999;right:0px;top:0px;">');
// object
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
document.write(' codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"');
document.write(' id="jcornerSmallObject" width="'+obj.small_width+'" height="'+obj.small_height+'">');
// object params
document.write(' <param name="allowScriptAccess" value="always"/> ');
document.write(' <param name="movie" value="'+ obj.small_path +'?'+ obj.small_params +'"/>');
document.write(' <param name="wmode" value="transparent" />');
document.write(' <param name="quality" value="high" /> ');
document.write(' <param name="FlashVars" value="'+obj.small_params+'"/>');
// embed
document.write('<embed src="'+ obj.small_path + '?' + obj.small_params +'" name="jcornerSmallObject" wmode="transparent" quality="high" width="'+ obj.small_width +'" height="'+ obj.small_height +'" flashvars="'+ obj.small_params +'" allowscriptaccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>');
document.write('</object></div>');
document.write('</script>');
// </jcornerSmall>
// <jcornerBig>
document.write('<div id="jcornerBig" style="position:absolute;width:'+ obj.big_width +'px;height:'+ obj.big_height +'px;z-index:9999;right:0px;top:0px;">');
// object
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
document.write(' codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"');
document.write(' id="jcornerBigObject" width="'+ obj.big_width +'" height="'+ obj.big_height +'">');
// object params
document.write(' <param name="allowScriptAccess" value="always"/> ');
document.write(' <param name="movie" value="'+ obj.big_path +'?'+ obj.big_params +'"/>');
document.write(' <param name="wmode" value="transparent"/>');
document.write(' <param name="quality" value="high" /> ');
document.write(' <param name="FlashVars" value="'+ obj.big_params +'"/>');
// embed
document.write('<embed src="'+ obj.big_path + '?' + obj.big_params +'" id="jcornerBigEmbed" name="jcornerBigObject" wmode="transparent" quality="high" width="'+ obj.big_width +'" height="'+ obj.big_height +'" flashvars="'+ obj.big_params +'" swliveconnect="true" allowscriptaccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>');
document.write('</object></div>');
// </jcornerBig>
setTimeout('document.getElementById("jcornerBig").style.top = "-1000px";',1000);
}
obj.putObjects();