﻿Type.registerNamespace('Liquid.LiquidWebControls');Liquid.LiquidWebControls._CommonLiquidScripts = function() {
};Liquid.LiquidWebControls._CommonLiquidScripts.prototype= {
startsWith : function(s1,s2) {
return s1.indexOf(s2)===0;},
getHeight : function(e,excludeInternalHeight) {
var ch = e.clientHeight;var oh = e.offsetHeight;if (!oh||e.scrollHeight>oh) {
oh = e.scrollHeight + e.offsetHeight - e.clientHeight;ch = e.scrollWidth - oh + ch;} 
if (excludeInternalHeight) {
return oh - ch;}
else {
return oh;} 
}, 
getWidth : function(e,excludeInternalWidth) { 
var cw = e.clientWidth;var ow = e.offsetWidth;if (!ow||e.scrollWidth>ow) {
ow = e.scrollWidth ;cw = e.scrollWidth - ow + cw;} 
if (excludeInternalWidth) {
return ow - cw;}
else {
return ow;} 
} ,
getParentObjectByTagName : function(node,tagName) { 
if (!node) {
return node;} 
else {
if (!tagName) {
return node.parentNode;}
else {
if (node.tagName==tagName) {
return $find(node.id);} 
else { 
return this.getParentObjectByTagName(node.parentNode,tagName);} 
}
} 
}, 
getChildObjectByTagName : function(node,tagName) {
if (!node||!tagName) {
return node;} 
else { 
for (var i = 0;i < node.childNodes.length;i++) {
if (node.childNodes[i].tagName == tagName) {return $find(node.childNodes[i].id);}
} 
} 
} ,
getChildElementByTagName : function(node,tagName) {
if (!node||!tagName) {
return node;} 
else { 
for (var i = 0;i < node.childNodes.length;i++) {
if (node.childNodes[i].tagName == tagName) {return node.childNodes[i];}
} 
} 
},
getParentElementByTagName : function(node,tagName) { 
if (!node) {
return node;} 
else {
if (!tagName) {
return node.parentNode;}
else {
if (node.tagName==tagName) {
return node;} 
else { 
return this.getParentObjectByTagName(node.parentNode,tagName);} 
}
} 
} 
};var CommonLiquidScripts = Liquid.LiquidWebControls.CommonLiquidScripts = new Liquid.LiquidWebControls._CommonLiquidScripts();var $commonLiquid = CommonLiquidScripts;////////////////////////////////////////////////////////////////////////////////////////////////////
Liquid.LiquidWebControls.Orientation = function() { };Liquid.LiquidWebControls.Orientation.prototype = {
Horizontal : 0x01,
Vertical : 0x02
};Liquid.LiquidWebControls.Orientation.registerEnum("Liquid.LiquidWebControls.Orientation", true);
if(typeof(Sys)!=='undefined')Sys.Application.notifyScriptLoaded();