var L = {
	t: function(t) {
		$('div#lnkdet-tabs a').each(function()
		{
			if(this.name == t)
			{
				this.parentNode.className = 's';
				$('div.lnkdet-tab.' + this.name).show();
				
				// tab 4 = google maps. initialize it when possible
				if(t == 'tab-4')
				{
					if(typeof(gm_init) == 'function') gm_init();
				}
			}
			else
			{
				this.parentNode.className = '';
				$('div.lnkdet-tab.' + this.name).hide();
			}
		});
	},
	
	i: function(i) {
		$('div#lnk-img-large img').attr('src', i);
	}
}
$(document).ready(function() { L.t('tab-1'); });
