 //if (typeof jQuery === 'undefined') document.write("<scr"+"ipt src='/jquery.1.4.min.js'></scr"+"ipt>");


Spry.Utils.addLoadListener(function() {

// Garage Door Navigation:
var lockedElementSelector = '.subMenu';
fadeOutTime = 600;
fadeInTime = 600; 

$('#homeCTA div.item').each(function() {
var itemSubMenu = $(this).find('span.subNav');
if (itemSubMenu.html() != '') {
itemSubMenu.load('/api/renderskin?skin=['+'['+itemSubMenu.html()+']'+']'); 
}
$(this).find('a>span').addClass('menuTtile');
}); 

var menuContainer = $('#homeCTA div.item span.subNav');


$('#homeCTA div.item a.item').css({'display':'block','position':'absolute','top':'0','left':'0','z-index':'10','width':'100%','height':'100%'});
menuContainer.css({'display':'block','position':'absolute','top':'0','left':'0','z-index':'20'});
menuContainer.hide(); 
$('.menuTtile').css({'position':'absolute','bottom':'0','left':'0','width':'100%',});

$('#homeCTA div.item').hover(function() {
$(this).find('span.subNav').fadeIn(fadeInTime);
$(this).find('img').fadeOut(fadeOutTime);
return false;
}, function() {
$(this).find('span.subNav').fadeOut(fadeOutTime);
$(this).find('img').fadeIn(fadeInTime);
return false;
});


});

