window.InitUserScripts = function()
{
var player = GetPlayer();
var object = player.object;
var once = player.once;
var addToTimeline = player.addToTimeline;
var setVar = player.SetVar;
var getVar = player.GetVar;
var update = player.update;
var pointerX = player.pointerX;
var pointerY = player.pointerY;
var showPointer = player.showPointer;
var hidePointer = player.hidePointer;
var slideWidth = player.slideWidth;
var slideHeight = player.slideHeight;
window.Script1 = function()
{
  var myWindow = window.open("","Εκτύπωση","width=810,height=900,scrollbars=1,resizable=1");
var player=GetPlayer();
var Displayhmerologio=player.GetVar("hmerologio");

var activitytext1=player.GetVar("deytera");
var activitytext2=player.GetVar("triti");
var activitytext3=player.GetVar("tetarti");
var activitytext4=player.GetVar("pempti");
var activitytext5=player.GetVar("paraskevi");
var activitytext6=player.GetVar("sabbato");
var activitytext7=player.GetVar("kyriaki");

var currentDate = new Date()
var day = currentDate.getDate()
var month = currentDate.getMonth() + 1
var year = currentDate.getFullYear();
var DisplayDate = day + "/" + month + "/" +year;


var contents = "<html><head><script type='text/javascript'>function printer() {document.getElementById('printButton').style.display='none';window.print();document.getElementById('printButton').style.display='block';}</script></head><body style='width:90%;padding:20px;'>";
contents+="<div id='printButton' style='height:20px;padding:10px;margin-bottom:20px;text-align:center;'><button onclick='printer()'>Εκτύπωση</button></div>";

contents+="<div style='font-size:18px;font-weight:bold;margin-top:10px;text-align:center;'>Ψηφιακό Ημερολόγιο</div>";
contents+="<div style='font-size:18px;font-weight:bold;margin-top:10px;'>Όνομα: "+Displayhmerologio+"</div>";
contents+="<div style='font-size:18px;font-weight:bold;margin-top:10px;'>Ημερομηνία: "+DisplayDate+"</div>";
contents+="<div style='font-size:17px;margin-top:5px;'><hr /></div>";
contents+="<div style='font-size:17px;margin-top:5px;'>ΔΕΥΤΕΡΑ</div>";
contents+="<div style='font-size:17px;margin-top:5px;'>Η απάντησή σου:<br>"+activitytext1+"</div>";
contents+="<div style='font-size:17px;margin-top:5px;'>ΤΡΙΤΗ</div>";
contents+="<div style='font-size:17px;margin-top:5px;'>Η απάντησή σου:<br>"+activitytext2+"</div>";
contents+="<div style='font-size:17px;margin-top:5px;'>ΤΕΤΑΡΤΗ</div>";
contents+="<div style='font-size:17px;margin-top:5px;'>Η απάντησή σου:<br>"+activitytext3+"</div>";
contents+="<div style='font-size:17px;margin-top:5px;'>ΠΕΜΠΤΗ</div>";
contents+="<div style='font-size:17px;margin-top:5px;'>Η απάντησή σου:<br>"+activitytext4+"</div>";
contents+="<div style='font-size:17px;margin-top:5px;'>ΠΑΡΑΣΚΕΥΗ</div>";
contents+="<div style='font-size:17px;margin-top:5px;'>Η απάντησή σου:<br>"+activitytext5+"</div>";
contents+="<div style='font-size:17px;margin-top:5px;'>ΣΑΒΒΑΤΟ</div>";
contents+="<div style='font-size:17px;margin-top:5px;'>Η απάντησή σου:<br>"+activitytext6+"</div>";
contents+="<div style='font-size:17px;margin-top:5px;'>ΚΥΡΙΑΚΗ</div>";
contents+="<div style='font-size:17px;margin-top:5px;'>Η απάντησή σου:<br>"+activitytext7+"</div>";
contents+= "</body></html>";
myWindow.document.write(contents);
}

};
