/** perform actions when DOM is ready */
$(document).ready(function() {

	$.fn.prettyPhoto({
		animationSpeed: 'normal', /* fast/slow/normal */
		padding: 30, /* padding for each side of the picture */
		opacity: 0.5, /* Value betwee 0 and 1 */
		showTitle: false, /* true/false */
		allowresize: false, /* true/false */
		counter_separator_label: '/', /* The separator for the gallery counter 1 "of" 2 */
		theme: 'gold_rounded', /* light_rounded / dark_rounded / light_square / dark_square */
		hideflash: true, /* Hides all the flash object on a page, set to TRUE if flash appears over prettyPhoto */
		modal: false, /* If set to true, only the close button will close the window */
		changepicturecallback: function(){}, /* Called everytime an item is shown/changed */
		callback: function(){} /* Called when prettyPhoto is closed */
	});                  

	$("a#btnGoogleHome").bind("click", function() {
		// $('button').colorbox({href:"thankyou.html"});
		//colorbox().colorbox({href:"thankyou.html"});
		//$.prettyPhoto.open("http://www.bbc.co.uk");
		//$.prettyPhoto.close();
		dialogShowPromo("_dialogDemo.html?fmt=22&iframe=true&height=640&width=770");
	});



});

/**  */
function dialogShowPromo(strPage) {
	$.prettyPhoto.open(strPage + '?fmt=22&iframe=true&height=640&width=780');
}

