/*
 * JSMin
 * Javascript Compressor
 * http://www.crockford.com/
 * http://www.smallsharptools.com/
*/

function ekxbrowserCheck(domClassName)
{if(null==domClassName)return false;if("undefined"==typeof domClassName.prototype)return false;if(null==domClassName.prototype)return false;if(typeof domClassName.prototype.__defineGetter__!="function")return false;return true;}
if(typeof HTMLElement!="undefined"&&ekxbrowserCheck(HTMLElement))
{HTMLElement.prototype.__defineGetter__("parentElement",function()
{if(this.parentNode==this.ownerDocument)
{return null;}
return this.parentNode;});}
if(typeof Element!="undefined"&&ekxbrowserCheck(Element))
{Element.prototype.__defineGetter__("text",function()
{return this.textContent;});}
if(typeof Event!="undefined"&&ekxbrowserCheck(Event))
{Event.prototype.__defineGetter__("srcElement",function()
{return this.target;});Event.prototype.__defineGetter__("offsetX",function()
{var offset=0;var objElem=this.target;while(objElem!=null&&objElem.tagName!="BODY")
{offset+=objElem.offsetLeft;objElem=objElem.offsetParent;}
return this.clientX-offset;});Event.prototype.__defineGetter__("offsetY",function()
{var offset=0;var objElem=this.target;while(objElem!=null&&objElem.tagName!="BODY")
{offset+=objElem.offsetTop;objElem=objElem.offsetParent;}
return this.clientY-offset;});Event.prototype.__defineSetter__("cancelBubble",function(value)
{if(true==value)this.stopPropagation();});Event.prototype.__defineSetter__("returnValue",function(value)
{if(false==value)this.preventDefault();});}
function ekCanHaveChildren(oElem)
{if(oElem&&1==oElem.nodeType)
{switch(oElem.tagName.toLowerCase())
{case"area":case"base":case"basefont":case"col":case"frame":case"hr":case"img":case"br":case"input":case"isindex":case"link":case"meta":case"param":return false;}
return true;}
else
{return false;}}
function ekHasChildren(oElem)
{return(ekCanHaveChildren(oElem)&&$ektron(oElem).children().length>0);}
function ekCreateRange(sel)
{var rng=null;try
{rng=sel.createRange();}
catch(ex)
{try
{sel.clear();rng=sel.createRange();}
catch(ex){}}
return rng;}
function getSelectionElement(doc)
{var targetElement=null;if(doc.selection)
{var sel=doc.selection;var rng=ekCreateRange(sel);if(rng)
{if("Control"==sel.type)
{targetElement=rng.commonParentElement();}
else
{targetElement=rng.parentElement();}}}
else if(doc.defaultView.getSelection)
{var sel=doc.defaultView.getSelection();if(sel.rangeCount>0){var rng=sel.getRangeAt(0);targetElement=rng.commonAncestorContainer;if(targetElement.nodeType!=1)
{targetElement=targetElement.parentNode;}}}
else
{}
return targetElement;}
function ekIsMac()
{var userAgent=navigator.userAgent.toLowerCase();if(userAgent.indexOf('mac')!=-1)
{return true;}
return false;}
