
	 $(document).ready(function(){
	 $(".artist").css({'opacity':'0.3'});
	
	 	
	 	 	
    $(".rolly").hover(
    function() {
	var other = $(this).attr("rel");
    var sc = $(this).attr('src');


	$(this).attr('src', other);
	$(this).attr('rel', sc);
      	
	
}, 
   
function() {
	var nother = $(this).attr("rel");
     var nsc = $(this).attr('src');
    $(this).attr('src', nother);
    $(this).attr('rel', nsc);
  
}

);



//for the categories drop down
$("#catDrop").change(function () {
 	 var mow = $("#catDrop option:selected").val();
 	
 	
 	$.ajax({
   		  type: "POST",
          url: "frontFunctions.php",
          data: "catsup="+mow,
          success: function(data){
       
          		 window.location = "http://www.wheretheyatnola.weareconstance.com/archivelanding.php?cat="+mow+"&id="+data+"";               
            	
          	                       	  
          }
          });

 	 
 	  	
   });

   
   
   //change nav box bag color///////////////
   $("#nav").hover(
      function () {
       $(this).css({'background':'#fff'});
      }, 
      function () {
       $(this).css({'background':'#676767'});
      }
    );
   
   
   //change nav item bg color ////////
   
 $("#nav a").each(function() {
  	var ref = $(this).attr('href');
  	$(this).wrap('<a href="'+ref+'" class="navBack"></a>');
  	
  	});

   
   
   
    $(".navBack").hover(
      function () {
       $(this).css({'background':'#fcff00'});
      }, 
      function () {
       $(this).css({'background':'transparent'});
      }
    );





$(".artist").hover(
function() {
	var other = $(this).attr("rel");
    var sc = $(this).attr('src');


	$(this).attr('src', other);
	$(this).attr('rel', sc);
	  $(this).css({'opacity':'1'});
    var pos = $(this).position();
    var yeft = 0;
    if(pos.left > "600")
    {
    yeft = pos.left-149;
    }
    else
    {
    yeft = pos.left+149;
    }
    
    
    $(this).parents().next('.tooly').css({'left': yeft ,'top':pos.top}).show();
  
	
	
}, 
   
function() {
	var nother = $(this).attr("rel");
     var nsc = $(this).attr('src');
    $(this).attr('src', nother);
    $(this).attr('rel', nsc);
    $(this).css({'opacity':'0.3'});
      $(this).parents().next('.tooly').hide();  
 
   
}

);

$('.tooly').live('mouseover',function() {
	$(this).hide();
	
	
	});
	
	
	
	

  
  
  
  //about lightbox ////////////////////////
  
   $("#abouter").click(function() {
  var hit =   $("#container").height();
   	$("#overlay").fadeIn(function() {$(this).height(hit);});
   	
   	});
  
  
   $("#closey").click(function() {
   	
   	$("#overlay").fadeOut()
   });
  
  
     
 });//end doc ready
 
 $(window).load( function() {
 $("#loady").fadeOut(function() {  
 $(this).remove();
 
 });
 
 $("#header").css({'visibility':'visible'});	
 	 $("#rest").css({'visibility':'visible'});	
 });
	

