﻿$(document).ready(function(){
	$('input.frmSubmit').hover(function(){
			$(this).attr('src','/images/buttons/btnSubmitOver.gif');
		}, 
		function(){
			$(this).attr('src','/images/buttons/btnSubmitOff.gif');
		}
	);

	$('input.frmSendEmail').hover(function(){
			$(this).attr('src','/images/buttons/btnSendEmailOver.gif');
		}, 
		function(){
			$(this).attr('src','/images/buttons/btnSendEmailOff.gif');
		}
	);

	if (window != top) {
		$('body').css({'background':'#333'});
	}

	$('p.btnClose, p.btnReturnToPage').click(function() {
		window.parent.closeIFRAME();
	});

	$('a.emailAFriend').boxen({
		showTitleBar:false,
		showCloseButton:false,
		width:720,
		height:302,
		overlayOpacity:0.8,
		modal:false
	});
});


function closeIFRAME() {
	$('#boxen_overlay, #boxen_container').remove();
}