jQuery(document).ready(function($){
    $('a').live('click', function() {
	if ($(this).attr('class').search('sm2_button') >= 0){
	    return true
	} else {
	    href = $(this).attr('href');
	    if (href.search('http://poobah.com') != -1 || href.search('http://www.poobah.com') != -1 || href.indexOf('/') == 0 || href.indexOf('?') == 0 || href.indexOf('#') == 0){
		window.location = href
	    } else {
		window.open(href)
	    }
	    return false
	}
	return false
    })




    if(document.getElementById('artiststatusupdates') != undefined){
	var statusupdates = $('#artiststatusupdates')
	var update = $('.statusupdate:eq(2)', statusupdates)
	var height = update.position().top - statusupdates.position().top + update.outerHeight()
	//height = 275;
	statusupdates.css('height', height + 30)
	statusupdates.append($('<div id="artiststatusupdatesviewmore">VIEW MORE</div>'))
	var viewmore = $('#artiststatusupdatesviewmore')
	viewmore.css('top', height + 10)
	viewmore.click(function(){
	    statusupdates.css('height', 'auto')
	    viewmore.hide()
        })
    }
   
    /*
	$('.shop-menu, .shop-menu-list').hover(function(){
	    $('.shop-menu-list').show()
        },function(){
	    $('.shop-menu-list').hide()
	})
    */

    $('.artists-menu, .artists-menu-list').hover(function(){
	    $('.artists-menu-list').show()
        },function(){
	    $('.artists-menu-list').hide()
	})

})

