// JavaScript Document

function modPos()
{
    var vpWidth = 0;

    try
    {
        if (window.outerWidth)
            vpWidth = window.outerWidth;
        else
            vpWidth = document.documentElement.offsetWidth;

        var conEl = document.getElementById('container');

        if (vpWidth < 1300)
        {

            if (conEl && conEl.style.marginLeft != "0px")
                conEl.style.marginLeft = "0px";
        }

        else
            if(conEl && conEl.style.marginLeft != "auto")
                conEl.style.marginLeft = "auto";
    }

    catch (e)
    {

    }
}

modPos();
window.onresize = modPos;

//var myOverlay = document.getElementById("pagepartOverlay");
//var myOverlayPreContainer = document.getElementById("preContainer");
//var myOverlaySpacer = document.getElementById("overlaySpacer");
//var mainCon = document.getElementById("hide_content");

//function showOverlay()
//{
//	rollIn();
//}

//function showOverlay2(elID1,elID2)
//{
//	var el1 = document.getElementById(elID1);
//	var el2 = document.getElementById(elID2);

//	el1.style.display = "block";
//	el2.style.display = "none";

//	rollIn();
//}

//function hideOverlay()
//{
//	myOverlay.style.display = "none";
//	myOverlayPreContainer.style.display = "none";
//	mainCon.style.position = "relative";
//}

//function einrollen()
//{
//	try
//	{
//		if (i >= 25)
//		{
//			myOverlaySpacer.style.height = i + "%";
//			i = i - 3;
//		}

//		if (i <= 50 && i >= 25)
//		{
//			myOverlaySpacer.style.height = i + "%";
//			i = i - 2;
//		}

//		if (i <= 25 && i >= 15)
//		{
//			myOverlaySpacer.style.height = i + "%";
//			i = i - 1;
//		}


//		if (i <= 15)
//		{
//		    myOverlaySpacer.style.height = i + "%";
//            if(i-0.5 >= 0)
//			    i = i - 0.5;
//		}

//		if (i <= -1)
//			window.clearInterval(myAktivIn1);
//	}
//	catch (e)
//	{
//		var ex = e;
//	}
//}
//	
//	

//function rollIn()
//{
//	document.body.appendChild(myOverlay);
//	myOverlay.style.height = "100%";
//	myOverlay.style.width = "100%";
//	mainCon.style.position = "fixed";
//	document.body.appendChild(myOverlayPreContainer);

//	myOverlayPreContainer.style.height = "100%";
//	i = 100;
//	myOverlaySpacer.style.height = i + "%"; // reset the position of the overlay before reveal it

//	myOverlay.style.display = "block"; // show the overlay and content
//	myOverlayPreContainer.style.display = "block";

//	myAktivIn1 = window.setInterval("einrollen()", 10);
//}
