// _  _                                                     
//(_)(_)                                                    
// _  _  ___  ____ _   _  ____ ____ ____    ____ ___  ____  
//| || |/___)/ _  | | | |/ _  ) _  )  _ \  / ___) _ \|    \ 
//| || |___ | | | | |_| ( (/ ( (/ /| | | |( (__| |_| | | | |
//|_|| (___/ \_|| |\____|\____)____)_| |_(_)____)___/|_|_|_|
// (__/         |_|                                         
//=========================================================================================
// 
//=========================================================================================

     function breezah(text)
     {

       text = text.toLowerCase();
       var textArray = text.split(" ");
       var output = "";
       var arrayLength = textArray.length;
       var wordLength;

       for (var i = 0; i < arrayLength; i++)
       {

         wordLength = textArray[i].length;

       	if (textArray[i].indexOf("kusjes") != -1)
          output += "xxx";
         else if (textArray[i].indexOf("grappig") != -1)
          output += "lolol";
         else if (textArray[i].indexOf("jongen") != -1)
          output += "thug";
         else if (textArray[i].indexOf("dan") != -1)
          output += "als";
          else if (textArray[i].indexOf("enige") != -1)
          output += "enigste";
          else if (textArray[i].indexOf("jij") != -1)
          output += "jouw";
           else if (textArray[i].indexOf("mijn") != -1)
          output += "me";
         else if (textArray[i].indexOf("meisje") != -1)
          output += "chickie";
         else if (textArray[i].indexOf("vriendin") != -1)
          output += "smaatjuh";
          else if (textArray[i].indexOf("cool") != -1)
          output += "kewl";
         else
         {

           for (var j = 0; j < wordLength; j++)
           {
             
             if (textArray[i].charAt(j) == textArray[i].charAt(j+1))
             {
   if (Math.floor(Math.random() * 100) % 3 ){
               output += textArray[i].charAt(j);
               j++;}

             }          
             
             
             else if (textArray[i].charAt(j) == "b")
             {

               output += "b";

               if (textArray[i].charAt(j+1) == "e")
                j++;

             }  


             else if (textArray[i].charAt(j) == "c")
              if (textArray[i].charAt(j+1) == "k")
              {

                output += "k";
                j++;

              }  
              else
               output +="c";


             else if (textArray[i].charAt(j) == "e")
              if (Math.floor(Math.random() * 100) % 3 == 2)
               output += "3";
              else
               output += "e";
              else if (textArray[i].charAt(j) == "a")
              if (Math.floor(Math.random() * 100) % 3 == 2)
               output += "4";
              else
               output += "a";
               else if (textArray[i].charAt(j) == "s")
              if (Math.floor(Math.random() * 100) % 3 == 2)
               output += "$";
              else
               output += "s";

             else if (textArray[i].charAt(j) == "e")
             {

             if (textArray[i].charAt(j+2) == "e")
               {

                 output += "ie" + textArray[i].charAt(j+1);
                 j+= 2;

               }  


               else if (textArray[i].charAt(j+1) == "e")
               {

                 output += "ei";
                 j++;

               }  

               else
                output += "i";

             }  

              else if (textArray[i].charAt(j) != "." && textArray[i].charAt(j) != "!" && textArray[i].charAt(j) != "?" && textArray[i].charAt(j) != "'" && textArray[i].charAt(j) != ";" && textArray[i].charAt(j) != "," && textArray[i].charAt(j) != ":" && textArray[i].charAt(j) != "\"" && textArray[i].charAt(j) != "`" && textArray[i].charAt(j) != "~")
              output += textArray[i].charAt(j);

              if ((textArray[i].charAt(j+1) == "j")&&(textArray[i].charAt(j+2) == "e"))
             {

               output += "juh";

               j+=2;

             } 
             if ((textArray[i].charAt(j+1) == "c")&&(textArray[i].charAt(j+2) == "h"))
             {

               output += "g";

               j+=2;

             } 
              
           }  

         }  


         if (textArray[i].indexOf(".") != -1 || textArray[i].indexOf("!") != -1 || textArray[i].indexOf("?") != -1)
         {


           var placeInWord;


           if (textArray[i].indexOf("!") != -1)
            var firstCharacter = "!";
           else if (textArray[i].indexOf(".") != -1)
            var firstCharacter = ".";
           else if (textArray[i].indexOf("?") != -1)
            var firstCharacter = "?";

           if ((textArray[i].indexOf(".") < textArray[i].indexOf(firstCharacter)) && textArray[i].indexOf(".") != -1)
            firstCharacter = ".";

           if ((textArray[i].indexOf("?") < textArray[i].indexOf(firstCharacter)) && textArray[i].indexOf("?") != -1)
            firstCharacter = "?";


           placeInWord = textArray[i].indexOf(firstCharacter);


           if (textArray[i].indexOf("?") != -1)
           {

             output += "?";

           }  

           for ( ; textArray[i].charAt(placeInWord) == "." || textArray[i].charAt(placeInWord) == "!" || textArray[i].charAt(placeInWord) == "?"; placeInWord++)
           {

             if (textArray[i].charAt(placeInWord) == "!" || textArray[i].charAt(placeInWord) == ".")
             {

               for (var k = (Math.floor(Math.random() * 100) % 5) + 4; k > 0; k--)
                if (Math.floor(Math.random() * 100) % 2)
                 output += "!";
                else
                 output += "1";

             }  
             else if (textArray[i].charAt(placeInWord) == "?")
             {

               for (var k = (Math.floor(Math.random() * 100) % 5) + 4; k > 0; k--)
                if (Math.floor(Math.random() * 100) % 2)
                 output += "?";
                else
                 output += "!";

             }  

           }  

       
           if (Math.floor(Math.random() * 100) % 4)
            output += " hihi";
           if (Math.floor(Math.random() * 100) % 4)
            output += " lol";
           if (Math.floor(Math.random() * 100) % 4)
            output += " duzz";
             if (Math.floor(Math.random() * 100) % 4)
            output += " *one luv*";

         }  

      
         if (i != arrayLength - 1 && textArray[i+1] != "")
          output += " ";

       }  

       
var lengte = output.length;
var output2="";
for (var gn = 0; gn < lengte; gn++)
       {
	       if (gn%2==0)
	      	output2 += output.charAt(gn).toUpperCase();
	       else
	       	output2 += output.charAt(gn);
       }

       document.translate.translated.value = output2;

     }  

