function showBook(pNum) 
{
		///heights for popup window!
		var heightsArr = Array(455, 445, 425, 485, 485, 475, 430, 515, 460, 470, 470, 440, 450, 475, 470, 470);
		var downloadpage = "download.php?width=568&height="+ heightsArr[pNum-1] + "&id=" + pNum;
		tb_show('',downloadpage);     
}
function showPartnerOfferBook(pID) 
{
		///heights for popup window!
		var pNum = 1;
		var heightsArr = Array(455, 445, 425, 485, 485, 475, 430, 515, 460, 470, 470, 440, 450, 475, 470, 470);
		var downloadpage = "download.php?width=568&height="+ heightsArr[pNum-1] + "&id=" + pID;
		tb_show('',downloadpage);     
}

function showMyCover() 
{
	//http://www.eyemagnet.com/cgi-bin/harlequin/get_image.py?passcode=abcd
	var userPIN = document.getElementById('userPIN').value;
	if(userPIN.length > 0){
		var page = "showmycover.php?width=800&height=600&id=" + userPIN;
		tb_show('',page); 
	}else{
		alert("please enter your pin");
	}
}
function showMyCoverPin(pPin) 
{
	var page = "showmycover.php?width=800&height=600&id=" + pPin;
	tb_show('',page); 
}

function myCoverRedirect(){
	var userPIN = document.getElementById('userPIN').value;
	if(userPIN.length > 0){
		window.location = "mycoverartresult.php?id=" + userPIN;
	}else{
		alert("please enter your pin");
	}
}



function writeFav(){
	if (document.all){

  //document.write('<img src="images/fav.gif" align="absmiddle" />');

  document.write('| <a href="javascript:bookmarksite(\'Harlequin Celebrates/\', \'http://www.harlequincelebrates.com/\');">Add To Your Favourites</a>');

} else if (document.getElementById){

   // If it's Netscape 6, tell user to drag link onto Home button
} else if (document.layers){

   // If it's Netscape 4 or lower, give instructions to set Home Page

} else {

  // If it's any other browser, for which I don't know the specifications of home paging, display instructions

}
}
