The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
<meta charset="utf-8">
<script src="http://yui.yahooapis.com/3.6.0/build/yui/yui-min.js"></script>
<script src="http://code.jquery.com/jquery-latest.js"></script>
 <link href="http://127.0.0.1:5984/app/_design/base/basex.css" media="screen" rel="stylesheet" type="text/css">
  <link href="http://127.0.0.1:5984/app/_design/base/scope.css" media="screen" rel="stylesheet" type="text/css">
<style>

body{margin:100px;
width: 80%;
    zoom:0.9;
    margin: 1em;
    text-align: left;
    float:left;
    border-bottom: 1px dotted #cfcfcf;
wq

}

.listen{


}

#article-stats {
    margin: 0em auto;
    text-align: left;


}



.todo-view {
border-bottom: 1px dotted #CFCFCF;
overflow: hidden;
}
#todo-stats {
    margin: 0em auto;
    text-align: left;

}

#todo-list {
top:10px;
    max-width:200px;
    list-style: none;
    padding: 0;
    overflow: scoll;
}

#todo-stats,
.todo-clear { color: #777; }

.todo-clear { float: right; }

.todo-done .todo-content {
    color: #666;
    text-decoration: line-through;
}

.todo-edit,
.editing .todo-view { display: none; }

.editing .todo-edit { display: block; }

.todo-input {
    display: block;
    font-family: Helvetica, sans-serif;
    font-size: 15px;
    line-height: normal;
    margin: 5px auto 0;
    padding: 6px;
    width: 115px;
}

.todo-item {
    border-bottom: 1px dotted #cfcfcf;
    font-size: 15px;
    padding: 6px;

    position: relative;
}

.todo-label {
    color: #444;
    font-size: 15px;
    font-weight: bold;
    text-align: center;
}

.todo-remaining {
    color: #333;
    font-weight: bold;
}

.todo-remove {
    position: absolute;
    right: 0;
    top: 12px;
}

.todo-remove-icon {
    /*
    Delete icon courtesy of The Noun Project:
    http://thenounproject.com/noun/delete/
    background: url(../assets/app/remove.png) no-repeat;
    */
    display: block;
    height: 16px;
    opacity: 0.6;
    visibility: hidden;
    width: 23px;
}

.todo-remove:hover .todo-remove-icon { opacity: 1.0; }

.todo-hover .todo-remove-icon,
.todo-remove:focus .todo-remove-icon { visibility: visible; }

.editing .todo-remove-icon { visibility: hidden; }


.goin{
float:right;
display:inline;

}
#demo {


}
/*
 //   border-left: 1px solid black;
 //   border-right: 1px solid black;
//    font-weight:bold;
*/
.counter{
text-align:center;
font-size:1em;
display:inline;
color:orange;

}
#demo ul li {
    border-bottom: 1px dotted #CFCFCF;
    overflow: hidden;
    background-color: #fff;
    cursor: move;
    color:blue;
    width:300px:
    margin: 1em;

    list-style-type: none;
    z-index: 1;
    zoom: 1;
    text-align:left;
}
#play {
    position: relative;
    zoom: 1;
}
#drop {
    border: 1px solid black;
    background-color: #eee;
    height: 5px;
    color:#fff;
    width: 200px;
    position: absolute;
    bottom: 5px;
    right: 5px;
    zoom: 1;
}


#box  {


    display: block;
    float: left;
    font-style:normal;
    text-align:center;
    line-height:40px;
    border: 1px solid #000;
    margin: 6px 0;
    color:#99CCCC;
    font-size:90%;
    -moz-box-shadow:4px 4px 7px rgba(0,0,0, 0.4);
    -webkit-box-shadow:4px 4px 7px rgba(0,0,0, 0.4);
    box-shadow:4px 4px 7px rgba(0,0,0, 0.4);
    -moz-border-radius:3px;
    -webkit-border-radius:3px;
    cursor: move;

}

#drop strong {
    font-weight: bold;
}
#drop.yui3-dd-drop-over {
    background-color: #ccc;
}
      select {
        display:inline;
        width:200px;
        margin: 15px;
      }

    #X{
        display: inline;
        font-family: Helvetica, sans-serif;
        font-size: 14px;
        line-height: normal;
        margin: 5px auto 0;
        padding: 5px;
        width:240px;

    }

    button {
  display: inline-block;
  zoom: 1;
  font-family: Helvetica, sans-serif;
  line-height: normal;
  margin: 5px auto 0;
  padding: 6px;
  text-align: left;
  }

  input {
  display: inline-block;
  zoom: 1;
  font-family: Helvetica, sans-serif;
  line-height: normal;
  margin: 5px;
  padding: 10px;
  width: 340px;

  }
    a,table,tr,td {

      margin:5px;
      font-size:1.05em;

    }

    #demo{

      padding:15px;
      margin-left:1%;
      margin-right:1%;


    }
    #am{
      text-align: center;
      margin-top:100px;
      padding:4px;

    }

    .yui3-app-views{
      padding:4px;
      margin-left:1%;
      margin-right:1%;

    }



    .contributors{
      padding:1px;
      margin-left:1px;
      margin-right:1px;

    }


    .contributor{
      padding:4px;
      margin-left:1%;
      margin-right:1%;
      background-color: #eee;
      border: 1px solid #000;
    }

    .repos{
      padding:4px;
      margin-left:1%;
      margin-right:1%;

    }

    .yui3-g{
      padding:4px;
      margin-left:1%;
      margin-right:1%;

    }
    .bluer{
      display:inline;
      color:blue;

    }
    /*-- Override Styles ---------------------------------------------------------*/
    section{
      padding:4px;
      margin-top:0px;

    }
    h2 {
    text-transform: uppercase;
    padding:4px;
    font-size:59px;
    margin:0px;
    font-family:'league-gothic-1';src:url('League_Gothic-webfont.eot'),url('League_Gothic-webfont.woff') format('woff'),url('League_Gothic-webfont.ttf') format('truetype'),url('League_Gothic-webfont.svg') format('svg');
    font-weight:bold;
    font-style:normal;
    }

    li,b {

      padding:4px;

    }
    code{
    color:#000;
    padding:4px;
    font-size:1.1em;
    text-align:left;

    }
      .headline {
        text-decoration:underline;
    color:#000;
    padding:4px;
    font-size:20px;
    margin:1px;
    font-family:'league-gothic-1';src:url('League_Gothic-webfont.eot'),url('League_Gothic-webfont.woff') format('woff'),url('League_Gothic-webfont.ttf') format('truetype'),url('League_Gothic-webfont.svg') format('svg');

    font-style:normal;
    }

    li,b {

      padding:4px;

    }

.ff{
font-family:'league-gothic-1';src:url('League_Gothic-webfont.eot'),url('League_Gothic-webfont.woff') format('woff'),url('League_Gothic-webfont.ttf') format('truetype'),url('League_Gothic-webfont.svg') format('svg');
font-size:24px;
color:black;
}

.blueff{
color:blue;
}
.blackff{
color:black;
}
.greenff{
color:green;
}
.redff{
color:green;
}

.lefty{
text-align:left;

}
.left{
text-align:left;
max-width:55%;
min-width:40%;
float:left;
}

.right{
text-align:left;
max-width:60%;
min-width:40%;
float:right;
}
li{

text-align:left;
}

b{color:blue;}

.aBox {

    padding:4px;
    color:black;
    font-family: Helvetica, sans-serif;
    font-size: 1em;
    background: #fff;
    height:34px;
    text-decoration:none;
    border: 1px solid #000;
    -moz-border-radius:10px;
    -webkit-border-radius:10px;
     -moz-box-shadow:4px 4px 7px rgba(0,0,0, 0.6);
    -webkit-box-shadow:4px 4px 7px rgba(0,0,0, 0.6);
    box-shadow:4px 4px 7px rgba(0,0,0, 0.6);
    width:68%;
    list-style-type: none;
    text-align:left;
    margin-bottom:10px;
    overflow:hidden;

  }

.aBox div {
    padding:8px;

  }

.msgBox {
    position:absolute;
    width:250px;
    background:#ffffff;
    height:55px;
    padding:8px;
    color:black;
    font-family: Helvetica, sans-serif;
    font-size: 1em;
    background: #F0F1F8;
    text-decoration:none;
    border: 1px solid #000;
    -moz-border-radius:10px;
    -webkit-border-radius:10px;
     -moz-box-shadow:4px 4px 7px rgba(0,0,0, 0.6);
    -webkit-box-shadow:4px 4px 7px rgba(0,0,0, 0.6);
    box-shadow:4px 4px 7px rgba(0,0,0, 0.6);

    list-style-type: none;
    text-align:left;
    top:2px;
    right:20px;
    overflow:hidden;

  }

   .big{
      height:90%;
      background:#fff;
      color:#000;
      text-decoration:none;
      overflow-y:scoll;
    }



   /*
 * Fallr v1.0 - jQuery Plugin
 * Simple & elegant modal box jQuery plugin
 *
 * Copyright 2011 amatyr4n
 * http://codecanyon.net/user/amatyr4n
 *
 * licensed under Envato licenses
 * http://wiki.envato.com/support/legal-terms/licensing-terms/
 */

#fallr-overlay {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    background: #333;
    height: 100%;
    width: 100%;
    -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";
    filter: alpha(opacity=50);
    opacity: 0.5;
}

#fallr-wrapper,
#fallr-wrapper * {
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    font-family: Helvetica, Ubuntu, Arial, sans-serif;
    font-size: 13px;
    font-weight: normal;
    line-height: 19px;
    color: #555;
    text-shadow: 1px 1px 1px #fff;
    vertical-align: baseline;
    -webkit-font-smoothing: antialiased;
}

#fallr-wrapper {
    position: fixed;
    overflow: hidden;
    background: #f0f0f0;
    border: 1px solid #fff;
    box-shadow: 0 0 5px #111;
    -moz-box-shadow: 0 0 5px #111;
    -webkit-box-shadow: 0 0 5px #111;
}

#fallr-icon {
    position: absolute;
    top: 35px;
    left: 20px;
    height: 64px;
    width: 64px;
    background-position: 0 0;
    background-repeat: no-repeat;
}

#fallr {
    position: relative;
    padding: 40px 20px 20px 72px;
}

#fallr-buttons {
    position: relative;
    bottom: 0;
    right: 0;
    margin: 15px;
    clear: both;
    display: block;
    text-align: right;
}

#fallr-wrapper .fallr-button {
    position: relative;
    overflow: visible;
    display: inline-block;
    padding: 4px 15px;
    border: 1px solid #d4d4d4;
    margin-left: 10px;
    margin-top: 10px;
    text-decoration: none;
    text-shadow: 1px 1px 0 #fff;
    white-space: nowrap;
    cursor: pointer;
    background-color: #ececec;
    background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#f4f4f4), to(#ececec));
    background-image: -moz-linear-gradient(#f4f4f4, #ececec);
    background-image: -o-linear-gradient(#f4f4f4, #ececec);
    background-image: linear-gradient(#f4f4f4, #ececec);
    -webkit-background-clip: padding;
    -moz-background-clip: padding;
    -o-background-clip: padding-box;
    border: 1px solid rgba(0, 0, 0, .25);
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
}

#fallr-wrapper .fallr-button:hover,
#fallr-wrapper .fallr-button:focus {
    border-color: #3072b3;
    border-bottom-color: #2a65a0;
    text-decoration: none;
    text-shadow: -1px -1px 0 rgba(0,0,0,0.3);
    color: #fff;
    background-color: #3C8DDE;
    background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#599bdc), to(#3072b3));
    background-image: -moz-linear-gradient(#599bdc, #3072b3);
    background-image: -o-linear-gradient(#599bdc, #3072b3);
    background-image: linear-gradient(#599bdc, #3072b3);
}

#fallr-wrapper .fallr-button.fallr-button-danger {
    color: #900;
}

#fallr-wrapper .fallr-button.fallr-button-danger:hover,
#fallr-wrapper .fallr-button.fallr-button-danger:focus {
    border-color: #b53f3a;
    border-bottom-color: #a0302a;
    color: #fff;
    background-color: #dc5f59;
    background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#dc5f59), to(#b33630));
    background-image: -moz-linear-gradient(#dc5f59, #b33630);
    background-image: -o-linear-gradient(#dc5f59, #b33630);
    background-image: linear-gradient(#dc5f59, #b33630);
}

#fallr h1,
#fallr h2,
#fallr h3,
#fallr h4,
#fallr h5,
#fallr h6,
#fallr p,
#fallr form,
#fallr input,
#fallr label {
    margin-bottom: 10px;
}

#fallr h3 {
    font-size: 30px;
    line-height: 45px;
}

#fallr h4 {
    font-size: 25px;
    line-height: 37px;
}

#fallr h5 {
    font-size: 20px;
    line-height: 30px;
}

#fallr input[type="text"],
#fallr input[type="password"],
#fallr textarea {
    background: #fff;
    border: solid 1px #999;
    color: #777;
    padding: 5px;
    width: 97%;
    box-shadow: inset #bbb 0px 0px 5px;
    -moz-box-shadow: inset #bbb 0px 0px 5px;
    -webkit-box-shadow: inset #bbb 0px 0px 5px;
}

#fallr ol li,
#fallr ul li,
#fallr blockquote,
#fallr q {
    margin-left: 20px;
}

#fallr table {
    border: 1px solid #ddd;
  border-collapse:collapse;
  border-spacing: 0;
  line-height: 1.35em;
  width: 100%;
}

#fallr th,
#fallr td {
    padding: 10px;
}

/* custom icons

.icon-calendar {
    background: url('/lib/images/fallr/view-pim-calendar.png');
}

.icon-card {
    background: url('/lib/images/fallr/x-office-contact.png');
}

.icon-chat {
    background: url('/lib/images/fallr/chat.png');
}

.icon-check {
    background: url('/lib/images/fallr/task-complete.png');
}

.icon-config {
    background: url('/lib/images/fallr/configure.png');
}

.icon-error {
    background: url('/lib/images/fallr/dialog-close.png');
}

.icon-form {
    background: url('/lib/images/fallr/basket.png');
}

.icon-help {
    background: url('/lib/images/fallr/help-contents.png');
}

.icon-info {
    background: url('/lib/images/fallr/dialog-information.png');
}

.icon-lamp {
    background: url('/lib/images/fallr/help-hint.png');
}

.icon-mail {
    background: url('/lib/images/fallr/internet-mail.png');
}

.icon-news {
    background: url('/lib/images/fallr/knewsticker.png');
}

.icon-photo {
    background: url('/lib/images/fallr/kview.png');
}

.icon-save {
    background: url('/lib/images/fallr/document-save.png');
}

.icon-secure {
    background: url('/lib/images/fallr/gpg.png');
}

.icon-sad {
    background: url('/lib/images/fallr/face-sad.png');
}

.icon-smile {
    background: url('/lib/images/fallr/face-smile.png');
}

.icon-trash {
    background: url('/lib/images/fallr/trash-empty.png');
}

.icon-user {
    background: url('/lib/images/fallr/system-users.png');
}

.icon-warning {
    background: url('/lib/images/fallr/agt_update_criticals.png');
}

.icon-wizard {
    background: url('/lib/images/fallr/plasmagik.png');
}

*/

b, u, i, center,
dl, dt, dd, ol,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td {
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  font-size: 100%;
  vertical-align: baseline;
  background: transparent;
}
body {
  line-height: 1;
}
ol, ul {
  list-style: none;
}
blockquote, q {
  quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
  content: '';
  content: none;
}

/* remember to define focus styles! */
:focus {
  outline: 0;
}

/* remember to highlight inserts somehow! */
ins {
  text-decoration: none;
}
del {
  text-decoration: line-through;
}

/* tables still need 'cellspacing="0"' in the markup */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* Containers
----------------------------------------------------------------------------------------------------*/
.container_12 {
  margin-left: auto;
  margin-right: auto;
  width: 960px;
}

/* Grid >> Global
----------------------------------------------------------------------------------------------------*/

.grid_1,
.grid_2,
.grid_3,
.grid_4,
.grid_5,
.grid_6,
.grid_7,
.grid_8,
.grid_9,
.grid_10,
.grid_11,
.grid_12 {
  display:inline;
  float: left;
  position: relative;
  margin-left: 10px;
  margin-right: 10px;
}

/* Grid >> Children (Alpha ~ First, Omega ~ Last)
----------------------------------------------------------------------------------------------------*/

.alpha {
  margin-left: 0;
}

.omega {
  margin-right: 0;
}

/* Grid >> 12 Columns
----------------------------------------------------------------------------------------------------*/

.container_12 .grid_1 {
  width:60px;
}

.container_12 .grid_2 {
  width:140px;
}

.container_12 .grid_3 {
  width:220px;
}

.container_12 .grid_4 {
  width:200px;
}

.container_12 .grid_5 {
  width:380px;
}

.container_12 .grid_6 {
  width:460px;
}

.container_12 .grid_7 {
  width:540px;
}

.container_12 .grid_8 {
  width:620px;
}

.container_12 .grid_9 {
  width:700px;
}

.container_12 .grid_10 {
  width:780px;
}

.container_12 .grid_11 {
  width:860px;
}

.container_12 .grid_12 {
  width:940px;
}



/* Prefix Extra Space >> 12 Columns
----------------------------------------------------------------------------------------------------*/

.container_12 .prefix_1 {
  padding-left:80px;
}

.container_12 .prefix_2 {
  padding-left:160px;
}

.container_12 .prefix_3 {
  padding-left:240px;
}

.container_12 .prefix_4 {
  padding-left:320px;
}

.container_12 .prefix_5 {
  padding-left:400px;
}

.container_12 .prefix_6 {
  padding-left:480px;
}

.container_12 .prefix_7 {
  padding-left:560px;
}

.container_12 .prefix_8 {
  padding-left:640px;
}

.container_12 .prefix_9 {
  padding-left:720px;
}

.container_12 .prefix_10 {
  padding-left:800px;
}

.container_12 .prefix_11 {
  padding-left:880px;
}



/* Suffix Extra Space >> 12 Columns
----------------------------------------------------------------------------------------------------*/

.container_12 .suffix_1 {
  padding-right:80px;
}

.container_12 .suffix_2 {
  padding-right:160px;
}

.container_12 .suffix_3 {
  padding-right:240px;
}

.container_12 .suffix_4 {
  padding-right:320px;
}

.container_12 .suffix_5 {
  padding-right:400px;
}

.container_12 .suffix_6 {
  padding-right:480px;
}

.container_12 .suffix_7 {
  padding-right:560px;
}

.container_12 .suffix_8 {
  padding-right:640px;
}

.container_12 .suffix_9 {
  padding-right:720px;
}

.container_12 .suffix_10 {
  padding-right:800px;
}

.container_12 .suffix_11 {
  padding-right:880px;
}



/* Push Space >> 12 Columns
----------------------------------------------------------------------------------------------------*/

.container_12 .push_1 {
  left:80px;
}

.container_12 .push_2 {
  left:160px;
}

.container_12 .push_3 {
  left:240px;
}

.container_12 .push_4 {
  left:320px;
}

.container_12 .push_5 {
  left:400px;
}

.container_12 .push_6 {
  left:480px;
}

.container_12 .push_7 {
  left:560px;
}

.container_12 .push_8 {
  left:640px;
}

.container_12 .push_9 {
  left:720px;
}

.container_12 .push_10 {
  left:800px;
}

.container_12 .push_11 {
  left:880px;
}



/* Pull Space >> 12 Columns
----------------------------------------------------------------------------------------------------*/

.container_12 .pull_1 {
  left:-80px;
}

.container_12 .pull_2 {
  left:-160px;
}

.container_12 .pull_3 {
  left:-240px;
}

.container_12 .pull_4 {
  left:-320px;
}

.container_12 .pull_5 {
  left:-400px;
}

.container_12 .pull_6 {
  left:-480px;
}

.container_12 .pull_7 {
  left:-560px;
}

.container_12 .pull_8 {
  left:-640px;
}

.container_12 .pull_9 {
  left:-720px;
}

.container_12 .pull_10 {
  left:-800px;
}

.container_12 .pull_11 {
  left:-880px;
}




/* Clear Floated Elements
----------------------------------------------------------------------------------------------------*/

/* http://sonspring.com/journal/clearing-floats */

.clear {
  clear: both;
  display: block;
  overflow: hidden;
  visibility: hidden;
  width: 0;
  height: 0;
}

/* http://perishablepress.com/press/2008/02/05/lessons-learned-concerning-the-clearfix-css-hack */


.incident {background:#ff0000;}
.clearfix:after {
  clear: both;
  content: ' ';
  display: block;
  font-size: 0;
  line-height: 0;
  visibility: hidden;
  width: 0;
  height: 0;
}

.clearfix {
  display: inline-block;
}

* html .clearfix {
  height: 1%;
}

.clearfix {
  display: block;
}
nav{cursor:pointer;min-width:20px;ma-width:48px;margin:0;padding:0;background:#25ff9b;position:fixed;left:0;top:370px;text-align:left;overflow:hidden;color:#fff;z-index:1000;_display:none;}nav #navmenu{display:none;}nav:hover #navmenu{display:block;}nav h2{display:block;margin-left:auto;margin-right:auto;font-size:20px;}nav ul li{text-align:left;display:block;font-size:14px;color:#000;}



.hide{
display:none;

}

.next{



}
.hide{

display:none;
}
.show{

display:inline;
}

.yui3-toolbar {

    border: solid 1px #999;
    background-color: #ccc;
    margin: .25em;
    overflow: auto;
}

.yui3-toolbar-button {
    display: inline-block;
    border-width: 1px 0;
    border-style: solid;
    border-color: #808080;
    background-color: #fff;
    margin: .25em;
    font-size: 85%;  /* 11px */
}

.first-child {
    margin-left: .5em;
}

.yui3-toolbar-button span {
    display: inline-block;
    border-width: 0 1px;
    border-style: solid;
    max-width:  80px;
    border-color: #808080;
    margin: 0 -1px;
    *position: relative;    /* Necessary to get negative margins working in IE */
    *left: -1px;
}

.yui3-toolbar-button span span {
    display: inline-block;
    border: solid 1px #b6b6b6;
    margin: 0;
        max-width:  80px;
    *position: static;
}

.yui3-toolbar-button input {
    border: none;
    margin: 0;
        max-width:  80px;
    padding: 4px 4px 4px 24px;
    *overflow: visible; /* Remove superfluous padding for IE */
    background: transparent url(/app/_design/base/icons.png) no-repeat;
}

#add-btn input {
    max-width:  80px;
    background-position: 4px -102px;
    *background-position: 4px -100px;
}

#edit-btn input {
    background-position: 4px -78px;
    *background-position: 4px -76px;
}

#print-btn input {
    background-position: 4px -54px;
    *background-position: 4px -52px;
}

#open-btn input {
    background-position: 4px -30px;
    *background-position: 4px -28px;
}

#delete-btn input {
    background-position: 4px -126px;
    *background-position: 4px -124px;
}

#save-btn input {
    background-position: 4px -6px;
    *background-position: 4px -4px;
}

body{margin:0px;}
#todo-app {
     zoom:0.9;
    margin: 1em;
    text-align: left;
    width:15%;
    max-width:200px;
    float:right;
    border-bottom: 1px dotted #cfcfcf;
    overflow:hidden;

}

.listen{


}

#article-stats {
    margin: 0em auto;
    text-align: left;


}



.todo-view {
border-bottom: 1px dotted #CFCFCF;
overflow: hidden;
}
#todo-stats {
    margin: 0em auto;
    text-align: left;

}

#todo-list {
top:10px;
    max-width:200px;
    list-style: none;
    padding: 0;
    overflow: scoll;
}

#todo-stats,
.todo-clear { color: #777; }

.todo-clear { float: right; }

.todo-done .todo-content {
    color: #666;
    text-decoration: line-through;
}

.todo-edit,
.editing .todo-view { display: none; }

.editing .todo-edit { display: block; }

.todo-input {
    display: block;
    font-family: Helvetica, sans-serif;
    font-size: 15px;
    line-height: normal;
    margin: 5px auto 0;
    padding: 6px;
    width: 115px;
}

.todo-item {
    border-bottom: 1px dotted #cfcfcf;
    font-size: 15px;
    padding: 6px;

    position: relative;
}

.todo-label {
    color: #444;
    font-size: 15px;
    font-weight: bold;
    text-align: center;
}

.todo-remaining {
    color: #333;
    font-weight: bold;
}

.todo-remove {
    position: absolute;
    right: 0;
    top: 12px;
}

.todo-remove-icon {
    /*
    Delete icon courtesy of The Noun Project:
    http://thenounproject.com/noun/delete/
    background: url(../assets/app/remove.png) no-repeat;
    */
    display: block;
    height: 16px;
    opacity: 0.6;
    visibility: hidden;
    width: 23px;
}

.todo-remove:hover .todo-remove-icon { opacity: 1.0; }

.todo-hover .todo-remove-icon,
.todo-remove:focus .todo-remove-icon { visibility: visible; }

.editing .todo-remove-icon { visibility: hidden; }


.goin{
float:right;
display:inline;

}
#demo {


}
/*
 //   border-left: 1px solid black;
 //   border-right: 1px solid black;
//    font-weight:bold;
*/
.counter{
text-align:center;
font-size:1em;
display:inline;
color:orange;

}
#demo ul li {
    border-bottom: 1px dotted #CFCFCF;
    overflow: hidden;
    background-color: #fff;
    cursor: move;
    color:blue;
    width:300px:
    margin: 1em;

    list-style-type: none;
    z-index: 1;
    zoom: 1;
    text-align:left;
}
#play {
    position: relative;
    zoom: 1;
}
#drop {
    border: 1px solid black;
    background-color: #eee;
    height: 5px;
    color:#fff;
    width: 200px;
    position: absolute;
    bottom: 5px;
    right: 5px;
    zoom: 1;
}


#box  {


    display: block;
    float: left;
    font-style:normal;
    text-align:center;
    line-height:40px;
    border: 1px solid #000;
    margin: 6px 0;
    color:#99CCCC;
    font-size:90%;
    -moz-box-shadow:4px 4px 7px rgba(0,0,0, 0.4);
    -webkit-box-shadow:4px 4px 7px rgba(0,0,0, 0.4);
    box-shadow:4px 4px 7px rgba(0,0,0, 0.4);
    -moz-border-radius:3px;
    -webkit-border-radius:3px;
    cursor: move;

}

#drop strong {
    font-weight: bold;
}
#drop.yui3-dd-drop-over {
    background-color: #ccc;
}
      select {
        display:inline;
        width:200px;
        margin: 15px;
      }

    #X{
        display: inline;
        font-family: Helvetica, sans-serif;
        font-size: 14px;
        line-height: normal;
        margin: 5px auto 0;
        padding: 5px;
        width:240px;

    }

    button {
  display: inline-block;
  zoom: 1;
  font-family: Helvetica, sans-serif;
  line-height: normal;
  margin: 5px auto 0;
  padding: 6px;
  text-align: left;
  }

  input {
  display: inline-block;
  zoom: 1;
  font-family: Helvetica, sans-serif;
  line-height: normal;
  margin: 5px;
  padding: 10px;
  width: 340px;

  }
    a,table,tr,td {

      margin:5px;
      font-size:1.05em;

    }

    #demo{

      padding:15px;
      margin-left:1%;
      margin-right:1%;


    }
    #am{
      text-align: center;
      margin-top:100px;
      padding:4px;

    }

    .yui3-app-views{
      padding:4px;
      margin-left:1%;
      margin-right:1%;

    }



    .contributors{
      padding:1px;
      margin-left:1px;
      margin-right:1px;

    }


    .contributor{
      padding:4px;
      margin-left:1%;
      margin-right:1%;
      background-color: #eee;
      border: 1px solid #000;
    }

    .repos{
      padding:4px;
      margin-left:1%;
      margin-right:1%;

    }

    .yui3-g{
      padding:4px;
      margin-left:1%;
      margin-right:1%;

    }
    .bluer{
      display:inline;
      color:blue;

    }
    /*-- Override Styles ---------------------------------------------------------*/
    section{
      padding:4px;
      margin-top:0px;

    }
    h2 {
    text-transform: uppercase;
    padding:4px;
    font-size:59px;
    margin:0px;
    font-family:'league-gothic-1';src:url('League_Gothic-webfont.eot'),url('League_Gothic-webfont.woff') format('woff'),url('League_Gothic-webfont.ttf') format('truetype'),url('League_Gothic-webfont.svg') format('svg');
    font-weight:bold;
    font-style:normal;
    }

    li,b {

      padding:4px;

    }
    code{
    color:#000;
    padding:4px;
    font-size:1.1em;
    text-align:left;

    }
      .headline {
        text-decoration:underline;
    color:#000;
    padding:4px;
    font-size:20px;
    margin:1px;
    font-family:'league-gothic-1';src:url('League_Gothic-webfont.eot'),url('League_Gothic-webfont.woff') format('woff'),url('League_Gothic-webfont.ttf') format('truetype'),url('League_Gothic-webfont.svg') format('svg');

    font-style:normal;
    }

    li,b {

      padding:4px;

    }

.ff{
font-family:'league-gothic-1';src:url('League_Gothic-webfont.eot'),url('League_Gothic-webfont.woff') format('woff'),url('League_Gothic-webfont.ttf') format('truetype'),url('League_Gothic-webfont.svg') format('svg');
font-size:24px;
color:black;
}

.blueff{
color:blue;
}
.blackff{
color:black;
}
.greenff{
color:green;
}
.redff{
color:green;
}

.lefty{
text-align:left;

}
.left{
text-align:left;
max-width:55%;
min-width:40%;
float:left;
}

.right{
text-align:left;
max-width:60%;
min-width:40%;
float:right;
}
li{

text-align:left;
}

b{color:blue;}

.aBox {

    padding:4px;
    color:black;
    font-family: Helvetica, sans-serif;
    font-size: 1em;
    background: #fff;
    height:34px;
    text-decoration:none;
    border: 1px solid #000;
    -moz-border-radius:10px;
    -webkit-border-radius:10px;
     -moz-box-shadow:4px 4px 7px rgba(0,0,0, 0.6);
    -webkit-box-shadow:4px 4px 7px rgba(0,0,0, 0.6);
    box-shadow:4px 4px 7px rgba(0,0,0, 0.6);
    width:68%;
    list-style-type: none;
    text-align:left;
    margin-bottom:10px;
    overflow:hidden;

  }

.aBox div {
    padding:8px;

  }

.msgBox {
    position:absolute;
    width:250px;
    background:#ffffff;
    height:55px;
    padding:8px;
    color:black;
    font-family: Helvetica, sans-serif;
    font-size: 1em;
    background: #F0F1F8;
    text-decoration:none;
    border: 1px solid #000;
    -moz-border-radius:10px;
    -webkit-border-radius:10px;
     -moz-box-shadow:4px 4px 7px rgba(0,0,0, 0.6);
    -webkit-box-shadow:4px 4px 7px rgba(0,0,0, 0.6);
    box-shadow:4px 4px 7px rgba(0,0,0, 0.6);

    list-style-type: none;
    text-align:left;
    top:2px;
    right:20px;
    overflow:hidden;

  }

   .big{
      height:90%;
      background:#fff;
      color:#000;
      text-decoration:none;
      overflow-y:scoll;
    }



   /*
 * Fallr v1.0 - jQuery Plugin
 * Simple & elegant modal box jQuery plugin
 *
 * Copyright 2011 amatyr4n
 * http://codecanyon.net/user/amatyr4n
 *
 * licensed under Envato licenses
 * http://wiki.envato.com/support/legal-terms/licensing-terms/
 */

#fallr-overlay {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    background: #333;
    height: 100%;
    width: 100%;
    -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";
    filter: alpha(opacity=50);
    opacity: 0.5;
}

#fallr-wrapper,
#fallr-wrapper * {
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    font-family: Helvetica, Ubuntu, Arial, sans-serif;
    font-size: 13px;
    font-weight: normal;
    line-height: 19px;
    color: #555;
    text-shadow: 1px 1px 1px #fff;
    vertical-align: baseline;
    -webkit-font-smoothing: antialiased;
}

#fallr-wrapper {
    position: fixed;
    overflow: hidden;
    background: #f0f0f0;
    border: 1px solid #fff;
    box-shadow: 0 0 5px #111;
    -moz-box-shadow: 0 0 5px #111;
    -webkit-box-shadow: 0 0 5px #111;
}

#fallr-icon {
    position: absolute;
    top: 35px;
    left: 20px;
    height: 64px;
    width: 64px;
    background-position: 0 0;
    background-repeat: no-repeat;
}

#fallr {
    position: relative;
    padding: 40px 20px 20px 72px;
}

#fallr-buttons {
    position: relative;
    bottom: 0;
    right: 0;
    margin: 15px;
    clear: both;
    display: block;
    text-align: right;
}

#fallr-wrapper .fallr-button {
    position: relative;
    overflow: visible;
    display: inline-block;
    padding: 4px 15px;
    border: 1px solid #d4d4d4;
    margin-left: 10px;
    margin-top: 10px;
    text-decoration: none;
    text-shadow: 1px 1px 0 #fff;
    white-space: nowrap;
    cursor: pointer;
    background-color: #ececec;
    background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#f4f4f4), to(#ececec));
    background-image: -moz-linear-gradient(#f4f4f4, #ececec);
    background-image: -o-linear-gradient(#f4f4f4, #ececec);
    background-image: linear-gradient(#f4f4f4, #ececec);
    -webkit-background-clip: padding;
    -moz-background-clip: padding;
    -o-background-clip: padding-box;
    border: 1px solid rgba(0, 0, 0, .25);
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
}

#fallr-wrapper .fallr-button:hover,
#fallr-wrapper .fallr-button:focus {
    border-color: #3072b3;
    border-bottom-color: #2a65a0;
    text-decoration: none;
    text-shadow: -1px -1px 0 rgba(0,0,0,0.3);
    color: #fff;
    background-color: #3C8DDE;
    background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#599bdc), to(#3072b3));
    background-image: -moz-linear-gradient(#599bdc, #3072b3);
    background-image: -o-linear-gradient(#599bdc, #3072b3);
    background-image: linear-gradient(#599bdc, #3072b3);
}

#fallr-wrapper .fallr-button.fallr-button-danger {
    color: #900;
}

#fallr-wrapper .fallr-button.fallr-button-danger:hover,
#fallr-wrapper .fallr-button.fallr-button-danger:focus {
    border-color: #b53f3a;
    border-bottom-color: #a0302a;
    color: #fff;
    background-color: #dc5f59;
    background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#dc5f59), to(#b33630));
    background-image: -moz-linear-gradient(#dc5f59, #b33630);
    background-image: -o-linear-gradient(#dc5f59, #b33630);
    background-image: linear-gradient(#dc5f59, #b33630);
}

#fallr h1,
#fallr h2,
#fallr h3,
#fallr h4,
#fallr h5,
#fallr h6,
#fallr p,
#fallr form,
#fallr input,
#fallr label {
    margin-bottom: 10px;
}

#fallr h3 {
    font-size: 30px;
    line-height: 45px;
}

#fallr h4 {
    font-size: 25px;
    line-height: 37px;
}

#fallr h5 {
    font-size: 20px;
    line-height: 30px;
}

#fallr input[type="text"],
#fallr input[type="password"],
#fallr textarea {
    background: #fff;
    border: solid 1px #999;
    color: #777;
    padding: 5px;
    width: 97%;
    box-shadow: inset #bbb 0px 0px 5px;
    -moz-box-shadow: inset #bbb 0px 0px 5px;
    -webkit-box-shadow: inset #bbb 0px 0px 5px;
}

#fallr ol li,
#fallr ul li,
#fallr blockquote,
#fallr q {
    margin-left: 20px;
}

#fallr table {
    border: 1px solid #ddd;
  border-collapse:collapse;
  border-spacing: 0;
  line-height: 1.35em;
  width: 100%;
}

#fallr th,
#fallr td {
    padding: 10px;
}

/* custom icons

.icon-calendar {
    background: url('/lib/images/fallr/view-pim-calendar.png');
}

.icon-card {
    background: url('/lib/images/fallr/x-office-contact.png');
}

.icon-chat {
    background: url('/lib/images/fallr/chat.png');
}

.icon-check {
    background: url('/lib/images/fallr/task-complete.png');
}

.icon-config {
    background: url('/lib/images/fallr/configure.png');
}

.icon-error {
    background: url('/lib/images/fallr/dialog-close.png');
}

.icon-form {
    background: url('/lib/images/fallr/basket.png');
}

.icon-help {
    background: url('/lib/images/fallr/help-contents.png');
}

.icon-info {
    background: url('/lib/images/fallr/dialog-information.png');
}

.icon-lamp {
    background: url('/lib/images/fallr/help-hint.png');
}

.icon-mail {
    background: url('/lib/images/fallr/internet-mail.png');
}

.icon-news {
    background: url('/lib/images/fallr/knewsticker.png');
}

.icon-photo {
    background: url('/lib/images/fallr/kview.png');
}

.icon-save {
    background: url('/lib/images/fallr/document-save.png');
}

.icon-secure {
    background: url('/lib/images/fallr/gpg.png');
}

.icon-sad {
    background: url('/lib/images/fallr/face-sad.png');
}

.icon-smile {
    background: url('/lib/images/fallr/face-smile.png');
}

.icon-trash {
    background: url('/lib/images/fallr/trash-empty.png');
}

.icon-user {
    background: url('/lib/images/fallr/system-users.png');
}

.icon-warning {
    background: url('/lib/images/fallr/agt_update_criticals.png');
}

.icon-wizard {
    background: url('/lib/images/fallr/plasmagik.png');
}

*/

b, u, i, center,
dl, dt, dd, ol,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td {
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  font-size: 100%;
  vertical-align: baseline;
  background: transparent;
}
body {
  line-height: 1;
}
ol, ul {
  list-style: none;
}
blockquote, q {
  quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
  content: '';
  content: none;
}

/* remember to define focus styles! */
:focus {
  outline: 0;
}

/* remember to highlight inserts somehow! */
ins {
  text-decoration: none;
}
del {
  text-decoration: line-through;
}

/* tables still need 'cellspacing="0"' in the markup */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* Containers
----------------------------------------------------------------------------------------------------*/
.container_12 {
  margin-left: auto;
  margin-right: auto;
  width: 960px;
}

/* Grid >> Global
----------------------------------------------------------------------------------------------------*/

.grid_1,
.grid_2,
.grid_3,
.grid_4,
.grid_5,
.grid_6,
.grid_7,
.grid_8,
.grid_9,
.grid_10,
.grid_11,
.grid_12 {
  display:inline;
  float: left;
  position: relative;
  margin-left: 10px;
  margin-right: 10px;
}

/* Grid >> Children (Alpha ~ First, Omega ~ Last)
----------------------------------------------------------------------------------------------------*/

.alpha {
  margin-left: 0;
}

.omega {
  margin-right: 0;
}

/* Grid >> 12 Columns
----------------------------------------------------------------------------------------------------*/

.container_12 .grid_1 {
  width:60px;
}

.container_12 .grid_2 {
  width:140px;
}

.container_12 .grid_3 {
  width:220px;
}

.container_12 .grid_4 {
  width:200px;
}

.container_12 .grid_5 {
  width:380px;
}

.container_12 .grid_6 {
  width:460px;
}

.container_12 .grid_7 {
  width:540px;
}

.container_12 .grid_8 {
  width:620px;
}

.container_12 .grid_9 {
  width:700px;
}

.container_12 .grid_10 {
  width:780px;
}

.container_12 .grid_11 {
  width:860px;
}

.container_12 .grid_12 {
  width:940px;
}



/* Prefix Extra Space >> 12 Columns
----------------------------------------------------------------------------------------------------*/

.container_12 .prefix_1 {
  padding-left:80px;
}

.container_12 .prefix_2 {
  padding-left:160px;
}

.container_12 .prefix_3 {
  padding-left:240px;
}

.container_12 .prefix_4 {
  padding-left:320px;
}

.container_12 .prefix_5 {
  padding-left:400px;
}

.container_12 .prefix_6 {
  padding-left:480px;
}

.container_12 .prefix_7 {
  padding-left:560px;
}

.container_12 .prefix_8 {
  padding-left:640px;
}

.container_12 .prefix_9 {
  padding-left:720px;
}

.container_12 .prefix_10 {
  padding-left:800px;
}

.container_12 .prefix_11 {
  padding-left:880px;
}



/* Suffix Extra Space >> 12 Columns
----------------------------------------------------------------------------------------------------*/

.container_12 .suffix_1 {
  padding-right:80px;
}

.container_12 .suffix_2 {
  padding-right:160px;
}

.container_12 .suffix_3 {
  padding-right:240px;
}

.container_12 .suffix_4 {
  padding-right:320px;
}

.container_12 .suffix_5 {
  padding-right:400px;
}

.container_12 .suffix_6 {
  padding-right:480px;
}

.container_12 .suffix_7 {
  padding-right:560px;
}

.container_12 .suffix_8 {
  padding-right:640px;
}

.container_12 .suffix_9 {
  padding-right:720px;
}

.container_12 .suffix_10 {
  padding-right:800px;
}

.container_12 .suffix_11 {
  padding-right:880px;
}



/* Push Space >> 12 Columns
----------------------------------------------------------------------------------------------------*/

.container_12 .push_1 {
  left:80px;
}

.container_12 .push_2 {
  left:160px;
}

.container_12 .push_3 {
  left:240px;
}

.container_12 .push_4 {
  left:320px;
}

.container_12 .push_5 {
  left:400px;
}

.container_12 .push_6 {
  left:480px;
}

.container_12 .push_7 {
  left:560px;
}

.container_12 .push_8 {
  left:640px;
}

.container_12 .push_9 {
  left:720px;
}

.container_12 .push_10 {
  left:800px;
}

.container_12 .push_11 {
  left:880px;
}



/* Pull Space >> 12 Columns
----------------------------------------------------------------------------------------------------*/

.container_12 .pull_1 {
  left:-80px;
}

.container_12 .pull_2 {
  left:-160px;
}

.container_12 .pull_3 {
  left:-240px;
}

.container_12 .pull_4 {
  left:-320px;
}

.container_12 .pull_5 {
  left:-400px;
}

.container_12 .pull_6 {
  left:-480px;
}

.container_12 .pull_7 {
  left:-560px;
}

.container_12 .pull_8 {
  left:-640px;
}

.container_12 .pull_9 {
  left:-720px;
}

.container_12 .pull_10 {
  left:-800px;
}

.container_12 .pull_11 {
  left:-880px;
}




/* Clear Floated Elements
----------------------------------------------------------------------------------------------------*/

/* http://sonspring.com/journal/clearing-floats */

.clear {
  clear: both;
  display: block;
  overflow: hidden;
  visibility: hidden;
  width: 0;
  height: 0;
}

/* http://perishablepress.com/press/2008/02/05/lessons-learned-concerning-the-clearfix-css-hack */


.incident {background:#ff0000;}
.clearfix:after {
  clear: both;
  content: ' ';
  display: block;
  font-size: 0;
  line-height: 0;
  visibility: hidden;
  width: 0;
  height: 0;
}

.clearfix {
  display: inline-block;
}

* html .clearfix {
  height: 1%;
}

.clearfix {
  display: block;
}
nav{cursor:pointer;min-width:20px;ma-width:48px;margin:0;padding:0;background:#25ff9b;position:fixed;left:0;top:370px;text-align:left;overflow:hidden;color:#fff;z-index:1000;_display:none;}nav #navmenu{display:none;}nav:hover #navmenu{display:block;}nav h2{display:block;margin-left:auto;margin-right:auto;font-size:20px;}nav ul li{text-align:left;display:block;font-size:14px;color:#000;}



.hide{
display:none;

}

.next{



}
.hide{

display:none;
}
.show{

display:inline;
}

.yui3-toolbar {

    border: solid 1px #999;
    background-color: #ccc;
    margin: .25em;
    overflow: auto;
}

.yui3-toolbar-button {
    display: inline-block;
    border-width: 1px 0;
    border-style: solid;
    border-color: #808080;
    background-color: #fff;
    margin: .25em;
    font-size: 85%;  /* 11px */
}

.first-child {
    margin-left: .5em;
}

.yui3-toolbar-button span {
    display: inline-block;
    border-width: 0 1px;
    border-style: solid;
    max-width:  80px;
    border-color: #808080;
    margin: 0 -1px;
    *position: relative;    /* Necessary to get negative margins working in IE */
    *left: -1px;
}

.yui3-toolbar-button span span {
    display: inline-block;
    border: solid 1px #b6b6b6;
    margin: 0;
        max-width:  80px;
    *position: static;
}

.yui3-toolbar-button input {
    border: none;
    margin: 0;
        max-width:  80px;
    padding: 4px 4px 4px 24px;
    *overflow: visible; /* Remove superfluous padding for IE */
    background: transparent url(/app/_design/base/icons.png) no-repeat;
}

#add-btn input {
    max-width:  80px;
    background-position: 4px -102px;
    *background-position: 4px -100px;
}

#edit-btn input {
    background-position: 4px -78px;
    *background-position: 4px -76px;
}

#print-btn input {
    background-position: 4px -54px;
    *background-position: 4px -52px;
}

#open-btn input {
    background-position: 4px -30px;
    *background-position: 4px -28px;
}

#delete-btn input {
    background-position: 4px -126px;
    *background-position: 4px -124px;
}

#save-btn input {
    background-position: 4px -6px;
    *background-position: 4px -4px;
}

</style>

  <div class="clearfix"></div>

  <div id="results"></div>

  <div id="container">

    <div class="clearfix"></div>
    <br>

    <script language="javascript" type="text/javascript">

      function browserDetect()
      {
        document.getElementById("browserType").innerHTML = BrowserDetect.browser + ' ' + BrowserDetect.version;
        document.getElementById("platform").innerHTML = BrowserDetect.OS;

        if (window.WebSocket)
        {
        }
        else
        {
        }
      }

      // Handle difference for IE.
      if (window.attachEvent)
      {
        window.attachEvent("load", browserDetect)
      }
      else
      {
        window.addEventListener("load", browserDetect, false);
      }

    </script>

    <nav>


    </nav>

    <div id="main-container">


      <div id="main">


        <div id="webSocketSupp"></div>
        <div style="display:none;" id="noWebSocketSupp">
          <div style="float: left;">
          img-
    </div>
          <div style="float: left; width: 60px; margin-left: 1px;">
            <p>Uh-oh, the browser you're using doesn't have native support for WebSocket. That means you can't run this demo.</p>
            <p>The following link lists the browsers that support WebSocket:</p>

          </div>
        </div>
        <div id="echo">
          <div id="echo-config" style="float: left;">
            <strong>Location:</strong><br>
            <input id="wsUri" size="35" value="ws://127.0.0.1:3000" disabled="">
            <br>
            <input type="checkbox" id="secureCb" onclick="toggleTls();" style="display:none;"  disabled="">
            <span id="secureCbLabel" style="font-size: smaller; color: rgb(153, 153, 153); display:none;">Use secure WebSocket (TLS)</span><br>
            <button id="connect" disabled="">Connect</button>
            <button id="disconnect">Disconnect</button>
            <br>
            <br>


<button id="clearLogBut" style="position: relative; top: 3px;">Clear log</button>

            <strong>Message:</strong><br>
            <input id="sendMessage" size="35" value="UFO" class="yui3-aclist-input" aria-autocomplete="list" aria-expanded="false" aria-owns="yui_3_6_0_2_1347698521800_36" autocomplete="off">
            <br>
            <button id="send" class="wsButton">Send</button>


<code id="echo-log" style="float: left; margin-left: 20px; padding-left: 20px;width:58%; min-width: 900px; border-left: solid 1px #cccccc;">
<pre>
<strong>Log:</strong>

<div id="consoleLog"></div>
</pre>
</code>

          </div>
          <div class="clearfix"></div>

        <script type="text/javascript">
  var secureCb;
  var secureCbLabel;
  var wsUri;
  var consoleLog;
  var connectBut;
  var disconnectBut;
  var sendMessage;
  var sendBut;
  var clearLogBut;

  function echoHandlePageLoad()
  {
    if (window.WebSocket)
    {
      document.getElementById("webSocketSupp").style.display = "block";
    }
    else
    {
      document.getElementById("noWebSocketSupp").style.display = "block";
    }

    secureCb = document.getElementById("secureCb");
    secureCb.checked = false;
    secureCb.onclick = toggleTls;

    secureCbLabel = document.getElementById("secureCbLabel")

    wsUri = document.getElementById("wsUri");
    toggleTls();

    connectBut = document.getElementById("connect");
    connectBut.onclick = doConnect;

    disconnectBut = document.getElementById("disconnect");
    disconnectBut.onclick = doDisconnect;

    sendMessage = document.getElementById("sendMessage");

    sendBut = document.getElementById("send");
    sendBut.onclick = doSend;

    consoleLog = document.getElementById("consoleLog");

    clearLogBut = document.getElementById("clearLogBut");
    clearLogBut.onclick = clearLog;

    setGuiConnected(false);

    document.getElementById("disconnect").onclick = doDisconnect;
    document.getElementById("send").onclick = doSend;

  }

  function toggleTls()
  {
    var wsPort = (window.location.port.toString() === "" ? "" : ":"+window.location.port)
    if (wsUri.value === "") {
        wsUri.value = "ws://" + window.location.hostname.replace("www", "echo") + wsPort;
    }

    if (secureCb.checked)
    {
      wsUri.value = wsUri.value.replace("ws:", "wss:");
    }
    else
    {
      wsUri.value = wsUri.value.replace ("wss:", "ws:");
    }
  }

  function doConnect()
  {
    if (window.MozWebSocket)
    {
        logToConsole('<span style="color: red;"><strong>Info:</strong> This browser supports WebSocket using the MozWebSocket constructor</span>');
        window.WebSocket = window.MozWebSocket;
    }
    else if (!window.WebSocket)
    {
        logToConsole('<span style="color: red;"><strong>Error:</strong> This browser does not have support for WebSocket</span>');
        return;
    }

    // prefer text messages
    var uri = wsUri.value;
    if (uri.indexOf("?") == -1) {
        uri += "?encoding=text";
    } else {
        uri += "&encoding=text";
    }
    websocket = new WebSocket(uri);
    websocket.onopen = function(evt) { onOpen(evt) };
    websocket.onclose = function(evt) { onClose(evt) };
    websocket.onmessage = function(evt) { onMessage(evt) };
    websocket.onerror = function(evt) { onError(evt) };
  }

  function doDisconnect()
  {
    websocket.close()
  }

  function doSend()
  {
    logToConsole("SENT: " + sendMessage.value);
    websocket.send(sendMessage.value);
  }

  function logToConsole(message)
  {
    var pre = document.createElement("p");
    pre.style.wordWrap = "break-word";
    pre.innerHTML = getSecureTag()+message;
    consoleLog.appendChild(pre);

    while (consoleLog.childNodes.length > 50)
    {
      consoleLog.removeChild(consoleLog.firstChild);
    }

    consoleLog.scrollTop = consoleLog.scrollHeight;
  }

  function onOpen(evt)
  {
    logToConsole("CONNECTED");
    setGuiConnected(true);
  }

  function onClose(evt)
  {
    logToConsole("DISCONNECTED");
    setGuiConnected(false);
  }

  function onMessage(evt)
  {
    logToConsole('<span id=response  style="color: blue;">RESPONSE: ' + evt.data+'</span>');
  }

  function onError(evt)
  {
    logToConsole('<span style="color: red;">ERROR:</span> ' + evt.data);
  }

  function setGuiConnected(isConnected)
  {
    wsUri.disabled = isConnected;
    connectBut.disabled = isConnected;
    disconnectBut.disabled = !isConnected;
    sendMessage.disabled = !isConnected;
    sendBut.disabled = !isConnected;
    secureCb.disabled = isConnected;
    var labelColor = "black";
    if (isConnected)
    {
      labelColor = "#999999";
    }
     secureCbLabel.style.color = labelColor;

  }

  function clearLog()
  {
    while (consoleLog.childNodes.length > 0)
    {
      consoleLog.removeChild(consoleLog.lastChild);
    }
  }

  function getSecureTag()
  {
    if (secureCb.checked)
    {
      return 'lock';
    }
    else
    {
      return '';
    }
  }

  window.addEventListener("load", echoHandlePageLoad, false);

  </script>

  <script>


    $('#webSocketSupp').fadeIn(1500);
    setTimeout(function(){$('#webSocketSupp').fadeOut(1500,function(){
    document.getElementById("connect").click();

    $('#webSocketSupp').remove();
    $('#connect').click(1);
    })},3000);


  </script>

</div>
      </div>





</div></div></body></html>