<!--
window.status=""

function bookmarksite(title, url){
if (document.all)
window.external.AddFavorite(url, title);
else if (window.sidebar)
window.sidebar.addPanel(title, url, "")
}
// onclick="bookmarksite(document.title,document.location)"

// AddThis customizer
var addthis_config = {ui_cobrand: "IPU", ui_use_addressbook: "true"}

$(function() {			
	if (!document.all && !window.sidebar)
		$('.bookmark-us').hide();
		
	var str=location.hostname;
	if (str.search(/islandpeopleunited/) == -1)
		$('.translate_hide').hide();
	else
		$('.translate_show').hide();
		
	$('#rate .rate-bottom li img').hover(
		function() { 
			$(this).closest('li').prevAll().andSelf().each(function() {															
				$(this).find('img').css('background', 'url(/image/star-on.gif) no-repeat');										  
			});  
			$(this).closest('li').nextAll().each(function() {															
				$(this).find('img').css('background', 'url(/image/star-off.gif) no-repeat');										  
			});
		}, 
		function() { }
	);
		
	$('#rate .rate-bottom ul').hover(
		function() { }, 
		function() { 
			$(this).find('img').each(function() {															
				$(this).css('background', 'url(/image/star-off.gif) no-repeat');										  
			});
		}
	);
	
	$('#rate .rate-bottom a').click(function() {
		$.post('/include/service/rate-it.php', {rating: $(this).attr("rel")}, function(data) { $('#rate .rate-bottom').hide().html('<div class="results">'+data+'</div>').fadeIn(250) });
		return false;
	});
	jCarouselLite();
	
	$('ul.sf-menu').superfish();
	
});

function jCarouselLite() {
	
	
	if ($("#network-list li").size() > 8)
	{
	    $("#network-list .jCarouselLite").jCarouselLite({
		    btnNext: "#network-list .next",
		    btnPrev: "#network-list .prev",
		    vertical: true,
		    visible: 8,
		    circular: true
	    });
	}
	if ($('#new-face-list li').size() > 3)
	{
	    $("#new-face-list .jCarouselLite").jCarouselLite({
		    btnNext: "#new-face-list .next",
		    btnPrev: "#new-face-list .prev",
		    vertical: true,
		    visible: 3,
		    circular: true
	    });
    }
}



function customtranslate(e)
{
	var qs = new Querystring();
	var u = qs.get("u", "");

	if ($(e).val() == 'original')
		top.location = u;
	else
	{
		if (u == "")
			top.location = "http://translate.google.com/translate?prev=hp&hl=en&u="+escape(location.href)+"&sl=en&tl="+$(e).val();
		else
			top.location = "http://translate.google.com/translate?prev=hp&hl=en&u="+escape(u)+"&sl=en&tl="+$(e).val();
			
	}
}

function openDJCorner()
{
    var djCorner = window.open('/dj-corner.php', '', 'width=630,height=555,toolbars=no,scrollbars=yes');
}

function openGame(game, width, height)
{
    var playGame = window.open('/games.php?game='+Number(game), '', 'width='+Number(width)+',height='+Number(height)+',toolbars=no,scrollbars=yes');
}
-->