function favoris() 

{

	if ( navigator.appName != 'Microsoft Internet Explorer' )

	{ 

		window.sidebar.addPanel("toolsiz.com  - Tools pour tes pages web","http://www.toolsiz.com","");

	}

	else 

	{ 

		window.external.AddFavorite("http://www.toolsiz.com","toolsiz.com  - Tools pour tes pages web"); 

	} 

}



getViewportScrollY = function()

{

	var scrollY = 0;

	if(document.documentElement && document.documentElement.scrollTop)

	{

		scrollY = document.documentElement.scrollTop;

	}

	else if(document.body && document.body.scrollTop)

	{

		scrollY = document.body.scrollTop;

	}

	else if(window.pageYOffset)

	{

		scrollY = window.pageYOffset;

	}

	else if(window.scrollY) {

		scrollY = window.scrollY;

	}

	return scrollY;

};



getViewportWidth = function()

{

	var width = 0;

	if(document.documentElement && document.documentElement.clientWidth)

	{

		width = document.documentElement.clientWidth;

	}

	else if(document.body && document.body.clientWidth)

	{

		width = document.body.clientWidth;

	}

	else if(window.innerWidth)

	{

		width = window.innerWidth - 18;

	}

	return width;

};



function skyIsActive()

{		

	if (document.body  && document.body.clientWidth < 1150)

	{		

		return false;

	}	

	

	return true;

}



function pubOrganized()

{	

	var scraper = document.getElementById("global_sky");

	

	var scraperTopPosition = 25;

	var scraperLeftOffset = 380; /*270*/





	var skyActive = skyIsActive();

	

    if (skyActive == false)

	{

		scraper.style.display = "none";

		scraper.style.visibility = "hidden";

		scraper.style.left = "1px";

	}

	else

	{

		scraper.style.top = (getViewportScrollY() < scraperTopPosition) ? scraperTopPosition + "px": getViewportScrollY() + "px";



		scraperPositionRight = (getViewportWidth() > 750) ? getViewportWidth() / 2 + scraperLeftOffset : 700;

		

		scraper.style.left = scraperPositionRight + "px";

		scraper.style.display = "";

		scraper.style.visibility = "visible";

	}



	setTimeout('pubOrganized()',100);

}


