// JavaScript Document
function keepfullscreen(element){
	
	element.height($(document).height());
	element.width($(document).width());
	
	$(window).resize(function(){
		element.height($(document).height());
		element.width($(document).width());
	})
}





function scaleBackgroundIMG() {
	
	windowsH = ($(document).height());
	
	backgroundH =(current.height());
	
	if((windowsH > backgroundH)){
		imgs.each(function(){
		  $(this).css({ "height":windowsH+"px","width":"auto"});
		})
		
	}else{
		imgs.each(function(){
		   $(this).css({ "height":"auto","width":"100%"});
		})
		
	}
	
	
	
	
	backgroundH = (current.height());
	windowsH = ($(document).height());
	backgroundW = (current.width());
	windowsW = ($(document).width());
	
	if(windowsH > backgroundH ){
		imgs.each(function(){
			$(this).css({ "height":windowsH+"px","width":"auto"});				  
		})
		
	}
	
	if(windowsW > backgroundW ){
		imgs.each(function(){
			$(this).css({ "height":"auto","width":"100%"});			  
		})
	
	}
				
};
			
			
				