// JavaScript Document
	
	// window names start
	var openContact = function(source)
	{
		modalWindow.windowId = "Contact";
		modalWindow.width = 906;
		modalWindow.height = 750;
		modalWindow.content = "<iframe width='906' height='750' frameborder='0' scrolling='no' allowtransparency='true' src='" + source + "'>&lt/iframe>";
		modalWindow.open();
	};	
	
	var openTokuBreakers = function(source)
	{
		modalWindow.windowId = "TokuBreakers";
		modalWindow.width = 906;
		modalWindow.height = 1750;
		modalWindow.content = "<iframe width='906' height='1750' frameborder='0' scrolling='no' allowtransparency='true' src='" + source + "'>&lt/iframe>";
		modalWindow.open();
	};	
	
		var openTokuPriSecCrushers = function(source)
	{
		modalWindow.windowId = "TokuPriSecCrushers";
		modalWindow.width = 906;
		modalWindow.height = 1300;
		modalWindow.content = "<iframe width='906' height='1300' frameborder='0' scrolling='no' allowtransparency='true' src='" + source + "'>&lt/iframe>";
		modalWindow.open();
	};	
	
	var openTokuForkclaws = function(source)
	{
		modalWindow.windowId = "TokuForkclaws";
		modalWindow.width = 906;
		modalWindow.height = 1300;
		modalWindow.content = "<iframe width='906' height='1300' frameborder='0' scrolling='no' allowtransparency='true' src='" + source + "'>&lt/iframe>";
		modalWindow.open();
	};	
	
		var openHopptConcreteCutter = function(source)
	{
		modalWindow.windowId = "HopptConcreteCutter";
		modalWindow.width = 906;
		modalWindow.height = 650;
		modalWindow.content = "<iframe width='906' height='650' frameborder='0' scrolling='no' allowtransparency='true' src='" + source + "'>&lt/iframe>";
		modalWindow.open();
	};	
	
		var openHopptConcreteVibrator = function(source)
	{
		modalWindow.windowId = "HopptConcreteVibrator";
		modalWindow.width = 906;
		modalWindow.height = 500;
		modalWindow.content = "<iframe width='906' height='500' frameborder='0' scrolling='no' allowtransparency='true' src='" + source + "'>&lt/iframe>";
		modalWindow.open();
	};	
	
		var openHopptPowerTrowel = function(source)
	{
		modalWindow.windowId = "HopptPowerTrowel";
		modalWindow.width = 906;
		modalWindow.height = 700;
		modalWindow.content = "<iframe width='906' height='700' frameborder='0' scrolling='no' allowtransparency='true' src='" + source + "'>&lt/iframe>";
		modalWindow.open();
	};	
	
		var openHopptBarcutter = function(source)
	{
		modalWindow.windowId = "HopptBarcutter";
		modalWindow.width = 906;
		modalWindow.height = 470;
		modalWindow.content = "<iframe width='906' height='470' frameborder='0' scrolling='no' allowtransparency='true' src='" + source + "'>&lt/iframe>";
		modalWindow.open();
	};	
	
	
		var openHopptSubmersiblePump = function(source)
	{
		modalWindow.windowId = "HopptSubmersiblePump";
		modalWindow.width = 906;
		modalWindow.height = 540;
		modalWindow.content = "<iframe width='906' height='540' frameborder='0' scrolling='no' allowtransparency='true' src='" + source + "'>&lt/iframe>";
		modalWindow.open();
	};	
	
		var openHopptVibratoryPlateCompactor = function(source)
	{
		modalWindow.windowId = "HopptVibratoryPlateCompactor";
		modalWindow.width = 906;
		modalWindow.height = 600;
		modalWindow.content = "<iframe width='906' height='600' frameborder='0' scrolling='no' allowtransparency='true' src='" + source + "'>&lt/iframe>";
		modalWindow.open();
	};	
	
		var openHopptVibratoryRammer = function(source)
	{
		modalWindow.windowId = "HopptVibratoryRammer";
		modalWindow.width = 906;
		modalWindow.height = 900;
		modalWindow.content = "<iframe width='906' height='900' frameborder='0' scrolling='no' allowtransparency='true' src='" + source + "'>&lt/iframe>";
		modalWindow.open();
	};	
	
		var openHopptScarifier = function(source)
	{
		modalWindow.windowId = "HopptScarifier";
		modalWindow.width = 906;
		modalWindow.height = 520;
		modalWindow.content = "<iframe width='906' height='520' frameborder='0' scrolling='no' allowtransparency='true' src='" + source + "'>&lt/iframe>";
		modalWindow.open();
	};	
	
		var openHopptVibratoryRoller = function(source)
	{
		modalWindow.windowId = "VibratoryRoller";
		modalWindow.width = 906;
		modalWindow.height = 750;
		modalWindow.content = "<iframe width='906' height='750' frameborder='0' scrolling='no' allowtransparency='true' src='" + source + "'>&lt/iframe>";
		modalWindow.open();
	};	
	
		var openOrimasCatalogue = function(source)
	{
		modalWindow.windowId = "OrimasCatalogue";
		modalWindow.width = 906;
		modalWindow.height = 1300;
		modalWindow.content = "<iframe width='906' height='1300' frameborder='0' scrolling='no' allowtransparency='true' src='" + source + "'>&lt/iframe>";
		modalWindow.open();
	};	
	
	
		var openOrimasBarBender = function(source)
	{
		modalWindow.windowId = "OrimasBarBender";
		modalWindow.width = 906;
		modalWindow.height = 750;
		modalWindow.content = "<iframe width='906' height='750' frameborder='0' scrolling='no' allowtransparency='true' src='" + source + "'>&lt/iframe>";
		modalWindow.open();
	};	
	
		var openOrimasBarCutter = function(source)
	{
		modalWindow.windowId = "OrimasBarCutter";
		modalWindow.width = 906;
		modalWindow.height = 650;
		modalWindow.content = "<iframe width='906' height='650' frameborder='0' scrolling='no' allowtransparency='true' src='" + source + "'>&lt/iframe>";
		modalWindow.open();
	};	
	
		var openOrimasConcreteCutter = function(source)
	{
		modalWindow.windowId = "OrimasConcreteCutter";
		modalWindow.width = 906;
		modalWindow.height = 650;
		modalWindow.content = "<iframe width='906' height='650' frameborder='0' scrolling='no' allowtransparency='true' src='" + source + "'>&lt/iframe>";
		modalWindow.open();
	};	
	
		var openOrimasFoldableReversibleCompactor = function(source)
	{
		modalWindow.windowId = "OrimasFoldableReversibleCompactor";
		modalWindow.width = 906;
		modalWindow.height = 700;
		modalWindow.content = "<iframe width='906' height='700' frameborder='0' scrolling='no' allowtransparency='true' src='" + source + "'>&lt/iframe>";
		modalWindow.open();
	};	
	
		var openOrimasPendulousVibrator = function(source)
	{
		modalWindow.windowId = "OrimasPendulousVibrator";
		modalWindow.width = 906;
		modalWindow.height = 550;
		modalWindow.content = "<iframe width='906' height='550' frameborder='0' scrolling='no' allowtransparency='true' src='" + source + "'>&lt/iframe>";
		modalWindow.open();
	};	
	
		var openOrimasPlateCompactor = function(source)
	{
		modalWindow.windowId = "OrimasPlateCompactor";
		modalWindow.width = 906;
		modalWindow.height = 600;
		modalWindow.content = "<iframe width='906' height='600' frameborder='0' scrolling='no' allowtransparency='true' src='" + source + "'>&lt/iframe>";
		modalWindow.open();
	};	
	
		var openOrimasPowerTrowel = function(source)
	{
		modalWindow.windowId = "OrimasPowerTrowel";
		modalWindow.width = 906;
		modalWindow.height = 650;
		modalWindow.content = "<iframe width='906' height='650' frameborder='0' scrolling='no' allowtransparency='true' src='" + source + "'>&lt/iframe>";
		modalWindow.open();
	};	
	
		var openOrimasRingPipeBender = function(source)
	{
		modalWindow.windowId = "OrimasRingPipeBender";
		modalWindow.width = 906;
		modalWindow.height = 400;
		modalWindow.content = "<iframe width='906' height='400' 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();});
	}
};
