function notesPopup()
{
	if (document.getElementById('sizing_notes')) {
		var sizing = document.getElementById('sizing_notes');
		sizing.onclick = function() {
			window.open('/details/sizingnotes.php','sizing','status=0,toolbar=0,location=0,menubar=0,resizeable=0,width=400,height=500')
			return false;
		}
	}
	
	if (document.getElementById('resizable')) {
		var sizing = document.getElementById('resizable');
		sizing.onclick = function() {
			var main = document.getElementById('main');
			window.open('/large.php?href='+main.src,'Images','status=0,toolbar=0,location=0,menubar=0,resizeable=0,width=700,height=730');
			return false;
		}
	}
	
	if (document.getElementById('resize_category')) {
		var sizing = document.getElementById('resize_category');
		var main = document.getElementById('main');
		sizing.onclick = function() {
			window.open('/large-category.php?href='+main.src,'Images','status=0,toolbar=0,location=0,menubar=0,resizeable=0,width=600,height=800');
			return false;
		}
	}	
	
	if (document.getElementById('stylist_notes')) {
		var sizing = document.getElementById('stylist_notes');
		sizing.onclick = function() {
			window.open('/details/stylistnotes.php','stylist','status=0,toolbar=0,location=0,menubar=0,resizeable=0,width=400,height=500')
			return false;
		}
	}
	
	if (document.getElementById('last_date')) {
		var sizing = document.getElementById('last_date');
		sizing.onclick = function() {
			window.open('/baby/lastdate.php','last_date','status=0,toolbar=0,location=0,menubar=0,resizeable=0,width=400,height=500')
			return false;
		}
	}
	
	if (document.getElementById('details_what_baby')) {
		var sizing = document.getElementById('details_what_baby');
		sizing.onclick = function() {
			window.open('/details/babylist.php','details_what_baby','status=0,toolbar=0,location=0,menubar=0,resizeable=0,width=400,height=600');
			return false;
		}
	}
	
	if (document.getElementById('details_what_baby_link')) {
		var sizing = document.getElementById('details_what_baby_link');
		sizing.onclick = function() {
			window.open('/details/babylist.php','details_what_baby_link','status=0,toolbar=0,location=0,menubar=0,resizeable=0,width=400,height=600');
			return false;
		}
	}
	
	if (document.getElementById('details_what_smart')) {
		var sizing = document.getElementById('details_what_smart');
		sizing.onclick = function() {
			window.open('/listings/smart_filter.php','details_what_smart','status=0,toolbar=0,location=0,menubar=0,resizeable=0,width=400,height=700');
			return false;
		}
	}
	
	if (document.getElementById('london')) {
		var sizing = document.getElementById('london');
		sizing.onclick = function() {
			window.open('/basket/london.php','london','status=0,toolbar=0,location=0,menubar=0,resizeable=0,width=400,height=750')
			return false;
		}
	}
	
	if (document.getElementById('secure')) {
		var sizing = document.getElementById('secure');
		sizing.onclick = function() {
			window.open('/checkout/secure.php','secure','status=0,toolbar=0,location=0,menubar=0,resizeable=0,width=400,height=750')
			return false;
		}
	}
	
	if (document.getElementById('cards')) {
		var sizing = document.getElementById('cards');
		sizing.onclick = function() {
			window.open('/gifts/cards.php','gifts','status=0,toolbar=0,location=0,menubar=0,resizeable=0,width=500,height=500')
			return false;
		}
	}
	
	if (document.getElementById('message')) {
		var sizing = document.getElementById('message');
		sizing.onclick = function() {
			window.open('/gifts/message.php','gifts','status=0,toolbar=0,location=0,menubar=0,resizeable=0,width=500,height=500')
			return false;
		}
	}
	
	if (document.getElementById('giftwrapped')) {
		var sizing = document.getElementById('giftwrapped');
		sizing.onclick = function() {
			window.open('/gifts/giftwrapped.php','gifts','status=0,toolbar=0,location=0,menubar=0,resizeable=0,width=500,height=500')
			return false;
		}
	}
}

function closeWindows() {
	if (document.getElementById('close_top') && document.getElementById('close_bottom')) {
		var closeTop = document.getElementById('close_top');
		closeTop.style.cursor = 'pointer';
		closeTop.style.display = 'inline';
		closeTop.onclick = function() {
			self.close();
		}
		var closeBottom = document.getElementById('close_bottom');
		closeBottom.style.cursor = 'pointer';
		closeBottom.style.display = 'inline';
		closeBottom.onclick = function() {
			self.close();
		}
	}
}

addLoadEvent(notesPopup);
addLoadEvent(closeWindows);