// JavaScript Document
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;
 		}
	}
}

maxWindow();

function largeur_fenetre()
{
 if (window.innerWidth) return window.innerWidth;
 else if (document.body && document.body.offsetWidth) return document.body.offsetWidth;
 else return 0;
}

function hauteur_fenetre()
{
 if (window.innerHeight) return window.innerHeight  ;
 else if (document.body && document.body.offsetHeight) return document.body.offsetHeight;
 else return 0;
}


function reconstruction()
{
 if ( 640 > hauteur_fenetre())
	window.open('http://www.chic-artistic.com/v2/index.php', '', 'fullscreen=yes, scrollbars=auto');
}

//reconstruction();
