$(document).ready(function() {
    $('#topnav li[class!="divider"]').not('#topnav ul li ul li').each(function() {
        var link = $(this).find('a:first');
        var img = $(link).find('img:first');
        var name = $(img).attr('name');

        $(this).mouseenter(function() {
            $(img).attr('src', eval(name + '_h.src'));
        });

        $(this).mouseleave(function() {
            $(img).attr('src', eval(name + '_n.src'));
        });

    })
});



$(function() {
    if ($("#slides").length)
    {
        $("#slides").slides({
            pagination: true,
            play: 8000
        });
    }
});



function resizeIframe(height)
{
    document.getElementById('resizeFrame').height = parseInt(height) + 20;
}
