// JavaScript Document
	
	// window names start
	var openContact1 = function(source)
	{
		modalWindow.windowId = "Contact";
		modalWindow.width = 790;
		modalWindow.height = 680;
		modalWindow.content = "<iframe width='790' height='680' frameborder='0' scrolling='no' allowtransparency='true' src='" + source + "'>&lt/iframe>";
		modalWindow.open();
	};
	
	var openFeaturedProject1 = function(source)
	{
		modalWindow.windowId = "FeaturedProject1";
		modalWindow.width = 790;
		modalWindow.height = 800;
		modalWindow.content = "<iframe width='790' height='800' frameborder='0' scrolling='no' allowtransparency='true' src='" + source + "'>&lt/iframe>";
		modalWindow.open();
	};	
	
	var openFeaturedProject2 = function(source)
	{
		modalWindow.windowId = "FeaturedProject2";
		modalWindow.width = 790;
		modalWindow.height = 750;
		modalWindow.content = "<iframe width='790' height='750' frameborder='0' scrolling='no' allowtransparency='true' src='" + source + "'>&lt/iframe>";
		modalWindow.open();
	};	
	
		var openFeaturedProject3 = function(source)
	{
		modalWindow.windowId = "FeaturedProject3";
		modalWindow.width = 800;
		modalWindow.height = 2100;
		modalWindow.content = "<iframe width='800' height='2100' frameborder='0' scrolling='no' allowtransparency='true' src='" + source + "'>&lt/iframe>";
		modalWindow.open();
	};	
	
	var openSunMicrosystems1 = function(source)
	{
		modalWindow.windowId = "SunMicrosystems1";
		modalWindow.width = 665;
		modalWindow.height = 900;
		modalWindow.content = "<iframe width='665' height='900' frameborder='0' scrolling='no' allowtransparency='true' src='" + source + "'>&lt/iframe>";
		modalWindow.open();
	};	
	
		var openSunMicrosystems2 = function(source)
	{
		modalWindow.windowId = "SunMicrosystems2";
		modalWindow.width = 790;
		modalWindow.height = 800;
		modalWindow.content = "<iframe width='790' height='800' frameborder='0' scrolling='no' allowtransparency='true' src='" + source + "'>&lt/iframe>";
		modalWindow.open();
	};	
	
		var openSunMicrosystems3 = function(source)
	{
		modalWindow.windowId = "SunMicrosystems3";
		modalWindow.width = 703;
		modalWindow.height = 960;
		modalWindow.content = "<iframe width='703' height='960' frameborder='0' scrolling='no' allowtransparency='true' src='" + source + "'>&lt/iframe>";
		modalWindow.open();
	};	
	
		var openSunMicrosystems4 = function(source)
	{
		modalWindow.windowId = "SunMicrosystems4";
		modalWindow.width = 705;
		modalWindow.height = 900;
		modalWindow.content = "<iframe width='705' height='900' frameborder='0' scrolling='no' allowtransparency='true' src='" + source + "'>&lt/iframe>";
		modalWindow.open();
	};	
	
		var openSunMicrosystems5 = function(source)
	{
		modalWindow.windowId = "SunMicrosystems5";
		modalWindow.width = 705;
		modalWindow.height = 980;
		modalWindow.content = "<iframe width='705' height='980' frameborder='0' scrolling='no' allowtransparency='true' src='" + source + "'>&lt/iframe>";
		modalWindow.open();
	};	
	
		var openSunMicrosystems6 = function(source)
	{
		modalWindow.windowId = "SunMicrosystems6";
		modalWindow.width = 705;
		modalWindow.height = 900;
		modalWindow.content = "<iframe width='705' height='900' frameborder='0' scrolling='no' allowtransparency='true' src='" + source + "'>&lt/iframe>";
		modalWindow.open();
	};	
	
		var openSymantec1 = function(source)
	{
		modalWindow.windowId = "Symantec1";
		modalWindow.width = 665;
		modalWindow.height = 870;
		modalWindow.content = "<iframe width='665' height='870' frameborder='0' scrolling='no' allowtransparency='true' src='" + source + "'>&lt/iframe>";
		modalWindow.open();
	};	
	
		var openSymantec2 = function(source)
	{
		modalWindow.windowId = "Symantec2";
		modalWindow.width = 738;
		modalWindow.height = 880;
		modalWindow.content = "<iframe width='738' height='880' frameborder='0' scrolling='no' allowtransparency='true' src='" + source + "'>&lt/iframe>";
		modalWindow.open();
	};	
	
		var openSymantec3 = function(source)
	{
		modalWindow.windowId = "Symantec3";
		modalWindow.width = 638;
		modalWindow.height = 950;
		modalWindow.content = "<iframe width='638' height='950' frameborder='0' scrolling='no' allowtransparency='true' src='" + source + "'>&lt/iframe>";
		modalWindow.open();
	};	
	
		var openSymantec4 = function(source)
	{
		modalWindow.windowId = "Symantec4";
		modalWindow.width = 700;
		modalWindow.height = 940;
		modalWindow.content = "<iframe width='700' height='940' frameborder='0' scrolling='no' allowtransparency='true' src='" + source + "'>&lt/iframe>";
		modalWindow.open();
	};	
	
		var openJJVC1 = function(source)
	{
		modalWindow.windowId = "JJVC1";
		modalWindow.width = 790;
		modalWindow.height = 750;
		modalWindow.content = "<iframe width='790' height='750' frameborder='0' scrolling='no' allowtransparency='true' src='" + source + "'>&lt/iframe>";
		modalWindow.open();
	};	
	
		var openJJVC2 = function(source)
	{
		modalWindow.windowId = "JJVC2";
		modalWindow.width = 800;
		modalWindow.height = 720;
		modalWindow.content = "<iframe width='800' height='720' frameborder='0' scrolling='no' allowtransparency='true' src='" + source + "'>&lt/iframe>";
		modalWindow.open();
	};	
	
		var openJJVC3 = function(source)
	{
		modalWindow.windowId = "JJVC3";
		modalWindow.width = 800;
		modalWindow.height = 720;
		modalWindow.content = "<iframe width='800' height='720' frameborder='0' scrolling='no' allowtransparency='true' src='" + source + "'>&lt/iframe>";
		modalWindow.open();
	};	
	
		var openJJVC4 = function(source)
	{
		modalWindow.windowId = "JJVC4";
		modalWindow.width = 800;
		modalWindow.height = 820;
		modalWindow.content = "<iframe width='800' height='820' frameborder='0' scrolling='no' allowtransparency='true' src='" + source + "'>&lt/iframe>";
		modalWindow.open();
	};	
	
		var openJJVC5 = function(source)
	{
		modalWindow.windowId = "JJVC5";
		modalWindow.width = 800;
		modalWindow.height = 968;
		modalWindow.content = "<iframe width='800' height='968' frameborder='0' scrolling='no' allowtransparency='true' src='" + source + "'>&lt/iframe>";
		modalWindow.open();
	};	
	
		var openJJVC6 = function(source)
	{
		modalWindow.windowId = "JJVC6";
		modalWindow.width = 800;
		modalWindow.height = 1400;
		modalWindow.content = "<iframe width='800' height='1400' frameborder='0' scrolling='no' allowtransparency='true' src='" + source + "'>&lt/iframe>";
		modalWindow.open();
	};	
	
			var openJJVC7 = function(source)
	{
		modalWindow.windowId = "JJVC7";
		modalWindow.width = 800;
		modalWindow.height = 1400;
		modalWindow.content = "<iframe width='800' height='1400' frameborder='0' scrolling='no' allowtransparency='true' src='" + source + "'>&lt/iframe>";
		modalWindow.open();
	};	
	
		var openStanChart1 = function(source)
	{
		modalWindow.windowId = "StanChart1";
		modalWindow.width = 800;
		modalWindow.height = 720;
		modalWindow.content = "<iframe width='800' height='720' frameborder='0' scrolling='no' allowtransparency='true' src='" + source + "'>&lt/iframe>";
		modalWindow.open();
	};	
	

		var openStanChart2 = function(source)
	{
		modalWindow.windowId = "StanChart2";
		modalWindow.width = 800;
		modalWindow.height = 720;
		modalWindow.content = "<iframe width='800' height='720' frameborder='0' scrolling='no' allowtransparency='true' src='" + source + "'>&lt/iframe>";
		modalWindow.open();
	};	
	
		var openStanChart3 = function(source)
	{
		modalWindow.windowId = "StanChart3";
		modalWindow.width = 800;
		modalWindow.height = 725;
		modalWindow.content = "<iframe width='800' height='725' frameborder='0' scrolling='no' allowtransparency='true' src='" + source + "'>&lt/iframe>";
		modalWindow.open();
	};	
	
			var openStanChart4 = function(source)
	{
		modalWindow.windowId = "StanChart4";
		modalWindow.width = 800;
		modalWindow.height = 2100;
		modalWindow.content = "<iframe width='800' height='2100' frameborder='0' scrolling='no' allowtransparency='true' src='" + source + "'>&lt/iframe>";
		modalWindow.open();
	};	
	
	
		var openHP1 = function(source)
	{
		modalWindow.windowId = "HP1";
		modalWindow.width = 690;
		modalWindow.height = 960;
		modalWindow.content = "<iframe width='690' height='960' frameborder='0' scrolling='no' allowtransparency='true' src='" + source + "'>&lt/iframe>";
		modalWindow.open();
	};	
	
		var openHP2 = function(source)
	{
		modalWindow.windowId = "HP2";
		modalWindow.width = 690;
		modalWindow.height = 960;
		modalWindow.content = "<iframe width='690' height='960' frameborder='0' scrolling='no' allowtransparency='true' src='" + source + "'>&lt/iframe>";
		modalWindow.open();
	};	
	
		var openHP3 = function(source)
	{
		modalWindow.windowId = "HP3";
		modalWindow.width = 690;
		modalWindow.height = 960;
		modalWindow.content = "<iframe width='690' height='960' frameborder='0' scrolling='no' allowtransparency='true' src='" + source + "'>&lt/iframe>";
		modalWindow.open();
	};	
	
		var openHP4 = function(source)
	{
		modalWindow.windowId = "HP4";
		modalWindow.width = 690;
		modalWindow.height = 960;
		modalWindow.content = "<iframe width='690' height='960' frameborder='0' scrolling='no' allowtransparency='true' src='" + source + "'>&lt/iframe>";
		modalWindow.open();
	};	
	
		var openHP5 = function(source)
	{
		modalWindow.windowId = "HP5";
		modalWindow.width = 790;
		modalWindow.height = 750;
		modalWindow.content = "<iframe width='790' height='750' frameborder='0' scrolling='no' allowtransparency='true' src='" + source + "'>&lt/iframe>";
		modalWindow.open();
	};	
	
		var openHP6 = function(source)
	{
		modalWindow.windowId = "HP6";
		modalWindow.width = 790;
		modalWindow.height = 950;
		modalWindow.content = "<iframe width='790' height='950' frameborder='0' scrolling='no' allowtransparency='true' src='" + source + "'>&lt/iframe>";
		modalWindow.open();
	};	
	
		var openOthers1 = function(source)
	{
		modalWindow.windowId = "Others1";
		modalWindow.width = 790;
		modalWindow.height = 750;
		modalWindow.content = "<iframe width='790' height='750' frameborder='0' scrolling='no' allowtransparency='true' src='" + source + "'>&lt/iframe>";
		modalWindow.open();
	};	
	
		var openOthers2 = function(source)
	{
		modalWindow.windowId = "Others2";
		modalWindow.width = 688;
		modalWindow.height = 650;
		modalWindow.content = "<iframe width='688' height='650' frameborder='0' scrolling='no' allowtransparency='true' src='" + source + "'>&lt/iframe>";
		modalWindow.open();
	};	
	
		var openOthers3 = function(source)
	{
		modalWindow.windowId = "Others3";
		modalWindow.width = 640;
		modalWindow.height = 660;
		modalWindow.content = "<iframe width='640' height='660' frameborder='0' scrolling='no' allowtransparency='true' src='" + source + "'>&lt/iframe>";
		modalWindow.open();
	};	
	
		var openOthers4 = function(source)
	{
		modalWindow.windowId = "Others4";
		modalWindow.width = 790;
		modalWindow.height = 750;
		modalWindow.content = "<iframe width='790' height='750' frameborder='0' scrolling='no' allowtransparency='true' src='" + source + "'>&lt/iframe>";
		modalWindow.open();
	};	
	
		var openOthers5 = function(source)
	{
		modalWindow.windowId = "Others5";
		modalWindow.width = 790;
		modalWindow.height = 780;
		modalWindow.content = "<iframe width='790' height='780' frameborder='0' scrolling='no' allowtransparency='true' src='" + source + "'>&lt/iframe>";
		modalWindow.open();
	};	
	
		var openOthers6 = function(source)
	{
		modalWindow.windowId = "Others6";
		modalWindow.width = 790;
		modalWindow.height = 750;
		modalWindow.content = "<iframe width='790' height='750' frameborder='0' scrolling='no' allowtransparency='true' src='" + source + "'>&lt/iframe>";
		modalWindow.open();
	};	
	
		var openOthers7 = function(source)
	{
		modalWindow.windowId = "Others7";
		modalWindow.width = 800;
		modalWindow.height = 930;
		modalWindow.content = "<iframe width='800' height='930' frameborder='0' scrolling='no' allowtransparency='true' src='" + source + "'>&lt/iframe>";
		modalWindow.open();
	};	
	
			var openOthers8 = function(source)
	{
		modalWindow.windowId = "Others8";
		modalWindow.width = 800;
		modalWindow.height = 700;
		modalWindow.content = "<iframe width='800' height='700' frameborder='0' scrolling='no' allowtransparency='true' src='" + source + "'>&lt/iframe>";
		modalWindow.open();
	};	
	
			var openOthers9 = function(source)
	{
		modalWindow.windowId = "Others9";
		modalWindow.width = 840;
		modalWindow.height = 750;
		modalWindow.content = "<iframe width='840' height='750' frameborder='0' scrolling='no' allowtransparency='true' src='" + source + "'>&lt/iframe>";
		modalWindow.open();
	};	
	
			var openOthers10 = function(source)
	{
		modalWindow.windowId = "Others10";
		modalWindow.width = 840;
		modalWindow.height = 750;
		modalWindow.content = "<iframe width='840' height='750' frameborder='0' scrolling='no' allowtransparency='true' src='" + source + "'>&lt/iframe>";
		modalWindow.open();
	};	
	
	var openDior1 = function(source)
	{
		modalWindow.windowId = "Dior1";
		modalWindow.width = 790;
		modalWindow.height = 800;
		modalWindow.content = "<iframe width='790' height='800' frameborder='0' scrolling='no' allowtransparency='true' src='" + source + "'>&lt/iframe>";
		modalWindow.open();
	};	
	
	var openBMW1 = function(source)
	{
		modalWindow.windowId = "BMW1";
		modalWindow.width = 790;
		modalWindow.height = 800;
		modalWindow.content = "<iframe width='790' height='800' frameborder='0' scrolling='no' allowtransparency='true' src='" + source + "'>&lt/iframe>";
		modalWindow.open();
	};	
	
	var openCarlsberg1 = function(source)
	{
		modalWindow.windowId = "Carlsberg1";
		modalWindow.width = 790;
		modalWindow.height = 800;
		modalWindow.content = "<iframe width='790' height='800' frameborder='0' scrolling='no' allowtransparency='true' src='" + source + "'>&lt/iframe>";
		modalWindow.open();
	};	
	
		var openCarlsberg2 = function(source)
	{
		modalWindow.windowId = "Carlsberg2";
		modalWindow.width = 790;
		modalWindow.height = 800;
		modalWindow.content = "<iframe width='790' height='800' frameborder='0' scrolling='no' allowtransparency='true' src='" + source + "'>&lt/iframe>";
		modalWindow.open();
	};	
	
	var openCarlsberg3 = function(source)
	{
		modalWindow.windowId = "Carlsberg3";
		modalWindow.width = 790;
		modalWindow.height = 800;
		modalWindow.content = "<iframe width='790' height='800' frameborder='0' scrolling='no' allowtransparency='true' src='" + source + "'>&lt/iframe>";
		modalWindow.open();
	};	
	
	var openSamsung1 = function(source)
	{
		modalWindow.windowId = "Samsung1";
		modalWindow.width = 790;
		modalWindow.height = 800;
		modalWindow.content = "<iframe width='790' height='800' frameborder='0' scrolling='no' allowtransparency='true' src='" + source + "'>&lt/iframe>";
		modalWindow.open();
	};	
	
		var openSamsung2 = function(source)
	{
		modalWindow.windowId = "Samsung2";
		modalWindow.width = 790;
		modalWindow.height = 800;
		modalWindow.content = "<iframe width='790' height='800' frameborder='0' scrolling='no' allowtransparency='true' src='" + source + "'>&lt/iframe>";
		modalWindow.open();
	};	
	// window names end
	
	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: " + 0 + "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();});
	}
};

