/*
thunderbirdit()
e-mail constructor	
*/
function thunderbirdit(name)
{
	var domain = "@designsbylucy.co.uk"
	var myurl = "ma" + "ilto:" + name + domain
	var displaytext = '<p class="mailwin"><img id="postbox" src=" ../images/winopener/mailbox.jpg"><br /><a href="'+myurl+'">click here to e-mail me</a></p>';
	var thunderbirdwin=dhtmlwindow.open('contactwin', 'inline',	displaytext,'Contact Details',
																			'width=425px,height=350px,center=1,resize=0,scrolling=1'); 
}


function cathelp()
{ 	
		var printtext='<h3 class="helpwin">How To Use The Shopping Cart</h3><p class="helpwin">Browse through my jewellery catalogue and click on the "Add to Cart" button at the items you want to purchase.	You may review and edit the contents of your shopping cart at any time by clicking on the "View Cart" button.</p><p class="helpwin">When you have added all of the items you wish to purchase click on a "View Cart" button to review the details of your order. You can change and/or delete items on your order if necessary at this stage.</p><p class="helpwin">Once you are happy with the details of your order click on the "Proceed to Checkout" button. This will take you to the secure payment section where you can pay by credit/debit card or alternatively using your own Pay-Pal account. You can even quickly and easily create your own Pay-Pal account if you do not already have one, free of charge, at this stage of the payment process.</p>';
		var helpwin=dhtmlwindow.open('carthelpwin', 'inline',	printtext,'Shopping Cart Help',
																			'width=350px,height=500px,center=1,resize=1,scrolling=1'); 
}

function slideshowhelp()
{ 	
		var printtext='<h3 class="helpwin">How To View The Slideshows</h3><p class="helpwin">You may prefer to view the catalogue using the slideshow viewer to quickly browse through the items. Select the category you are interested in viewing using the category selector drop-down control and the items will be displayed automatically in the slideshow viewer.</p><p class="helpwin">You may stop the slideshow ("stop"), restart ("play"), or move through the items ("next", "previous") using the appropriate buttons. You can also move to a specific item using the item drop-down selector.</p><p class="helpwin">Click on a thumbnail to select that item in the Jewellery Cart where you can view a larger image of the piece and add it to your shopping basket.</p>';
		var helpwin=dhtmlwindow.open('sshelpwin', 'inline',	printtext,'Slide Show Help',
																			'width=350px,height=500px,center=1,resize=1,scrolling=1'); 
}

function galleryhelp()
{ 	

		var printtext='<h3 class="helpwin">How To Use The LightBox</h3><p class="helpwin">Click on the thumbnail of any of the jewellery items to view an enlarged image in the lightbox. This will allow you to see the details of the piece more easily. Click on the close button in the lightbox to return to the jewellery catalogue.</p><p class="helpwin">While in the lightbox you may also navigate through the entire series of items in the category using the mouse or shortcut keys. Just hover the mouse over the left or right side of the main image to reveal the "previous" and "next" buttons. Alternatively press "Alt+P" or "Alt+N" to navigate using the keyboard. Please note it is only possible to navigate in this way when the lightbox is open and when there is more than one item in the category.</p>';
		var helpwin=dhtmlwindow.open('galleryhelpwin', 'inline',	printtext,'Lightbox Help',
																			'width=350px,height=500px,center=1,resize=1,scrolling=1'); 

}

/*
load event handler
example call : addLoadEvent(functiontoload);
*/

function addLoadEvent(func) {
  var oldonload = window.onload;
  if (typeof window.onload != 'function') {
    window.onload = func;
  } else {
    window.onload = function() {
      oldonload();
      func();
    }
  }
}
