/* Copyright © 1998, 2012, Oracle and/or its affiliates.  All rights reserved. */
/* Version 11.1.0.0 */

//* <XBuild version="11.1.0-release,trace,browser.all,playback,hint-1"/>
//* <BaseDir path="E:/BUILDROOT_SUN/Builds/Branches/Hacienda/tfs/TargetApps/BrowserAppsBuild/Build/Source/Applications/"/>
//* <FileRef type="source" path="stdhemi/configurator/default-ct.js" version="27" time="2012-01-13T11:50:26"/>
//* <FileRef type="reference" path="stdhemi/configurator/Include/TemplateTypes.js" time="2012-01-13T11:50:30"/>


//* <FileBegin path="stdhemi/configurator/default-ct.js"/>
//x /// <reference path="Include\TemplateTypes.js"/>

//* <FileBegin path="stdhemi/configurator/Include/TemplateTypes.js"/>
//<!-- version 6 -->

Types.Url = new GkodConfig.Url( // stdhemi/configurator/Include/TemplateTypes.js: 3
   { 'Width': 443 }, // stdhemi/configurator/Include/TemplateTypes.js: 4
   function(v) { return [true, v]; } // stdhemi/configurator/Include/TemplateTypes.js: 5
 ); // stdhemi/configurator/Include/TemplateTypes.js: 6
Types.String = new GkodConfig.String({ 'Width': 443 }); // stdhemi/configurator/Include/TemplateTypes.js: 7

Types.YesNo = new GkodConfig.DropDown // stdhemi/configurator/Include/TemplateTypes.js: 9
  ( // stdhemi/configurator/Include/TemplateTypes.js: 10
    null, // stdhemi/configurator/Include/TemplateTypes.js: 11
    { // stdhemi/configurator/Include/TemplateTypes.js: 12
        '1': Gkrc('CT.Type.Yes'), // stdhemi/configurator/Include/TemplateTypes.js: 13
        '0': Gkrc('CT.Type.No') // stdhemi/configurator/Include/TemplateTypes.js: 14
    }, // stdhemi/configurator/Include/TemplateTypes.js: 15
    '1', // stdhemi/configurator/Include/TemplateTypes.js: 16
    function(v) { return [true, Number(v)]; } // stdhemi/configurator/Include/TemplateTypes.js: 17
  ); // stdhemi/configurator/Include/TemplateTypes.js: 18

Types.NoYes = new GkodConfig.DropDown // stdhemi/configurator/Include/TemplateTypes.js: 20
  ( // stdhemi/configurator/Include/TemplateTypes.js: 21
    null, // stdhemi/configurator/Include/TemplateTypes.js: 22
    { // stdhemi/configurator/Include/TemplateTypes.js: 23
        '0': Gkrc('CT.Type.Yes'), // stdhemi/configurator/Include/TemplateTypes.js: 24
        '1': Gkrc('CT.Type.No') // stdhemi/configurator/Include/TemplateTypes.js: 25
    }, // stdhemi/configurator/Include/TemplateTypes.js: 26
    '1', // stdhemi/configurator/Include/TemplateTypes.js: 27
    function(v) { return [true, Number(v)]; } // stdhemi/configurator/Include/TemplateTypes.js: 28
  );   // stdhemi/configurator/Include/TemplateTypes.js: 29

Types.AllApplicable = new GkodConfig.DropDown // stdhemi/configurator/Include/TemplateTypes.js: 31
  ( // stdhemi/configurator/Include/TemplateTypes.js: 32
    null, // stdhemi/configurator/Include/TemplateTypes.js: 33
    { // stdhemi/configurator/Include/TemplateTypes.js: 34
        '0': Gkrc('CT.Type.Applicable'), // stdhemi/configurator/Include/TemplateTypes.js: 35
        '1': Gkrc('CT.Type.All') // stdhemi/configurator/Include/TemplateTypes.js: 36
    }, // stdhemi/configurator/Include/TemplateTypes.js: 37
    '0', // stdhemi/configurator/Include/TemplateTypes.js: 38
    function(v) { return [true, Number(v)]; } // stdhemi/configurator/Include/TemplateTypes.js: 39
  ); // stdhemi/configurator/Include/TemplateTypes.js: 40

Types.ShowDont = new GkodConfig.DropDown // stdhemi/configurator/Include/TemplateTypes.js: 42
  ( // stdhemi/configurator/Include/TemplateTypes.js: 43
    null, // stdhemi/configurator/Include/TemplateTypes.js: 44
    { // stdhemi/configurator/Include/TemplateTypes.js: 45
        '1': Gkrc('CT.Type.Show'), // stdhemi/configurator/Include/TemplateTypes.js: 46
        '0': Gkrc('CT.Type.DontShow') // stdhemi/configurator/Include/TemplateTypes.js: 47
    }, // stdhemi/configurator/Include/TemplateTypes.js: 48
    '0', // stdhemi/configurator/Include/TemplateTypes.js: 49
    function(v) { return [true, Number(v)]; } // stdhemi/configurator/Include/TemplateTypes.js: 50
  ); // stdhemi/configurator/Include/TemplateTypes.js: 51

Types.UseDont = new GkodConfig.DropDown // stdhemi/configurator/Include/TemplateTypes.js: 53
  ( // stdhemi/configurator/Include/TemplateTypes.js: 54
    null, // stdhemi/configurator/Include/TemplateTypes.js: 55
    { // stdhemi/configurator/Include/TemplateTypes.js: 56
        '1': Gkrc('CT.Type.Use'), // stdhemi/configurator/Include/TemplateTypes.js: 57
        '0': Gkrc('CT.Type.DontUse') // stdhemi/configurator/Include/TemplateTypes.js: 58
    }, // stdhemi/configurator/Include/TemplateTypes.js: 59
    '1', // stdhemi/configurator/Include/TemplateTypes.js: 60
    function(v) { return [true, Number(v)]; } // stdhemi/configurator/Include/TemplateTypes.js: 61
  ); // stdhemi/configurator/Include/TemplateTypes.js: 62

Types.Enable = new GkodConfig.DropDown // stdhemi/configurator/Include/TemplateTypes.js: 64
  ( // stdhemi/configurator/Include/TemplateTypes.js: 65
    null, // stdhemi/configurator/Include/TemplateTypes.js: 66
    { // stdhemi/configurator/Include/TemplateTypes.js: 67
        '1': Gkrc('CT.Type.Enable'), // stdhemi/configurator/Include/TemplateTypes.js: 68
        '0': Gkrc('CT.Type.Disable') // stdhemi/configurator/Include/TemplateTypes.js: 69
    }, // stdhemi/configurator/Include/TemplateTypes.js: 70
    '1', // stdhemi/configurator/Include/TemplateTypes.js: 71
    function(v) { return [true, Number(v)]; } // stdhemi/configurator/Include/TemplateTypes.js: 72
  ); // stdhemi/configurator/Include/TemplateTypes.js: 73

Types.Enabled = new GkodConfig.DropDown // stdhemi/configurator/Include/TemplateTypes.js: 75
  ( // stdhemi/configurator/Include/TemplateTypes.js: 76
    null, // stdhemi/configurator/Include/TemplateTypes.js: 77
    { // stdhemi/configurator/Include/TemplateTypes.js: 78
        '1': Gkrc('CT.Type.Enabled'), // stdhemi/configurator/Include/TemplateTypes.js: 79
        '0': Gkrc('CT.Type.Disabled') // stdhemi/configurator/Include/TemplateTypes.js: 80
    }, // stdhemi/configurator/Include/TemplateTypes.js: 81
    '1', // stdhemi/configurator/Include/TemplateTypes.js: 82
    function(v) { return [true, Number(v)]; } // stdhemi/configurator/Include/TemplateTypes.js: 83
  ); // stdhemi/configurator/Include/TemplateTypes.js: 84

Types.Disabled = new GkodConfig.DropDown // stdhemi/configurator/Include/TemplateTypes.js: 86
  ( // stdhemi/configurator/Include/TemplateTypes.js: 87
    null, // stdhemi/configurator/Include/TemplateTypes.js: 88
    { // stdhemi/configurator/Include/TemplateTypes.js: 89
        '1': Gkrc('CT.Type.Enabled'), // stdhemi/configurator/Include/TemplateTypes.js: 90
        '0': Gkrc('CT.Type.Disabled') // stdhemi/configurator/Include/TemplateTypes.js: 91
    }, // stdhemi/configurator/Include/TemplateTypes.js: 92
    '0', // stdhemi/configurator/Include/TemplateTypes.js: 93
    function(v) { return [true, Number(v)]; } // stdhemi/configurator/Include/TemplateTypes.js: 94
  ); // stdhemi/configurator/Include/TemplateTypes.js: 95

Types.LanguageUrl = new GkodConfig.Url // stdhemi/configurator/Include/TemplateTypes.js: 97
  ( // stdhemi/configurator/Include/TemplateTypes.js: 98
    { 'Width': 300 }, // stdhemi/configurator/Include/TemplateTypes.js: 99
    function(v) { return [true, encodeURI(v)] } // stdhemi/configurator/Include/TemplateTypes.js: 100
  ); // stdhemi/configurator/Include/TemplateTypes.js: 101


Types.UrlArray = new GkodConfig.Array // stdhemi/configurator/Include/TemplateTypes.js: 104
  ( // stdhemi/configurator/Include/TemplateTypes.js: 105
    { 'ValueColumn': 400 }, // stdhemi/configurator/Include/TemplateTypes.js: 106
    new GkodConfig.Url({ 'Width': 390 }, function(v) { return [true, encodeURI(v)] }) // stdhemi/configurator/Include/TemplateTypes.js: 107
  ); // stdhemi/configurator/Include/TemplateTypes.js: 108

Types.LangId = new GkodConfig.LangId(true); // stdhemi/configurator/Include/TemplateTypes.js: 110

Types.ContentMap = new GkodConfig.Array // stdhemi/configurator/Include/TemplateTypes.js: 112
( // stdhemi/configurator/Include/TemplateTypes.js: 113
  { // stdhemi/configurator/Include/TemplateTypes.js: 114
      'RowLayout': true, // stdhemi/configurator/Include/TemplateTypes.js: 115
      'ValueColumn': [100, 400], // stdhemi/configurator/Include/TemplateTypes.js: 116
      'Value': // stdhemi/configurator/Include/TemplateTypes.js: 117
	[ // stdhemi/configurator/Include/TemplateTypes.js: 118
	  Gkrc('CT.Title.Language'), // stdhemi/configurator/Include/TemplateTypes.js: 119
      Gkrc('CT.Title.Url') // stdhemi/configurator/Include/TemplateTypes.js: 120
    ] // stdhemi/configurator/Include/TemplateTypes.js: 121
  }, // stdhemi/configurator/Include/TemplateTypes.js: 122
  { // stdhemi/configurator/Include/TemplateTypes.js: 123
      'Named': true, // stdhemi/configurator/Include/TemplateTypes.js: 124
      'Language': Types.LangId, // stdhemi/configurator/Include/TemplateTypes.js: 125
      'Url': Types.Url // stdhemi/configurator/Include/TemplateTypes.js: 126
  }, // stdhemi/configurator/Include/TemplateTypes.js: 127
  function(v) { // stdhemi/configurator/Include/TemplateTypes.js: 128
      return [true, v] // stdhemi/configurator/Include/TemplateTypes.js: 129
  } // stdhemi/configurator/Include/TemplateTypes.js: 130
);  // TODO: fix validation for contentmap

Types.LanguageMap = new GkodConfig.Dictionary // stdhemi/configurator/Include/TemplateTypes.js: 133
  ( // stdhemi/configurator/Include/TemplateTypes.js: 134
    { // stdhemi/configurator/Include/TemplateTypes.js: 135
        'KeyColumn': 125, // stdhemi/configurator/Include/TemplateTypes.js: 136
        'ValueColumn': 240, // stdhemi/configurator/Include/TemplateTypes.js: 137
        'Key': Gkrc('CT.Title.Language'), // stdhemi/configurator/Include/TemplateTypes.js: 138
        'Value': Gkrc('CT.Title.ContentUrl') // stdhemi/configurator/Include/TemplateTypes.js: 139
    }, // stdhemi/configurator/Include/TemplateTypes.js: 140
    Types.LangId, // stdhemi/configurator/Include/TemplateTypes.js: 141
    Types.Url, // stdhemi/configurator/Include/TemplateTypes.js: 142
    null, // stdhemi/configurator/Include/TemplateTypes.js: 143
    function(k, v) { // stdhemi/configurator/Include/TemplateTypes.js: 144
        var r = [true, k, v]; // stdhemi/configurator/Include/TemplateTypes.js: 145
        var ek = (k == 'Lang.None' || k == ''); // stdhemi/configurator/Include/TemplateTypes.js: 146
        var ev = Gkod.Helper.IsEmpty(v); // stdhemi/configurator/Include/TemplateTypes.js: 147
        if (ek && !ev) // stdhemi/configurator/Include/TemplateTypes.js: 148
            r[0] = Gkrc('CT.Type.LanguageMap.MissingKey'); // stdhemi/configurator/Include/TemplateTypes.js: 149
        if (!ek && ev) // stdhemi/configurator/Include/TemplateTypes.js: 150
            r[0] = Gkrc('CT.Type.LanguageMap.MissingValue'); // stdhemi/configurator/Include/TemplateTypes.js: 151
        return r; // stdhemi/configurator/Include/TemplateTypes.js: 152
    } // stdhemi/configurator/Include/TemplateTypes.js: 153
  ); // stdhemi/configurator/Include/TemplateTypes.js: 154

Types.Number_0_100_or_Default = new GkodConfig.Number // stdhemi/configurator/Include/TemplateTypes.js: 156
( // stdhemi/configurator/Include/TemplateTypes.js: 157
  null, // stdhemi/configurator/Include/TemplateTypes.js: 158
  function(v) { // stdhemi/configurator/Include/TemplateTypes.js: 159
      var n = Number(v); // stdhemi/configurator/Include/TemplateTypes.js: 160
      if (!isNaN(n) && (n == -1 || (n >= 0 && n <= 100))) return [true, n]; // stdhemi/configurator/Include/TemplateTypes.js: 161
      return [Gkrc('CT.Type.Number.DefaultOrZero100')]; // stdhemi/configurator/Include/TemplateTypes.js: 162
  } // stdhemi/configurator/Include/TemplateTypes.js: 163
); // stdhemi/configurator/Include/TemplateTypes.js: 164

Types.Integer_0_Inf_or_Default = new GkodConfig.Number // stdhemi/configurator/Include/TemplateTypes.js: 166
( // stdhemi/configurator/Include/TemplateTypes.js: 167
  null, // stdhemi/configurator/Include/TemplateTypes.js: 168
  function(v) { // stdhemi/configurator/Include/TemplateTypes.js: 169
      var n = Number(v); // stdhemi/configurator/Include/TemplateTypes.js: 170
      if (parseInt(v) == parseFloat(v) && !isNaN(n) && (n == -1 || n >= 0)) return [true, n]; // stdhemi/configurator/Include/TemplateTypes.js: 171
      return [Gkrc('CT.Type.Integer.DefaultOrZeroInf')]; // stdhemi/configurator/Include/TemplateTypes.js: 172
  } // stdhemi/configurator/Include/TemplateTypes.js: 173
); // stdhemi/configurator/Include/TemplateTypes.js: 174


/*  Based on entries from odplaybackdefs.js
Gkod.Variables.GATEWAYPAGE_DUMMY = 0;
Gkod.Variables.GATEWAYPAGE_MAIN_PLAYER = 1;
Gkod.Variables.GATEWAYPAGE_EXTERNAL_PLAYER_APPLICABLE = 2;
Gkod.Variables.GATEWAYPAGE_EXTERNAL_PLAYER_FULL = 3; //add index.html
Gkod.Variables.GATEWAYPAGE_HELP = 4;
Gkod.Variables.GATEWAYPAGE_URL_WITH_NOCTX = 5;
Gkod.Variables.GATEWAYPAGE_URL_WITH_CTX = 6;
*/ // stdhemi/configurator/Include/TemplateTypes.js: 185

Types.GatewayEmbedType = new GkodConfig.DropDown // stdhemi/configurator/Include/TemplateTypes.js: 187
( // stdhemi/configurator/Include/TemplateTypes.js: 188
  null, // stdhemi/configurator/Include/TemplateTypes.js: 189
  { // stdhemi/configurator/Include/TemplateTypes.js: 190
      //    '1': Gkrc('CT.Type.GatewayType.MainPlayer'),
      '2': Gkrc('CT.Type.GatewayType.PlayerWithContext'), // stdhemi/configurator/Include/TemplateTypes.js: 192
      '3': Gkrc('CT.Type.GatewayType.PlayerWithoutContext'), // stdhemi/configurator/Include/TemplateTypes.js: 193
      '5': Gkrc('CT.Type.GatewayType.URLWithoutContext') // stdhemi/configurator/Include/TemplateTypes.js: 194
      //'6': Gkrc('CT.Type.GatewayType.URLWithContext')
  }, // stdhemi/configurator/Include/TemplateTypes.js: 196
  '5', // stdhemi/configurator/Include/TemplateTypes.js: 197
  function(v) { // stdhemi/configurator/Include/TemplateTypes.js: 198
      return [true, Number(v)]; // stdhemi/configurator/Include/TemplateTypes.js: 199
  } // stdhemi/configurator/Include/TemplateTypes.js: 200
); // stdhemi/configurator/Include/TemplateTypes.js: 201

Types.GatewayLinkType = new GkodConfig.DropDown // stdhemi/configurator/Include/TemplateTypes.js: 203
( // stdhemi/configurator/Include/TemplateTypes.js: 204
  null, // stdhemi/configurator/Include/TemplateTypes.js: 205
  { // stdhemi/configurator/Include/TemplateTypes.js: 206
      '2': Gkrc('CT.Type.GatewayType.PlayerWithContext'), // stdhemi/configurator/Include/TemplateTypes.js: 207
      '3': Gkrc('CT.Type.GatewayType.PlayerWithoutContext'), // stdhemi/configurator/Include/TemplateTypes.js: 208
      '5': Gkrc('CT.Type.GatewayType.URLWithoutContext') // stdhemi/configurator/Include/TemplateTypes.js: 209
      //'6': Gkrc('CT.Type.GatewayType.URLWithContext')
  }, // stdhemi/configurator/Include/TemplateTypes.js: 211
  '5', // stdhemi/configurator/Include/TemplateTypes.js: 212
  function(v) { // stdhemi/configurator/Include/TemplateTypes.js: 213
      return [true, Number(v)]; // stdhemi/configurator/Include/TemplateTypes.js: 214
  } // stdhemi/configurator/Include/TemplateTypes.js: 215
); // stdhemi/configurator/Include/TemplateTypes.js: 216


Types.GatewayEmbed = new GkodConfig.Array // stdhemi/configurator/Include/TemplateTypes.js: 219
( // stdhemi/configurator/Include/TemplateTypes.js: 220
  { // stdhemi/configurator/Include/TemplateTypes.js: 221
      'Sortable': true, // stdhemi/configurator/Include/TemplateTypes.js: 222
      'RowLayout': true, // stdhemi/configurator/Include/TemplateTypes.js: 223
      'ValueColumn': [200, 200, 270], // stdhemi/configurator/Include/TemplateTypes.js: 224
      'Value': // stdhemi/configurator/Include/TemplateTypes.js: 225
	[ // stdhemi/configurator/Include/TemplateTypes.js: 226
      Gkrc('CT.Title.GatewayType'), // stdhemi/configurator/Include/TemplateTypes.js: 227
      Gkrc('CT.Title.GatewayTabText'), // stdhemi/configurator/Include/TemplateTypes.js: 228
      Gkrc('CT.Title.GatewayUrl') // stdhemi/configurator/Include/TemplateTypes.js: 229
    ] // stdhemi/configurator/Include/TemplateTypes.js: 230
  }, // stdhemi/configurator/Include/TemplateTypes.js: 231
  { // stdhemi/configurator/Include/TemplateTypes.js: 232
      'Named': true, // stdhemi/configurator/Include/TemplateTypes.js: 233
      'Type': Types.GatewayEmbedType, // stdhemi/configurator/Include/TemplateTypes.js: 234
      'Title': Types.String, // stdhemi/configurator/Include/TemplateTypes.js: 235
      'Url': Types.Url // stdhemi/configurator/Include/TemplateTypes.js: 236
  }, // stdhemi/configurator/Include/TemplateTypes.js: 237
  function(v) { // stdhemi/configurator/Include/TemplateTypes.js: 238
      return [true, v] // stdhemi/configurator/Include/TemplateTypes.js: 239
  } // stdhemi/configurator/Include/TemplateTypes.js: 240
); // stdhemi/configurator/Include/TemplateTypes.js: 241

Types.GatewayLinked = new GkodConfig.Array // stdhemi/configurator/Include/TemplateTypes.js: 243
( // stdhemi/configurator/Include/TemplateTypes.js: 244
  { // stdhemi/configurator/Include/TemplateTypes.js: 245
      'Sortable': true, // stdhemi/configurator/Include/TemplateTypes.js: 246
      'RowLayout': true, // stdhemi/configurator/Include/TemplateTypes.js: 247
      'ValueColumn': [200, 200, 270], // stdhemi/configurator/Include/TemplateTypes.js: 248
      'Value': // stdhemi/configurator/Include/TemplateTypes.js: 249
	[ // stdhemi/configurator/Include/TemplateTypes.js: 250
      Gkrc('CT.Title.GatewayType'), // stdhemi/configurator/Include/TemplateTypes.js: 251
      Gkrc('CT.Title.GatewayLinkText'), // stdhemi/configurator/Include/TemplateTypes.js: 252
      Gkrc('CT.Title.GatewayUrl') // stdhemi/configurator/Include/TemplateTypes.js: 253
    ] // stdhemi/configurator/Include/TemplateTypes.js: 254
  }, // stdhemi/configurator/Include/TemplateTypes.js: 255
  { // stdhemi/configurator/Include/TemplateTypes.js: 256
      'Named': true, // stdhemi/configurator/Include/TemplateTypes.js: 257
      'Type': Types.GatewayLinkType, // stdhemi/configurator/Include/TemplateTypes.js: 258
      'Title': Types.String, // stdhemi/configurator/Include/TemplateTypes.js: 259
      'Url': Types.Url // stdhemi/configurator/Include/TemplateTypes.js: 260
  }, // stdhemi/configurator/Include/TemplateTypes.js: 261
  function(v) { // stdhemi/configurator/Include/TemplateTypes.js: 262
      return [true, v] // stdhemi/configurator/Include/TemplateTypes.js: 263
  } // stdhemi/configurator/Include/TemplateTypes.js: 264
); // stdhemi/configurator/Include/TemplateTypes.js: 265


/*
Types.FrameLocation = new GkodConfig.DropDown
(
  null,
  {
  'topframe': Gkrc('CT.Type.FrameLocation.Top'),
  'bottomframe': Gkrc('CT.Type.FrameLocation.Bottom')
  },
  'topframe'
);

Types.HelpMode = new GkodConfig.DropDown
  (
    null,
    {
        '1': Gkrc('CT.Type.HelpMode.TopEmbeddedFrame'),
        '2': Gkrc('CT.Type.HelpMode.BottomEmbeddedFrame'),
        '3': Gkrc('CT.Type.HelpMode.LinkInGatewayPage')
    },
    '1',
    function(v) { return [true, Number(v)]; }
  );

Types.DefaultUrl = new GkodConfig.Url(
  { 'Width': 443 },
  function(v) {
      if (!/\S+/.test(v))
          return [Gkrc('CT.Type.DefaultUrl.Empty'), v];
      return [true, encodeURI(v)];
  }
);

var ContentUrl = function(rc, validate) {
    this.rc = rc;
    this.validate = validate;

    //
    if (this.rc === void 0 || this.rc === null) this.rc = {};
    this.width = ((this.rc.Width === void 0) ? 300 : this.rc.Width);
}

ContentUrl.prototype = Gkod.Helper.Override({}, GkodConfig.Url.prototype);

ContentUrl.prototype.Dispatch = function(ctx, cmd) {
    var r = this.Validate(ctx, true, false, true);
    if (r[0] !== true) return;
    var v = r[1];
    window.open(v + '/../../index.html');
}

ContentUrl.prototype.RenderControl = function(ctx) {

    var v = String(ctx.dob.value);
    //
    var width = ((ctx.width !== void 0) ? ctx.width : this.width);

    var i = '<input onfocus="GkodConfig.Page.Variable_OnFocus(\'' + ctx.va.id + '\')"'
        + ' onblur="GkodConfig.Page.Variable_OnBlur(\'' + ctx.va.id + '\')"'
    // empty url text input hides display of show toc button 
        + ' onchange="getElementById(\'showtoc\').style.display=((getElementById(\'' + ctx.va.id + '_i\').value)?\'inline\':\'none\')"'
        + ' id="' + ctx.id + '_i"'
        + ' name="' + ctx.id + '_i"'
        + ' class="control" type="text"'
        + ' value="' + Gkod.Helper.EscapeHtml(v) + '"'
        + ((width > 0) ? ' style="width:' + width + 'px"' : '')
        + ' />';

    var s = '<table cellspacing="0" cellpadding="0"><tr>'
        + '<td>'
        + i //GkodConfig.Url.prototype.RenderControl.call(this,ctx) 
        + '</td>'
        + '<td style="padding-left:5px"><a id="showtoc" class="sbutton" style="white-space:normal" href="#" onclick="GkodConfig.Page.Variable_Dispatch(\'' + ctx.id + '\',\'ShowTOC\');return false">' + Gkrc('CT.Action.ShowTOC') + '</a></td>' +
    '</tr></table>'
  ;
    return s;
}

Types.ContentUrl = new ContentUrl
(
  { 'Width': 350 },
  function(v, sync) {
      v = Gkod.Helper.Trim(v).replace(/([^\/])\/$/, '$1');
      return [true, v, v];
  }
);

Types.ApplicationName = new GkodConfig.String
  (
    { 'Width': 150 },
    function(v) {
        if (v.length < 1 || v.length > 8) return [Gkrc('CT.Type.ApplicationName.InvalidLength')];
        if (!/^[a-zA-Z_0-9]+$/.test(v)) return [Gkrc('CT.Type.ApplicationName.InvalidCharacters')];
        return [true, v];
    }
  );

*/ // stdhemi/configurator/Include/TemplateTypes.js: 364

//* <FileEnd path="stdhemi/configurator/Include/TemplateTypes.js"/>


//<!--Version 27-->

var t_lang = new GkodConfig.Template(); // stdhemi/configurator/default-ct.js: 5
t_lang.AddSection('CONTENT'); // stdhemi/configurator/default-ct.js: 6
t_lang.AddVariable('ContentMap', Types.ContentMap); // stdhemi/configurator/default-ct.js: 7
t_lang.AddSection('ADVANCED'); // stdhemi/configurator/default-ct.js: 8
t_lang.AddVariable('IgnoreContext', Types.AllApplicable); // stdhemi/configurator/default-ct.js: 9
Templates.Add('LanguageSupport', t_lang); // stdhemi/configurator/default-ct.js: 10

var t_nolang = new GkodConfig.Template(); // stdhemi/configurator/default-ct.js: 12
t_nolang.AddSection('ADVANCED'); // stdhemi/configurator/default-ct.js: 13
t_nolang.AddVariable('IgnoreContext', Types.AllApplicable); // stdhemi/configurator/default-ct.js: 14
Templates.Add('NoLanguageSupport', t_nolang); // stdhemi/configurator/default-ct.js: 15

var t_gateway = new GkodConfig.Template(); // stdhemi/configurator/default-ct.js: 17
t_gateway.AddSection('GATEWAY'); // stdhemi/configurator/default-ct.js: 18
t_gateway.AddVariable('GatewayTitle', Types.String); // stdhemi/configurator/default-ct.js: 19
t_gateway.AddVariable('GatewayPages', Types.GatewayEmbed); // stdhemi/configurator/default-ct.js: 20
t_gateway.AddVariable('GatewayRememberTab', Types.YesNo); // stdhemi/configurator/default-ct.js: 21
t_gateway.AddVariable('GatewayLinksTitle', Types.String); // stdhemi/configurator/default-ct.js: 22
t_gateway.AddVariable('GatewayLinks', Types.GatewayLinked); // stdhemi/configurator/default-ct.js: 23
Templates.Add('GatewaySupport', t_gateway); // stdhemi/configurator/default-ct.js: 24

//* <FileEnd path="stdhemi/configurator/default-ct.js"/>
