//DETECT
var browserlang = navigator.language;
var lang = navigator.language;
var browser = navigator.appName;
var IE = navigator.appName == "Microsoft Internet Explorer";
var CHROME = navigator.userAgent.toLowerCase().indexOf('chrome') > -1;
var MOZ = ( navigator.appName == "Netscape" && !CHROME ) ? true : false;
var OPERA = navigator.appName == "Opera";
var SAFARI = navigator.userAgent.toLowerCase().indexOf('safari/') != -1;
var os = navigator.userAgent;
if ( IE ){
	browserlang = navigator.browserLanguage;
}
if ( browserlang.length > "2" ){
	browserlang = browserlang.substr( 0, 2 );
}
var messages = new Array();
messages["de"] = new Array();
messages["en"] = new Array();
//MESSAGES
messages["en"]["BYE"] = "BRAVO!!! NOW YOU ARE PREPARED FOR PAPERMINT!!! CHOOSE PLAY PAPERMINT AND START! HAVE FUN! ";			
messages["en"]["WELCOME"] = "Welcome to Papermint! Nice to see you here! Papermint is a great place for everyone... almost... Are YOU ready for the crazy world of Papermint? (we bet you are after this entertaining quiz and the loading is done;)";
messages["en"]["DESC"] = "You will see some Objects from the Papermint world - answer the Questions. If you have more than 5 Questions right - you are ready and additionally you will win mint what you can use for buying funky Papermint items in the Papermint world!";
messages["en"]["STARTQUIZ_NOTREADY"] = "ANYWAY... You have to learn something! Let's start!!!";
messages["en"]["STARTQUIZ_READY"] = "cOOOOLLL Let's start!!!";

messages["en"]["ANSWER_RIGHT"] = "<b>CONGRATZ!</b><br> You are absolutely right! We look forward to welcoming you as a future citizen of the Papermint world!";
messages["en"]["ANSWER_WRONG"] = "OOPS! Guess you just accidentally clicked on the wrong answer?";

messages["en"]["QUESTION1"] = "Should you talk to this strange looking lady? ";
messages["en"]["QUESTION1_A"] = "<br><br>"+"<input type='radio' value='yes' onClick='answer(\"1\",\"a\")' class='radiobutton'> "+"<b>YES</b><br><i>Roberta is an ancient paper robot helping you on your first steps in the wide world of Papermint. Sometimes a bit over-motivated, but nice. Why not help improve her human messagesuage skills?</i>";
messages["en"]["QUESTION1_B"] = "<br><br>"+"<input type='radio' value='yes' onClick='answer(\"1\",\"b\")' class='radiobutton'> "+"<b>NO</b><br><i>This old lady likes to use her giant scissors on you sweet paper people walking by. If you don't want to continue your way with your head cut off, then better avoid her.</i>";
messages["en"]["QUESTION1_EXP"] = "<br><br>Roberta is a robot made from paper who wants to improve her human language skills. Some think she is a bit annoying as she just talks to anyone. However, deep inside her CPU she is a real good character. She also knows quite a bit of Papermint, so you should spend some time listening to her.OOPS! Guess you just accidentally clicked on the wrong answer?";
//HOUSE
messages["en"]["QUESTION2"] = "What can you do in this house? Is this a house anyway? ";
messages["en"]["QUESTION2_A"] = "<br><br>"+"<input type='radio' value='yes' onClick='answer(\"2\",\"a\")' > "+"<b>Yes</b> <br><i>Of course this is a house! Why should buildings in a paper world need roofs and boring garden fences? </i>";
messages["en"]["QUESTION2_B"] = "<br><br>"+"<input type='radio' value='yes' onClick='answer(\"2\",\"b\")' > "+"<b>No</b> <br><i>Of course NOT: Houses have to be built of bricks or prefabricated parts made of grey concrete. They have to have windows, doors and garages. Only wackos would live in a strawberry? Or even a whale or a bunny???</i>";
messages["en"]["QUESTION2_EXP"] = "<br><br>As Papermint houses might sometimes look like whales, strawberries or just a flash: MIND THE ICON! Icons also show you whether the house is a flat, a shop, a drama school, a night club or a design studio.";

//SIGNS
messages["en"]["QUESTION3"] = "What are these things? ";
messages["en"]["QUESTION3_A"] = "<br><br>"+"<input type='radio' value='yes' onClick='answer(\"3\",\"a\")' > "+"<b>Powerful zig-zag paper shuriken.</b> <br><i>When I collect enough of them I can cut through the mantle of the Papermint earth and see what's underneath the paper ground!</i>";
messages["en"]["QUESTION3_B"] = "<br><br>"+"<input type='radio' value='yes' onClick='answer(\"3\",\"b\")' > "+"<b>Icons designating the purpose of buildings:</b> <br><i>flat, fashion boutique, furniture store, drama school, night club, design studio, ware house or yet to designate function by you.</i>";
messages["en"]["QUESTION3_EXP"] = "<br><br>If you wanna find your way through the world of Papermint please mind these signs. These icons are to find on all buildings and explain the function of the particular house: flat, fashion boutique, furniture store, drama school, night club, design studio, ware house or yet to designate function by you.";

//HELP
messages["en"]["QUESTION4"] = "What's this button for?";
messages["en"]["QUESTION4_A"] = "<br><br>"+"<input type='radio' value='yes' onClick='answer(\"4\",\"a\")' > "+"This button will help you in your struggle to find the world formula and the answer to all your questions.";
messages["en"]["QUESTION4_B"] = "<br><br>"+"<input type='radio' value='yes' onClick='answer(\"4\",\"b\")' > "+"This button, when pressed, will activate a lethal computer virus leading to the end of the world as we know it.";
messages["en"]["QUESTION4_EXP"] = "<br><br>Sorry, this button is not lethal. It gives you some ideas of what you can actually in Papermint. It is the manual of how to find WORLD FORMULA so to say! However, it is just a guide. Go and try some of the things suggested and have fun...but in the end it is up to you alone to find the meaning of your Papermint life!";
//ACHIEVEMENT
messages["en"]["QUESTION5"] = "How can you pown'em all in Papermint?";
messages["en"]["QUESTION5_A"] = "<br><br>"+"<input type='radio' value='yes' onClick='answer(\"5\",\"a\")' > "+"<b>Papermint is a girl game.</b> <br><i>Girl games should not contain competitive hassles. This is the princess button that automatically creates a personal crown that can be found in the inventory.<i>";
messages["en"]["QUESTION5_B"] = "<br><br>"+"<input type='radio' value='yes' onClick='answer(\"5\",\"b\")' > "+"<b>There are many things to achieve in Papermint and rule</b>: <br><i> Be the most creative and become a famous fashion designer, be a social wizard and become a celebrity, explore the oceans and find islands others can just dream of... click on this button to find out more.</i>";
messages["en"]["QUESTION5_EXP"] = "<br><br>Girls just wanna have fun too! There are many things to achieve in Papermint and rule: Be the most creative and become a famous fashion designer, be a social wizard and become a celebrity, explore the oceans and find islands others can just dream of... click on this button to find out more.";

//MONEY
messages["en"]["QUESTION6"] = "Will this little plant make you rich?";
messages["en"]["QUESTION6_A"] = "<br><br>"+"<input type='radio' value='yes' onClick='answer(\"6\",\"a\")' > "+"<b>Yes</b> <br><i>This is mint. Mint is rare and precious. It is like a currency in Papermint and you can deal it for many things. But harvest it wisely and make sure to leave one last plant always.</i>";
messages["en"]["QUESTION6_B"] = "<br><br>"+"<input type='radio' value='yes' onClick='answer(\"6\",\"b\")' > "+"<b>No</b> <br><i>That little planty? Never! It rather is a weed that should be made extinct so that the gorgeous paper plants can grow. Proper plants provide a whole range of colours that can be used to dye clothes and hair.</i>";
messages["en"]["QUESTION6_EXP"] = "<br><br>This is mint and mint is rare and precious as it can be used like a currency in Papermint. You can deal it for many things. But harvest it wisely and make sure to leave one last plant always. Mint does not grow on places where all other mints have been wiped out and the ugly rant weed is taking over.";

//PLANT
messages["en"]["QUESTION7"] = "What is this?";
messages["en"]["QUESTION7_A"] = "<br><br>"+"<input type='radio' value='yes' onClick='answer(\"7\",\"a\")' > "+"<b>A plant.</b><br>Plants come in a vast variety of shapes and provide colours you can collect, extract and use to dye your hair and clothes. Or sell them to the greedy greasy colour dealer.";
messages["en"]["QUESTION7_B"] = "<br><br>"+"<input type='radio' value='yes' onClick='answer(\"7\",\"b\")' > "+"<b>A sculpture</b><br>made by a crazy graphic artist dreaming her hours away at work with the quirky Papermint development team.";
messages["en"]["QUESTION7_EXP"] = "<br><br>This is indeed a plant. Plants come in a vast variety of shapes and provide colours you can collect, extract and use to dye your hair and clothes. Or sell them to the greedy greasy colour dealer. Anyway... Answer B is not THAT wrong as well.";

//WALK
messages["en"]["QUESTION8"] = "How can a paper doll walk btw?";
messages["en"]["QUESTION8_A"] = "<br><br>"+"<input type='radio' value='yes' onClick='answer(\"8\",\"a\")' > "+"<b>Intelligent paper dolls use the arrow buttons to move.</b><br> The extremely versed ones even use the right mouse button to walk around.";
messages["en"]["QUESTION8_B"] = "<br><br>"+"<input type='radio' value='yes' onClick='answer(\"8\",\"b\")' > "+"<b>Paper dolls just wait until the wind blows them off their delicate papery feet.</b>";
messages["en"]["QUESTION8_EXP"] = "<br><br>Don't be shy to ask! Intelligent paper dolls use the arrow buttons to move. The extremely versed ones even use the right mouse button to walk around. Fold your way through Papermint!";

//MINI-MAP - FRIEND FINDER
messages["en"]["QUESTION9"] = "What to do if you get lost in the vast lands of Papermint?";
messages["en"]["QUESTION9_A"] = "<br><br>"+"<input type='radio' value='yes' onClick='answer(\"9\",\"a\")' > "+"<b>Don't be afraid!</b><br> <i>There is a mini-map just in the upper right corner of your screen. It even includes practical functions like a compass and a friends-finder!</i>";
messages["en"]["QUESTION9_B"] = "<br><br>"+"<input type='radio' value='yes' onClick='answer(\"9\",\"b\")' > "+"<b>Escape!</b><br> <i> Just turn into a paper plane and fly through the paper clouds. Be careful not to get a bad burn when too close to the paper sun though!</i>";
messages["en"]["QUESTION9_EXP"] = "<br><br>There is a mini-map just in the upper right corner of your screen. It even includes practical functions like a compass and a friends-finder! Being a paper plane is also nice though... so is being a boat  :)  Just do it if you can!";

//CHAT CHANNELS
messages["en"]["QUESTION10"] = "Do you enjoy to permanently get bothered by the sermon of the other paper people in the chat?";
messages["en"]["QUESTION10_A"] = "<br><br>"+"<input type='radio' value='yes' onClick='answer(\"10\",\"a\")' > "+"<b>Yes</b> <i>I'm interested in the fate of others. True life tells the best stories. Reality chat deluxe! I don't wanna miss a thing!</i>";
messages["en"]["QUESTION10_B"] = "<br><br>"+"<input type='radio' value='yes' onClick='answer(\"10\",\"b\")' > "+"<b>No</b> <i>I prefer selecting a chat channel so that I can only hear the things I want, filtered according to my location. I just click on \"surrounding\", \"zone\" or \"world\" and here we go!</i>";
messages["en"]["QUESTION10_EXP"] = "<br><br>Really? Just in case: by selecting a chat channel you can only hear the things you want, filtered according to your loca tion. Just click on \"surrounding\", \"zone\" or \"world\" and here you go!";

//CHANGE PERSPECTIVE
messages["en"]["QUESTION11"] = "What is this button for?";
messages["en"]["QUESTION11_A"] = "<br><br>"+"<input type='radio' value='yes' onClick='answer(\"11\",\"a\")' > "+"I can turn into a paper ball and can be kicked by others. *yay*";
messages["en"]["QUESTION11_B"] = "<br><br>"+"<input type='radio' value='yes' onClick='answer(\"11\",\"b\")' > "+"I can change perspective and see things from an above angle. Wohohooo!";
messages["en"]["QUESTION11_EXP"] = "<br><br>With this button you can change perspective and see things from an above angle. It is quite helpful sometimes. And you feel like a bird!";

/////////////////////////////////////////
//GERMAN
/////////////////////////////////////////
messages["de"]["BYE"] = "BRAVO!!! NOW YOU ARE PREPARED FOR PAPERMINT!!! CHOOSE PLAY PAPERMINT AND START! HAVE FUN! ";			
messages["de"]["WELCOME"] = "Welcome to Papermint! Nice to see you here! Papermint is a great place for everyone... almost... Are YOU ready for the crazy world of Papermint? (we bet you are after this entertaining quiz and the loading is done;)";
messages["de"]["DESC"] = "Du wirst verschiedne Objects from the Papermint world - answer the Questions. If you have more than 5 Questions right - you are ready and additionally you will win mint what you can use for buying funky Papermint items in the Papermint world!";
messages["de"]["STARTQUIZ_NOTREADY"] = "MACHT NIX... You have to learn something! Let's start!!!";
messages["de"]["STARTQUIZ_READY"] = "cOOOOLLL Fangen wir an!!!";

messages["de"]["ANSWER_RIGHT"] = "<b>CONGRATZ!</b><br> <i>You are absolutely right! We look forward to welcoming you as a future citizen of the Papermint world!</i>";
messages["de"]["ANSWER_WRONG"] = "<b>OOPS!<br> Guess you just accidentally clicked on the wrong answer?</b>";

//ROBOTANT
messages["de"]["QUESTION1"] = "Should you talk to this strange looking lady? ";
messages["de"]["QUESTION1_A"] = "<br><br>"+"<input type='radio' value='yes' onClick='answer(\"1\",\"a\")' class='radiobutton'> "+"<b>YES</b><br><i>Roberta is an ancient paper robot helping you on your first steps in the wide world of Papermint. Sometimes a bit over-motivated, but nice. Why not help improve her human language skills?</i>";
messages["de"]["QUESTION1_B"] = "<br><br>"+"<input type='radio' value='yes' onClick='answer(\"1\",\"b\")' class='radiobutton'> "+"<b>NO</b><br><i>This old lady likes to use her giant scissors on you sweet paper people walking by. If you don't want to continue your way with your head cut off, then better avoid her.</i>";
messages["de"]["QUESTION1_EXP"] = "<br><br>Roberta is a robot made from paper who wants to improve her human language skills. Some think she is a bit annoying as she just talks to anyone. However, deep inside her CPU she is a real good character. She also knows quite a bit of Papermint, so you should spend some time listening to her.OOPS! Guess you just accidentally clicked on the wrong answer?";

//HOUSE
messages["de"]["QUESTION2"] = "What can you do in this house? Is this a house anyway? ";
messages["de"]["QUESTION2_A"] = "<br><br>"+"<input type='radio' value='yes' onClick='answer(\"2\",\"a\")' > "+"<b>Yes</b> <br><i>Of course this is a house! Why should buildings in a paper world need roofs and boring garden fences? </i>";
messages["de"]["QUESTION2_B"] = "<br><br>"+"<input type='radio' value='yes' onClick='answer(\"2\",\"b\")' > "+"<b>No</b> <br><i>Of course NOT: Houses have to be built of bricks or prefabricated parts made of grey concrete. They have to have windows, doors and garages. Only wackos would live in a strawberry? Or even a whale or a bunny???</i>";
messages["de"]["QUESTION2_EXP"] = "<br><br>As Papermint houses might sometimes look like whales, strawberries or just a flash: MIND THE ICON! Icons also show you whether the house is a flat, a shop, a drama school, a night club or a design studio.";

//SIGNS
messages["de"]["QUESTION3"] = "What are these things? ";
messages["de"]["QUESTION3_A"] = "<br><br>"+"<input type='radio' value='yes' onClick='answer(\"3\",\"a\")' > "+"<b>Powerful zig-zag paper shuriken.</b> <br><i>When I collect enough of them I can cut through the mantle of the Papermint earth and see what's underneath the paper ground!</i>";
messages["de"]["QUESTION3_B"] = "<br><br>"+"<input type='radio' value='yes' onClick='answer(\"3\",\"b\")' > "+"<b>Icons designating the purpose of buildings:</b> <br><i>flat, fashion boutique, furniture store, drama school, night club, design studio, ware house or yet to designate function by you.</i>";
messages["de"]["QUESTION3_EXP"] = "<br><br>If you wanna find your way through the world of Papermint please mind these signs. These icons are to find on all buildings and explain the function of the particular house: flat, fashion boutique, furniture store, drama school, night club, design studio, ware house or yet to designate function by you.";

//HELP
messages["de"]["QUESTION4"] = "What's this button for?";
messages["de"]["QUESTION4_A"] = "<br><br>"+"<input type='radio' value='yes' onClick='answer(\"4\",\"a\")' > "+"This button will help you in your struggle to find the world formula and the answer to all your questions.";
messages["de"]["QUESTION4_B"] = "<br><br>"+"<input type='radio' value='yes' onClick='answer(\"4\",\"b\")' > "+"This button, when pressed, will activate a lethal computer virus leading to the end of the world as we know it.";
messages["de"]["QUESTION4_EXP"] = "<br><br>Sorry, this button is not lethal. It gives you some ideas of what you can actually in Papermint. It is the manual of how to find WORLD FORMULA so to say! However, it is just a guide. Go and try some of the things suggested and have fun...but in the end it is up to you alone to find the meaning of your Papermint life!";

//ACHIEVEMENT
messages["de"]["QUESTION5"] = "How can you pown'em all in Papermint?";
messages["de"]["QUESTION5_A"] = "<br><br>"+"<input type='radio' value='yes' onClick='answer(\"5\",\"a\")' > "+"<b>Papermint is a girl game.</b> <br><i>Girl games should not contain competitive hassles. This is the princess button that automatically creates a personal crown that can be found in the inventory.<i>";
messages["de"]["QUESTION5_B"] = "<br><br>"+"<input type='radio' value='yes' onClick='answer(\"5\",\"b\")' > "+"<b>There are many things to achieve in Papermint and rule</b>: <br><i> Be the most creative and become a famous fashion designer, be a social wizard and become a celebrity, explore the oceans and find islands others can just dream of... click on this button to find out more.</i>";
messages["de"]["QUESTION5_EXP"] = "<br><br>Girls just wanna have fun too! There are many things to achieve in Papermint and rule: Be the most creative and become a famous fashion designer, be a social wizard and become a celebrity, explore the oceans and find islands others can just dream of... click on this button to find out more.";

//MONEY
messages["de"]["QUESTION6"] = "Will this little plant make you rich?";
messages["de"]["QUESTION6_A"] = "<br><br>"+"<input type='radio' value='yes' onClick='answer(\"6\",\"a\")' > "+"<b>Yes</b> <br><i>This is mint. Mint is rare and precious. It is like a currency in Papermint and you can deal it for many things. But harvest it wisely and make sure to leave one last plant always.</i>";
messages["de"]["QUESTION6_B"] = "<br><br>"+"<input type='radio' value='yes' onClick='answer(\"6\",\"b\")' > "+"<b>No</b> <br><i>That little planty? Never! It rather is a weed that should be made extinct so that the gorgeous paper plants can grow. Proper plants provide a whole range of colours that can be used to dye clothes and hair.</i>";
messages["de"]["QUESTION6_EXP"] = "<br><br>This is mint and mint is rare and precious as it can be used like a currency in Papermint. You can deal it for many things. But harvest it wisely and make sure to leave one last plant always. Mint does not grow on places where all other mints have been wiped out and the ugly rant weed is taking over.";

//PLANT
messages["de"]["QUESTION7"] = "What is this?";
messages["de"]["QUESTION7_A"] = "<br><br>"+"<input type='radio' value='yes' onClick='answer(\"7\",\"a\")' > "+"<b>A plant.</b><br>Plants come in a vast variety of shapes and provide colours you can collect, extract and use to dye your hair and clothes. Or sell them to the greedy greasy colour dealer.";
messages["de"]["QUESTION7_B"] = "<br><br>"+"<input type='radio' value='yes' onClick='answer(\"7\",\"b\")' > "+"<b>A sculpture</b><br>made by a crazy graphic artist dreaming her hours away at work with the quirky Papermint development team.";
messages["de"]["QUESTION7_EXP"] = "<br><br>This is indeed a plant. Plants come in a vast variety of shapes and provide colours you can collect, extract and use to dye your hair and clothes. Or sell them to the greedy greasy colour dealer. Anyway... Answer B is not THAT wrong as well.";

//WALK
messages["de"]["QUESTION8"] = "How can a paper doll walk btw?";
messages["de"]["QUESTION8_A"] = "<br><br>"+"<input type='radio' value='yes' onClick='answer(\"8\",\"a\")' > "+"<b>Intelligent paper dolls use the arrow buttons to move.</b><br> The extremely versed ones even use the right mouse button to walk around.";
messages["de"]["QUESTION8_B"] = "<br><br>"+"<input type='radio' value='yes' onClick='answer(\"8\",\"b\")' > "+"<b>Paper dolls just wait until the wind blows them off their delicate papery feet.</b>";
messages["de"]["QUESTION8_EXP"] = "<br><br>Don't be shy to ask! Intelligent paper dolls use the arrow buttons to move. The extremely versed ones even use the right mouse button to walk around. Fold your way through Papermint!";

//MINI-MAP - FRIEND FINDER
messages["de"]["QUESTION9"] = "What to do if you get lost in the vast lands of Papermint?";
messages["de"]["QUESTION9_A"] = "<br><br>"+"<input type='radio' value='yes' onClick='answer(\"9\",\"a\")' > "+"<b>Don't be afraid!</b><br> <i>There is a mini-map just in the upper right corner of your screen. It even includes practical functions like a compass and a friends-finder!</i>";
messages["de"]["QUESTION9_B"] = "<br><br>"+"<input type='radio' value='yes' onClick='answer(\"9\",\"b\")' > "+"<b>Escape!</b><br> <i> Just turn into a paper plane and fly through the paper clouds. Be careful not to get a bad burn when too close to the paper sun though!</i>";
messages["de"]["QUESTION9_EXP"] = "<br><br>There is a mini-map just in the upper right corner of your screen. It even includes practical functions like a compass and a friends-finder! Being a paper plane is also nice though... so is being a boat  :)  Just do it if you can!";


//CHAT CHANNELS
messages["de"]["QUESTION10"] = "Do you enjoy to permanently get bothered by the sermon of the other paper people in the chat?";
messages["de"]["QUESTION10_A"] = "<br><br>"+"<input type='radio' value='yes' onClick='answer(\"10\",\"a\")' > "+"<b>Yes</b> <i>I'm interested in the fate of others. True life tells the best stories. Reality chat deluxe! I don't wanna miss a thing!</i>";
messages["de"]["QUESTION10_B"] = "<br><br>"+"<input type='radio' value='yes' onClick='answer(\"10\",\"b\")' > "+"<b>No</b> <i>I prefer selecting a chat channel so that I can only hear the things I want, filtered according to my location. I just click on \"surrounding\", \"zone\" or \"world\" and here we go!</i>";
messages["de"]["QUESTION10_EXP"] = "<br><br>Really? Just in case: by selecting a chat channel you can only hear the things you want, filtered according to your loca tion. Just click on \"surrounding\", \"zone\" or \"world\" and here you go!";

//CHANGE PERSPECTIVE
messages["de"]["QUESTION11"] = "What is this button for?";
messages["de"]["QUESTION11_A"] = "<br><br>"+"<input type='radio' value='yes' onClick='answer(\"11\",\"a\")' > "+"I can turn into a paper ball and can be kicked by others. *yay*";
messages["de"]["QUESTION11_B"] = "<br><br>"+"<input type='radio' value='yes' onClick='answer(\"11\",\"b\")' > "+"I can change perspective and see things from an above angle. Wohohooo!";
messages["de"]["QUESTION11_EXP"] = "<br><br>With this button you can change perspective and see things from an above angle. It is quite helpful sometimes. And you feel like a bird!";

//STATUS MESSAGES LOADING AND STARTUP

messages["de"]["STATUS_LOADING"] = "THE PAPERMINT WORLD IS LOADING!";
messages["de"]["STATUS_LOGIN"] = "PAPERMINT IS READY FOR YOU TO LOGIN!";
messages["de"]["STATUS_ERROR"] = "SORRY - AN ERROR OCCURED DURING THE LOADING OF PAPERMINT!";
messages["de"]["STATUS_TRUST"] = "YOU HAVE TO TRUST PAPERMINT IF YOU WANT TO PLAY IT";
messages["de"]["STATUS_SUCCESS"] = "PAPERMINT IS FULLY LOADED!";

messages["en"]["STATUS_LOADING"] = "THE PAPERMINT WORLD IS LOADING!";
messages["en"]["STATUS_LOGIN"] = "PAPERMINT IS READY FOR YOU TO LOGIN!";
messages["en"]["STATUS_ERROR"] = "SORRY - AN ERROR OCCURED DURING THE LOADING OF PAPERMINT!";
messages["en"]["STATUS_TRUST"] = "YOU HAVE TO TRUST PAPERMINT IF YOU WANT TO PLAY IT";
messages["en"]["STATUS_SUCCESS"] = "PAPERMINT IS FULLY LOADED!";

messages["en"]["PLEASE_TRUST"] = "When you want to play Papermint you will see a security warning - when it appears just click on trust or run.";
messages["de"]["PLEASE_TRUST"] = "When you want to play Papermint you will see a security warning - when it appears just click on trust or run.";


messages["en"]["NO_JAVA"] = "It seems you don't have Java installed on your Computer. Go to the <a href='http://www.java.com' target='_blank'>Java Website</a> and install Java or Download the Papermint Installer instead.";
messages["de"]["NO_JAVA"] = "It seems you don't have Java installed on your Computer. Go to the <a href='http://www.java.com' target='_blank'>Java Website</a> and install Java or Download the Papermint Installer instead.";

messages["en"]["WRONG_JAVA_VERSION"] = "You need Java 1.5 or later.!";
messages["de"]["WRONG_JAVA_VERSION"] = "Es wird mindestens Java 1.5 Version benötigt!";
messages["en"]["FAIL"] = "An error occured during loading. Please reload the page and try again!";
messages["de"]["FAIL"] = "Es ist ein Fehler im Ladeprozess passiert. Bitte die Seite neu laden und nochmals probieren!";

messages["en"]["LEAVE_PAGE"] = "Papermint will be closed when you close this page.";
messages["de"]["LEAVE_PAGE"] = "Wenn du die Seite schließt wird Papermint geschlossen.";

messages["en"]["RUNNING_TWICE"] = "Papermint is running twice. Please close one Browser Window.";
messages["de"]["RUNNING_TWICE"] = "Papermint ist zweimal gestartet. Bitte ein Browser Fenster schließen.</p>";

messages["en"]["RESTART_1610"] = "<p><a href='javascript:restartApplet()'>Restart Papermint</a></p>";
messages["de"]["RESTART_1610"] = "<p><a href='javascript:restartApplet()'>Restart Papermint</a></p>";

messages["en"]["RESTART_15"] = "<p>You have to restart your Browser to get the Security Window again!</p>";
messages["de"]["RESTART_15"] = "<p>Du mußt deinen Browser neu starten um die Warnung nochmals zu bekommen!</p>";

messages["en"]["MAC"] = new Array();
messages["en"]["PC"] = new Array();
messages["de"]["PC"] = new Array();
messages["de"]["MAC"] = new Array();

messages["en"]["SEC_WARNING"] = "When you want to play Papermint you will probably see a security warning like the one below. When it appears just click on the <b>trust</b> or <b>run</b> button to continue.";
messages["de"]["SEC_WARNING"] = "When you want to play Papermint you will probably see a security warning like the one below. When it appears just click on the <b>trust</b> or <b>run</b> button to continue.";
messages["en"]["PM_LOADING"] = 'Papermint is loading for you. During the loading you can <b>create your character</b> in the PaperLab or/and <b>play the Papermint Quiz</b> to be prepared for a good start in Papermint. if you are here for the first time it can take a some minutes till Papermint is loaded - I will inform you as soon it is done. I am looking forward to meet you :)';
messages["de"]["PM_LOADING"] = 'Papermint is loading for you. During the loading you can <b>create your character</b> in the PaperLab or/and <b>play the Papermint Quiz</b> to be prepared for a good start in Papermint. if you are here for the first time it can take a some minutes till Papermint is loaded - I will inform you as soon it is done. I am looking forward to meet you :)';
messages["en"]["PM_READY_TAB"] = "Papermint is ready for you! Click on the <b>Play Papermint Tab</b> and log in! Can't wait to see you in there! Click the <b>fullscreen</b> button to play Papermint fullscreen in your browser.";
messages["de"]["PM_READY_TAB"] = "Papermint is ready for you! Click on the <b>Play Papermint Tab</b> and log in! Bis gleich in Papermint! Klicke den Fullscreen Button um Papermint in voller Größe in deinem Browser zu spielen!";
messages["en"]["PM_READY_WINDOW"] = "Papermint is ready for you and it is open now in an separate window! Log in and we meet in Papermint!";
messages["de"]["PM_READY_WINDOW"] = "Papermint is ready for you and it is open now in an separate window! Log in and we meet in Papermint!";

messages["de"]["usernameRequest"] = new Array();
messages["de"]["createCharacter"] = new Array();
messages["en"]["usernameRequest"] = new Array();
messages["en"]["createCharacter"] = new Array();

messages["de"]["usernameRequest"]["1"] = "Dieser Username steht noch zur Verfuegung!"; //success
messages["de"]["usernameRequest"]["2"] = "Dieser Username ist bereits vergeben!"; //fail
messages["de"]["usernameRequest"]["-1"] = "Ein Fehler ist aufgetreten, Error Code: -1"; //fail
messages["de"]["usernameRequest"]["-2"] = "Ein Fehler ist aufgetreten, Error Code: -2"; //fail
messages["de"]["usernameRequest"]["epicFail"] = "Ein Fehler ist aufgetreten"; //fail
messages["de"]["usernameRequest"]["usernameNotValid"] = "Der eingegebene Username ist nicht gueltig";
messages["de"]["usernameRequest"]["passwordNotValid"] = "Das eingegebene Passwort ist nicht gueltig";
messages["en"]["usernameRequest"]["1"] = "The username is avaliable!"; //success
messages["en"]["usernameRequest"]["2"] = "The username is already taken!"; //fail
messages["en"]["usernameRequest"]["-1"] = "An error occured, Error Code: -1"; //fail
messages["en"]["usernameRequest"]["-2"] = "An error occured, Error Code: -2"; //fail
messages["en"]["usernameRequest"]["epicFail"] = "An Error occured"; //fail
messages["en"]["usernameRequest"]["usernameNotValid"] = "The entered username is not valid"; //fail
messages["en"]["usernameRequest"]["passwordNotValid"] = "The entered password is not valid"; //fail

messages["de"]["createCharacter"]["1"] = "Ihr Character wurde erfolgreich erstellt."; //success
messages["de"]["createCharacter"]["2"] = "Dieser Character existiert bereits"; //fail
messages["de"]["createCharacter"]["3"] = "Falsche Spieler informationen"; //fail
messages["de"]["createCharacter"]["4"] = "Interner Server Error beim erstellen des Characters"; //fail
messages["de"]["createCharacter"]["5"] = "Der eingegebene Beta Code ist ungueltig"; //fail
messages["de"]["createCharacter"]["6"] = "Die maximale Useranzahl fuer diesen Beta Code ist erreicht"; //fail
messages["de"]["createCharacter"]["-1"] = "Ein Fehler ist aufgetreten, Error Code: -1"; //fail
messages["de"]["createCharacter"]["-2"] = "Ein Fehler ist aufgetreten, Error Code: -2"; //fail
messages["de"]["createCharacter"]["epicFail"] = "Ein Fehler ist aufgetreten"; //fail
messages["de"]["createCharacter"]["fieldsmissing"] = "Bitte fuellen sie alle Felder aus"; //fail
messages["de"]["createCharacter"]["retypepwd"] = "Passwörter stimmen nicht ueberein."; //fail
messages["de"]["createCharacter"]["legalterms"] = "Sie muessen die Geschäftsvereinbarungen akzeptieren."; //fail

messages["en"]["createCharacter"]["1"] = "Your character has been created"; //success
messages["en"]["createCharacter"]["2"] = "The character already exists"; //fail
messages["en"]["createCharacter"]["3"] = "Wrong player data"; //fail
messages["en"]["createCharacter"]["4"] = "Interner Server Error occured while creating the character"; //fail
messages["en"]["createCharacter"]["5"] = "The entered beta code is not valid"; //fail
messages["en"]["createCharacter"]["6"] = "The maximum usercount for this beta code has been reached"; //fail
messages["en"]["createCharacter"]["-1"] = "An error occured, Error Code: -1"; //fail
messages["en"]["createCharacter"]["-2"] = "An error occured, Error Code: -2"; //fail
messages["en"]["createCharacter"]["epicFail"] = "Ein Fehler ist aufgetreten"; //fail
messages["en"]["createCharacter"]["fieldsmissing"] = "Please fill out all fields"; //fail
messages["en"]["createCharacter"]["retypepwd"] = "Passwords differ."; //fail
messages["en"]["createCharacter"]["legalterms"] = "Please accept the legal terms."; //fail

function getMessage( _key ){
	return this.messages[browserlang][_key];
}
