/*
function writeFooter(hasWhiteLinks)
{
 document.write('<div id="footer"><div id="footer2">');
 if(hasWhiteLinks)
 {
  document.write('<div id="links"><a href="http://www.gamedesire.com"><img src="images/gamedesire.gif" alt="" /></a>');
  document.write('<a href="http://www.wp.pl"><img src="images/wp.gif" alt="" /></a><a href="http://www.atrativa.ibest.com.br/"><img src="images/atrativa.gif" alt="" /></a>');
    document.write('<a href="http://www.univision.com"><img src="images/univision.gif" alt="" /></a></div>');
 }
 document.write('<p>Our company: <a href="./history.html">History</a><a href="./contact.html" class="last">Contact Us</a></p>');
 document.write('<p>Our products: <a href="./games.html">Online Games</a><a href="./adv.html">Advertising Games</a><a href="./channel.html">Game Channel</a><a href="./command.html" class="last">Social Casino</a></p>');
 document.write('<span><b>&copy; 2006 Ganymede Technologies.</b> All rights reserved.</span></div></div>');
}

function writeHeader()
{
 document.write('<div id="head"><a href="./index.html"><img src="./images/ganymade.gif" alt="" title="GANYMEDE HOME" /></a>');
 document.write('<div id="lang"><a href="./index.html" id="active">English</a><a href="" class="last">Polski</a></div></div>');
}

function writeTitle(title)
{
 document.write('<div id="title"><div><h1>');
 ftext(title,'','FFFFFF','','trebuchet_250x23','16','','','250','23');
 //document.write('</h1><a href="./index.html">Home</a></div></div>');
 //document.write('<a href="./index.html">Dome</a></div></div>');
// document.write('</h1><a href="./index.html">Home</a>');
 //document.write('<a href="./index.html">Dome</a></div></div>');

 document.write('</h1><table border="0"><tr><td><a href="./index.html">Home</a></td><td><a href="./contact.html">About us</a></td><td><a href="./games.html">Online games</a></td><td><a href="./adv.html">Advertising Games</a></td><td><a href="./channel.html">Game Channel</a></td><td class="last"><a href="./command.html">Social Casino</a></td></tr></table></div></div>');
}

function writeLinkTitle(title,_link)
{
 document.write('<div id="title"><div><h1>');
 ftext(title,'','FFFFFF','0','trebuchet_250x23','16',_link,'','250','23');
 document.write('</h1><a href="./index.html">Home</a></div></div>');
}

function validateTypeForm(form)
{
 if(!form.name_eng.value || !form.name_pl.value)
 {
    alert("Fill all required fields!");
  return false;
 }
 else
 {
  return true;
 }
}

function validateGameForm(form)
{
 for (i = 0; i < form.length; i++)
  {
    var field = form.elements[i];
    if ((field.type == "text" || field.type == "password" || field.type == "textarea" || field.type=="select") && field.value == "")
    {
      alert("Fill all required fields!");
      return false;
    }
  }
  return true;
}
*/

function setCookie(c_name,value,expiredays)
{
    var exdate=new Date()
    exdate.setDate(exdate.getDate()+expiredays)
    document.cookie=c_name+ "=" +escape(value)+ ((expiredays==null) ? "" : ";expires="+exdate.toGMTString())
}

function endpage()
{
    if(window.innerHeight > document.body.offsetHeight)
    {
        var obj = document.getElementById("content");
        var h = window.innerHeight + obj.offsetHeight - document.body.offsetHeight - 10;
        if (navigator.appName != "Microsoft Internet Explorer")
        {
            obj.style.minHeight = h + "px";
        }
        else
        {
            obj.style.minHeight = h + 'px';
            if (navigator.appVersion.indexOf("MSIE")!=-1)
            {
                temp = navigator.appVersion.split("MSIE");
                version = parseFloat(temp[1]);
                if (version<=6.5) obj.style.height = h + 'px';
            }
        }
    }

//     spans=document.getElementsByTagName("span");
//     if(spans)
//     {
//         for(i=0; i<spans.length; i++)
//         {
//             with(spans[i])
//             {
//                 if(id && id.substring(0,1)=='!')
//                 {
//                     h = id.substring(1).split('|');
//                     s = '<a href="' + h[0];
//                     if(h[1] && h[1]!='') s += '" target="' + h[1];
//                     if(!h[2] && spans[i].style) h[2] = spans[i].style.cssText;
//                     if(h[2]&& h[2]!='') s+='" style="' + h[2];
//                     s += '">' + spans[i].innerHTML + '</a>';
//                     spans[i].innerHTML = s;
//                     if(h[3])
//                     {
//                         v = childNodes[0];
//                         v.id = 'pic|' + h[3] + '|' + h[4] + '|' + h[5];
//                         v.onmouseover = function() { st1(this.id); };
//                         v.onmouseout = function() { ht(); }
//                     }
//                 }
//             }
//         }
//     }
}

