<?xml version="1.0" encoding="UTF-8" ?>
<Module>
  <ModulePrefs title="__MSG_gTitle__"
         description="__MSG_description__"
         author_email="labpixie.gadgets+countdown+201104201@gmail.com"
         directory_title="__MSG_gTitle__"
         title_url="http://www.labpixies.com"
         screenshot="http://cdn.labpixies.com/campaigns/countdown/images/screenshot.jpg"
         thumbnail="http://cdn.labpixies.com/campaigns/countdown/images/thumbnail.jpg"
         height="180"
         render_inline="never">
      <Require feature="views"/>
    <Require feature="dynamic-height"/>
    <Require feature="setprefs"/>

    <Locale messages="http://www.labpixies.com/campaigns/countdown/i20/all_all.xml"/>
    <Locale lang="de" messages="http://www.labpixies.com/campaigns/countdown/i20/de_all.xml" />
    <Locale lang="it" messages="http://www.labpixies.com/campaigns/countdown/i20/it_all.xml" />
    <Locale lang="fr" messages="http://www.labpixies.com/campaigns/countdown/i20/fr_all.xml" />
    <Locale lang="es" messages="http://www.labpixies.com/campaigns/countdown/i20/es_all.xml" />
    <Locale lang="pl" messages="http://www.labpixies.com/campaigns/countdown/i20/pl_all.xml" />
    <Locale lang="pt-PT" messages="http://www.labpixies.com/campaigns/countdown/i20/pt_pt_all.xml" />
    <Locale lang="pt-BR" messages="http://www.labpixies.com/campaigns/countdown/i20/pt_br_all.xml" />
    <Locale lang="nl" messages="http://www.labpixies.com/campaigns/countdown/i20/nl_all.xml" />
    <Locale lang="zh-CN" messages="http://www.labpixies.com/campaigns/countdown/i20/zh_cn_all.xml" />
    <Locale lang="ru" messages="http://www.labpixies.com/campaigns/countdown/i20/ru_all.xml" />
    <Locale lang="bg" messages="http://www.labpixies.com/campaigns/countdown/i20/bg_all.xml" />
    <Locale lang="ca" messages="http://www.labpixies.com/campaigns/countdown/i20/ca_all.xml" />
    <Locale lang="zh-TW" messages="http://www.labpixies.com/campaigns/countdown/i20/zh_tw_all.xml" />
    <Locale lang="hr" messages="http://www.labpixies.com/campaigns/countdown/i20/hr_all.xml" />
    <Locale lang="cs" messages="http://www.labpixies.com/campaigns/countdown/i20/cs_all.xml" />
    <Locale lang="da" messages="http://www.labpixies.com/campaigns/countdown/i20/da_all.xml" />
    <Locale lang="fi" messages="http://www.labpixies.com/campaigns/countdown/i20/fi_all.xml" />
    <Locale lang="el" messages="http://www.labpixies.com/campaigns/countdown/i20/el_all.xml" />
    <Locale lang="iw" messages="http://www.labpixies.com/campaigns/countdown/i20/iw_all.xml" language_direction="rtl"/>
    <Locale lang="hi" messages="http://www.labpixies.com/campaigns/countdown/i20/hi_all.xml" />
    <Locale lang="hu" messages="http://www.labpixies.com/campaigns/countdown/i20/hu_all.xml" />
    <Locale lang="ko" messages="http://www.labpixies.com/campaigns/countdown/i20/ko_all.xml" />
    <Locale lang="lv" messages="http://www.labpixies.com/campaigns/countdown/i20/lv_all.xml" />
    <Locale lang="lt" messages="http://www.labpixies.com/campaigns/countdown/i20/lt_all.xml" />
    <Locale lang="ms" messages="http://www.labpixies.com/campaigns/countdown/i20/ms_all.xml" />
    <Locale lang="no" messages="http://www.labpixies.com/campaigns/countdown/i20/no_all.xml" />
    <Locale lang="ro" messages="http://www.labpixies.com/campaigns/countdown/i20/ro_all.xml" />
    <Locale lang="sr" messages="http://www.labpixies.com/campaigns/countdown/i20/sr_all.xml" />
    <Locale lang="sk" messages="http://www.labpixies.com/campaigns/countdown/i20/sk_all.xml" />
    <Locale lang="sl" messages="http://www.labpixies.com/campaigns/countdown/i20/sl_all.xml" />
    <Locale lang="sv" messages="http://www.labpixies.com/campaigns/countdown/i20/sv_all.xml" />
    <Locale lang="tl" messages="http://www.labpixies.com/campaigns/countdown/i20/tl_all.xml" />
    <Locale lang="th" messages="http://www.labpixies.com/campaigns/countdown/i20/th_all.xml" />
    <Locale lang="tr" messages="http://www.labpixies.com/campaigns/countdown/i20/tr_all.xml" />
    <Locale lang="uk" messages="http://www.labpixies.com/campaigns/countdown/i20/uk_all.xml" />
    <Locale lang="vi" messages="http://www.labpixies.com/campaigns/countdown/i20/vi_all.xml" />

    </ModulePrefs>
  <UserPref name="k1" datatype="hidden" default_value=""/>
  <UserPref name="k2" datatype="hidden" default_value=""/>
  <UserPref name="k3" datatype="hidden" default_value=""/>
  <UserPref name="curr_counter" datatype="hidden" default_value=""/>

  <UserPref name="skin_id" default_value="1" datatype="hidden"/>
  <UserPref name="cd_text" default_value="__MSG_edit_title__" datatype="hidden"/>
  <UserPref name="cd_year" default_value="1" datatype="hidden"/>
  <UserPref name="cd_month" default_value="1" datatype="hidden"/>
  <UserPref name="cd_day" default_value="1" datatype="hidden"/>
  <UserPref name="cd_hour" default_value="1" datatype="hidden"/>
  <UserPref name="cd_minute" default_value="1" datatype="hidden"/>

  <Content type="html">
  <![CDATA[
  <title>Countdown</title>
    <!--
      Countdown  Gadget
      Design & Code: LabPixies
      All subsequent code and resources used are proprietary of LabPixies unless directly stated otherwise.
      Copyright (C) 2009 LabPixies.
      www.labpixies.com

      This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivs 2.5 License.
      To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/2.5/ or
      send a letter to Creative Commons, 543 Howard Street, 5th Floor, San Francisco, California, 94105, USA.
      -->

    <style type="text/css">

    body {direction:ltr;}
    body, html {margin:0px; padding:0px;}

    .text_input {
        padding: 0px;
        margin: 0px;
        font-family: Arial, Helvetica, sans-serif;
        font-size: 12px;
        color: #999999;
        font-weight: bold;
        background-color: transparent;
        border: 0px none transparent;
        height: 14px;
        line-height: 14px;
        cursor:pointer;
        direction:__BIDI_DIR__;
        text-align:left;
    }
    .style1 {font-size: 1px}

    .style2 {
      font-family: Arial, Helvetica, sans-serif;
      font-size: __MSG_style2_font__px;
      color: #666666;
      line-height:13px;

    }

    .settings_style {
      background-color: #e5e5e5;
      border: 2px solid #000000;
      position:absolute;
      visibility:hidden;
    }
    .style4 {
      font-family: Arial, Helvetica, sans-serif;
      font-size: 11px;
      font-weight: bold;
      color: #000000;
    }
    .style5 {
      font-family: Arial, Helvetica, sans-serif;
      font-size: 10px;
      font-weight: normal;
      color: #000000;
    }
    .number_td
    {
        width: 17px;
        height: 26px;
    }
    #tbl_main
    {
        background-repeat:no-repeat;
    }

    </style>


    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js"></script>

    <script type="text/javascript">
      var $lp=jQuery.noConflict();

      var mSKINS = _IG_GetCachedUrl("http://cdn.labpixies.com/campaigns/countdown/skin_colors.js");
      mSKINS = mSKINS.replace("%rewriteMime%", "");
      document.write('<scr'+'ipt type="text/javascript" src="'+mSKINS+'"></scr'+'ipt>');

    </script>

    <!--[if IE 6]>
    <script language="javascript" type="text/javascript">
    try {
      document.execCommand("BackgroundImageCache",false, true);
    }
    catch (er) {}
    </script>
    <![endif]-->

    <script language="javascript" type="text/javascript">
    var _gadgetID = 58;
    var IMAGES_BASE = 'http://cdn.labpixies.com/campaigns/countdown/images/';

    var countdown = function() {

        var prefs = new _IG_Prefs();
        var targetMillis = 0;
        var targetDate = new Date();
        var skin_id = 0;
        this.init = function() {

            var skin = prefs.getInt("skin_id");
            if (!skin)
                skin = 0;
            this.setSkin(skin);
            var text = _unesc(prefs.getString("cd_text"));
            if (!text)
                text = "__MSG_edit_title__";
            this.saveText(text);

            var i;
            for (i=0;i<9;i++) {
                document.getElementById("number_"+i).style.backgroundPosition = "-17px 0px";
            }

            var year = prefs.getInt("cd_year");
            var month = prefs.getInt("cd_month");
            var day = prefs.getInt("cd_day");
            var hour = prefs.getInt("cd_hour");
            var minute = prefs.getInt("cd_minute");

            targetDate = new Date(year,month,day,hour,minute,0);
            targetMillis = targetDate.getTime();
            this.updateUI();
            setInterval("lp_countdown.updateUI();",1000);
        }

      this.changeSkin = function(dirct) {

        if (dirct == 1) {
          skin_id = (skin_id + 1) % skin_colors.length;
        }
        else {
          skin_id = (skin_id + skin_colors.length -1) % skin_colors.length;
        }

        this.setSkin(skin_id);
      }


        this.setSkin = function(id) {

            skin_id = id;
            document.getElementById("tbl_main").style.backgroundImage = "url("+_IG_GetCachedUrl(IMAGES_BASE+"skin/"+id+"_background.jpg")+")";
            var i;
            for(i=0;i<9;i++) {
                document.getElementById("number_"+i).style.backgroundImage = "url("+_IG_GetCachedUrl(IMAGES_BASE+"skin/"+id+"_numbers.gif")+")";
            }

            document.getElementById("a_settings").style.color = skin_colors[id][2];
            document.getElementById("title_text").style.color = skin_colors[id][0];
            document.getElementById("day_lable").style.color = skin_colors[id][1];
            document.getElementById("hour_lable").style.color = skin_colors[id][1];
            document.getElementById("minute_lable").style.color = skin_colors[id][1];
            document.getElementById("second_lable").style.color = skin_colors[id][1];
            prefs.set("skin_id", id);
        }

        var addZero = function(x) {return(x<0||x>9?"":"0")+x}

        this.openSettings = function(loadSavedDate) {

            var settingScreen = document.getElementById("tbl_settings");
            settingScreen.style.top = $lp("#tbl_main").offset().top+11+"px";
            settingScreen.style.left = $lp("#tbl_main").offset().left+13+"px";
            settingScreen.style.visibility = "visible";

            if (!loadSavedDate)
                return;
            var target = new Date();
            if (targetDate.getTime() > target.getTime())
                target = targetDate;
            var tmpElm = document.getElementById("sl_year");
          selectByValue(tmpElm,target.getFullYear());

          tmpElm = document.getElementById("sl_month");
          selectByValue(tmpElm,target.getMonth());

          tmpElm = document.getElementById("sl_day");
          selectByValue(tmpElm,target.getDate());

          if (target.getHours()>11) {
              var h = target.getHours()-12;
              if (h==0)
                  h = 12;
              document.getElementById("txt_hour").value = addZero(h);
              tmpElm = document.getElementById("sl_part_of_day");
              tmpElm.options[1].selected = true;
          }
          else {
              var hh = target.getHours();
              if (hh==0)
                  hh = 12;
              document.getElementById("txt_hour").value = addZero(hh);
              tmpElm = document.getElementById("sl_part_of_day");
              tmpElm.options[0].selected = true;
          }
          document.getElementById("txt_minute").value = addZero(target.getMinutes());

        }

        var selectByValue = function(selectElm,value) {

            var i=0;
            for (i=0;i<selectElm.options.length;i++) {
                if (selectElm.options[i].value == value) {
                    selectElm.options[i].selected = true;
                    return;
                }
            }
        }

        this.closeSettings = function() {
            document.getElementById("tbl_settings").style.visibility = "hidden";
        }

        this.saveSettings = function() {

            var year,month, day, hour, minute;

            var el = document.getElementById("sl_year");
            if (el.selectedIndex<0) {
                this.openError("__MSG_select_year__");
                return;
            }
            else {
                year = el.options[el.selectedIndex].value;
            }

            el = document.getElementById("sl_month");
            if (el.selectedIndex<0) {
                this.openError("__MSG_select_month__");
                return;
            }
            else {
                month = el.options[el.selectedIndex].value;
            }

            el = document.getElementById("sl_day");
            if (el.selectedIndex<0) {
                this.openError("__MSG_select_day__");
                return;
            }
            else {
                day = el.options[el.selectedIndex].value;
            }

            el = document.getElementById("txt_hour");
            hour = parseInt(el.value,10);
            if (isNaN(hour) || hour<0 || hour>23) {
                this.openError("__MSG_valid_hour__");
                return;
            }
            else {
                if (document.getElementById("sl_part_of_day").selectedIndex==0) { //AM
                    hour = hour%12;
                }
                else if (hour<12) //PM
                    hour = hour+12;
            }

            el = document.getElementById("txt_minute");
            minute = parseInt(el.value,10);
            if (isNaN(minute) || minute<0 || minute>59) {
                this.openError("__MSG_valid_minute__");
                return;
            }


            var tmpDate = new Date(year,month,day,hour,minute,0);
            var tmpMillis = tmpDate.getTime();
            tmpMillis = tmpMillis - (new Date()).getTime();
            if (((tmpMillis/3600000)/24) > 999) {
                this.openError("__MSG_only_999_d__");
                return;
            }

            prefs.set("cd_year", year);
            prefs.set("cd_month", month);
            prefs.set("cd_day", day);
            prefs.set("cd_hour", hour);
            prefs.set("cd_minute", minute);

            targetDate = tmpDate;
            targetMillis = targetDate.getTime();
            this.updateUI();
            this.closeSettings();
        }


        this.saveText = function(text) {

            prefs.set("cd_text", text);
            document.getElementById("title_text").value = text;
        }

        this.openError = function(msg) {

            this.closeSettings();
            document.getElementById("error_meesage").innerHTML = msg;
            var errorScreen = document.getElementById("tbl_error");
            errorScreen.style.top = $lp("#tbl_main").offset().top+11+"px";
            errorScreen.style.left = $lp("#tbl_main").offset().left+13+"px";
            errorScreen.style.visibility = "visible";
        }

        this.closeError = function() {
            document.getElementById("tbl_error").style.visibility = "hidden";
            this.openSettings(false);
        }

        this.updateUI = function() {
            var d = new Date()
            var diff = targetMillis - d.getTime();
            var tmp;
            if (diff >0) {
                diff = Math.floor(diff/1000);
                //second
                tmp = diff%60;
                document.getElementById("number_8").style.backgroundPosition = (-17)*(1+tmp%10) + "px 0px";
                tmp = Math.floor(tmp/10);
                document.getElementById("number_7").style.backgroundPosition = (-17)*(1+tmp%6) + "px 0px";
                diff = Math.floor(diff/60);
                //minuts
                tmp = diff%60;
                document.getElementById("number_6").style.backgroundPosition = (-17)*(1+tmp%10) + "px 0px";
                tmp = Math.floor(tmp/10);
                document.getElementById("number_5").style.backgroundPosition = (-17)*(1+tmp%6) + "px 0px";
                diff = Math.floor(diff/60);
                //hours
                tmp = diff%24;
                document.getElementById("number_4").style.backgroundPosition = (-17)*(1+tmp%10) + "px 0px";
                tmp = Math.floor(tmp/10);
                document.getElementById("number_3").style.backgroundPosition = (-17)*(1+tmp%3) + "px 0px";
                diff = Math.floor(diff/24);
                //days
                tmp = diff%1000;
                document.getElementById("number_2").style.backgroundPosition = (-17)*(1+tmp%10) + "px 0px";
                tmp = Math.floor(tmp/10);
                document.getElementById("number_1").style.backgroundPosition = (-17)*(1+tmp%10) + "px 0px";
                tmp = Math.floor(tmp/10);
                document.getElementById("number_0").style.backgroundPosition = (-17)*(1+tmp%10) + "px 0px";
            }
            else {
                var i;
                for (i=0;i<9;i++) {
                    document.getElementById("number_"+i).style.backgroundPosition = "-17px 0px";
                }
            }
        }

    }

    </script>

    <center>

    <div style='height:10px; font-size:1px;'></div>

    <table id="tbl_main" width="272" height="96" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td width="21">&nbsp;</td>
        <td width="230"><table width="230" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td style="font-size:1px; height:14px; line-height:14px;"></td>
          </tr>
          <tr>
            <td height="14"><table width="230" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td style="line-height:14px; height:14px;" align="left"><input id="title_text" type="text" class="text_input" value="Click here to edit title" onfocus="this.select();" onchange="lp_countdown.saveText(this.value);" maxlength="64"/></td>
                  <td width="80" align="right" valign="top"><a id="a_settings" class="style2" href="javascript:void(0);" onclick="lp_countdown.openSettings(true);">__MSG_set_date__</a></td>
                </tr>
            </table></td>
          </tr>
          <tr>
            <td style="font-size:1px; height:8px;"></td>
          </tr>
          <tr>
            <td height="26"><table width="230" height="26" border="0" cellpadding="0" cellspacing="0">
                <tr>
                  <td id="number_0" class="number_td"></td>
                  <td width="7">&nbsp;</td>
                  <td id="number_1" class="number_td"></td>
                  <td width="7">&nbsp;</td>
                  <td id="number_2" class="number_td"></td>
                  <td width="14">&nbsp;</td>
                  <td id="number_3" class="number_td"></td>
                  <td width="7">&nbsp;</td>
                  <td id="number_4" class="number_td"></td>
                  <td width="14">&nbsp;</td>
                  <td id="number_5" class="number_td"></td>
                  <td width="7">&nbsp;</td>
                  <td id="number_6" class="number_td"></td>
                  <td width="14">&nbsp;</td>
                  <td id="number_7" class="number_td"></td>
                  <td width="7">&nbsp;</td>
                  <td id="number_8" class="number_td"></td>
                </tr>
            </table></td>
          </tr>
          <tr>
            <td style="line-height:5px; height:5px;">&nbsp;</td>
          </tr>
          <tr>
            <td height="13"><table width="230" height="13" border="0" cellpadding="0" cellspacing="0">
                <tr>
                  <td id="day_lable" width="65" align="center" valign="top" class="style2">__MSG_days__</td>
                  <td width="17" class="style1">&nbsp;</td>
                  <td id="hour_lable" width="41" align="center" valign="top" class="style2">__MSG_hours__</td>
                  <td width="17" class="style1">&nbsp;</td>
                  <td id="minute_lable" width="41" align="center" valign="top" class="style2">__MSG_minutes__</td>
                  <td width="17" class="style1">&nbsp;</td>
                  <td id="second_lable" width="41" align="center" valign="top" class="style2">__MSG_seconds__</td>
                </tr>
            </table></td>
          </tr>
          <tr>
            <td style="height:14px; font-size:1px; line-height:14px;">&nbsp;</td>
          </tr>
        </table></td>
        <td width="21">&nbsp;</td>
      </tr>
    </table>

    <div style="margin-bottom:2px;">
      <table border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td align="right"><div id="prev_btn" style="width:17px; height:17px;"></div></td>
        <td align="right"><div style="width:4px;"></div></td>
        <td style="font:bold 11px Verdana; color:#B0B0B0; line-height:17px;">__MSG_change_skin__</td>
        <td align="right"><div style="width:4px;"></div></td>
        <td align="left"><div id="next_btn" style="width:17px; height:17px;"></div></td>
      </tr>
      </table>
    </div>
    <div style="height:9px; font-size:1px; line-height:9px;">
      <img id="divide_img" width="248" height="9" alt="Divider" border="0" />
    </div>




    <table id="tbl_settings" width="246" height="73" border="0" cellpadding="5" cellspacing="0" class="settings_style">
      <tr>
        <td valign="top"><table style="direction:__BIDI_DIR__;" width="226" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td colspan="2" align="__BIDI_START_EDGE__;"><span class="style4">__MSG_edit_date_title__</span></td>
            <td colspan="2" ><div style="text-align:__BIDI_END_EDGE__;"><a href="javascript:void(0);" class="style5" align="right;" onclick="lp_countdown.closeSettings();">__MSG_cancel__</a><span class="style5"> | </span><a href="javascript:void(0);" class="style5" onclick="lp_countdown.saveSettings();">__MSG_save__</a></div></td>
          </tr>
          <tr>
            <td style="direction:__BIDI_DIR__;" height="24" class="style5">__MSG_date__</td>
            <td height="24" class="style5">
              <select id="sl_month" class="style5">
              <option value="0">__MSG_jan__</option>
              <option value="1">__MSG_feb__</option>
              <option value="2">__MSG_mar__</option>
              <option value="3">__MSG_apr__</option>
              <option value="4">__MSG_may__</option>
              <option value="5">__MSG_jun__</option>
              <option value="6">__MSG_jul__</option>
              <option value="7">__MSG_aug__</option>
              <option value="8">__MSG_sep__</option>
              <option value="9">__MSG_oct__</option>
              <option value="10">__MSG_nov__</option>
              <option value="11">__MSG_dec__</option>
            </select>
            </td>
            <td height="24" class="style5">
              <select id="sl_day" class="style5">
              <option value="1">1</option>
              <option value="2">2</option>
              <option value="3">3</option>
              <option value="4">4</option>
              <option value="5">5</option>
              <option value="6">6</option>
              <option value="7">7</option>
              <option value="8">8</option>
              <option value="9">9</option>
              <option value="10">10</option>
              <option value="11">11</option>
              <option value="12">12</option>
              <option value="13">13</option>
              <option value="14">14</option>
              <option value="15">15</option>
              <option value="16">16</option>
              <option value="17">17</option>
              <option value="18">18</option>
              <option value="19">19</option>
              <option value="20">20</option>
              <option value="21">21</option>
              <option value="22">22</option>
              <option value="23">23</option>
              <option value="24">24</option>
              <option value="25">25</option>
              <option value="26">26</option>
              <option value="27">27</option>
              <option value="28">28</option>
              <option value="29">29</option>
              <option value="30">30</option>
              <option value="31">31</option>
            </select>
            </td>
            <td height="24" class="style5">
              <select id="sl_year" name="year" class="style5">
              <option value="2008">2008</option>
              <option value="2009">2009</option>
              <option value="2010">2010</option>
              <option value="2011">2011</option>
              <option value="2012">2012</option>
              <option value="2013">2013</option>
              <option value="2014">2014</option>
              <option value="2015">2015</option>
              <option value="2016">2016</option>
              <option value="2017">2017</option>
              <option value="2018">2018</option>
              <option value="2019">2019</option>
              <option value="2020">2020</option>
              <option value="2021">2021</option>
              <option value="2022">2022</option>
              <option value="2023">2023</option>
              <option value="2024">2024</option>
              <option value="2025">2025</option>
              <option value="2026">2026</option>
              <option value="2027">2027</option>
              </select></td>
          </tr>
          <tr>
            <td style="direction:__BIDI_DIR__;" height="24" class="style5">__MSG_time__</td>
            <td height="24" class="style5">
              <table border="0" cellpadding="0" cellspacing="0" style="direction:ltr;">
                <tr>
                  <td> <input id="txt_hour" type="text" class="style5" width="90%" size="2" maxlength="2" /> </td>
                  <td> <span class="style4" style="padding:0px 4px 0px 4px;">:</span> </td>
                  <td> <input id="txt_minute" type="text" class="style5" size="2" maxlength="2" /> </td>
                </tr>
              </table>
            </td>
            <td colspan="2" height="24" align="left;" class="style5">
                <select id="sl_part_of_day" class="style5">
                <option value="am">AM</option>
               <option value="pm">PM</option>
              </select>
            </td>
          </tr>
        </table></td>
      </tr>
    </table>

    <table id="tbl_error" width="246" height="73" border="0" cellpadding="5" cellspacing="0" class="settings_style">
      <tr>
        <td align="center" class="style4">
        <table width="220" border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td height="30"><div id="error_meesage" align="center"></div><div align="center"></div></td>
          </tr>
          <tr>
            <td align="center"><span onclick="lp_countdown.closeError();" style="cursor:pointer; border:1px solid black; padding:2px;" align="center">OK</span></td>
            </tr>
        </table>
        </td>
      </tr>
    </table>
    <div>
      <script type="text/javascript">
                var mMENU = _IG_GetCachedUrl("http://cdn.labpixies.com/infra/js/lp_footer.js");
            document.write('<scr'+'ipt type="text/javascript" src="'+mMENU+'"></scr'+'ipt>');
            </script>
        </div>


    </center>

    <script type="text/javascript" >
    var lp_countdown;

    _IG_RegisterOnloadHandler(function() {

      //load the images
      document.getElementById('divide_img').src=_IG_GetCachedUrl(IMAGES_BASE+"bottom_divider.gif");
      document.getElementById('prev_btn').style.background = "transparent url("+_IG_GetCachedUrl(IMAGES_BASE+"buttons_sprite.png")+") 0px 0px no-repeat";
      document.getElementById('next_btn').style.background = "transparent url("+_IG_GetCachedUrl(IMAGES_BASE+"buttons_sprite.png")+") -17px 0px no-repeat";

      lp_countdown = new countdown();
      lp_countdown.init();

      $lp("#prev_btn").hover(
                function(e){$lp(this).css("background-position","0px -17px");},
                function(e){$lp(this).css("background-position","0px 0px");}
              ).click(
                function() {lp_countdown.changeSkin(2);}
              );
      $lp("#next_btn").hover(
                function(e){$lp(this).css("background-position","-17px -17px");},
                function(e){$lp(this).css("background-position","-17px 0px");}
              ).click(
                function() {lp_countdown.changeSkin(1);}
              );


    });

    </script>
  ]]>
  </Content>

  <Content type="html" view="profile,home">
  <![CDATA[
    <title>Countdown</title>


    <script language="javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js"></script>
    <script language="javascript">
      var $lp = jQuery.noConflict();
      var _gadgetID = 58;

      function lp_trackEvent(eventName,eventLable,eventVar) {}

      var mSCRIPT = _IG_GetCachedUrl("http://cdn.labpixies.com/infra/js/lp_data.js");
      mSCRIPT = mSCRIPT.replace("%rewriteMime%", "");
      document.write('<scr'+'ipt type="text/javascript" src="'+mSCRIPT+'"></scr'+'ipt>');

      var times_arr = [];
      times_arr['AM'] = "__MSG_am__";
      times_arr['PM'] = "__MSG_pm__";

      var LP_MSG_you_have_2_one = "__MSG_you_have_2_one__";
      var LP_MSG_you_have_2_many = "__MSG_you_have_2_many__";
      var LP_MSG_expired_alert_1 = "__MSG_expired_alert_1__";
      var LP_MSG_expired_alert_2 = "__MSG_expired_alert_2__";

      function deploy_countdown_profile()
      {
        lpgadgets.lp.campaigns.countdown.deploy();
      }
      _IG_RegisterOnloadHandler(deploy_countdown_profile);

      mSCRIPT = _IG_GetCachedUrl("http://www.labpixies.com/campaigns/countdown/countdown_15.js");
      document.write('<scr'+'ipt type="text/javascript" src="'+mSCRIPT+'"></scr'+'ipt>');

    </script>

    <style>

    body, html
    {
      font-family:Arial;
    }

    .lp_cd_item_main
    {
      width:245px;
      height:80px;
    }

    .lp_cd_item_title
    {
      /*padding-left:10px;*/
      font-size:12px;
      height:31px;
      line-height:31px;
      overflow:hidden;
      text-align:__BIDI_START_EDGE__;
      direction:__BIDI_DIR__;
      font-weight:bold;
      width:215px;
    }

    .lp_cd_item_title_exp
    {
      padding-left:10px;
      font-size:12px;
      height:28px;
      line-height:28px;
      overflow:hidden;
      text-align:left;
      font-weight:bold;
    }

    .lp_cd_item_digits
    {
      height:23px;
      width:245px;
    }

    .lp_cd_item_digit
    {
      width:15px;
      height:23px;
      overflow:hidden;
      float:left;
      margin-left:7px;
    }

    .lp_cd_item_digit_sep
    {
      width:7px;
      height:23px;
      float:left;
    }

    .lp_cd_item_digits_text
    {
      height:26px;
      width:245px;
      font-size:10px;
      line-height:26px;
    }

    .lp_cd_item_digits_text_exp
    {
      height:23px;
      width:245px;
      font-size:10px;
      line-height:26px;
    }

    .lp_cd_item_digits_part
    {
      float:left;
      text-align:right;
      overflow:hidden;
    }

    .lp_cd_pr_toolbar
    {
      width:225px;
      height:13px;
      padding-top:5px;
    }

    .lp_cd_pr_toolbar_btn
    {
      width:11px;
      height:13px;
      overflow:hidden;
      cursor:pointer;
      font-size:1px;
      line-height:1px;
    }

    .lp_cd_pr_bottom
    {
      font-size:10px;
      color:#363636;
      margin-top:5px;
      padding-left:5px;
      width:245px;
      text-align:left;
      cursor:pointer;
    }

    .lp_cd_curr_color
    {
      color: #ffffff;
    }

    .lp_cd_pr_settings_msg
    {
      text-align:center;
      border:1px solid #ABD8E0;
      background-color: #000000;
      width:224px;
      height:64px;
      left:0px;
      top:8px;
      position:relative;
    }

    .lp_cd_pr_settings_msg_text
    {
      color:#ABD8E0;
      font-size: __MSG_title_dflt_font_size__;
      padding-top:10px;
    }

    .lp_cd_pr_settings_btn
    {
      width:115px;
      height:15px;
      background-position:0px -26px;
      font-size:10px;
      font-weight:bold;
      color:#FFFFFF;
      overflow:hidden;
      cursor:pointer;
      margin-top:10px;
      line-height:14px;
    }

    .lp_cd_expired
    {
      height:29px;
      line-height:29px;
      font-size:__MSG_countdown_expired_font_size__;
      font-weight:bold;
      color:#FFFFFF;
      float:left;
      /*margin-left:5px;*/
      width:245px;
      /*width:242px;*/
      /*padding-left:5px;*/
      background-repeat:no-repeat;

    }
    </style>

    <center>
      <div id="lp_cd_pr_main_cont">
        <!-- TOOLBAR -->
        <div class="lp_cd_pr_toolbar" style="height:13px;">
          <div id="lp_cd_pr_add_btn" title="__MSG_add_tooltip__" class="lp_cd_pr_toolbar_btn" style="margin-left:0px;float:left;"></div>
          <div id="lp_cd_pr_skin_btn" title="__MSG_skin_tooltip__" class="lp_cd_pr_toolbar_btn" style="margin-right:0px;float:right;"></div>
          <div id="lp_cd_pr_edit_btn" title="__MSG_edit_tooltip__" class="lp_cd_pr_toolbar_btn" style="margin-right:5px;float:right;"></div>
          <div id="lp_cd_pr_edit_txt_btn" style="font-size:10px; color:#363636; cursor:pointer; margin-right:3px; float:right;" onmouseout="this.style.textDecoration='none';" onmouseover="this.style.textDecoration='underline';">__MSG_edit__</div>
        </div>
        <!-- /TOOLBAR -->

        <div id="lp_cd_pr_countdown" class="lp_cd_item_main">
          <!-- SETTINGS -->
          <div id="lp_cd_pr_settings_cont" style="direction:__BIDI_DIR__; align:__BIDI_START_EDGE__; display:none;">
            <div id="lp_cd_pr_settings" class="lp_cd_pr_settings_msg">
              <div class="lp_cd_pr_settings_msg_text">__MSG_set_first__</div>
              <div>
                <center><div class="lp_cd_pr_settings_btn">__MSG_click_here__</div></center>
              </div>
            </div>
          </div>
          <!-- /SETTINGS -->

          <!-- COUNTER -->
          <div id="lp_cd_pr_countdown_cont" style="cursor:pointer;">
            <div id="lp_cd_pr_item_title" class="lp_cd_item_title lp_cd_curr_color"></div>
            <div id="lp_cd_item_digits_cont" class="lp_cd_item_digits">
              <div class="lp_cd_item_digit_sep" style="width:10px;"></div>
              <div id="lb_cd_dig_1" class="lp_cd_item_digit"></div>
              <div id="lb_cd_dig_2" class="lp_cd_item_digit"></div>
              <div id="lb_cd_dig_3" class="lp_cd_item_digit"></div>
              <div class="lp_cd_item_digit_sep"></div>
              <div id="lb_cd_dig_4" class="lp_cd_item_digit"></div>
              <div id="lb_cd_dig_5" class="lp_cd_item_digit"></div>
              <div class="lp_cd_item_digit_sep"></div>
              <div id="lb_cd_dig_6" class="lp_cd_item_digit"></div>
              <div id="lb_cd_dig_7" class="lp_cd_item_digit"></div>
              <div class="lp_cd_item_digit_sep"></div>
              <div id="lb_cd_dig_8" class="lp_cd_item_digit"></div>
              <div id="lb_cd_dig_9" class="lp_cd_item_digit"></div>
            </div>

            <div id="lp_cd_expired_cont" class="lp_cd_expired"  style="display:none">
            __MSG_countdown_expired__
            </div>
            <div id="lp_cd_item_digits_text_cont" class="lp_cd_item_digits_text lp_cd_curr_color">
              <div class="lp_cd_item_digits_part" style="width:78px;">__MSG_dig_days__</div>
              <div class="lp_cd_item_digits_part" style="width:51px;">__MSG_dig_hours__</div>
              <div class="lp_cd_item_digits_part" style="width:51px;">__MSG_dig_mins__</div>
              <div class="lp_cd_item_digits_part" style="width:51px;">__MSG_dig_secs__</div>
              <div class="lp_cd_item_digits_part" style="width:14px;"></div>
            </div>
          </div>
          <!-- /COUNTER -->
        </div>

        <!-- BOTTOM -->
        <div id="lp_cd_pr_bottom_div" style="direction:__BIDI_DIR__;" class="lp_cd_pr_bottom">
        __MSG_you_have_all__&nbsp;<span id="lp_cd_pr_more_items">0</span>&nbsp;<font id="lp_cd_pr_expired_items" style="color:#ED1C24;"></font>
        </div>
        <!-- /BOTTOM -->
      </div>

      <!--
      <div style="height:9px; font-size:1px; line-height:9px;padding-top:3px;">
        <img id="lp_cd_pr_divide_img" width="248" height="9" alt="Divider" border="0" />
      </div>
      -->
      <div style="margin-bottom:4px;margin-top:6px;height:1px;font-size:1px;line-height:1px;border-bottom:1px solid #cccccc;width:242px"></div>

      <div>
          <script type="text/javascript">
                var mMENU = _IG_GetCachedUrl("http://cdn.labpixies.com/infra/js/lp_footer.js");
                mMENU = mMENU.replace("%rewriteMime%", "");
                document.write('<scr'+'ipt type="text/javascript" src="'+mMENU+'"></scr'+'ipt>');
                </script>
            </div>
    </center>
  ]]>
  </Content>

  <Content type="html" view="canvas">
    <![CDATA[
    <title>Countdown</title>
    <script language="javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js"></script>

    <link rel="stylesheet" type="text/css" media="all" href="http://cdn.labpixies.com/infra/css/skins.css" />
    <script language="javascript">
      var $lp = jQuery.noConflict();
      var _gadgetID = 58;

      function lp_trackEvent(eventName,eventLable,eventVar) {}

      var mSCRIPT = _IG_GetCachedUrl("http://cdn.labpixies.com/infra/js/lp_data.js");
      mSCRIPT = mSCRIPT.replace("%rewriteMime%", "");
      document.write('<scr'+'ipt type="text/javascript" src="'+mSCRIPT+'"></scr'+'ipt>');

      mSCRIPT = _IG_GetCachedUrl("http://cdn.labpixies.com/infra/jquery/jquery.dimensions.js");
      mSCRIPT = mSCRIPT.replace("%rewriteMime%", "");
      document.write('<scr'+'ipt type="text/javascript" src="'+mSCRIPT+'"></scr'+'ipt>');

      mSCRIPT = _IG_GetCachedUrl("http://cdn.labpixies.com/infra/jquery/jquery.mousewheel.js");
      mSCRIPT = mSCRIPT.replace("%rewriteMime%", "");
      document.write('<scr'+'ipt type="text/javascript" src="'+mSCRIPT+'"></scr'+'ipt>');

      mSCRIPT = _IG_GetCachedUrl("http://cdn.labpixies.com/infra/jquery/jscrollpane.js");
      mSCRIPT = mSCRIPT.replace("%rewriteMime%", "");
      document.write('<scr'+'ipt type="text/javascript" src="'+mSCRIPT+'"></scr'+'ipt>');

      mSCRIPT = _IG_GetCachedUrl("http://cdn.labpixies.com/infra/js/lp_skins.js");
      mSCRIPT = mSCRIPT.replace("%rewriteMime%", "");
      document.write('<scr'+'ipt type="text/javascript" src="'+mSCRIPT+'"></scr'+'ipt>');

      var month_arr = [];
      month_arr[1]="__MSG_January__";
      month_arr[2]="__MSG_February__";
      month_arr[3]="__MSG_March__";
      month_arr[4]="__MSG_April__";
      month_arr[5]="__MSG_May__";
      month_arr[6]="__MSG_June__";
      month_arr[7]="__MSG_July__";
      month_arr[8]="__MSG_August__";
      month_arr[9]="__MSG_September__";
      month_arr[10]="__MSG_October__";
      month_arr[11]="__MSG_November__";
      month_arr[12]="__MSG_December__";

      var weekdays_arr = [];
      weekdays_arr[1]="__MSG_sunday__";
      weekdays_arr[2]="__MSG_monday__";
      weekdays_arr[3]="__MSG_tuesday__";
      weekdays_arr[4]="__MSG_wednseday__";
      weekdays_arr[5]="__MSG_thursday__";
      weekdays_arr[6]="__MSG_friday__";
      weekdays_arr[7]="__MSG_saturday__";

      var times_arr = [];
      times_arr['AM'] = "__MSG_am__";
      times_arr['PM'] = "__MSG_pm__";

      var LP_MSG_add_exp_btn = "__MSG_add_exp_btn__";

      var LP_MSG_enter_name = "__MSG_enter_name__";
      var LP_MSG_sure_del = "__MSG_sure_del__";
      var LP_MSG_sure_del_end = "__MSG_sure_del_end__";

      var LP_MSG_edit_tooltip = "__MSG_edit_tooltip__";
      var LP_MSG_del_tooltip = "__MSG_del_tooltip__";
      var LP_MSG_repeat_tooltip = "__MSG_repeat_tooltip__";
      var LP_MSG_expired = "__MSG_expired__";

      var LP_MSG_year_dis = "__MSG_year_dis__";
      var LP_MSG_month_dis = "__MSG_month_dis__";
      var LP_MSG_week_dis = "__MSG_week_dis__";
      var LP_MSG_day_dis = "__MSG_day_dis__";

      var LP_MSG_skin_select = "__MSG_skin_select__";
      var LP_MSG_skin_save = "__MSG_skin_save__";
      var LP_MSG_skin_cancel = "__MSG_skin_cancel__";

      var LP_MSG_yes = "__MSG_yes__";
      var LP_MSG_no = "__MSG_no__";

      var LP_MSG_data_full = "__MSG_data_full__";
      var LP_MSG_count_too_long = "__MSG_count_too_long__";
      var LP_MSG_expired_alert_1 = "__MSG_expired_alert_1__";
      var LP_MSG_expired_alert_2 = "__MSG_expired_alert_2__";
      var LP_MSG_dates_explainer = "__MSG_dates_explainer__";

      var LP_MSG_title_dflt = "__MSG_title_dflt__";
      var LP_MSG_add_first = "__MSG_add_first__";

      function deploy_countdown_canvas()
      {
        // countdown deploy
        lpgadgets.lp.campaigns.countdown.deploy();
      }

      _IG_RegisterOnloadHandler(deploy_countdown_canvas);

      mSCRIPT = _IG_GetCachedUrl("http://www.labpixies.com/campaigns/countdown/countdown_15.js");
      document.write('<scr'+'ipt type="text/javascript" src="'+mSCRIPT+'"></scr'+'ipt>');

    </script>

    <style>

    body {direction:ltr;}
    body, html
    {
      font-family:Arial;
    }

    .lp_cd_item_main
    {
      width:245px;
      height:80px;
    }

    .lp_cd_item_title
    {
      /*padding-left:10px;*/
      font-size:12px;
      height:31px;
      line-height:31px;
      overflow:hidden;
      text-align:__BIDI_START_EDGE__;
      font-weight:bold;
      width:215px;
      direction:__BIDI_DIR__;
    }

    .lp_cd_item_title_exp
    {
      padding-left:10px;
      font-size:12px;
      height:28px;
      line-height:28px;
      overflow:hidden;
      text-align:left;
      font-weight:bold;
    }

    .lp_cd_item_digits
    {
      height:23px;
      width:245px;
    }

    .lp_cd_item_digit
    {
      width:15px;
      height:23px;
      overflow:hidden;
      float:left;
      margin-left:7px;
      background-position:-15px 0px;
    }

    .lp_cd_item_digit_sep
    {
      width:7px;
      height:23px;
      float:left;
    }

    .lp_cd_item_digits_text
    {
      height:26px;
      width:245px;
      font-size:10px;
      line-height:26px;
    }

    .lp_cd_item_digits_text_exp
    {
      height:23px;
      width:245px;
      font-size:10px;
      line-height:23px;
    }

    .lp_cd_item_digits_part
    {
      float:left;
      text-align:right;
      overflow:hidden;
    }

    .lp_cd_curr_color
    {
      color: #ffffff;
    }

    .lp_cd_cv_edit_item_top
    {
      background-position:0px -77px;
      width: 460px;
      height:24px;
      overflow:hidden;
      line-height:24px;
      font-size:__MSG_add_font__px;
      font-weight:bold;
      color:#ABD8E0;

    }

    .lp_cd_cv_edit_item_bottom
    {
      background-position:0px -101px;
      width: 460px;
      height:6px;
      overflow:hidden;
      /*margin-bottom:10px;*/
      background-repeat:no-repeat;
    }

    .lp_cd_cv_edit_item_content
    {
      width:460px;
      background-color:#ABD8E0;
      text-align:left;
    }

    .lp_cd_cv_edit_item_content_table
    {
      font-size:12px;
      font-weight:bold;
      color:#00343D;
      padding-top:12px;
      /*width:460px;*/
    }

    .lp_cd_cv_edit_item_top_radio
    {
      float:right;
      font-size:__MSG_add_font_radio__px;
      color:#ABD8E0;
      font-weight:normal;
      padding-right:8px;
    }

    .lp_cd_input
    {
      font-size:12px;
      font-weight:normal;
      color:#000000;
      height:20px;
      /*line-height:20px;*/
      width:150px;
      border: 1px solid #1b95aa;
    }

    .lp_cd_select
    {
      font-size:12px;
      font-weight:normal;
      color:#000000;
      height:20px;
      border: 1px solid #1b95aa;
    }

    .lp_cd_cv_edit_rep
    {
      font-weight:normal;
      line-height:20px;
      padding-right:2px;
      height:24px;
    }

    .lp_cd_cv_edit_rep_radio
    {
      font-weight:normal;
      line-height:20px;
      padding-right:0px;
      height:24px;
    }

    .lp_cd_cv_settings_btn
    {
      width:115px;
      height:15px;
      background-position:0px -26px;
      font-size:10px;
      font-weight:bold;
      color:#FFFFFF;
      overflow:hidden;
      cursor:pointer;
      margin-top:10px;
      line-height:14px;
      text-align:center;
    }

    .lp_cd_cv_items_top
    {
      height:60px;
      overflow:hidden;
      width:520px;
    }

    .lp_cd_cv_items_bottom
    {
      height:16px;
      overflow:hidden;
      width:520px;
      background-position:0px -60px;
      clear:both;
      font-size:1px;
      line-height:1px;
    }

    .lp_cd_cv_items_title
    {
      float:left;
      line-height:30px;
      font-weight:bold;
      font-size:12px;
      color:#FFFFFF;
    }

    .lp_cd_cv_item_date
    {
      padding-__BIDI_START_EDGE__:8px;
    }

    .lp_cd_cv_items_sep
    {
      background-position:0px -71px;
      width:2px;
      height:22px;
      margin-top:4px;
      float:left;
    }

    .lp_cd_cv_item
    {
      background-repeat: repeat-y;
      width:520px;
      height:31px;
    }

    .lp_cd_cv_item_edit
    {
      background-repeat: repeat-y;
      width:520px;
      padding-top:9px;
      /*padding-bottom:5px;*/
      /*border-bottom: 1px solid #cccccc;*/
      /*border: 1px solid #ff0000;*/
    }

    .lp_cd_cv_item_title
    {
      font-size:12px;
      font-weight:bold;
      line-height:30px;
      height:30px;
      color:#000000;
      float:left;
      /*width:220px;*/
      width:163px;
      /*margin-right:10px;*/
      overflow:hidden;
      text-align:__BIDI_START_EDGE__;
      margin-__BIDI_START_EDGE__:6px;
      direction:__BIDI_DIR__;
      cursor:pointer;
    }

    .lp_cd_cv_item_time
    {
      font-size:__MSG_expired_font_size__;
      font-weight:normal;
      color:#000000;
      float:left;
      line-height:30px;
      overflow:hidden;
      margin-__BIDI_START_EDGE__:10px;
      /*width:189px;*/
      width:90px;
      text-align:__BIDI_START_EDGE__;
    }

    .lp_cd_cv_item_target
    {
      font-size:11px;
      font-weight:normal;
      color:#666666;
      line-height:15px;
      text-align:__BIDI_START_EDGE__;
      direction:__BIDI_DIR__;
    }

    .lp_cd_cv_item_bottom_border
    {
      /*margin-left:10px;*/
      /*padding-left:10px;*/
      /*width:500px;*/
      width:520px;
      height:1px;
      font-size:1px;
      line-height:1px;
      /*background-color:#cccccc;*/
      /*background-color:#004b57;*/
      overflow:hidden;
      float:left;
    }

    .lp_cd_cv_item_toolbar
    {
      float:right;
      width:63px;
      height:14px;
    }

    .lp_cd_cv_item_toolbar_btn
    {
      width:14px;
      height:14px;
      overflow:hidden;
      font-size:1px;
      line-height:1px;
      float:left;
      margin-right:10px;
      margin-top:8px;
      display:none;
      cursor:pointer;
    }

    .lp_cd_cv_item_toolbar_btn_edit
    {
      background-position:-28px 0px;
    }

    .lp_cd_cv_item_toolbar_btn_del
    {
      background-position:-42px 0px;
    }

    .lp_cd_cv_item_toolbar_btn_edit_on
    {
      background-position: 0px 0px;
    }

    .lp_cd_cv_item_toolbar_btn_del_on
    {
      background-position:-14px 0px;
    }

    .lp_cd_cv_item_toolbar_btn_repeat
    {
      width:11px;
      height:13px;
      overflow:hidden;
      font-size:1px;
      line-height:1px;
      float:left;
      /*margin-left:20px;
      margin-right:9px;*/
      /*margin-left:20px;*/
      margin-top:8px;
      background-position:-0px -58px;
    }

    .lp_cd_cv_item_toolbar_txt
    {
      float:left;
      font-size:12px;
      color:#448996;
    }

    .lp_cd_cv_item_toolbar_bottom_txt
    {
      float:left;
      font-size:12px;
      font-weight:bold;
      color:#448996;
    }

    .lp_cd_cv_top_toolbar
    {
      width:520px;
      margin-bottom:3px;
      height:28px;
      margin-top:10px;
    }

    .lp_cd_cv_item_toolbar_top_btn
    {
      width:15px;
      height:15px;
      overflow:hidden;
      font-size:1px;
      line-height:1px;
      float:left;
      margin-right:10px;
    }

    .lp_cd_cv_toolbar_top
    {
      color:#448996;
      cursor:pointer;
    }

    .lp_cd_cv_item_del
    {
      background-color:#000000;
      width:500px;
      height:31px;
      margin:0px 10px;
      direction:__BIDI_DIR__;

    }

    .lp_cd_cv_item_del_text
    {
      text-align:__BIDI_START_EDGE__;
      font-size:__MSG_sure_del_font_size__;
      font-weight:bold;
      color:#F26522;
      padding-__BIDI_START_EDGE__:10px;
      float:__BIDI_START_EDGE__;
      line-height:30px;
      /*width:340px;
      height:30px;*/
      overflow:hidden;
      direction:__BIDI_DIR__;
    }

    .lp_cv_gen_btn
    {
      height:15px;
      float:__BIDI_END_EDGE__;
      margin-__BIDI_END_EDGE__:8px;
      margin-top:8px;
      cursor:pointer;
    }

    .lp_cv_gen_btn_left
    {
      width:4px;
      height:15px;
      overflow:hidden;
      float:left;
    }

    .lp_cv_gen_btn_right
    {
      width:4px;
      height:15px;
      overflow:hidden;
      float:left;
    }

    .lp_cv_gen_btn_middle
    {
      height:15px;
      line-height:13px;
      font-size:10px;
      font-weight:bold;
      color:#ffffff;
      float:left;
    }

    .lp_cv_gen_btn_2
    {
      height:15px;
      cursor:pointer;
    }

    .lp_cv_gen_btn_left_2
    {
      width:4px;
      height:15px;
      overflow:hidden;
      float:left;
    }

    .lp_cv_gen_btn_right_2
    {
      width:4px;
      height:15px;
      overflow:hidden;
      float:left;
    }

    .lp_cv_gen_btn_middle_2
    {
      height:15px;
      line-height:13px;
      font-size:10px;
      font-weight:bold;
      color:#ffffff;
      float:left;
      padding-left:10px;
      padding-right:10px;
    }

    .lp_cd_expired
    {
      height:29px;
      line-height:29px;
      /*width:236px;*/
      font-size:__MSG_countdown_expired_font_size__;
      font-weight:bold;
      color:#FFFFFF;
      float:left;
      /*margin-left:5px;*/
      width:245px;
    }
     .lp_cd_cv_item table{
        width:100%;
     }
    .lp_cd_cv_bottom_add
    {
      background-repeat: repeat-y;
      width:520px;
      height:31px;
      line-height:30px;
      text-align:left;
      font-size:12px;
      float:left;
    }

    .lp_cd_cv_skins
    {
      width:520px;
    }
    </style>

        <table cellpadding="0" cellspacing="0" border="0" align="center">
        <tr>
        <td width="520">
        <div id="lp_cd_cv_main_cont" style="width:520px;" align="center">

          <!-- COUNTER -->
          <div id="lp_cd_cv_countdown" class="lp_cd_item_main">
            <div id="lp_cd_cv_countdown_cont">
              <div id="lp_cd_cv_item_title" class="lp_cd_item_title"></div>
              <div id="lp_cd_item_digits_cont" class="lp_cd_item_digits">
                <div class="lp_cd_item_digit_sep" style="width:10px;"></div>
                <div id="lb_cd_dig_1" class="lp_cd_item_digit"></div>
                <div id="lb_cd_dig_2" class="lp_cd_item_digit"></div>
                <div id="lb_cd_dig_3" class="lp_cd_item_digit"></div>
                <div class="lp_cd_item_digit_sep"></div>
                <div id="lb_cd_dig_4" class="lp_cd_item_digit"></div>
                <div id="lb_cd_dig_5" class="lp_cd_item_digit"></div>
                <div class="lp_cd_item_digit_sep"></div>
                <div id="lb_cd_dig_6" class="lp_cd_item_digit"></div>
                <div id="lb_cd_dig_7" class="lp_cd_item_digit"></div>
                <div class="lp_cd_item_digit_sep"></div>
                <div id="lb_cd_dig_8" class="lp_cd_item_digit"></div>
                <div id="lb_cd_dig_9" class="lp_cd_item_digit"></div>
              </div>
              <div id="lp_cd_expired_cont" class="lp_cd_expired"  style="display:none">
              __MSG_countdown_expired__
              </div>
              <div id="lp_cd_item_digits_text_cont" class="lp_cd_item_digits_text">
                <div class="lp_cd_item_digits_part" style="width:78px;">__MSG_dig_days__</div>
                <div class="lp_cd_item_digits_part" style="width:51px;">__MSG_dig_hours__</div>
                <div class="lp_cd_item_digits_part" style="width:51px;">__MSG_dig_mins__</div>
                <div class="lp_cd_item_digits_part" style="width:51px;">__MSG_dig_secs__</div>
                <div class="lp_cd_item_digits_part" style="width:14px;"></div>
              </div>
            </div>
          </div>
          <!-- /COUNTER -->

          <!-- TOOLBAR -->
          <div id="lp_cd_cv_toolbar_cont" class="lp_cd_cv_top_toolbar">
              <div id="lp_cd_cv_skin_btn_top" class="lp_cd_cv_toolbar_top" style="float:right">
              <div id="lp_cd_cv_skin_btn" class="lp_cd_cv_item_toolbar_top_btn"></div>
              <div class="lp_cd_cv_item_toolbar_txt" style="margin-right:7px">__MSG_skin_exp_btn__</div>
            </div>
          </div>
          <!-- /TOOLBAR -->

          <!-- SKINS -->
          <div style="text-align:left;line-height:1px">
            <div id="lp_cd_cv_skins_container" class="lp_cd_cv_skins"></div>
          </div>

          <!-- ITEMS -->
          <div id="lp_cd_cv_items_cont">

            <div class="lp_cd_cv_items_top">
              <div style="line-height:30px;font-size:16px;color:#FFFFFF;padding-__BIDI_START_EDGE__:10px;text-align:__BIDI_START_EDGE__;">__MSG_my_counts__</div>
              <div>
                <div style="width:38px;height:1px;float:left" ></div>
                <div class="lp_cd_cv_items_sep" ></div>
                <div class="lp_cd_cv_items_title" style="direction:__BIDI_DIR__; margin-__BIDI_START_EDGE__:8px;width:160px;text-align:__BIDI_START_EDGE__;">__MSG_my_counts_title__</div>
                <div class="lp_cd_cv_items_sep" style=";"></div>
                <div class="lp_cd_cv_items_title" style="direction:__BIDI_DIR__; padding-__BIDI_START_EDGE__:8px;width:140px;text-align:__BIDI_START_EDGE__;">__MSG_my_counts_date__</div>
                <div class="lp_cd_cv_items_sep" style=";"></div>
                <div class="lp_cd_cv_items_title" style="direction:__BIDI_DIR__; padding-__BIDI_START_EDGE__:8px;width:130px;text-align:__BIDI_START_EDGE__;">__MSG_my_counts_till__</div>
              </div>
            </div>

            <div id="lp_cd_cv_items" style="float:left;">

            </div>

            <div id="lp_cd_cv_add_item" class="lp_cd_cv_bottom_add">
              <div id="lp_cd_cv_add_btn_top" class="lp_cd_cv_toolbar_top" style="float:left">
                <div style="width:42px;height:1px;float:left" ></div>
                <div id="lp_cd_cv_add_btn" class="lp_cd_cv_item_toolbar_top_btn" style="margin-top:7px;"></div>
                <div class="lp_cd_cv_item_toolbar_bottom_txt">__MSG_add_exp_btn__</div>
              </div>
              <div class="lp_cd_cv_item_bottom_border"></div>
            </div>

            <div class="lp_cd_cv_items_bottom"></div>
          </div>
          <!-- /ITEMS -->

          <!-- ADD / EDIT - TEMPLATE -->
          <div id="lp_cd_cv_edit_cont_template" style="display:none; direction:__BIDI_DIR__;">
            <div id="lp_cd_cv_edit_cont_ID" class="lp_cd_cv_item_edit">
              <div class="lp_cd_cv_edit_item_top">
                <div style="padding-left:8px;float:left;">__MSG_add_title__</div>
                <div class="lp_cd_cv_edit_item_top_radio"><input type="radio" name="event_type_ID" value="r" id="lp_cd_cv_event_type_r_ID"/><label for="lp_cd_cv_event_type_r_ID">__MSG_repeat__</label></div>
                <div class="lp_cd_cv_edit_item_top_radio"><input checked type="radio" name="event_type_ID" value="n" id="lp_cd_cv_event_type_n_ID"/><label for="lp_cd_cv_event_type_n_ID">__MSG_non_repeat__</label></div>
              </div>
              <div class="lp_cd_cv_edit_item_content" style="direction:__BIDI_DIR__; text-align:__BIDI_START_EDGE__">
                <table style="direction:__BIDI_DIR__;" cellpadding="0" cellspacing="0" border="0" class="lp_cd_cv_edit_item_content_table">
                  <tr>
                    <td width="20">&nbsp;</td>
                    <td style="direction:__BIDI_DIR__; padding-__BIDI_END_EDGE__:8px;">__MSG_add_title_txt__</td>
                    <td><input id="lp_cd_cv_item_name_ID" type="text" class="lp_cd_input" maxlength="64"/></td>
                  </tr>
                </table>

                <table style="display:none;" id="lp_cd_cv_rep_main_ID" cellpadding="0" cellspacing="0" border="0" class="lp_cd_cv_edit_item_content_table">
                  <tr>
                    <td width="20">&nbsp;</td>
                    <td class="lp_cd_cv_edit_rep" style="font-weight:bold;padding-right:8px;">__MSG_add_repeat_txt__</td>
                    <td class="lp_cd_cv_edit_rep_radio" valign="top"><input checked class="lp_cd_cv_rep_radio" type="radio" name="repeat_type_ID" id="lp_cd_cv_repeat_type_y_ID" value="y"/></td>
                    <td class="lp_cd_cv_edit_rep" style="padding-__BIDI_END_EDGE__:7px;"><label for="lp_cd_cv_repeat_type_y_ID">__MSG_year__</label></td>
                    <td class="lp_cd_cv_edit_rep_radio" valign="top"><input type="radio" name="repeat_type_ID" id="lp_cd_cv_repeat_type_m_ID" value="m"/></td>
                    <td class="lp_cd_cv_edit_rep" style="padding-__BIDI_END_EDGE__:7px;"><label for="lp_cd_cv_repeat_type_m_ID">__MSG_month__</label></td>
                    <td class="lp_cd_cv_edit_rep_radio" valign="top"><input type="radio" name="repeat_type_ID" id="lp_cd_cv_repeat_type_w_ID" value="w"/></td>
                    <td class="lp_cd_cv_edit_rep" style="padding-__BIDI_END_EDGE__:7px;"><label for="lp_cd_cv_repeat_type_w_ID">__MSG_week__</label></td>
                    <td class="lp_cd_cv_edit_rep_radio" valign="top"><input type="radio" name="repeat_type_ID" id="lp_cd_cv_repeat_type_d_ID" value="d"/></td>
                    <td class="lp_cd_cv_edit_rep"><label for="lp_cd_cv_repeat_type_d_ID">__MSG_day__</label></td>
                  </tr>
                </table>

                <table style="display:none" id="lp_cd_cv_rep_y_ID" cellpadding="0" cellspacing="0" border="0" class="lp_cd_cv_edit_item_content_table">
                  <tr>
                    <td width="20">&nbsp;</td>
                    <td class="lp_cd_cv_edit_rep" style="font-weight:bold; padding-__BIDI_END_EDGE__:8px;">__MSG_due_date__</td>
                     <td align="left">
                      <table style="direction:ltr;" cellpadding="0" cellspacing="0" border="0" width="100%">
                        <tr>
                          <td class="lp_cd_cv_edit_rep"><select id="lp_cd_cv_rep_y_month_ID" class="lp_cd_select" style="width:55px;"></select></td>
                          <td class="lp_cd_cv_edit_rep"><select id="lp_cd_cv_rep_y_date_ID" class="lp_cd_select" style="width:45px;"></select></td>
                          <td class="lp_cd_cv_edit_rep"><select id="lp_cd_cv_rep_y_year_ID" class="lp_cd_select" style="width:55px;"></select></td>
                        </tr>
                      </table>
                    </td>
                    <td class="lp_cd_cv_edit_rep" style="font-weight:bold;padding-right:8px;padding-left:8px;">__MSG_time__</td>
                      <td align="left">
                        <table style="direction:ltr;" cellpadding="0" cellspacing="0" border="0" width="100%">
                          <tr>
                            <td class="lp_cd_cv_edit_rep"><select id="lp_cd_cv_rep_y_hour_ID" class="lp_cd_select" style="width:45px;"></select></td>
                            <td class="lp_cd_cv_edit_rep">:</td>
                            <td class="lp_cd_cv_edit_rep"><select id="lp_cd_cv_rep_y_min_ID" class="lp_cd_select" style="width:45px;"></select></td>
                            <td class="lp_cd_cv_edit_rep"><select id="lp_cd_cv_rep_y_time_ID" class="lp_cd_select" style="width:45px;"></select></td>
                          <tr>
                        </table>
                      </td>
                  </tr>
                </table>

                <table style="display:none" id="lp_cd_cv_rep_m_ID" cellpadding="0" cellspacing="0" border="0" class="lp_cd_cv_edit_item_content_table">
                  <tr>
                    <td width="20">&nbsp;</td>
                    <td class="lp_cd_cv_edit_rep" style="font-weight:bold;padding-__BIDI_END_EDGE__:8px;">__MSG_due_date__</td>
                    <td class="lp_cd_cv_edit_rep"><select id="lp_cd_cv_rep_m_date_ID" class="lp_cd_select" style="width:45px;"></select></td>
                    <td class="lp_cd_cv_edit_rep" style="font-weight:bold;padding-right:8px;padding-left:8px;">__MSG_time__</td>
                    <td align="left">
                      <table style="direction:ltr;" cellpadding="0" cellspacing="0" border="0" width="100%">
                        <tr>
                          <td class="lp_cd_cv_edit_rep"><select id="lp_cd_cv_rep_m_hour_ID" class="lp_cd_select" style="width:45px;"></select></td>
                          <td class="lp_cd_cv_edit_rep">:</td>
                          <td class="lp_cd_cv_edit_rep"><select id="lp_cd_cv_rep_m_min_ID" class="lp_cd_select" style="width:45px;"></select></td>
                          <td class="lp_cd_cv_edit_rep"><select id="lp_cd_cv_rep_m_time_ID" class="lp_cd_select" style="width:45px;"></select></td>
                        <tr>
                      </table>
                    </td>
                  </tr>
                </table>

                <table style="display:none" id="lp_cd_cv_rep_w_ID" cellpadding="0" cellspacing="0" border="0" class="lp_cd_cv_edit_item_content_table">
                  <tr>
                    <td width="20">&nbsp;</td>
                    <td class="lp_cd_cv_edit_rep" style="font-weight:bold;padding-__BIDI_END_EDGE__:8px;">__MSG_due_weekday__</td>
                    <td class="lp_cd_cv_edit_rep"><select id="lp_cd_cv_rep_w_day_ID" class="lp_cd_select" style="width:55px;"></select></td>
                    <td class="lp_cd_cv_edit_rep" style="font-weight:bold;padding-right:8px;padding-left:8px;">__MSG_time__</td>
                    <td align="left">
                      <table style="direction:ltr;" cellpadding="0" cellspacing="0" border="0" width="100%">
                        <tr>
                          <td class="lp_cd_cv_edit_rep"><select id="lp_cd_cv_rep_w_hour_ID" class="lp_cd_select" style="width:45px;"></select></td>
                          <td class="lp_cd_cv_edit_rep">:</td>
                          <td class="lp_cd_cv_edit_rep"><select id="lp_cd_cv_rep_w_min_ID" class="lp_cd_select" style="width:45px;"></select></td>
                          <td class="lp_cd_cv_edit_rep"><select id="lp_cd_cv_rep_w_time_ID" class="lp_cd_select" style="width:45px;"></select></td>
                        <tr>
                      </table>
                    </td>
                  </tr>
                </table>

                <table style="display:none" id="lp_cd_cv_rep_d_ID" cellpadding="0" cellspacing="0" border="0" class="lp_cd_cv_edit_item_content_table">
                  <tr>
                    <td width="20">&nbsp;</td>
                    <td class="lp_cd_cv_edit_rep" style="font-weight:bold;padding-__BIDI_END_EDGE__:8px;">__MSG_time__</td>
                    <td align="left">
                      <table style="direction:ltr;" cellpadding="0" cellspacing="0" border="0" width="100%">
                        <tr>
                          <td class="lp_cd_cv_edit_rep"><select id="lp_cd_cv_rep_d_hour_ID" class="lp_cd_select" style="width:45px;"></select></td>
                          <td class="lp_cd_cv_edit_rep">:</td>
                          <td class="lp_cd_cv_edit_rep"><select id="lp_cd_cv_rep_d_min_ID" class="lp_cd_select" style="width:45px;"></select></td>
                          <td class="lp_cd_cv_edit_rep"><select id="lp_cd_cv_rep_d_time_ID" class="lp_cd_select" style="width:45px;"></select></td>
                        <tr>
                      </table>
                    </td>
                  </tr>
                </table>

                <table id="lp_cd_cv_edit_msg_cont_ID" style="display:none" width="100%" cellpadding="0" cellspacing="0" border="0" class="lp_cd_cv_edit_item_content_table">
                  <tr>
                    <td width="20">&nbsp;</td>
                    <td class="lp_cd_cv_edit_rep" id="lp_cd_cv_edit_msg_ID" style="font-size:10px;color:#A90202;"></td>
                  </tr>
                </table>

                <table width="100%" cellpadding="0" cellspacing="0" border="0" class="lp_cd_cv_edit_item_content_table">
                  <tr>
                    <td width="130">&nbsp;</td>
                    <td align="center">
                      <div id="lp_cd_cv_add_save_btn_ID" class="lp_cv_gen_btn_2" style="float:left;"><div class="lp_cv_gen_btn_left_2"></div><div class="lp_cv_gen_btn_middle_2">__MSG_save_btn__</div><div class="lp_cv_gen_btn_right_2"></div></div>
                      <div id="lp_cd_cv_add_cancel_btn_ID" class="lp_cv_gen_btn_2" style="float:right;"><div class="lp_cv_gen_btn_left_2"></div><div class="lp_cv_gen_btn_middle_2">__MSG_cancel_btn__</div><div class="lp_cv_gen_btn_right_2"></div></div>
                    </td>
                    <td width="130">&nbsp;</td>
                  </tr>
                </table>

              </div>
              <div class="lp_cd_cv_edit_item_bottom"></div>
              <div style="width:500px;height:10px;font-size:1px;line-height:1px;border-bottom:1px solid #cccccc;"></div>
            </div>
          </div>
          <!-- /ADD / EDIT - TEMPLATE -->
            </div>
        </td>
        </tr>
        </table>
    </center>

        <div>
      <script type="text/javascript">
            var mMENU = _IG_GetCachedUrl("http://cdn.labpixies.com/infra/js/lp_footer.js");
            mMENU = mMENU.replace("%rewriteMime%", "");
            document.write('<scr'+'ipt type="text/javascript" src="'+mMENU+'"></scr'+'ipt>');
            </script>
        </div>
  ]]>
    </Content>
</Module>

