// JavaScript Document
$(document).ready(function() {
	setTimeout(function() {
		$('#logo').animate({
			width: 120,
			height: 90,
			left: 0,
			top: 0
		});
		$('.text').append($('<div></div>').css('display','none').text("Titan NMS is a completely distributable network management system for critical networks supporting both military standard (e.g. Eurocom) and civilian standard (e.g. IP Ethernet) network protocols and technologies.").fadeIn());
		setTimeout(function() {
			$('.buttons').append($('<div class="holder"><div class="button black">Tactical Network Management</div><div class="description">Management, command and control of tactical military networks</div></div>').css('display','none').fadeIn().click(function(){show('snips/tac.html');}));
			$('.buttons').append($('<div class="holder"><div class="button black">Security Network Management</div><div class="description">Management and monitoring of network infrastructures for access control, sensors, burglar alarm, video surveillance systems</div></div>').css('display','none').fadeIn().click(function(){show('snips/sec.html');}));
			$('.buttons').append($('<div class="holder"><div class="button black">Service Network Management</div><div class="description">Management and monitoring of Layer 2, Layer 3 and Layer 7 network topologies</div></div>').css('display','none').fadeIn().click(function(){show('snips/net.html');}));
		},1000);
	},3000);
});

function show(url) {
	$('.details').load(url,function() {
		$('.tabs',this).tabs();
		$(this).dialog({
			position: 'top',
			modal: true,
			width: '80%'
		});
	});
}
function showimg(el) {
	var src = el.src.replace(/_small/,'');
	$('.largeimg').empty().append($('<img src="'+src+'"/>'));
	$('.largeimg').dialog({
		position: 'top',
		modal: true,
		width: '80%'
	}).click(function(ev) {$(this).dialog('close');});
}

