function OdeonB2bMenu() {
    var self = this;
    this.container = $('#menu');

    $('.menuDisplay').mouseover(function(){
    	$('#menu').css('display', 'block');
    });
    	
		$('.menuDisplay').mouseout(function(){
    	$('#menu').css('display', 'none');
    });
    
    $('.nav > #li-types.menuDisplay a').click(function(){
    		return false;
    });    	
    
    // clickEvent on megaNaviBox
    var box = $('#menu-content');
    $('.menu-item', box).each(function(){
    	var element = $(this);
			var href = $('.menu-item-inner .menu-item-content > a', element).attr('href');
			element.click(function(){
				location.href = href;
			});    	
    }); 
    
    
    // clickEvent on Whats coming Up
    var box = $('#start-bottom-box-coming .start-bottom-box-content');
    $('.start-next-item', box).each(function(){
    	var element = $(this);
			var href = $('.start-next-title > a', element).attr('href');
			if(href)
			{
				element.addClass('cursorPointer');
				element.click(function(){
					location.href = href;
				});
			}
    });
     
}

function odeonB2bRegionSwitch(){
	this.container = $('#venueRegionSelect');
	this.container.change(function(){
			var val = $(this).val();
			location.href = '/fanatic/find-a-venue/region/'+val;
		});
}

$(document).ready(function() {
	$('#li-types').addClass('menuDisplay');
	$('#menu').addClass('menuDisplay');
  var menu = new OdeonB2bMenu();
  var changeswitcher = odeonB2bRegionSwitch();
});

