


function positionScreenElements(){		

    var winH=findBrowserSize().height
    var winW=findBrowserSize().width

if (navigator.appName.indexOf("Microsoft")!=-1) {
    document.getElementById("content").style.height=(winH-88)+"px"
    document.getElementById("content").style.width=(winW-214)+"px"
    document.getElementById("contentBorder").style.height=(winH-80)+"px"
    document.getElementById("contentBorder").style.width=(winW-207)+"px"
    }

if (winH < 530){
    if(document.getElementById("musicControl") != null){
    document.getElementById("musicControl").style.top="5px"
    document.getElementById("musicControl").style.right="10px"
    }
    }
}





// ============================================================= //

function findBrowserSize(type){
// determine browser size
var winW, winH
if (parseInt(navigator.appVersion)>3) {
 if (navigator.appName=="Netscape") {
  winW = window.innerWidth;
  winH = window.innerHeight;
 }
 if (navigator.appName.indexOf("Microsoft")!=-1) {
  winW = document.body.offsetWidth;
  winH = document.body.offsetHeight;
 }
}
if(winW==null){winW=800;winH=450}

return{width: winW, height: winH}

}


function createCookie(name, value, days)
{
  if (days) {
    var date = new Date();
    date.setTime(date.getTime()+(days*24*60*60*1000));
    var expires = "; expires="+date.toGMTString();
    }
  else var expires = "";
  document.cookie = name+"="+value+expires+"; path=/";
}

function readCookie(name)
{
  var ca = document.cookie.split(';');
  var nameEQ = name + "=";
  for(var i=0; i < ca.length; i++) {
    var c = ca[i];
    while (c.charAt(0)==' ') c = c.substring(1, c.length); //delete spaces
    if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length, c.length);
    }
  return null;
}