$(document).ready(function() {

$(".g3lRollOver img").mouseover(function(){
	this.src = this.src.replace("_off","_over");
});
$(".g3lRollOver img").mouseout(
		function(){this.src = this.src.replace("_over","_off");
});

$("#menuProfile img").mouseover(function(){
	if(curPg != "profile"){
		$('#menProImg').attr('src', 'images/menu/co_profile_over.gif');
		$('#menuAbtShp, #menuSarah').fadeIn(200);
	}
});
$("#menuProfile").mouseleave(function(){
	if(curPg != "profile"){
		$('#menProImg').attr('src', 'images/menu/co_profile_off.gif');
		$('#menuAbtShp, #menuSarah').fadeOut(200);
	}
});

$('#relArtStars').click(function(){
	$('#popStarsContainer').fadeIn(300);
	_gaq.push(['_trackEvent', 'Related Articals', 'Stars ine Her Eyes']);
});
$('#popStarsContainer .popX').click(function(){
	$('#popStarsContainer').fadeOut(300);
});

$('#relArtPR').click(function(){
	$('#popPRContainer').fadeIn(300);
	_gaq.push(['_trackEvent', 'Related Articals', 'PR Week']);
});
$('#popPRContainer .popX').click(function(){
	$('#popPRContainer').fadeOut(300);
});


$(".ELEMENT").bind('dragstart', function(event) { event.preventDefault() });//stops page hilighting
$('img').mousedown(function(e) { e.preventDefault(); });//stops image dragging








});

$(window).load(function() {
	//Check if this is a company profile drop-down link
	if((curPg == "about_shp") || (curPg == "meet_sarah")){
		curPg = "profile";
		$('#menProImg').attr('src', 'images/menu/co_profile_over.gif');
		//$('#menuAbtShp, #menuSarah').show();
		$('#menuAbtShp, #menuSarah').fadeIn(200);
	}

});
