function fbs_click() {
	u=location.href;
	t=document.title;

	window.open('http://www.facebook.com/sharer.php?u=http%3a%2f%2fwww.ionorchard.com%2findex.html&t=ION%20ORCHARD%20-%20ION','sharer','toolbar=0,status=0,width=626,height=436');
	return false;
}

//custom thickbox
$('.customlink a').attr('href', '/iphoneapp-mailing-list.html?keepThis=true&TB_iframe=true&height=250&width=512');
$('.customlink a').attr('class', 'thickbox');
$('.customlink a').attr('title', 'Be one of the first to get ION Orchard on iphone.');
//$('#fullPage').attr('class', 'thickbox');
//mailing list
//$('#ja-col1 .item54 a').attr('href', '/mailing-list.html?keepThis=true&TB_iframe=true&height=250&width=512');
$('#ja-col1 .item54 a').attr('class', 'thickbox');
$('#ja-col1 .item54 a').attr('title', 'Mailing');

//share with friends
//$('#ja-col1 .item49 a').attr('href', '/share-with-friends.html?keepThis=true&TB_iframe=true&height=270&width=512');
$('#ja-col1 .item49 a').attr('class', 'thickbox');
$('#ja-col1 .item49 a').attr('title', 'Share with Friends');


$(document).ready(function(){ 
	//PNG Fix for IE6 (http://jquery.andreaseberhard.de/pngFix/)
	$(document).pngFix(); 
}); 
	
function popUp_MailingList()
{
	//alert('test');
    //tb_show("Mailing List", 'mailing-list.html?keepThis=true&TB_iframe=true&height=200&width=512');
}

function popUp_ShareWithFriends()
{
	//alert('test');
    //tb_show("Share With Friends", 'share-with-friends.html?keepThis=true&TB_iframe=true&height=250&width=512');
}

function UpdateBackground (pid, pimagePath) {
	$('#'+pid).css({'background':'url('+pimagePath+') no-repeat'});
}

function UpdateBackgroundSub (pid, pStatus) {
	var path1 = "images/stories/ion_images/rollover_bg.jpg"; //rollover image
	var path2 = "images/stories/ion_images/exhibit_bg_08.jpg";
	
	if(pStatus=="in") {	
		$('#'+pid).css({'background':'url('+path1+') no-repeat'});
	}
	else {
		$('#'+pid).css({'background':'url('+path2+') no-repeat'});
	}
}

