function COVER() 
{ 
var publogo = "<a href='http://continuumbooks.com' target='_blank'><img src='http://cipg.codemantra.us/Images/publisher_logo1.gif' style='border:0px;height:36px;width:120px;MARGIN-LEFT:15px' alt=''/></a>" 
document.getElementById('PublisherLogo').innerHTML =publogo; 
var topcontent="<a href='#' onclick='javascript:COVER();'><font color='white' size='2'><b>X</b></font></a>&nbsp;&nbsp;" 
document.getElementById('TopContent').innerHTML =topcontent; 
document.getElementById('TopContent').style.display ='none'; 
var botcontent ="<div align ='left' style='width:150px; '>" + 
"<div style='height:15px; width:33%; float:left; background-color:#414A5B; text-align:center;'>" + 
"<a href='http://cipg.codemantra.us/UI_TRANSACTIONS/Marketing/UI_Widget.aspx?ID=WP9781847065940&ISBN=9781847065940&sts=r'  target='_blank'><font face='Helvetica' color='#E5DA5A'>Preview</font></a></div>" + 
"<div style='height:15px; width:33%; float:left; background-color:#414A5B; text-align:center;'>" + 
"<a href='http://cipg.codemantra.us/UI_TRANSACTIONS/Marketing/UI_Widget.aspx?ID=WP9781847065940&ISBN=9781847065940&sts=b' target='_blank'><font face='Helvetica' color='#E5DA5A'>Buy</font></a></div>" + 
"<div style='height:15px; width:33%; float:left; background-color:#414A5B; text-align:center;'>" + 
"<a href='#' onclick='javascript:SHARE();'><font face='Helvetica' color='#E5DA5A'>Share</font></a></div>" + 
"</div>" 
document.getElementById('BotContent').innerHTML =botcontent; 
var cover ="<img src='http://cipg.codemantra.us/Widget_FrontCover/9781847065940/1847065945.jpg'" + 
"style='width: 138px; height:208px; ' alt='' />" 
document.getElementById('content').innerHTML =cover; 
return false; 
} 
function SHARE1() 
{ 
var share ="&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href='#' onclick='javascript:COVER();' ><font color='white' size='1'><b>X</b></font></a></br><textarea id='txtarea' cols='' rows='' style='width: 140px; height:115px; font-family:Verdana; font-size:10px; border: 1px groove black; background-color:#EBEFEE; margin-top:0px;'>" + 
"<html>" + 
"<head>" + 
"<script type='text/javascript' src='http://cipg.codemantra.us/Widget/9781847065940/Script/WP9781847065940.js'></script>" + 
"</head>" + 
"<body onload='javascript:COVER();'>" + 
"<table cellpadding='5' cellspacing='0' align='left' id='TblContent' style='font-family:Helvetica;font-size:10px; width:150px; height:300px; border-style:solid; border-color:Black; border-width:1px' bgcolor='#414A5B'>" + 
"<tr align='left' style='width: 150px; background-color:#2B3648;'>" + 
"<td align='left' id='PublisherLogo' style='width: 150px; height: 45px; border-bottom:solid 1px #EBEFEE;'>" + 
"</td>" + 
"</tr>" + 
"<tr align='left' style='width: 150px; height:20px;  background: #414A5B'>" + 
"<td align ='left' id='BotContent' >" + 
"</td>" + 
"</tr>" + 
"<tr align='right' style='width: 150px;  background-color: #414A5B; display:none;'>" + 
"<td align ='right' id='TopContent' style='height:12px; background: #414A5B; width: 150px;'>" + 
"</td>" + 
"</tr>" + 
"<tr align='center' valign='top' style='border:1px groove #F4f4f4; width: 150px;' bgcolor='#414A5B'>" + 
"<td id='content' style='width:150px;'>" + 
"</td>" + 
"</tr>" + 
"</table>" + 
"</body></html>" + 
"</textarea>" + 
"<br><font color='#E5DA5A'>URL :</font><br><textarea id='txtarea1' cols='' rows='' style='width: 140px; height:70px; font-family:Verdana; font-size:10px; border: 1px groove black; background-color:#EBEFEE;' readonly='readonly'>" + 
"http://cipg.codemantra.us/UI_TRANSACTIONS/Marketing/UI_Widget.aspx?ID=WP9781847065940&ISBN=9781847065940&sts=r" + 
"</textarea>" 
document.getElementById('content').innerHTML= share; 
if(navigator.appName == 'Netscape') { document.getElementById('TopContent').style.display ='table-cell';} 
else if(navigator.appName == 'Microsoft Internet Explorer'){ document.getElementById('TopContent').style.display ='inline';} 
else { document.getElementById('TopContent').style.display ='inline';} 
return false; 
} 
function SHARE() 
{ 
var share ="&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href='#' onclick='javascript:COVER();' ><font color='white' size='1'><b>X</b></font></a></br><textarea id='txtarea' cols='' rows='' style='width: 140px; height:115px; font-family:Verdana; font-size:10px; border: 1px groove black; background-color:#EBEFEE; margin-top:0px;'>" + 
"<!-- Add the following only once in the <head> tag of your html page -->" + 
"<script type='text/javascript' src='http://cipg.codemantra.us/Widget/9781847065940/Script/WP9781847065940.js'></script>" + 
"<!-- Place the following piece of code in the exact place where you would like the widget to appear -->" + 
"<script type='text/JavaScript'>loadwidget();</script>" + 
"</textarea>" + 
"<br><font color='#E5DA5A'>URL :</font><br><textarea id='txtarea1' cols='' rows='' style='width: 140px; height:70px; font-family:Verdana; font-size:10px; border: 1px groove black; background-color:#EBEFEE;' readonly='readonly'>" + 
"http://cipg.codemantra.us/UI_TRANSACTIONS/Marketing/UI_Widget.aspx?ID=WP9781847065940&ISBN=9781847065940&sts=r" + 
"</textarea>" 
document.getElementById('content').innerHTML= share; 
if(navigator.appName == 'Netscape') { document.getElementById('TopContent').style.display ='table-cell';} 
else if(navigator.appName == 'Microsoft Internet Explorer'){ document.getElementById('TopContent').style.display ='inline';} 
else { document.getElementById('TopContent').style.display ='inline';} 
return false; 
} function loadwidget() { 
document.write("<br><table cellpadding='5' cellspacing='0' align='left' id='TblContent' style='font-family:Helvetica;font-size:10px; width:150px; height:300px; border-style:solid; border-color:Black; border-width:1px' bgcolor='#414A5B'><tr align='left' style='width: 150px; background-color:#2B3648;'><td align='left' id='PublisherLogo' style='width: 150px; height: 45px; border-bottom:solid 1px #EBEFEE;'></td></tr><tr align='left' style='width: 150px; height:20px;  background: #414A5B'><td align ='left' id='BotContent' ></td></tr><tr align='right' style='width: 150px;  background-color: #414A5B; display:none;'><td align ='right' id='TopContent' style='height:12px; background: #414A5B; width: 150px;'></td></tr><tr align='center' valign='top' style='border:1px groove #F4f4f4; width: 150px;' bgcolor='#414A5B'><td id='content' style='width:150px;'></td></tr></table>");
COVER(); 
} 