var socialPos = 0;

var fullWidth=screen.width;
var fullHeight=screen.height;

maxWindow();


function maxWindow()
{
	window.moveTo(0,0);
	
	
	if (document.all)
	{
	  top.window.resizeTo(screen.availWidth,screen.availHeight);
	}
	
	else if (document.layers||document.getElementById)
	{
	  if (top.window.outerHeight<screen.availHeight||top.window.outerWidth<screen.availWidth)
	  {
		top.window.outerHeight = screen.availHeight;
		top.window.outerWidth = screen.availWidth;
	  }
	}
}


function getURL(url) {
	
	if (location.href.indexOf("#") != -1) {
		var hash = window.location.hash;
		hash = hash.replace("#","");
		if (hash != "viewall") url = url + "#"+hash;
	}	
	
	window.location.href = url;
}


// JavaScript Document
var showPagination;
$(document).ready(function() {
					   
		$('#container').fadeIn('fast');					   
	
  		$('#nav a').click(function() {
			$('#container').fadeOut('fast');					  
		});
		
		

		
		function fixPos(obj, dir, cutoff) {
			var pos = $(obj).position();	
			if (dir == "top") pos = pos.top;
			else if (dir == "left") pos = pos.left;
			
			if (cutoff != "" && pos < cutoff) { pos = cutoff; }
			
			if (dir == "top") $(obj).animate({top: pos},0);
			else if (dir == "left") $(obj).animate({left: pos});
			
		}
		
	
	
		
		function refreshPositions() {

			
			fixPos('#social','top',575); 
		
			
			
		}
		
	

		
			  $('#container').width(screen.width-20);
			  
			  $('.overlay-block').width(screen.width-210);
			  refreshPositions();
		
		
		
});
		
