var modalWindow = {
	parent:"body",
	windowId:null,
	content:null,
	width:null,
	height:null,
	close:function()
	{
		$(".modal-window").remove();
		$(".modal-overlay").remove();
	},
	open:function()
	{
		var modal = "";
		modal += "<div class=\"modal-overlay\"></div>";
		modal += "<div id=\"" + this.windowId + "\" class=\"modal-window\" style=\"width:" + this.width + "px; height:" + this.height + "px; margin-top:-" + (this.height / 2) + "px; margin-left:-" + (this.width / 2) + "px;\">";
		modal += this.content;
		modal += "</div>";	

		$(this.parent).append(modal);

		$(".modal-window").append("<a class=\"close-window\"></a>");
		$(".close-window").click(function(){modalWindow.close();});
		$(".modal-overlay").click(function(){modalWindow.close();});
	}
};


		var openMyModal = function(source)
		{
			modalWindow.windowId = "myModal";
			modalWindow.width = 800;
			modalWindow.height = 130;
			modalWindow.content = "<iframe width=800 height=130 frameborder=0 scrolling=no allowtransparency=true src=\'" + source + "\'>&lt/iframe>";
			modalWindow.open();
		};
		
		var openAssignModal = function(source)
		{
			modalWindow.windowId = "myModal";
			modalWindow.width = 500;
			modalWindow.height = 170;
			modalWindow.content = "<iframe width=500 height=170 frameborder=0 scrolling=no allowtransparency=true src=\'" + source + "\'>&lt/iframe>";
			modalWindow.open();
		};	
		
		var openTourModal = function(source)
		{
			modalWindow.windowId = "myModal";
			modalWindow.width = 1050;
			modalWindow.height = 500;
			modalWindow.content = "<iframe width=1050 height=500 frameborder=0 scrolling=no allowtransparency=false src=\'" + source + "\'>&lt/iframe>";
			modalWindow.open();
		};			

		var openComposeModal = function(source)
		{
			modalWindow.windowId = "myModal";
			modalWindow.width = 750;
			modalWindow.height = 450;
			modalWindow.content = "<iframe width=750 height=450 frameborder=0 scrolling=no allowtransparency=false src=\'" + source + "\'>&lt/iframe>";
			modalWindow.open();
		};
		
		var openLinkedModal = function(source)
		{
			modalWindow.windowId = "myModal";
			modalWindow.width = 800;
			modalWindow.height = 130;
			modalWindow.content = "<iframe width=800 height=130 frameborder=0 scrolling=no allowtransparency=true src=\'" + source + "\'>&lt/iframe>";
			modalWindow.open();
		};		
