/**
 * @author Andrew Romashkan
 */

document.observe("dom:loaded", function() {
	Locations.init();
});


Locations = {
	init: function(){
		
		this.kievMap = new Window({
			title : "Ukraine Office",
			isPrintbtn : true,
			width : 660,
			height : 600,
			sourceURL : "/empty/company/kiev_map"
		});
		this.kievMap.render();
		
		this.usMap = new Window({
			title : "US Headquarters",
			isPrintbtn : true,
			width : 660,
			height : 600,
			sourceURL : "/empty/company/us_map"
		});
		this.usMap.render();
		
		var scope = this;
		$('link_map_kiev').onclick = function(){return false;};
		$('link_map_us').onclick = function(){return false;};
		$('link_map_kiev').observe('click',function(){scope.kievMap.show();});
		$('link_map_us').observe('click',function(){scope.usMap.show();});
	}
}