/* change social positioning based on window width

$(document).ready(function () 

	  if ((screen.width>=1710)) {
	  	$('#social').css('float', 'right');
	  } else  {
	  	$('#social').css('float', 'none');
	  }
});*/

// home fader

$(window).load(function() {

	/*var loaded = $.cookie('loaded');
	
	loaded = (typeof(loaded) == 'string') ? loaded.split('|') : [];
	
	if($.inArray('unique_key', loaded) == -1) {
	
		alert('first load');
  		$('#homeWraper').appendTo('body').delay(2000).fadeOut(3000);
		
		$('#container').hide().delay(3000).fadeIn(2500);
		$('#footer').hide().delay(3000).fadeIn(2500);
		
  		loaded.push('unique_key');
  		$.cookie('loaded', loaded.join('|'));
	} else {
  		alert('subsequent load');
  		$('#homeWraper').hide();
		
		$('#container').show();
		$('#footer').show();
	}*/


	if ($('#homeWraper').hasClass('fader')) {
	
		$('#homeWraper').appendTo('body').delay(2000).fadeOut(3000);
		
		$('#container').hide().delay(3000).fadeIn(2500);
		$('#footer').hide().delay(3000).fadeIn(2500);
	}
});


// Upgrade browser 

$.each($.browser, function(i, val) {
	if(i=="msie" && $.browser.version<="7.0")
		alert("To view this website properly, Please upgrade your browser. You are currently using an old version of Microsoft Internet Explorer. We highly recomment using Mozilla Firefox http://www.mozilla.com or another modern browser");
});

// Private Page

function Mature() {
  return confirm("This link leads to artistic material of a mature subject matter.  Please click OK to continue to the next page");
}

// Navigation

$(document).ready(function () {	
	
	$('#dropdown li').hover(
		function () {
			//show its submenu
			$('.submenu', this).slideDown(250);

		}, 
		function () {
			//hide its submenu
			$('.submenu', this).hide(100);			
		}
	);
});


//Removes class for Visibility
$(document).ready(function () {
	
	$('#dropdown li ul').removeClass('submenu2');
	
});
