// <!CDATA[

function SignUpForNewsletter()
{
    DarkenPage();
    ShowNewsletterPanel();
}

function SignUpForNewsletter1()
{
    DarkenPage();
    ShowNewsletterPanel1();
}

function SignUpForNewsletter2()
{
    DarkenPage();
    ShowNewsletterPanel2();
}
function SignUpForNewsletter3()
{
    DarkenPage();
    ShowNewsletterPanel3();
}
function ShowNewsletterPanel()
{
    var newsletter_panel = document.getElementById('newsletter_panel');
    
    // w is a width of the newsletter panel
    w = 300;
    // h is a height of the newsletter panel
    h = 300;
    
    // get the x and y coordinates to center the newsletter panel
    xc = Math.round((document.body.clientWidth/2)-(w/2)-20)
    yc = Math.round((document.body.clientHeight/2)-(h/2))
	
	yc=220;
    
    // show the newsletter panel
    newsletter_panel.style.left = xc + "px";
    newsletter_panel.style.top  = yc + "px";
    newsletter_panel.style.display = 'block';
}

function ShowNewsletterPanel1()
{
    var newsletter_panel = document.getElementById('newsletter_panel1');
    
    // w is a width of the newsletter panel
    w = 300;
    // h is a height of the newsletter panel
    h = 300;
    
    // get the x and y coordinates to center the newsletter panel
    xc = Math.round((document.body.clientWidth/2)-(w/2)-20)
    yc = Math.round((document.body.clientHeight/2)-(h/2))
	
	yc=220;
    
    // show the newsletter panel
    newsletter_panel.style.left = xc + "px";
    newsletter_panel.style.top  = yc + "px";
    newsletter_panel.style.display = 'block';
}
function ShowNewsletterPanel2()
{
    var newsletter_panel = document.getElementById('newsletter_panel2');
    
    // w is a width of the newsletter panel
    w = 300;
    // h is a height of the newsletter panel
    h = 300;
    
    // get the x and y coordinates to center the newsletter panel
    xc = Math.round((document.body.clientWidth/2)-(w/2)-20)
    yc = Math.round((document.body.clientHeight/2)-(h/2))
	
	yc=220;
    
    // show the newsletter panel
    newsletter_panel.style.left = xc + "px";
    newsletter_panel.style.top  = yc + "px";
    newsletter_panel.style.display = 'block';
}
function ShowNewsletterPanel3()
{
    var newsletter_panel = document.getElementById('newsletter_panel3');
    
    // w is a width of the newsletter panel
    w = 300;
    // h is a height of the newsletter panel
    h = 300;
    
    // get the x and y coordinates to center the newsletter panel
    xc = Math.round((document.body.clientWidth/2)-(w/2)-20)
    yc = Math.round((document.body.clientHeight/2)-(h/2))
	
	yc=220;
    
    // show the newsletter panel
    newsletter_panel.style.left = xc + "px";
    newsletter_panel.style.top  = yc + "px";
    newsletter_panel.style.display = 'block';
}

function SignUp()
{
    // hide the newsletter panel
    var newsletter_panel = document.getElementById('newsletter_panel');
    newsletter_panel.style.display = 'none';
    // lighten the page again
    LightenPage();
}

// this function puts the dark screen over the entire page
function DarkenPage()
{
    var page_screen = document.getElementById('page_screen');
    //page_screen.style.height = document.body.parentNode.scrollHeight + 'px';
    page_screen.style.display = 'block';
}

// this function removes the dark screen and the page is light again
function LightenPage()
{
    var page_screen = document.getElementById('page_screen');
    page_screen.style.display = 'none';
}



function SignUp1()
{
    // hide the newsletter panel
    var newsletter_panel = document.getElementById('newsletter_panel1');
    newsletter_panel.style.display = 'none';
    // lighten the page again
    LightenPage();
}

function SignUp2()
{
    // hide the newsletter panel
    var newsletter_panel = document.getElementById('newsletter_panel2');
    newsletter_panel.style.display = 'none';
    // lighten the page again
    LightenPage();
}
// ]]>