

$(function()
{
    // Exhibitor Zone dropdown
    $('#exhibitor-zone-login, #exhibitor-zone-close').click(function()
    {
        $('#exhibitor-login').slideToggle();
        return false;
    });
    
    $('.programme .more').click(function()
    {
        $(this).parent().find('.temp').slideToggle();
        return false;
    });


	// Make divs clickable
    $('.clickable:has(a[href])').click(function()
    {
        var location = $('a[href]', this).eq(0).attr('href');
        
        if (location !== undefined)
        {
        	window.location = location;
                window.status = location;
        }
        
    }).bind('mouseenter mouseleave', function()
    {            
        $(this).toggleClass('rollover');
    });

    
    $('.a-feature').mouseenter(function()
    {
        $('img', this).stop().animate({top:-(60)},120, 'easeOutQuart');
    }).mouseleave(function()
    {
        $('img', this).stop().animate({top:-(50)},120, 'easeInQuart');
    });

	$('.gallery_unstyled').addClass('gallery'); // adds new class name to maintain degradability
	
	
		
    jQuery('#newsticker').newsticker();

    // quickfix
    $('#newsticker a[href=#]').click(function(){ return false; }).css({ cursor: 'default' });

    // evens out the margins        
    if (window.location.pathname === '/' || document.title.indexOf('Home') >= 0){        
        $('.a-feature').css('margin-right', 23).eq(3).css('margin-right', '').addClass('last');
    }
});