/**
 * @author M2ID Developments www.m2id.co.uk
 */

function newWindow(url) {
 popupWindow = window.open(url,'popUpWindow','height=600,width=600,left=50,top=50,resizable=yes,scrollbars=1,toolbar=no,menubar=no,location=no,directories=no,status=no');
	}




function Dialog()
{
	var overlayTag = "<div id='xtkPageOverlay' style='position:absolute;top:0px;left:0px;width:"+width+"px;height:"+height+"px;background:red;'>Hello" +height+ " " + width +"</div>";
	var dialogId = "xtkDialog";
	
	function close()
	{
		//Puts the iframe away
		//Hides the overlay
	}
	
	this.loadAndShow = function(address)
	{
		
	}	
	
}

 
 //When the document loads up
 $(document).ready( function() {
// 	
//	//$("#dialogThings").dialog({ modal: true, title: "Sitemap"});
//	
//	//Loads a sitemap link
// 	$('#sitemapLink').click( function() {
//	//	$("#dialogThings").dialog('open').fadeIn(200);
//		return false;
//	});
//	
//	//Loads the terms and condition link
//	$('#termsLink').click( function(){
//		var height = $(document).height();
//		var width = $(document).width();
//		$('body').append("<div id='pageOverlay' style='position:absolute;top:0px;left:0px;width:"+width+"px;height:"+height+"px;background:red;'>Hello" +height+ " " + width +"</div>");
//		$('#pageOverlay').fadeTo(200, 0.5);
//		$('#pageOverlay').ready( function() {
//			$('#pageOverlay').click( function() 
//				{ 
//					$('#pageOverlay').remove();
//				});
//		});
//		
//		return false;
//	});
 });
