function addClass(a,b){if(a){if(a.indexOf("|"+b+"|")<0){a+=b+"|"}}else{a="|"+b+"|"}return a}DOMException=function(a){this._class=addClass(this._class,"DOMException");this.code=a};DOMException.INDEX_SIZE_ERR=1;DOMException.DOMSTRING_SIZE_ERR=2;DOMException.HIERARCHY_REQUEST_ERR=3;DOMException.WRONG_DOCUMENT_ERR=4;DOMException.INVALID_CHARACTER_ERR=5;DOMException.NO_DATA_ALLOWED_ERR=6;DOMException.NO_MODIFICATION_ALLOWED_ERR=7;DOMException.NOT_FOUND_ERR=8;DOMException.NOT_SUPPORTED_ERR=9;DOMException.INUSE_ATTRIBUTE_ERR=10;DOMException.INVALID_STATE_ERR=11;DOMException.SYNTAX_ERR=12;DOMException.INVALID_MODIFICATION_ERR=13;DOMException.NAMESPACE_ERR=14;DOMException.INVALID_ACCESS_ERR=15;DOMImplementation=function(){this._class=addClass(this._class,"DOMImplementation");this._p=null;this.preserveWhiteSpace=false;this.namespaceAware=true;this.errorChecking=true};DOMImplementation.prototype.escapeString=function DOMNode__escapeString(a){return __escapeString(a)};DOMImplementation.prototype.unescapeString=function DOMNode__unescapeString(a){return __unescapeString(a)};DOMImplementation.prototype.hasFeature=function DOMImplementation_hasFeature(c,a){var b=false;if(c.toLowerCase()=="xml"){b=(!a||(a=="1.0")||(a=="2.0"))}else{if(c.toLowerCase()=="core"){b=(!a||(a=="2.0"))}}return b};DOMImplementation.prototype.loadXML=function DOMImplementation_loadXML(c){var d;try{d=new XMLP(c)}catch(b){alert("Error Creating the SAX Parser. Did you include xmlsax.js or tinyxmlsax.js in your web page?\nThe SAX parser is needed to populate XML for <SCRIPT>'s W3C DOM Parser with data.")}var a=new DOMDocument(this);this._parseLoop(a,d);a._parseComplete=true;return a};DOMImplementation.prototype.translateErrCode=function DOMImplementation_translateErrCode(a){var b="";switch(a){case DOMException.INDEX_SIZE_ERR:b="INDEX_SIZE_ERR: Index out of bounds";break;case DOMException.DOMSTRING_SIZE_ERR:b="DOMSTRING_SIZE_ERR: The resulting string is too long to fit in a DOMString";break;case DOMException.HIERARCHY_REQUEST_ERR:b="HIERARCHY_REQUEST_ERR: The Node can not be inserted at this location";break;case DOMException.WRONG_DOCUMENT_ERR:b="WRONG_DOCUMENT_ERR: The source and the destination Documents are not the same";break;case DOMException.INVALID_CHARACTER_ERR:b="INVALID_CHARACTER_ERR: The string contains an invalid character";break;case DOMException.NO_DATA_ALLOWED_ERR:b="NO_DATA_ALLOWED_ERR: This Node / NodeList does not support data";break;case DOMException.NO_MODIFICATION_ALLOWED_ERR:b="NO_MODIFICATION_ALLOWED_ERR: This object cannot be modified";break;case DOMException.NOT_FOUND_ERR:b="NOT_FOUND_ERR: The item cannot be found";break;case DOMException.NOT_SUPPORTED_ERR:b="NOT_SUPPORTED_ERR: This implementation does not support function";break;case DOMException.INUSE_ATTRIBUTE_ERR:b="INUSE_ATTRIBUTE_ERR: The Attribute has already been assigned to another Element";break;case DOMException.INVALID_STATE_ERR:b="INVALID_STATE_ERR: The object is no longer usable";break;case DOMException.SYNTAX_ERR:b="SYNTAX_ERR: Syntax error";break;case DOMException.INVALID_MODIFICATION_ERR:b="INVALID_MODIFICATION_ERR: Cannot change the type of the object";break;case DOMException.NAMESPACE_ERR:b="NAMESPACE_ERR: The namespace declaration is incorrect";break;case DOMException.INVALID_ACCESS_ERR:b="INVALID_ACCESS_ERR: The object does not support this function";break;default:b="UNKNOWN: Unknown Exception Code ("+a+")"}return b};DOMImplementation.prototype._parseLoop=function DOMImplementation__parseLoop(y,l){var k,r,q,g;iNodeParent=y;var t=0;var z=new Array();var u=new Array();if(this.namespaceAware){var x=y.createNamespace("");x.setValue("http://www.w3.org/2000/xmlns/");y._namespaces.setNamedItem(x)}while(true){k=l.next();if(k==XMLP._ELM_B){var e=l.getName();e=trim(e,true,true);if(!this.namespaceAware){r=y.createElement(l.getName());for(var v=0;v<l.getAttributeCount();v++){g=l.getAttributeName(v);q=r.getAttributeNode(g);if(!q){q=y.createAttribute(g)}q.setValue(l.getAttributeValue(v));r.setAttributeNode(q)}}else{r=y.createElementNS("",l.getName());r._namespaces=iNodeParent._namespaces._cloneNodes(r);for(var v=0;v<l.getAttributeCount();v++){g=l.getAttributeName(v);if(this._isNamespaceDeclaration(g)){var w=this._parseNSName(g);if(g!="xmlns"){x=y.createNamespace(g)}else{x=y.createNamespace("")}x.setValue(l.getAttributeValue(v));r._namespaces.setNamedItem(x)}else{q=r.getAttributeNode(g);if(!q){q=y.createAttributeNS("",g)}q.setValue(l.getAttributeValue(v));r.setAttributeNodeNS(q);if(this._isIdDeclaration(g)){r.id=l.getAttributeValue(v)}}}if(r._namespaces.getNamedItem(r.prefix)){r.namespaceURI=r._namespaces.getNamedItem(r.prefix).value}for(var v=0;v<r.attributes.length;v++){if(r.attributes.item(v).prefix!=""){if(r._namespaces.getNamedItem(r.attributes.item(v).prefix)){r.attributes.item(v).namespaceURI=r._namespaces.getNamedItem(r.attributes.item(v).prefix).value}}}}if(iNodeParent.nodeType==DOMNode.DOCUMENT_NODE){iNodeParent.documentElement=r}iNodeParent.appendChild(r);iNodeParent=r}else{if(k==XMLP._ELM_E){iNodeParent=iNodeParent.parentNode}else{if(k==XMLP._ELM_EMP){e=l.getName();e=trim(e,true,true);if(!this.namespaceAware){r=y.createElement(e);for(var v=0;v<l.getAttributeCount();v++){g=l.getAttributeName(v);q=r.getAttributeNode(g);if(!q){q=y.createAttribute(g)}q.setValue(l.getAttributeValue(v));r.setAttributeNode(q)}}else{r=y.createElementNS("",l.getName());r._namespaces=iNodeParent._namespaces._cloneNodes(r);for(var v=0;v<l.getAttributeCount();v++){g=l.getAttributeName(v);if(this._isNamespaceDeclaration(g)){var w=this._parseNSName(g);if(g!="xmlns"){x=y.createNamespace(g)}else{x=y.createNamespace("")}x.setValue(l.getAttributeValue(v));r._namespaces.setNamedItem(x)}else{q=r.getAttributeNode(g);if(!q){q=y.createAttributeNS("",g)}q.setValue(l.getAttributeValue(v));r.setAttributeNodeNS(q);if(this._isIdDeclaration(g)){r.id=l.getAttributeValue(v)}}}if(r._namespaces.getNamedItem(r.prefix)){r.namespaceURI=r._namespaces.getNamedItem(r.prefix).value}for(var v=0;v<r.attributes.length;v++){if(r.attributes.item(v).prefix!=""){if(r._namespaces.getNamedItem(r.attributes.item(v).prefix)){r.attributes.item(v).namespaceURI=r._namespaces.getNamedItem(r.attributes.item(v).prefix).value}}}}if(iNodeParent.nodeType==DOMNode.DOCUMENT_NODE){iNodeParent.documentElement=r}iNodeParent.appendChild(r)}else{if(k==XMLP._TEXT||k==XMLP._ENTITY){var s=l.getContent().substring(l.getContentBegin(),l.getContentEnd());if(!this.preserveWhiteSpace){if(trim(s,true,true)==""){s=""}}if(s.length>0){var m=y.createTextNode(s);iNodeParent.appendChild(m);if(k==XMLP._ENTITY){z[z.length]=m}else{u[u.length]=m}}}else{if(k==XMLP._PI){iNodeParent.appendChild(y.createProcessingInstruction(l.getName(),l.getContent().substring(l.getContentBegin(),l.getContentEnd())))}else{if(k==XMLP._CDATA){s=l.getContent().substring(l.getContentBegin(),l.getContentEnd());if(!this.preserveWhiteSpace){s=trim(s,true,true);s.replace(/ +/g," ")}if(s.length>0){iNodeParent.appendChild(y.createCDATASection(s))}}else{if(k==XMLP._COMMENT){var s=l.getContent().substring(l.getContentBegin(),l.getContentEnd());if(!this.preserveWhiteSpace){s=trim(s,true,true);s.replace(/ +/g," ")}if(s.length>0){iNodeParent.appendChild(y.createComment(s))}}else{if(k==XMLP._DTD){}else{if(k==XMLP._ERROR){throw (new DOMException(DOMException.SYNTAX_ERR))}else{if(k==XMLP._NONE){if(iNodeParent==y){break}else{throw (new DOMException(DOMException.SYNTAX_ERR))}}}}}}}}}}}}var b=z.length;for(intLoop=0;intLoop<b;intLoop++){var j=z[intLoop];var f=j.getParentNode();if(f){f.normalize();if(!this.preserveWhiteSpace){var c=f.getChildNodes();var o=c.getLength();for(intLoop2=0;intLoop2<o;intLoop2++){var d=c.item(intLoop2);if(d.getNodeType()==DOMNode.TEXT_NODE){var h=d.getData();h=trim(h,true,true);h.replace(/ +/g," ");d.setData(h)}}}}}if(!this.preserveWhiteSpace){var b=u.length;for(intLoop=0;intLoop<b;intLoop++){var n=u[intLoop];if(n.getParentNode()!=null){var a=n.getData();a=trim(a,true,true);a.replace(/ +/g," ");n.setData(a)}}}};DOMImplementation.prototype._isNamespaceDeclaration=function DOMImplementation__isNamespaceDeclaration(a){return(a.indexOf("xmlns")>-1)};DOMImplementation.prototype._isIdDeclaration=function DOMImplementation__isIdDeclaration(a){return(a.toLowerCase()=="id")};DOMImplementation.prototype._isValidName=function DOMImplementation__isValidName(a){return a.match(re_validName)};re_validName=/^[a-zA-Z_:][a-zA-Z0-9\.\-_:]*$/;DOMImplementation.prototype._isValidString=function DOMImplementation__isValidString(a){return(a.search(re_invalidStringChars)<0)};re_invalidStringChars=/\x01|\x02|\x03|\x04|\x05|\x06|\x07|\x08|\x0B|\x0C|\x0E|\x0F|\x10|\x11|\x12|\x13|\x14|\x15|\x16|\x17|\x18|\x19|\x1A|\x1B|\x1C|\x1D|\x1E|\x1F|\x7F/;DOMImplementation.prototype._parseNSName=function DOMImplementation__parseNSName(b){var a=new Object();a.prefix=b;a.namespaceName="";delimPos=b.indexOf(":");if(delimPos>-1){a.prefix=b.substring(0,delimPos);a.namespaceName=b.substring(delimPos+1,b.length)}return a};DOMImplementation.prototype._parseQName=function DOMImplementation__parseQName(b){var a=new Object();a.localName=b;a.prefix="";delimPos=b.indexOf(":");if(delimPos>-1){a.prefix=b.substring(0,delimPos);a.localName=b.substring(delimPos+1,b.length)}return a};DOMNodeList=function(b,a){this._class=addClass(this._class,"DOMNodeList");this._nodes=new Array();this.length=0;this.parentNode=a;this.ownerDocument=b;this._readonly=false};DOMNodeList.prototype.getLength=function DOMNodeList_getLength(){return this.length};DOMNodeList.prototype.item=function DOMNodeList_item(b){var a=null;if((b>=0)&&(b<this._nodes.length)){a=this._nodes[b]}return a};DOMNodeList.prototype._findItemIndex=function DOMNodeList__findItemIndex(c){var a=-1;if(c>-1){for(var b=0;b<this._nodes.length;b++){if(this._nodes[b]._id==c){a=b;break}}}return a};DOMNodeList.prototype._insertBefore=function DOMNodeList__insertBefore(a,c){if((c>=0)&&(c<this._nodes.length)){var b=new Array();b=this._nodes.slice(0,c);if(a.nodeType==DOMNode.DOCUMENT_FRAGMENT_NODE){b=b.concat(a.childNodes._nodes)}else{b[b.length]=a}this._nodes=b.concat(this._nodes.slice(c));this.length=this._nodes.length}};DOMNodeList.prototype._replaceChild=function DOMNodeList__replaceChild(a,d){var c=null;if((d>=0)&&(d<this._nodes.length)){c=this._nodes[d];if(a.nodeType==DOMNode.DOCUMENT_FRAGMENT_NODE){var b=new Array();b=this._nodes.slice(0,d);b=b.concat(a.childNodes._nodes);this._nodes=b.concat(this._nodes.slice(d+1))}else{this._nodes[d]=a}}return c};DOMNodeList.prototype._removeChild=function DOMNodeList__removeChild(c){var b=null;if(c>-1){b=this._nodes[c];var a=new Array();a=this._nodes.slice(0,c);this._nodes=a.concat(this._nodes.slice(c+1));this.length=this._nodes.length}return b};DOMNodeList.prototype._appendChild=function DOMNodeList__appendChild(a){if(a.nodeType==DOMNode.DOCUMENT_FRAGMENT_NODE){this._nodes=this._nodes.concat(a.childNodes._nodes)}else{this._nodes[this._nodes.length]=a}this.length=this._nodes.length};DOMNodeList.prototype._cloneNodes=function DOMNodeList__cloneNodes(b,a){var d=new DOMNodeList(this.ownerDocument,a);for(var c=0;c<this._nodes.length;c++){d._appendChild(this._nodes[c].cloneNode(b))}return d};DOMNodeList.prototype.toString=function DOMNodeList_toString(){var a="";for(var b=0;b<this.length;b++){a+=this._nodes[b].toString()}return a};DOMNamedNodeMap=function(b,a){this._class=addClass(this._class,"DOMNamedNodeMap");this.DOMNodeList=DOMNodeList;this.DOMNodeList(b,a)};DOMNamedNodeMap.prototype=new DOMNodeList;DOMNamedNodeMap.prototype.getNamedItem=function DOMNamedNodeMap_getNamedItem(b){var a=null;var c=this._findNamedItemIndex(b);if(c>-1){a=this._nodes[c]}return a};DOMNamedNodeMap.prototype.setNamedItem=function DOMNamedNodeMap_setNamedItem(a){if(this.ownerDocument.implementation.errorChecking){if(this.ownerDocument!=a.ownerDocument){throw (new DOMException(DOMException.WRONG_DOCUMENT_ERR))}if(this._readonly||(this.parentNode&&this.parentNode._readonly)){throw (new DOMException(DOMException.NO_MODIFICATION_ALLOWED_ERR))}if(a.ownerElement&&(a.ownerElement!=this.parentNode)){throw (new DOMException(DOMException.INUSE_ATTRIBUTE_ERR))}}var c=this._findNamedItemIndex(a.name);var b=null;if(c>-1){b=this._nodes[c];if(this.ownerDocument.implementation.errorChecking&&b._readonly){throw (new DOMException(DOMException.NO_MODIFICATION_ALLOWED_ERR))}else{this._nodes[c]=a}}else{this._nodes[this.length]=a}this.length=this._nodes.length;a.ownerElement=this.parentNode;return b};DOMNamedNodeMap.prototype.removeNamedItem=function DOMNamedNodeMap_removeNamedItem(b){var a=null;if(this.ownerDocument.implementation.errorChecking&&(this._readonly||(this.parentNode&&this.parentNode._readonly))){throw (new DOMException(DOMException.NO_MODIFICATION_ALLOWED_ERR))}var c=this._findNamedItemIndex(b);if(this.ownerDocument.implementation.errorChecking&&(c<0)){throw (new DOMException(DOMException.NOT_FOUND_ERR))}var d=this._nodes[c];if(this.ownerDocument.implementation.errorChecking&&d._readonly){throw (new DOMException(DOMException.NO_MODIFICATION_ALLOWED_ERR))}return this._removeChild(c)};DOMNamedNodeMap.prototype.getNamedItemNS=function DOMNamedNodeMap_getNamedItemNS(c,a){var b=null;var d=this._findNamedItemNSIndex(c,a);if(d>-1){b=this._nodes[d]}return b};DOMNamedNodeMap.prototype.setNamedItemNS=function DOMNamedNodeMap_setNamedItemNS(a){if(this.ownerDocument.implementation.errorChecking){if(this._readonly||(this.parentNode&&this.parentNode._readonly)){throw (new DOMException(DOMException.NO_MODIFICATION_ALLOWED_ERR))}if(this.ownerDocument!=a.ownerDocument){throw (new DOMException(DOMException.WRONG_DOCUMENT_ERR))}if(a.ownerElement&&(a.ownerElement!=this.parentNode)){throw (new DOMException(DOMException.INUSE_ATTRIBUTE_ERR))}}var c=this._findNamedItemNSIndex(a.namespaceURI,a.localName);var b=null;if(c>-1){b=this._nodes[c];if(this.ownerDocument.implementation.errorChecking&&b._readonly){throw (new DOMException(DOMException.NO_MODIFICATION_ALLOWED_ERR))}else{this._nodes[c]=a}}else{this._nodes[this.length]=a}this.length=this._nodes.length;a.ownerElement=this.parentNode;return b};DOMNamedNodeMap.prototype.removeNamedItemNS=function DOMNamedNodeMap_removeNamedItemNS(c,a){var b=null;if(this.ownerDocument.implementation.errorChecking&&(this._readonly||(this.parentNode&&this.parentNode._readonly))){throw (new DOMException(DOMException.NO_MODIFICATION_ALLOWED_ERR))}var d=this._findNamedItemNSIndex(c,a);if(this.ownerDocument.implementation.errorChecking&&(d<0)){throw (new DOMException(DOMException.NOT_FOUND_ERR))}var e=this._nodes[d];if(this.ownerDocument.implementation.errorChecking&&e._readonly){throw (new DOMException(DOMException.NO_MODIFICATION_ALLOWED_ERR))}return this._removeChild(d)};DOMNamedNodeMap.prototype._findNamedItemIndex=function DOMNamedNodeMap__findNamedItemIndex(b){var a=-1;for(var c=0;c<this._nodes.length;c++){if(this._nodes[c].name==b){a=c;break}}return a};DOMNamedNodeMap.prototype._findNamedItemNSIndex=function DOMNamedNodeMap__findNamedItemNSIndex(c,a){var b=-1;if(a){for(var d=0;d<this._nodes.length;d++){if((this._nodes[d].namespaceURI==c)&&(this._nodes[d].localName==a)){b=d;break}}}return b};DOMNamedNodeMap.prototype._hasAttribute=function DOMNamedNodeMap__hasAttribute(b){var a=false;var c=this._findNamedItemIndex(b);if(c>-1){a=true}return a};DOMNamedNodeMap.prototype._hasAttributeNS=function DOMNamedNodeMap__hasAttributeNS(c,a){var b=false;var d=this._findNamedItemNSIndex(c,a);if(d>-1){b=true}return b};DOMNamedNodeMap.prototype._cloneNodes=function DOMNamedNodeMap__cloneNodes(a){var b=new DOMNamedNodeMap(this.ownerDocument,a);for(var c=0;c<this._nodes.length;c++){b._appendChild(this._nodes[c].cloneNode(false))}return b};DOMNamedNodeMap.prototype.toString=function DOMNamedNodeMap_toString(){var a="";for(var b=0;b<this.length-1;b++){a+=this._nodes[b].toString()+" "}if(this.length>0){a+=this._nodes[this.length-1].toString()}return a};DOMNamespaceNodeMap=function(b,a){this._class=addClass(this._class,"DOMNamespaceNodeMap");this.DOMNamedNodeMap=DOMNamedNodeMap;this.DOMNamedNodeMap(b,a)};DOMNamespaceNodeMap.prototype=new DOMNamedNodeMap;DOMNamespaceNodeMap.prototype._findNamedItemIndex=function DOMNamespaceNodeMap__findNamedItemIndex(a){var b=-1;for(var c=0;c<this._nodes.length;c++){if(this._nodes[c].localName==a){b=c;break}}return b};DOMNamespaceNodeMap.prototype._cloneNodes=function DOMNamespaceNodeMap__cloneNodes(a){var c=new DOMNamespaceNodeMap(this.ownerDocument,a);for(var b=0;b<this._nodes.length;b++){c._appendChild(this._nodes[b].cloneNode(false))}return c};DOMNamespaceNodeMap.prototype.toString=function DOMNamespaceNodeMap_toString(){var a="";for(var c=0;c<this._nodes.length;c++){var b=null;try{var b=this.parentNode.parentNode._namespaces.getNamedItem(this._nodes[c].localName)}catch(d){break}if(!(b&&(""+b.nodeValue==""+this._nodes[c].nodeValue))){a+=this._nodes[c].toString()+" "}}return a};DOMNode=function(a){this._class=addClass(this._class,"DOMNode");if(a){this._id=a._genId()}this.namespaceURI="";this.prefix="";this.localName="";this.nodeName="";this.nodeValue="";this.nodeType=0;this.parentNode=null;this.childNodes=new DOMNodeList(a,this);this.firstChild=null;this.lastChild=null;this.previousSibling=null;this.nextSibling=null;this.attributes=new DOMNamedNodeMap(a,this);this.ownerDocument=a;this._namespaces=new DOMNamespaceNodeMap(a,this);this._readonly=false};DOMNode.ELEMENT_NODE=1;DOMNode.ATTRIBUTE_NODE=2;DOMNode.TEXT_NODE=3;DOMNode.CDATA_SECTION_NODE=4;DOMNode.ENTITY_REFERENCE_NODE=5;DOMNode.ENTITY_NODE=6;DOMNode.PROCESSING_INSTRUCTION_NODE=7;DOMNode.COMMENT_NODE=8;DOMNode.DOCUMENT_NODE=9;DOMNode.DOCUMENT_TYPE_NODE=10;DOMNode.DOCUMENT_FRAGMENT_NODE=11;DOMNode.NOTATION_NODE=12;DOMNode.NAMESPACE_NODE=13;DOMNode.prototype.hasAttributes=function DOMNode_hasAttributes(){if(this.attributes.length==0){return false}else{return true}};DOMNode.prototype.getNodeName=function DOMNode_getNodeName(){return this.nodeName};DOMNode.prototype.getNodeValue=function DOMNode_getNodeValue(){return this.nodeValue};DOMNode.prototype.setNodeValue=function DOMNode_setNodeValue(a){if(this.ownerDocument.implementation.errorChecking&&this._readonly){throw (new DOMException(DOMException.NO_MODIFICATION_ALLOWED_ERR))}this.nodeValue=a};DOMNode.prototype.getNodeType=function DOMNode_getNodeType(){return this.nodeType};DOMNode.prototype.getParentNode=function DOMNode_getParentNode(){return this.parentNode};DOMNode.prototype.getChildNodes=function DOMNode_getChildNodes(){return this.childNodes};DOMNode.prototype.getFirstChild=function DOMNode_getFirstChild(){return this.firstChild};DOMNode.prototype.getLastChild=function DOMNode_getLastChild(){return this.lastChild};DOMNode.prototype.getPreviousSibling=function DOMNode_getPreviousSibling(){return this.previousSibling};DOMNode.prototype.getNextSibling=function DOMNode_getNextSibling(){return this.nextSibling};DOMNode.prototype.getAttributes=function DOMNode_getAttributes(){return this.attributes};DOMNode.prototype.getOwnerDocument=function DOMNode_getOwnerDocument(){return this.ownerDocument};DOMNode.prototype.getNamespaceURI=function DOMNode_getNamespaceURI(){return this.namespaceURI};DOMNode.prototype.getPrefix=function DOMNode_getPrefix(){return this.prefix};DOMNode.prototype.setPrefix=function DOMNode_setPrefix(a){if(this.ownerDocument.implementation.errorChecking){if(this._readonly){throw (new DOMException(DOMException.NO_MODIFICATION_ALLOWED_ERR))}if(!this.ownerDocument.implementation._isValidName(a)){throw (new DOMException(DOMException.INVALID_CHARACTER_ERR))}if(!this.ownerDocument._isValidNamespace(this.namespaceURI,a+":"+this.localName)){throw (new DOMException(DOMException.NAMESPACE_ERR))}if((a=="xmlns")&&(this.namespaceURI!="http://www.w3.org/2000/xmlns/")){throw (new DOMException(DOMException.NAMESPACE_ERR))}if((a=="")&&(this.localName=="xmlns")){throw (new DOMException(DOMException.NAMESPACE_ERR))}}this.prefix=a;if(this.prefix!=""){this.nodeName=this.prefix+":"+this.localName}else{this.nodeName=this.localName}};DOMNode.prototype.getLocalName=function DOMNode_getLocalName(){return this.localName};DOMNode.prototype.insertBefore=function DOMNode_insertBefore(a,d){var b;if(this.ownerDocument.implementation.errorChecking){if(this._readonly){throw (new DOMException(DOMException.NO_MODIFICATION_ALLOWED_ERR))}if(this.ownerDocument!=a.ownerDocument){throw (new DOMException(DOMException.WRONG_DOCUMENT_ERR))}if(this._isAncestor(a)){throw (new DOMException(DOMException.HIERARCHY_REQUEST_ERR))}}if(d){var e=this.childNodes._findItemIndex(d._id);if(this.ownerDocument.implementation.errorChecking&&(e<0)){throw (new DOMException(DOMException.NOT_FOUND_ERR))}var c=a.parentNode;if(c){c.removeChild(a)}this.childNodes._insertBefore(a,this.childNodes._findItemIndex(d._id));b=d.previousSibling;if(a.nodeType==DOMNode.DOCUMENT_FRAGMENT_NODE){if(a.childNodes._nodes.length>0){for(var f=0;f<a.childNodes._nodes.length;f++){a.childNodes._nodes[f].parentNode=this}d.previousSibling=a.childNodes._nodes[a.childNodes._nodes.length-1]}}else{a.parentNode=this;d.previousSibling=a}}else{b=this.lastChild;this.appendChild(a)}if(a.nodeType==DOMNode.DOCUMENT_FRAGMENT_NODE){if(a.childNodes._nodes.length>0){if(b){b.nextSibling=a.childNodes._nodes[0]}else{this.firstChild=a.childNodes._nodes[0]}a.childNodes._nodes[0].previousSibling=b;a.childNodes._nodes[a.childNodes._nodes.length-1].nextSibling=d}}else{if(b){b.nextSibling=a}else{this.firstChild=a}a.previousSibling=b;a.nextSibling=d}return a};DOMNode.prototype.replaceChild=function DOMNode_replaceChild(a,e){var c=null;if(this.ownerDocument.implementation.errorChecking){if(this._readonly){throw (new DOMException(DOMException.NO_MODIFICATION_ALLOWED_ERR))}if(this.ownerDocument!=a.ownerDocument){throw (new DOMException(DOMException.WRONG_DOCUMENT_ERR))}if(this._isAncestor(a)){throw (new DOMException(DOMException.HIERARCHY_REQUEST_ERR))}}var b=this.childNodes._findItemIndex(e._id);if(this.ownerDocument.implementation.errorChecking&&(b<0)){throw (new DOMException(DOMException.NOT_FOUND_ERR))}var d=a.parentNode;if(d){d.removeChild(a)}c=this.childNodes._replaceChild(a,b);if(a.nodeType==DOMNode.DOCUMENT_FRAGMENT_NODE){if(a.childNodes._nodes.length>0){for(var f=0;f<a.childNodes._nodes.length;f++){a.childNodes._nodes[f].parentNode=this}if(e.previousSibling){e.previousSibling.nextSibling=a.childNodes._nodes[0]}else{this.firstChild=a.childNodes._nodes[0]}if(e.nextSibling){e.nextSibling.previousSibling=a}else{this.lastChild=a.childNodes._nodes[a.childNodes._nodes.length-1]}a.childNodes._nodes[0].previousSibling=e.previousSibling;a.childNodes._nodes[a.childNodes._nodes.length-1].nextSibling=e.nextSibling}}else{a.parentNode=this;if(e.previousSibling){e.previousSibling.nextSibling=a}else{this.firstChild=a}if(e.nextSibling){e.nextSibling.previousSibling=a}else{this.lastChild=a}a.previousSibling=e.previousSibling;a.nextSibling=e.nextSibling}return c};DOMNode.prototype.removeChild=function DOMNode_removeChild(b){if(this.ownerDocument.implementation.errorChecking&&(this._readonly||b._readonly)){throw (new DOMException(DOMException.NO_MODIFICATION_ALLOWED_ERR))}var a=this.childNodes._findItemIndex(b._id);if(this.ownerDocument.implementation.errorChecking&&(a<0)){throw (new DOMException(DOMException.NOT_FOUND_ERR))}this.childNodes._removeChild(a);b.parentNode=null;if(b.previousSibling){b.previousSibling.nextSibling=b.nextSibling}else{this.firstChild=b.nextSibling}if(b.nextSibling){b.nextSibling.previousSibling=b.previousSibling}else{this.lastChild=b.previousSibling}b.previousSibling=null;b.nextSibling=null;return b};DOMNode.prototype.appendChild=function DOMNode_appendChild(a){if(this.ownerDocument.implementation.errorChecking){if(this._readonly){throw (new DOMException(DOMException.NO_MODIFICATION_ALLOWED_ERR))}if(this.ownerDocument!=a.ownerDocument){throw (new DOMException(DOMException.WRONG_DOCUMENT_ERR))}if(this._isAncestor(a)){throw (new DOMException(DOMException.HIERARCHY_REQUEST_ERR))}}var b=a.parentNode;if(b){b.removeChild(a)}this.childNodes._appendChild(a);if(a.nodeType==DOMNode.DOCUMENT_FRAGMENT_NODE){if(a.childNodes._nodes.length>0){for(var c=0;c<a.childNodes._nodes.length;c++){a.childNodes._nodes[c].parentNode=this}if(this.lastChild){this.lastChild.nextSibling=a.childNodes._nodes[0];a.childNodes._nodes[0].previousSibling=this.lastChild;this.lastChild=a.childNodes._nodes[a.childNodes._nodes.length-1]}else{this.lastChild=a.childNodes._nodes[a.childNodes._nodes.length-1];this.firstChild=a.childNodes._nodes[0]}}}else{a.parentNode=this;if(this.lastChild){this.lastChild.nextSibling=a;a.previousSibling=this.lastChild;this.lastChild=a}else{this.lastChild=a;this.firstChild=a}}return a};DOMNode.prototype.hasChildNodes=function DOMNode_hasChildNodes(){return(this.childNodes.length>0)};DOMNode.prototype.cloneNode=function DOMNode_cloneNode(a){try{return this.ownerDocument.importNode(this,a)}catch(b){return null}};DOMNode.prototype.normalize=function DOMNode_normalize(){var d;var a=new DOMNodeList();if(this.nodeType==DOMNode.ELEMENT_NODE||this.nodeType==DOMNode.DOCUMENT_NODE){var c=null;for(var b=0;b<this.childNodes.length;b++){d=this.childNodes.item(b);if(d.nodeType==DOMNode.TEXT_NODE){if(d.length<1){a._appendChild(d)}else{if(c){c.appendData(d.data);a._appendChild(d)}else{c=d}}}else{c=null;d.normalize()}}for(var b=0;b<a.length;b++){d=a.item(b);d.parentNode.removeChild(d)}}};DOMNode.prototype.isSupported=function DOMNode_isSupported(b,a){return this.ownerDocument.implementation.hasFeature(b,a)};DOMNode.prototype.getElementsByTagName=function DOMNode_getElementsByTagName(a){return this._getElementsByTagNameRecursive(a,new DOMNodeList(this.ownerDocument))};DOMNode.prototype._getElementsByTagNameRecursive=function DOMNode__getElementsByTagNameRecursive(c,a){if(this.nodeType==DOMNode.ELEMENT_NODE||this.nodeType==DOMNode.DOCUMENT_NODE){if((this.nodeName==c)||(c=="*")){a._appendChild(this)}for(var b=0;b<this.childNodes.length;b++){a=this.childNodes.item(b)._getElementsByTagNameRecursive(c,a)}}return a};DOMNode.prototype.getXML=function DOMNode_getXML(){return this.toString()};DOMNode.prototype.getElementsByTagNameNS=function DOMNode_getElementsByTagNameNS(b,a){return this._getElementsByTagNameNSRecursive(b,a,new DOMNodeList(this.ownerDocument))};DOMNode.prototype._getElementsByTagNameNSRecursive=function DOMNode__getElementsByTagNameNSRecursive(c,a,b){if(this.nodeType==DOMNode.ELEMENT_NODE||this.nodeType==DOMNode.DOCUMENT_NODE){if(((this.namespaceURI==c)||(c=="*"))&&((this.localName==a)||(a=="*"))){b._appendChild(this)}for(var d=0;d<this.childNodes.length;d++){b=this.childNodes.item(d)._getElementsByTagNameNSRecursive(c,a,b)}}return b};DOMNode.prototype._isAncestor=function DOMNode__isAncestor(a){return((this==a)||((this.parentNode)&&(this.parentNode._isAncestor(a))))};DOMNode.prototype.importNode=function DOMNode_importNode(d,b){var a;this.getOwnerDocument()._performingImportNodeOperation=true;try{if(d.nodeType==DOMNode.ELEMENT_NODE){if(!this.ownerDocument.implementation.namespaceAware){a=this.ownerDocument.createElement(d.tagName);for(var c=0;c<d.attributes.length;c++){a.setAttribute(d.attributes.item(c).name,d.attributes.item(c).value)}}else{a=this.ownerDocument.createElementNS(d.namespaceURI,d.nodeName);for(var c=0;c<d.attributes.length;c++){a.setAttributeNS(d.attributes.item(c).namespaceURI,d.attributes.item(c).name,d.attributes.item(c).value)}for(var c=0;c<d._namespaces.length;c++){a._namespaces._nodes[c]=this.ownerDocument.createNamespace(d._namespaces.item(c).localName);a._namespaces._nodes[c].setValue(d._namespaces.item(c).value)}}}else{if(d.nodeType==DOMNode.ATTRIBUTE_NODE){if(!this.ownerDocument.implementation.namespaceAware){a=this.ownerDocument.createAttribute(d.name)}else{a=this.ownerDocument.createAttributeNS(d.namespaceURI,d.nodeName);for(var c=0;c<d._namespaces.length;c++){a._namespaces._nodes[c]=this.ownerDocument.createNamespace(d._namespaces.item(c).localName);a._namespaces._nodes[c].setValue(d._namespaces.item(c).value)}}a.setValue(d.value)}else{if(d.nodeType==DOMNode.DOCUMENT_FRAGMENT){a=this.ownerDocument.createDocumentFragment()}else{if(d.nodeType==DOMNode.NAMESPACE_NODE){a=this.ownerDocument.createNamespace(d.nodeName);a.setValue(d.value)}else{if(d.nodeType==DOMNode.TEXT_NODE){a=this.ownerDocument.createTextNode(d.data)}else{if(d.nodeType==DOMNode.CDATA_SECTION_NODE){a=this.ownerDocument.createCDATASection(d.data)}else{if(d.nodeType==DOMNode.PROCESSING_INSTRUCTION_NODE){a=this.ownerDocument.createProcessingInstruction(d.target,d.data)}else{if(d.nodeType==DOMNode.COMMENT_NODE){a=this.ownerDocument.createComment(d.data)}else{throw (new DOMException(DOMException.NOT_SUPPORTED_ERR))}}}}}}}}if(b){for(var c=0;c<d.childNodes.length;c++){a.appendChild(this.ownerDocument.importNode(d.childNodes.item(c),true))}}this.getOwnerDocument()._performingImportNodeOperation=false;return a}catch(e){this.getOwnerDocument()._performingImportNodeOperation=false;throw e}};DOMNode.prototype.__escapeString=function DOMNode__escapeString(a){return __escapeString(a)};DOMNode.prototype.__unescapeString=function DOMNode__unescapeString(a){return __unescapeString(a)};DOMDocument=function(a){this._class=addClass(this._class,"DOMDocument");this.DOMNode=DOMNode;this.DOMNode(this);this.doctype=null;this.implementation=a;this.documentElement=null;this.all=new Array();this.nodeName="#document";this.nodeType=DOMNode.DOCUMENT_NODE;this._id=0;this._lastId=0;this._parseComplete=false;this.ownerDocument=this;this._performingImportNodeOperation=false};DOMDocument.prototype=new DOMNode;DOMDocument.prototype.getDoctype=function DOMDocument_getDoctype(){return this.doctype};DOMDocument.prototype.getImplementation=function DOMDocument_implementation(){return this.implementation};DOMDocument.prototype.getDocumentElement=function DOMDocument_getDocumentElement(){return this.documentElement};DOMDocument.prototype.createElement=function DOMDocument_createElement(a){if(this.ownerDocument.implementation.errorChecking&&(!this.ownerDocument.implementation._isValidName(a))){throw (new DOMException(DOMException.INVALID_CHARACTER_ERR))}var b=new DOMElement(this);b.tagName=a;b.nodeName=a;this.all[this.all.length]=b;return b};DOMDocument.prototype.createDocumentFragment=function DOMDocument_createDocumentFragment(){var a=new DOMDocumentFragment(this);return a};DOMDocument.prototype.createTextNode=function DOMDocument_createTextNode(b){var a=new DOMText(this);a.data=b;a.nodeValue=b;a.length=b.length;return a};DOMDocument.prototype.createComment=function DOMDocument_createComment(b){var a=new DOMComment(this);a.data=b;a.nodeValue=b;a.length=b.length;return a};DOMDocument.prototype.createCDATASection=function DOMDocument_createCDATASection(b){var a=new DOMCDATASection(this);a.data=b;a.nodeValue=b;a.length=b.length;return a};DOMDocument.prototype.createProcessingInstruction=function DOMDocument_createProcessingInstruction(c,b){if(this.ownerDocument.implementation.errorChecking&&(!this.implementation._isValidName(c))){throw (new DOMException(DOMException.INVALID_CHARACTER_ERR))}var a=new DOMProcessingInstruction(this);a.target=c;a.nodeName=c;a.data=b;a.nodeValue=b;a.length=b.length;return a};DOMDocument.prototype.createAttribute=function DOMDocument_createAttribute(a){if(this.ownerDocument.implementation.errorChecking&&(!this.ownerDocument.implementation._isValidName(a))){throw (new DOMException(DOMException.INVALID_CHARACTER_ERR))}var b=new DOMAttr(this);b.name=a;b.nodeName=a;return b};DOMDocument.prototype.createElementNS=function DOMDocument_createElementNS(a,c){if(this.ownerDocument.implementation.errorChecking){if(!this.ownerDocument._isValidNamespace(a,c)){throw (new DOMException(DOMException.NAMESPACE_ERR))}if(!this.ownerDocument.implementation._isValidName(c)){throw (new DOMException(DOMException.INVALID_CHARACTER_ERR))}}var b=new DOMElement(this);var d=this.implementation._parseQName(c);b.nodeName=c;b.namespaceURI=a;b.prefix=d.prefix;b.localName=d.localName;b.tagName=c;this.all[this.all.length]=b;return b};DOMDocument.prototype.createAttributeNS=function DOMDocument_createAttributeNS(a,c){if(this.ownerDocument.implementation.errorChecking){if(!this.ownerDocument._isValidNamespace(a,c,true)){throw (new DOMException(DOMException.NAMESPACE_ERR))}if(!this.ownerDocument.implementation._isValidName(c)){throw (new DOMException(DOMException.INVALID_CHARACTER_ERR))}}var b=new DOMAttr(this);var d=this.implementation._parseQName(c);b.nodeName=c;b.namespaceURI=a;b.prefix=d.prefix;b.localName=d.localName;b.name=c;b.nodeValue="";return b};DOMDocument.prototype.createNamespace=function DOMDocument_createNamespace(b){var a=new DOMNamespace(this);var c=this.implementation._parseQName(b);a.nodeName=b;a.prefix=c.prefix;a.localName=c.localName;a.name=b;a.nodeValue="";return a};DOMDocument.prototype.getElementById=function DOMDocument_getElementById(a){retNode=null;for(var b=0;b<this.all.length;b++){var c=this.all[b];if((c.id==a)&&(c._isAncestor(c.ownerDocument.documentElement))){retNode=c;break}}return retNode};DOMDocument.prototype._genId=function DOMDocument__genId(){this._lastId+=1;return this._lastId};DOMDocument.prototype._isValidNamespace=function DOMDocument__isValidNamespace(a,e,d){if(this._performingImportNodeOperation==true){return true}var b=true;var c=this.implementation._parseQName(e);if(this._parseComplete==true){if(c.localName.indexOf(":")>-1){b=false}if((b)&&(!d)){if(!a){b=false}}if((b)&&(c.prefix=="")){b=false}}if((b)&&(c.prefix=="xml")&&(a!="http://www.w3.org/XML/1998/namespace")){b=false}return b};DOMDocument.prototype.toString=function DOMDocument_toString(){return""+this.childNodes};DOMElement=function(a){this._class=addClass(this._class,"DOMElement");this.DOMNode=DOMNode;this.DOMNode(a);this.tagName="";this.id="";this.nodeType=DOMNode.ELEMENT_NODE};DOMElement.prototype=new DOMNode;DOMElement.prototype.getTagName=function DOMElement_getTagName(){return this.tagName};DOMElement.prototype.getAttribute=function DOMElement_getAttribute(c){var b="";var a=this.attributes.getNamedItem(c);if(a){b=a.value}return b};DOMElement.prototype.setAttribute=function DOMElement_setAttribute(b,c){var a=this.attributes.getNamedItem(b);if(!a){a=this.ownerDocument.createAttribute(b)}var c=new String(c);if(this.ownerDocument.implementation.errorChecking){if(a._readonly){throw (new DOMException(DOMException.NO_MODIFICATION_ALLOWED_ERR))}if(!this.ownerDocument.implementation._isValidString(c)){throw (new DOMException(DOMException.INVALID_CHARACTER_ERR))}}if(this.ownerDocument.implementation._isIdDeclaration(b)){this.id=c}a.value=c;a.nodeValue=c;if(c.length>0){a.specified=true}else{a.specified=false}this.attributes.setNamedItem(a)};DOMElement.prototype.removeAttribute=function DOMElement_removeAttribute(a){return this.attributes.removeNamedItem(a)};DOMElement.prototype.getAttributeNode=function DOMElement_getAttributeNode(a){return this.attributes.getNamedItem(a)};DOMElement.prototype.setAttributeNode=function DOMElement_setAttributeNode(a){if(this.ownerDocument.implementation._isIdDeclaration(a.name)){this.id=a.value}return this.attributes.setNamedItem(a)};DOMElement.prototype.removeAttributeNode=function DOMElement_removeAttributeNode(a){if(this.ownerDocument.implementation.errorChecking&&a._readonly){throw (new DOMException(DOMException.NO_MODIFICATION_ALLOWED_ERR))}var b=this.attributes._findItemIndex(a._id);if(this.ownerDocument.implementation.errorChecking&&(b<0)){throw (new DOMException(DOMException.NOT_FOUND_ERR))}return this.attributes._removeChild(b)};DOMElement.prototype.getAttributeNS=function DOMElement_getAttributeNS(d,b){var c="";var a=this.attributes.getNamedItemNS(d,b);if(a){c=a.value}return c};DOMElement.prototype.setAttributeNS=function DOMElement_setAttributeNS(b,d,c){var a=this.attributes.getNamedItem(b,d);if(!a){a=this.ownerDocument.createAttributeNS(b,d)}var c=new String(c);if(this.ownerDocument.implementation.errorChecking){if(a._readonly){throw (new DOMException(DOMException.NO_MODIFICATION_ALLOWED_ERR))}if(!this.ownerDocument._isValidNamespace(b,d)){throw (new DOMException(DOMException.NAMESPACE_ERR))}if(!this.ownerDocument.implementation._isValidString(c)){throw (new DOMException(DOMException.INVALID_CHARACTER_ERR))}}if(this.ownerDocument.implementation._isIdDeclaration(name)){this.id=c}a.value=c;a.nodeValue=c;if(c.length>0){a.specified=true}else{a.specified=false}this.attributes.setNamedItemNS(a)};DOMElement.prototype.removeAttributeNS=function DOMElement_removeAttributeNS(b,a){return this.attributes.removeNamedItemNS(b,a)};DOMElement.prototype.getAttributeNodeNS=function DOMElement_getAttributeNodeNS(b,a){return this.attributes.getNamedItemNS(b,a)};DOMElement.prototype.setAttributeNodeNS=function DOMElement_setAttributeNodeNS(a){if((a.prefix=="")&&this.ownerDocument.implementation._isIdDeclaration(a.name)){this.id=a.value}return this.attributes.setNamedItemNS(a)};DOMElement.prototype.hasAttribute=function DOMElement_hasAttribute(a){return this.attributes._hasAttribute(a)};DOMElement.prototype.hasAttributeNS=function DOMElement_hasAttributeNS(b,a){return this.attributes._hasAttributeNS(b,a)};DOMElement.prototype.toString=function DOMElement_toString(){var b="";var c=this._namespaces.toString();if(c.length>0){c=" "+c}var a=this.attributes.toString();if(a.length>0){a=" "+a}b+="<"+this.nodeName+c+a+">";b+=this.childNodes.toString();b+="</"+this.nodeName+">";return b};DOMAttr=function(a){this._class=addClass(this._class,"DOMAttr");this.DOMNode=DOMNode;this.DOMNode(a);this.name="";this.specified=false;this.value="";this.nodeType=DOMNode.ATTRIBUTE_NODE;this.ownerElement=null;this.childNodes=null;this.attributes=null};DOMAttr.prototype=new DOMNode;DOMAttr.prototype.getName=function DOMAttr_getName(){return this.nodeName};DOMAttr.prototype.getSpecified=function DOMAttr_getSpecified(){return this.specified};DOMAttr.prototype.getValue=function DOMAttr_getValue(){return this.nodeValue};DOMAttr.prototype.setValue=function DOMAttr_setValue(a){if(this.ownerDocument.implementation.errorChecking&&this._readonly){throw (new DOMException(DOMException.NO_MODIFICATION_ALLOWED_ERR))}this.setNodeValue(a)};DOMAttr.prototype.setNodeValue=function DOMAttr_setNodeValue(a){this.nodeValue=new String(a);this.value=this.nodeValue;this.specified=(this.value.length>0)};DOMAttr.prototype.toString=function DOMAttr_toString(){var a="";a+=this.nodeName+'="'+this.__escapeString(this.nodeValue)+'"';return a};DOMAttr.prototype.getOwnerElement=function(){return this.ownerElement};DOMNamespace=function(a){this._class=addClass(this._class,"DOMNamespace");this.DOMNode=DOMNode;this.DOMNode(a);this.name="";this.specified=false;this.value="";this.nodeType=DOMNode.NAMESPACE_NODE};DOMNamespace.prototype=new DOMNode;DOMNamespace.prototype.getValue=function DOMNamespace_getValue(){return this.nodeValue};DOMNamespace.prototype.setValue=function DOMNamespace_setValue(a){this.nodeValue=new String(a);this.value=this.nodeValue};DOMNamespace.prototype.toString=function DOMNamespace_toString(){var a="";if(this.nodeName!=""){a+=this.nodeName+'="'+this.__escapeString(this.nodeValue)+'"'}else{a+='xmlns="'+this.__escapeString(this.nodeValue)+'"'}return a};DOMCharacterData=function(a){this._class=addClass(this._class,"DOMCharacterData");this.DOMNode=DOMNode;this.DOMNode(a);this.data="";this.length=0};DOMCharacterData.prototype=new DOMNode;DOMCharacterData.prototype.getData=function DOMCharacterData_getData(){return this.nodeValue};DOMCharacterData.prototype.setData=function DOMCharacterData_setData(a){this.setNodeValue(a)};DOMCharacterData.prototype.setNodeValue=function DOMCharacterData_setNodeValue(a){if(this.ownerDocument.implementation.errorChecking&&this._readonly){throw (new DOMException(DOMException.NO_MODIFICATION_ALLOWED_ERR))}this.nodeValue=new String(a);this.data=this.nodeValue;this.length=this.nodeValue.length};DOMCharacterData.prototype.getLength=function DOMCharacterData_getLength(){return this.nodeValue.length};DOMCharacterData.prototype.substringData=function DOMCharacterData_substringData(c,b){var a=null;if(this.data){if(this.ownerDocument.implementation.errorChecking&&((c<0)||(c>this.data.length)||(b<0))){throw (new DOMException(DOMException.INDEX_SIZE_ERR))}if(!b){a=this.data.substring(c)}else{a=this.data.substring(c,c+b)}}return a};DOMCharacterData.prototype.appendData=function DOMCharacterData_appendData(a){if(this.ownerDocument.implementation.errorChecking&&this._readonly){throw (new DOMException(DOMException.NO_MODIFICATION_ALLOWED_ERR))}this.setData(""+this.data+a)};DOMCharacterData.prototype.insertData=function DOMCharacterData_insertData(b,a){if(this.ownerDocument.implementation.errorChecking&&this._readonly){throw (new DOMException(DOMException.NO_MODIFICATION_ALLOWED_ERR))}if(this.data){if(this.ownerDocument.implementation.errorChecking&&((b<0)||(b>this.data.length))){throw (new DOMException(DOMException.INDEX_SIZE_ERR))}this.setData(this.data.substring(0,b).concat(a,this.data.substring(b)))}else{if(this.ownerDocument.implementation.errorChecking&&(b!=0)){throw (new DOMException(DOMException.INDEX_SIZE_ERR))}this.setData(a)}};DOMCharacterData.prototype.deleteData=function DOMCharacterData_deleteData(b,a){if(this.ownerDocument.implementation.errorChecking&&this._readonly){throw (new DOMException(DOMException.NO_MODIFICATION_ALLOWED_ERR))}if(this.data){if(this.ownerDocument.implementation.errorChecking&&((b<0)||(b>this.data.length)||(a<0))){throw (new DOMException(DOMException.INDEX_SIZE_ERR))}if(!a||(b+a)>this.data.length){this.setData(this.data.substring(0,b))}else{this.setData(this.data.substring(0,b).concat(this.data.substring(b+a)))}}};DOMCharacterData.prototype.replaceData=function DOMCharacterData_replaceData(c,b,a){if(this.ownerDocument.implementation.errorChecking&&this._readonly){throw (new DOMException(DOMException.NO_MODIFICATION_ALLOWED_ERR))}if(this.data){if(this.ownerDocument.implementation.errorChecking&&((c<0)||(c>this.data.length)||(b<0))){throw (new DOMException(DOMException.INDEX_SIZE_ERR))}this.setData(this.data.substring(0,c).concat(a,this.data.substring(c+b)))}else{this.setData(a)}};DOMText=function(a){this._class=addClass(this._class,"DOMText");this.DOMCharacterData=DOMCharacterData;this.DOMCharacterData(a);this.nodeName="#text";this.nodeType=DOMNode.TEXT_NODE};DOMText.prototype=new DOMCharacterData;DOMText.prototype.splitText=function DOMText_splitText(c){var a,b;if(this.ownerDocument.implementation.errorChecking){if(this._readonly){throw (new DOMException(DOMException.NO_MODIFICATION_ALLOWED_ERR))}if((c<0)||(c>this.data.length)){throw (new DOMException(DOMException.INDEX_SIZE_ERR))}}if(this.parentNode){a=this.substringData(c);b=this.ownerDocument.createTextNode(a);if(this.nextSibling){this.parentNode.insertBefore(b,this.nextSibling)}else{this.parentNode.appendChild(b)}this.deleteData(c)}return b};DOMText.prototype.toString=function DOMText_toString(){return this.__escapeString(""+this.nodeValue)};DOMCDATASection=function(a){this._class=addClass(this._class,"DOMCDATASection");this.DOMCharacterData=DOMCharacterData;this.DOMCharacterData(a);this.nodeName="#cdata-section";this.nodeType=DOMNode.CDATA_SECTION_NODE};DOMCDATASection.prototype=new DOMCharacterData;DOMCDATASection.prototype.splitText=function DOMCDATASection_splitText(c){var a,b;if(this.ownerDocument.implementation.errorChecking){if(this._readonly){throw (new DOMException(DOMException.NO_MODIFICATION_ALLOWED_ERR))}if((c<0)||(c>this.data.length)){throw (new DOMException(DOMException.INDEX_SIZE_ERR))}}if(this.parentNode){a=this.substringData(c);b=this.ownerDocument.createCDATASection(a);if(this.nextSibling){this.parentNode.insertBefore(b,this.nextSibling)}else{this.parentNode.appendChild(b)}this.deleteData(c)}return b};DOMCDATASection.prototype.toString=function DOMCDATASection_toString(){var a="";a+="<![CDATA["+this.nodeValue+"]]>";return a};DOMComment=function(a){this._class=addClass(this._class,"DOMComment");this.DOMCharacterData=DOMCharacterData;this.DOMCharacterData(a);this.nodeName="#comment";this.nodeType=DOMNode.COMMENT_NODE};DOMComment.prototype=new DOMCharacterData;DOMComment.prototype.toString=function DOMComment_toString(){var a="";a+="<!--"+this.nodeValue+"-->";return a};DOMProcessingInstruction=function(a){this._class=addClass(this._class,"DOMProcessingInstruction");this.DOMNode=DOMNode;this.DOMNode(a);this.target="";this.data="";this.nodeType=DOMNode.PROCESSING_INSTRUCTION_NODE};DOMProcessingInstruction.prototype=new DOMNode;DOMProcessingInstruction.prototype.getTarget=function DOMProcessingInstruction_getTarget(){return this.nodeName};DOMProcessingInstruction.prototype.getData=function DOMProcessingInstruction_getData(){return this.nodeValue};DOMProcessingInstruction.prototype.setData=function DOMProcessingInstruction_setData(a){this.setNodeValue(a)};DOMProcessingInstruction.prototype.setNodeValue=function DOMProcessingInstruction_setNodeValue(a){if(this.ownerDocument.implementation.errorChecking&&this._readonly){throw (new DOMException(DOMException.NO_MODIFICATION_ALLOWED_ERR))}this.nodeValue=new String(a);this.data=this.nodeValue};DOMProcessingInstruction.prototype.toString=function DOMProcessingInstruction_toString(){var a="";a+="<?"+this.nodeName+" "+this.nodeValue+" ?>";return a};DOMDocumentFragment=function(a){this._class=addClass(this._class,"DOMDocumentFragment");this.DOMNode=DOMNode;this.DOMNode(a);this.nodeName="#document-fragment";this.nodeType=DOMNode.DOCUMENT_FRAGMENT_NODE};DOMDocumentFragment.prototype=new DOMNode;DOMDocumentFragment.prototype.toString=function DOMDocumentFragment_toString(){var a="";var b=this.getChildNodes().getLength();for(intLoop=0;intLoop<b;intLoop++){a+=this.getChildNodes().item(intLoop).toString()}return a};DOMDocumentType=function(){alert("DOMDocumentType.constructor(): Not Implemented")};DOMEntity=function(){alert("DOMEntity.constructor(): Not Implemented")};DOMEntityReference=function(){alert("DOMEntityReference.constructor(): Not Implemented")};DOMNotation=function(){alert("DOMNotation.constructor(): Not Implemented")};Strings=new Object();Strings.WHITESPACE=" \t\n\r";Strings.QUOTES="\"'";Strings.isEmpty=function Strings_isEmpty(a){return(a==null)||(a.length==0)};Strings.indexOfNonWhitespace=function Strings_indexOfNonWhitespace(d,a,c){if(Strings.isEmpty(d)){return -1}a=a||0;c=c||d.length;for(var b=a;b<c;b++){if(Strings.WHITESPACE.indexOf(d.charAt(b))==-1){return b}}return -1};Strings.lastIndexOfNonWhitespace=function Strings_lastIndexOfNonWhitespace(d,a,c){if(Strings.isEmpty(d)){return -1}a=a||0;c=c||d.length;for(var b=c-1;b>=a;b--){if(Strings.WHITESPACE.indexOf(d.charAt(b))==-1){return b}}return -1};Strings.indexOfWhitespace=function Strings_indexOfWhitespace(d,a,c){if(Strings.isEmpty(d)){return -1}a=a||0;c=c||d.length;for(var b=a;b<c;b++){if(Strings.WHITESPACE.indexOf(d.charAt(b))!=-1){return b}}return -1};Strings.replace=function Strings_replace(e,a,d,c,b){if(Strings.isEmpty(e)){return""}a=a||0;d=d||e.length;return e.substring(a,d).split(c).join(b)};Strings.getLineNumber=function Strings_getLineNumber(b,a){if(Strings.isEmpty(b)){return -1}a=a||b.length;return b.substring(0,a).split("\n").length};Strings.getColumnNumber=function Strings_getColumnNumber(e,d){if(Strings.isEmpty(e)){return -1}d=d||e.length;var b=e.substring(0,d).split("\n");var a=b[b.length-1];b.length--;var c=b.join("\n").length;return d-c};StringBuffer=function(){this._a=new Array()};StringBuffer.prototype.append=function StringBuffer_append(a){this._a[this._a.length]=a};StringBuffer.prototype.toString=function StringBuffer_toString(){return this._a.join("")};var whitespace="\n\r\t ";XMLP=function(a){a=SAXStrings.replace(a,null,null,"\r\n","\n");a=SAXStrings.replace(a,null,null,"\r","\n");this.m_xml=a;this.m_iP=0;this.m_iState=XMLP._STATE_PROLOG;this.m_stack=new Stack();this._clearAttributes()};XMLP._NONE=0;XMLP._ELM_B=1;XMLP._ELM_E=2;XMLP._ELM_EMP=3;XMLP._ATT=4;XMLP._TEXT=5;XMLP._ENTITY=6;XMLP._PI=7;XMLP._CDATA=8;XMLP._COMMENT=9;XMLP._DTD=10;XMLP._ERROR=11;XMLP._CONT_XML=0;XMLP._CONT_ALT=1;XMLP._ATT_NAME=0;XMLP._ATT_VAL=1;XMLP._STATE_PROLOG=1;XMLP._STATE_DOCUMENT=2;XMLP._STATE_MISC=3;XMLP._errs=new Array();XMLP._errs[XMLP.ERR_CLOSE_PI=0]="PI: missing closing sequence";XMLP._errs[XMLP.ERR_CLOSE_DTD=1]="DTD: missing closing sequence";XMLP._errs[XMLP.ERR_CLOSE_COMMENT=2]="Comment: missing closing sequence";XMLP._errs[XMLP.ERR_CLOSE_CDATA=3]="CDATA: missing closing sequence";XMLP._errs[XMLP.ERR_CLOSE_ELM=4]="Element: missing closing sequence";XMLP._errs[XMLP.ERR_CLOSE_ENTITY=5]="Entity: missing closing sequence";XMLP._errs[XMLP.ERR_PI_TARGET=6]="PI: target is required";XMLP._errs[XMLP.ERR_ELM_EMPTY=7]="Element: cannot be both empty and closing";XMLP._errs[XMLP.ERR_ELM_NAME=8]='Element: name must immediatly follow "<"';XMLP._errs[XMLP.ERR_ELM_LT_NAME=9]='Element: "<" not allowed in element names';XMLP._errs[XMLP.ERR_ATT_VALUES=10]="Attribute: values are required and must be in quotes";XMLP._errs[XMLP.ERR_ATT_LT_NAME=11]='Element: "<" not allowed in attribute names';XMLP._errs[XMLP.ERR_ATT_LT_VALUE=12]='Attribute: "<" not allowed in attribute values';XMLP._errs[XMLP.ERR_ATT_DUP=13]="Attribute: duplicate attributes not allowed";XMLP._errs[XMLP.ERR_ENTITY_UNKNOWN=14]="Entity: unknown entity";XMLP._errs[XMLP.ERR_INFINITELOOP=15]="Infininte loop";XMLP._errs[XMLP.ERR_DOC_STRUCTURE=16]="Document: only comments, processing instructions, or whitespace allowed outside of document element";XMLP._errs[XMLP.ERR_ELM_NESTING=17]="Element: must be nested correctly";XMLP.prototype._addAttribute=function(a,b){this.m_atts[this.m_atts.length]=new Array(a,b)};XMLP.prototype._checkStructure=function(b){if(XMLP._STATE_PROLOG==this.m_iState){if((XMLP._TEXT==b)||(XMLP._ENTITY==b)){if(SAXStrings.indexOfNonWhitespace(this.getContent(),this.getContentBegin(),this.getContentEnd())!=-1){return this._setErr(XMLP.ERR_DOC_STRUCTURE)}}if((XMLP._ELM_B==b)||(XMLP._ELM_EMP==b)){this.m_iState=XMLP._STATE_DOCUMENT}}if(XMLP._STATE_DOCUMENT==this.m_iState){if((XMLP._ELM_B==b)||(XMLP._ELM_EMP==b)){this.m_stack.push(this.getName())}if((XMLP._ELM_E==b)||(XMLP._ELM_EMP==b)){var a=this.m_stack.pop();if((a==null)||(a!=this.getName())){return this._setErr(XMLP.ERR_ELM_NESTING)}}if(this.m_stack.count()==0){this.m_iState=XMLP._STATE_MISC;return b}}if(XMLP._STATE_MISC==this.m_iState){if((XMLP._ELM_B==b)||(XMLP._ELM_E==b)||(XMLP._ELM_EMP==b)||(XMLP.EVT_DTD==b)){return this._setErr(XMLP.ERR_DOC_STRUCTURE)}if((XMLP._TEXT==b)||(XMLP._ENTITY==b)){if(SAXStrings.indexOfNonWhitespace(this.getContent(),this.getContentBegin(),this.getContentEnd())!=-1){return this._setErr(XMLP.ERR_DOC_STRUCTURE)}}}return b};XMLP.prototype._clearAttributes=function(){this.m_atts=new Array()};XMLP.prototype._findAttributeIndex=function(a){for(var b=0;b<this.m_atts.length;b++){if(this.m_atts[b][XMLP._ATT_NAME]==a){return b}}return -1};XMLP.prototype.getAttributeCount=function(){return this.m_atts?this.m_atts.length:0};XMLP.prototype.getAttributeName=function(a){return((a<0)||(a>=this.m_atts.length))?null:this.m_atts[a][XMLP._ATT_NAME]};XMLP.prototype.getAttributeValue=function(a){return((a<0)||(a>=this.m_atts.length))?null:__unescapeString(this.m_atts[a][XMLP._ATT_VAL])};XMLP.prototype.getAttributeValueByName=function(a){return this.getAttributeValue(this._findAttributeIndex(a))};XMLP.prototype.getColumnNumber=function(){return SAXStrings.getColumnNumber(this.m_xml,this.m_iP)};XMLP.prototype.getContent=function(){return(this.m_cSrc==XMLP._CONT_XML)?this.m_xml:this.m_cAlt};XMLP.prototype.getContentBegin=function(){return this.m_cB};XMLP.prototype.getContentEnd=function(){return this.m_cE};XMLP.prototype.getLineNumber=function(){return SAXStrings.getLineNumber(this.m_xml,this.m_iP)};XMLP.prototype.getName=function(){return this.m_name};XMLP.prototype.next=function(){return this._checkStructure(this._parse())};XMLP.prototype._parse=function(){if(this.m_iP==this.m_xml.length){return XMLP._NONE}if(this.m_iP==this.m_xml.indexOf("<?",this.m_iP)){return this._parsePI(this.m_iP+2)}else{if(this.m_iP==this.m_xml.indexOf("<!DOCTYPE",this.m_iP)){return this._parseDTD(this.m_iP+9)}else{if(this.m_iP==this.m_xml.indexOf("<!--",this.m_iP)){return this._parseComment(this.m_iP+4)}else{if(this.m_iP==this.m_xml.indexOf("<![CDATA[",this.m_iP)){return this._parseCDATA(this.m_iP+9)}else{if(this.m_iP==this.m_xml.indexOf("<",this.m_iP)){return this._parseElement(this.m_iP+1)}else{if(this.m_iP==this.m_xml.indexOf("&",this.m_iP)){return this._parseEntity(this.m_iP+1)}else{return this._parseText(this.m_iP)}}}}}}};XMLP.prototype._parseAttribute=function(e,d){var h,f,j,a,i;var c,b,g;this.m_cAlt="";h=SAXStrings.indexOfNonWhitespace(this.m_xml,e,d);if((h==-1)||(h>=d)){return h}j=this.m_xml.indexOf("=",h);if((j==-1)||(j>d)){return this._setErr(XMLP.ERR_ATT_VALUES)}f=SAXStrings.lastIndexOfNonWhitespace(this.m_xml,h,j);a=SAXStrings.indexOfNonWhitespace(this.m_xml,j+1,d);if((a==-1)||(a>d)){return this._setErr(XMLP.ERR_ATT_VALUES)}c=this.m_xml.charAt(a);if(SAXStrings.QUOTES.indexOf(c)==-1){return this._setErr(XMLP.ERR_ATT_VALUES)}i=this.m_xml.indexOf(c,a+1);if((i==-1)||(i>d)){return this._setErr(XMLP.ERR_ATT_VALUES)}b=this.m_xml.substring(h,f+1);g=this.m_xml.substring(a+1,i);if(b.indexOf("<")!=-1){return this._setErr(XMLP.ERR_ATT_LT_NAME)}if(g.indexOf("<")!=-1){return this._setErr(XMLP.ERR_ATT_LT_VALUE)}g=SAXStrings.replace(g,null,null,"\n"," ");g=SAXStrings.replace(g,null,null,"\t"," ");iRet=this._replaceEntities(g);if(iRet==XMLP._ERROR){return iRet}g=this.m_cAlt;if(this._findAttributeIndex(b)==-1){this._addAttribute(b,g)}else{return this._setErr(XMLP.ERR_ATT_DUP)}this.m_iP=i+2;return XMLP._ATT};XMLP.prototype._parseCDATA=function(a){var b=this.m_xml.indexOf("]]>",a);if(b==-1){return this._setErr(XMLP.ERR_CLOSE_CDATA)}this._setContent(XMLP._CONT_XML,a,b);this.m_iP=b+3;return XMLP._CDATA};XMLP.prototype._parseComment=function(a){var b=this.m_xml.indexOf("-->",a);if(b==-1){return this._setErr(XMLP.ERR_CLOSE_COMMENT)}this._setContent(XMLP._CONT_XML,a,b);this.m_iP=b+3;return XMLP._COMMENT};XMLP.prototype._parseDTD=function(b){var e,a,c,d;e=this.m_xml.indexOf(">",b);if(e==-1){return this._setErr(XMLP.ERR_CLOSE_DTD)}c=this.m_xml.indexOf("[",b);a=((c!=-1)&&(c<e))?"]>":">";while(true){if(e==d){return this._setErr(XMLP.ERR_INFINITELOOP)}d=e;e=this.m_xml.indexOf(a,b);if(e==-1){return this._setErr(XMLP.ERR_CLOSE_DTD)}if(this.m_xml.substring(e-1,e+2)!="]]>"){break}}this.m_iP=e+a.length;return XMLP._DTD};XMLP.prototype._parseElement=function(b){var g,h,f,c;var d,a,e;h=g=this.m_xml.indexOf(">",b);if(g==-1){return this._setErr(XMLP.ERR_CLOSE_ELM)}if(this.m_xml.charAt(b)=="/"){d=XMLP._ELM_E;b++}else{d=XMLP._ELM_B}if(this.m_xml.charAt(g-1)=="/"){if(d==XMLP._ELM_E){return this._setErr(XMLP.ERR_ELM_EMPTY)}d=XMLP._ELM_EMP;h--}h=SAXStrings.lastIndexOfNonWhitespace(this.m_xml,b,h);if(g-b!=1){if(SAXStrings.indexOfNonWhitespace(this.m_xml,b,h)!=b){return this._setErr(XMLP.ERR_ELM_NAME)}}this._clearAttributes();f=SAXStrings.indexOfWhitespace(this.m_xml,b,h);if(f==-1){f=h+1}else{this.m_iP=f;while(this.m_iP<h){if(this.m_iP==e){return this._setErr(XMLP.ERR_INFINITELOOP)}e=this.m_iP;c=this._parseAttribute(this.m_iP,h);if(c==XMLP._ERROR){return c}}}a=this.m_xml.substring(b,f);if(a.indexOf("<")!=-1){return this._setErr(XMLP.ERR_ELM_LT_NAME)}this.m_name=a;this.m_iP=g+1;return d};XMLP.prototype._parseEntity=function(a){var b=this.m_xml.indexOf(";",a);if(b==-1){return this._setErr(XMLP.ERR_CLOSE_ENTITY)}this.m_iP=b+1;return this._replaceEntity(this.m_xml,a,b)};XMLP.prototype._parsePI=function(b){var e,a,d,f,c;e=this.m_xml.indexOf("?>",b);if(e==-1){return this._setErr(XMLP.ERR_CLOSE_PI)}a=SAXStrings.indexOfNonWhitespace(this.m_xml,b,e);if(a==-1){return this._setErr(XMLP.ERR_PI_TARGET)}d=SAXStrings.indexOfWhitespace(this.m_xml,a,e);if(d==-1){d=e}f=SAXStrings.indexOfNonWhitespace(this.m_xml,d,e);if(f==-1){f=e}c=SAXStrings.lastIndexOfNonWhitespace(this.m_xml,f,e);if(c==-1){c=e-1}this.m_name=this.m_xml.substring(a,d);this._setContent(XMLP._CONT_XML,f,c+1);this.m_iP=e+2;return XMLP._PI};XMLP.prototype._parseText=function(b){var c,a;c=this.m_xml.indexOf("<",b);if(c==-1){c=this.m_xml.length}a=this.m_xml.indexOf("&",b);if((a!=-1)&&(a<=c)){c=a}this._setContent(XMLP._CONT_XML,b,c);this.m_iP=c;return XMLP._TEXT};XMLP.prototype._replaceEntities=function(f,b,d){if(SAXStrings.isEmpty(f)){return""}b=b||0;d=d||f.length;var c,a,e="";c=f.indexOf("&",b);a=b;while((c>0)&&(c<d)){e+=f.substring(a,c);a=f.indexOf(";",c)+1;if((a==0)||(a>d)){return this._setErr(XMLP.ERR_CLOSE_ENTITY)}iRet=this._replaceEntity(f,c+1,a-1);if(iRet==XMLP._ERROR){return iRet}e+=this.m_cAlt;c=f.indexOf("&",a)}if(a!=d){e+=f.substring(a,d)}this._setContent(XMLP._CONT_ALT,e);return XMLP._ENTITY};XMLP.prototype._replaceEntity=function(c,a,b){if(SAXStrings.isEmpty(c)){return -1}a=a||0;b=b||c.length;switch(c.substring(a,b)){case"amp":strEnt="&";break;case"lt":strEnt="<";break;case"gt":strEnt=">";break;case"apos":strEnt="'";break;case"quot":strEnt='"';break;default:if(c.charAt(a)=="#"){strEnt=String.fromCharCode(parseInt(c.substring(a+1,b)))}else{return this._setErr(XMLP.ERR_ENTITY_UNKNOWN)}break}this._setContent(XMLP._CONT_ALT,strEnt);return XMLP._ENTITY};XMLP.prototype._setContent=function(b){var a=arguments;if(XMLP._CONT_XML==b){this.m_cAlt=null;this.m_cB=a[1];this.m_cE=a[2]}else{this.m_cAlt=a[1];this.m_cB=0;this.m_cE=a[1].length}this.m_cSrc=b};XMLP.prototype._setErr=function(b){var a=XMLP._errs[b];this.m_cAlt=a;this.m_cB=0;this.m_cE=a.length;this.m_cSrc=XMLP._CONT_ALT;return XMLP._ERROR};SAXDriver=function(){this.m_hndDoc=null;this.m_hndErr=null;this.m_hndLex=null};SAXDriver.DOC_B=1;SAXDriver.DOC_E=2;SAXDriver.ELM_B=3;SAXDriver.ELM_E=4;SAXDriver.CHARS=5;SAXDriver.PI=6;SAXDriver.CD_B=7;SAXDriver.CD_E=8;SAXDriver.CMNT=9;SAXDriver.DTD_B=10;SAXDriver.DTD_E=11;SAXDriver.prototype.parse=function(b){var a=new XMLP(b);if(this.m_hndDoc&&this.m_hndDoc.setDocumentLocator){this.m_hndDoc.setDocumentLocator(this)}this.m_parser=a;this.m_bErr=false;if(!this.m_bErr){this._fireEvent(SAXDriver.DOC_B)}this._parseLoop();if(!this.m_bErr){this._fireEvent(SAXDriver.DOC_E)}this.m_xml=null;this.m_iP=0};SAXDriver.prototype.setDocumentHandler=function(a){this.m_hndDoc=a};SAXDriver.prototype.setErrorHandler=function(a){this.m_hndErr=a};SAXDriver.prototype.setLexicalHandler=function(a){this.m_hndLex=a};SAXDriver.prototype.getColumnNumber=function(){return this.m_parser.getColumnNumber()};SAXDriver.prototype.getLineNumber=function(){return this.m_parser.getLineNumber()};SAXDriver.prototype.getMessage=function(){return this.m_strErrMsg};SAXDriver.prototype.getPublicId=function(){return null};SAXDriver.prototype.getSystemId=function(){return null};SAXDriver.prototype.getLength=function(){return this.m_parser.getAttributeCount()};SAXDriver.prototype.getName=function(a){return this.m_parser.getAttributeName(a)};SAXDriver.prototype.getValue=function(a){return this.m_parser.getAttributeValue(a)};SAXDriver.prototype.getValueByName=function(a){return this.m_parser.getAttributeValueByName(a)};SAXDriver.prototype._fireError=function(a){this.m_strErrMsg=a;this.m_bErr=true;if(this.m_hndErr&&this.m_hndErr.fatalError){this.m_hndErr.fatalError(this)}};SAXDriver.prototype._fireEvent=function(c){var b,e,d=arguments,a=d.length-1;if(this.m_bErr){return}if(SAXDriver.DOC_B==c){e="startDocument";b=this.m_hndDoc}else{if(SAXDriver.DOC_E==c){e="endDocument";b=this.m_hndDoc}else{if(SAXDriver.ELM_B==c){e="startElement";b=this.m_hndDoc}else{if(SAXDriver.ELM_E==c){e="endElement";b=this.m_hndDoc}else{if(SAXDriver.CHARS==c){e="characters";b=this.m_hndDoc}else{if(SAXDriver.PI==c){e="processingInstruction";b=this.m_hndDoc}else{if(SAXDriver.CD_B==c){e="startCDATA";b=this.m_hndLex}else{if(SAXDriver.CD_E==c){e="endCDATA";b=this.m_hndLex}else{if(SAXDriver.CMNT==c){e="comment";b=this.m_hndLex}}}}}}}}}if(b&&b[e]){if(0==a){b[e]()}else{if(1==a){b[e](d[1])}else{if(2==a){b[e](d[1],d[2])}else{if(3==a){b[e](d[1],d[2],d[3])}}}}}};SAXDriver.prototype._parseLoop=function(b){var a,b;b=this.m_parser;while(!this.m_bErr){a=b.next();if(a==XMLP._ELM_B){this._fireEvent(SAXDriver.ELM_B,b.getName(),this)}else{if(a==XMLP._ELM_E){this._fireEvent(SAXDriver.ELM_E,b.getName())}else{if(a==XMLP._ELM_EMP){this._fireEvent(SAXDriver.ELM_B,b.getName(),this);this._fireEvent(SAXDriver.ELM_E,b.getName())}else{if(a==XMLP._TEXT){this._fireEvent(SAXDriver.CHARS,b.getContent(),b.getContentBegin(),b.getContentEnd()-b.getContentBegin())}else{if(a==XMLP._ENTITY){this._fireEvent(SAXDriver.CHARS,b.getContent(),b.getContentBegin(),b.getContentEnd()-b.getContentBegin())}else{if(a==XMLP._PI){this._fireEvent(SAXDriver.PI,b.getName(),b.getContent().substring(b.getContentBegin(),b.getContentEnd()))}else{if(a==XMLP._CDATA){this._fireEvent(SAXDriver.CD_B);this._fireEvent(SAXDriver.CHARS,b.getContent(),b.getContentBegin(),b.getContentEnd()-b.getContentBegin());this._fireEvent(SAXDriver.CD_E)}else{if(a==XMLP._COMMENT){this._fireEvent(SAXDriver.CMNT,b.getContent(),b.getContentBegin(),b.getContentEnd()-b.getContentBegin())}else{if(a==XMLP._DTD){}else{if(a==XMLP._ERROR){this._fireError(b.getContent())}else{if(a==XMLP._NONE){return}}}}}}}}}}}}};SAXStrings=function(){};SAXStrings.WHITESPACE=" \t\n\r";SAXStrings.QUOTES="\"'";SAXStrings.getColumnNumber=function(e,d){if(SAXStrings.isEmpty(e)){return -1}d=d||e.length;var b=e.substring(0,d).split("\n");var a=b[b.length-1];b.length--;var c=b.join("\n").length;return d-c};SAXStrings.getLineNumber=function(b,a){if(SAXStrings.isEmpty(b)){return -1}a=a||b.length;return b.substring(0,a).split("\n").length};SAXStrings.indexOfNonWhitespace=function(d,a,c){if(SAXStrings.isEmpty(d)){return -1}a=a||0;c=c||d.length;for(var b=a;b<c;b++){if(SAXStrings.WHITESPACE.indexOf(d.charAt(b))==-1){return b}}return -1};SAXStrings.indexOfWhitespace=function(d,a,c){if(SAXStrings.isEmpty(d)){return -1}a=a||0;c=c||d.length;for(var b=a;b<c;b++){if(SAXStrings.WHITESPACE.indexOf(d.charAt(b))!=-1){return b}}return -1};SAXStrings.isEmpty=function(a){return(a==null)||(a.length==0)};SAXStrings.lastIndexOfNonWhitespace=function(d,a,c){if(SAXStrings.isEmpty(d)){return -1}a=a||0;c=c||d.length;for(var b=c-1;b>=a;b--){if(SAXStrings.WHITESPACE.indexOf(d.charAt(b))==-1){return b}}return -1};SAXStrings.replace=function(e,a,d,c,b){if(SAXStrings.isEmpty(e)){return""}a=a||0;d=d||e.length;return e.substring(a,d).split(c).join(b)};Stack=function(){this.m_arr=new Array()};Stack.prototype.clear=function(){this.m_arr=new Array()};Stack.prototype.count=function(){return this.m_arr.length};Stack.prototype.destroy=function(){this.m_arr=null};Stack.prototype.peek=function(){if(this.m_arr.length==0){return null}return this.m_arr[this.m_arr.length-1]};Stack.prototype.pop=function(){if(this.m_arr.length==0){return null}var a=this.m_arr[this.m_arr.length-1];this.m_arr.length--;return a};Stack.prototype.push=function(a){this.m_arr[this.m_arr.length]=a};function isEmpty(a){return(a==null)||(a.length==0)}function trim(a,b,f){if(isEmpty(a)){return""}if(b==null){b=true}if(f==null){f=true}var g=0;var e=0;var d=0;var c=0;if(b==true){while((d<a.length)&&(whitespace.indexOf(a.charAt(d++))!=-1)){g++}}if(f==true){c=a.length-1;while((c>=g)&&(whitespace.indexOf(a.charAt(c--))!=-1)){e++}}return a.substring(g,a.length-e)}function __escapeString(e){var f=/&/g;var c=/</g;var a=/>/g;var b=/"/g;var d=/'/g;e=e.replace(f,"&amp;");e=e.replace(c,"&lt;");e=e.replace(a,"&gt;");e=e.replace(b,"&quot;");e=e.replace(d,"&apos;");return e}function __unescapeString(e){var f=/&amp;/g;var c=/&lt;/g;var a=/&gt;/g;var b=/&quot;/g;var d=/&apos;/g;e=e.replace(f,"&");e=e.replace(c,"<");e=e.replace(a,">");e=e.replace(b,'"');e=e.replace(d,"'");return e};var keyStr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function encode64(c){if(c.length==0){return c}var a="";var k,h,f;var j,g,e,d;var b=0;do{k=c.charCodeAt(b++);h=c.charCodeAt(b++);f=c.charCodeAt(b++);j=k>>2;g=((k&3)<<4)|(h>>4);e=((h&15)<<2)|(f>>6);d=f&63;if(isNaN(h)){e=d=64}else{if(isNaN(f)){d=64}}a=a+keyStr.charAt(j)+keyStr.charAt(g)+keyStr.charAt(e)+keyStr.charAt(d)}while(b<c.length);return a}function decode64(c){if(c.length==0){return c}var a="";var k,h,f;var j,g,e,d;var b=0;c=c.replace(/[^A-Za-z0-9\+\/\=]/g,"");do{j=keyStr.indexOf(c.charAt(b++));g=keyStr.indexOf(c.charAt(b++));e=keyStr.indexOf(c.charAt(b++));d=keyStr.indexOf(c.charAt(b++));k=(j<<2)|(g>>4);h=((g&15)<<4)|(e>>2);f=((e&3)<<6)|d;a=a+String.fromCharCode(k);if(e!=64){a=a+String.fromCharCode(h)}if(d!=64){a=a+String.fromCharCode(f)}}while(b<c.length);return a};var NC={Version:"0.9.0",core:{},env:{},util:{},widget:{},promo:{},offer:{},game:{}};NC.lang={_IEEnumFix:function(c,b){if(NC.env.ua.ie){var e=["toString","valueOf"],a;for(a=0;a<e.length;a=a+1){var g=e[a],d=b[g];if(NC.lang.isFunction(d)&&d!=Object.prototype[g]){c[g]=d}}}},extend:function(d,e,c){if(!e||!d){throw new Error("NC.lang.extend failed, please check that all dependencies are included.")}var b=function(){};b.prototype=e.prototype;d.prototype=new b();d.prototype.constructor=d;d.superclass=e.prototype;if(e.prototype.constructor==Object.prototype.constructor){e.prototype.constructor=e}if(c){for(var a in c){d.prototype[a]=c[a]}}},augmentObject:function(f,e){if(!e||!f){throw new Error("Absorb failed, verify dependencies.")}var b=arguments,d,g,c=b[2];if(c&&c!==true){for(d=2;d<b.length;d=d+1){f[b[d]]=e[b[d]]}}else{for(g in e){if(c||!f[g]){f[g]=e[g]}}NC.lang._IEEnumFix(f,e)}},augmentProto:function(e,d){if(!d||!e){throw new Error("Augment failed, verify dependencies.")}var b=[e.prototype,d.prototype];for(var c=2;c<arguments.length;c=c+1){b.push(arguments[c])}NC.lang.augmentObject.apply(this,b)},isArray:function(b){if(b){var a=NC.lang;return a.isNumber(b.length)&&a.isFunction(b.splice)}return false},isBoolean:function(a){return typeof a==="boolean"},isFunction:function(a){return typeof a==="function"},isNull:function(a){return a===null},isNumber:function(a){return typeof a==="number"&&isFinite(a)},isObject:function(a){return(a&&(typeof a==="object"||NC.lang.isFunction(a)))||false},isString:function(a){return typeof a==="string"},isUndefined:function(a){return typeof a==="undefined"},hasOwnProperty:function(a,b){if(Object.prototype.hasOwnProperty){return a.hasOwnProperty(b)}return !NC.lang.isUndefined(a[b])&&a.constructor.prototype[b]!==a[b]},trim:function(a){try{return a.replace(/^\s+|\s+$/g,"")}catch(b){return a}}};NC.lang.augment=NC.lang.augmentProto;NC.augment=NC.lang.augmentProto;NC.extend=NC.lang.extend;NC.env.ua=function(){var c={ie:0,opera:0,gecko:0,webkit:0,mobile:null};var b=navigator.userAgent,a;if((/KHTML/).test(b)){c.webkit=1}a=b.match(/AppleWebKit\/([^\s]*)/);if(a&&a[1]){c.webkit=parseFloat(a[1]);if(/ Mobile\//.test(b)){c.mobile="Apple"}else{a=b.match(/NokiaN[^\/]*/);if(a){c.mobile=a[0]}}}if(!c.webkit){a=b.match(/Opera[\s\/]([^\s]*)/);if(a&&a[1]){c.opera=parseFloat(a[1]);a=b.match(/Opera Mini[^;]*/);if(a){c.mobile=a[0]}}else{a=b.match(/MSIE\s([^;]*)/);if(a&&a[1]){c.ie=parseFloat(a[1])}else{a=b.match(/Gecko\/([^\s]*)/);if(a){c.gecko=1;a=b.match(/rv:([^\s\)]*)/);if(a&&a[1]){c.gecko=parseFloat(a[1])}}}}}return c}();NC.util.Debug={ConsoleDivId:"NCDebugConsole",writeToConsole:function(b){var a=document.getElementById(this.ConsoleDivId);if(a!=null){a.innerHTML+="<br>"+b}else{}}};NC.util.lang={copy:function(b){function a(){}a.prototype=b;return new a()}};NC.util.StringUtil={capitalizeWord:function(a){firstChar=a.substring(0,1).toUpperCase();lastChars=a.substring(1,a.length).toLowerCase();return firstChar+lastChars},convertSpecialCharacters:function(d){var e=/&amp;/g;var b=/&lt;/g;var a=/&gt;/g;var c=/&quot;/g;d=d.replace(e,"&");d=d.replace(b,"<");d=d.replace(a,">");d=d.replace(c,'"');return d}};NC.util.UrlUtil={getParameterString:function(b){var a=b.split("?");if(a!=null&&a.length==2){return a[1]}else{return null}},getParameters:function(b){var d=this.getParameterString(b);if(d!=null){var e=d.split("&");if(e.length>0){var a=new Array();for(var c=0;c<e.length;c++){a[c]=e[c].split("=")}return a}else{return null}}else{return null}},parameterExists:function(a,c){var d=this.getParameters(a);if(d!=null){for(var b=0;b<d.length;b++){if(d[b][0]==c){return d[b]}}return null}else{return null}}};NC.messages={MsgCallSupport:"&nbsp; Questions? Email customersupport@nimblecat.com.",clearError:function(){var a=document.getElementById("NCError");a.style.display="none";a.innerHTML=""},showError:function(a){var b=document.getElementById("NCError");b.style.display="block";a+=NC.messages.MsgCallSupport;b.innerHTML=a}};NC.util.Status={messageTimer:-1,showProgress:function(c,b){var a=document.getElementById(c);if(a!=null){var d='<img src="../imagesv2/circle-ball-dark-antialiased.gif" border="0"> ';if(b!=null&&b.length>0){d+=" "+b}a.innerHTML=d}},hideProgress:function(b){var a=document.getElementById(b);if(a!=null){a.innerHTML=""}},showThrongMessage:function(b,g){var h=300;var c="ThrongProgressDiv";var a=document.getElementById(c);if(a!=null){var e='<div class="imgdiv"><img src="../imagesv2/alert_100x100.png" border="0"></div>';if(b!=null&&b.length>0){e+=b}a.innerHTML=e}var f=document.getElementById(g);var d=null;if(f!=null){d=NC.util.Region.getRegion(f)}else{d={};d.right=NC.util.Dom.getViewportWidth();d.bottom=NC.util.Dom.getViewportHeight();d.left=d.top=0}a.style.left=d.left+((d.right-d.left)-h)/2+"px";a.style.top=d.top+(550-300)/2+"px";a.style.opacity=1;a.style.display="block";setTimeout(function(){NC.util.Status.messageTimer=-1;NC.util.Status.hideThrongProgress()},3000)},statusHideAnimation:null,showThrongProgressAutoHide:function(a,b){if(this.statusHideAnimation!=null){statusHideAnimation.stop()}this.showThrongProgress(a,b);setTimeout(function(){NC.util.Status.messageTimer=-1;NC.util.Status.hideThrongProgress()},3000)},showThrongProgress:function(b,g){var h=300;var c="ThrongProgressDiv";var a=document.getElementById(c);if(a!=null){var e='<div class="imgdiv"><img src="../imagesv2/100x100_spinner_2.gif" border="0"></div>';if(b!=null&&b.length>0){e+="<p>"+b+"</p>"}a.innerHTML=e}var f=document.getElementById(g);var d=null;if(f!=null){d=NC.util.Region.getRegion(f)}else{d={};d.right=NC.util.Dom.getViewportWidth();d.bottom=NC.util.Dom.getViewportHeight();d.left=d.top=0}a.style.left=d.left+((d.right-d.left)-h)/2+"px";a.style.top=d.top+(550-300)/2+"px";a.style.opacity=1;a.style.display="block"},hideThrongProgress:function(){var b="ThrongProgressDiv";var a=document.getElementById(b);if(a!=null){if(NC.env.ua.ie){a.style.display="none";a.innerHTML=""}else{var c={opacity:{to:0},};statusHideAnimation=new NC.util.Anim(b,c,2);statusHideAnimation.duration=2;statusHideAnimation.onComplete.subscribe(function(){a.innerHTML="";a.style.display="none";a.style.opacity=1;statusHideAnimation=null});statusHideAnimation.animate()}}},stopThrongMessageHideAnimation:function(){if(this.statusHideAnimation!=null){statusHideAnimation.stop()}},hideThrongMessageImmediate:function(){if(this.statusHideAnimation!=null){statusHideAnimation.stop()}if(NC.util.Status.messageTimer!=-1){clearTimeout(NC.util.Status.messageTimer);var b="ThrongProgressDiv";var a=document.getElementById(b);if(a!=null){a.style.display="none";a.innerHTML=""}}}};if(typeof NC.util=="undefined"){alert("dom.js requires the NC JavaScript framework")}(function(){var h,f,g={},d={},k=window.document;var b=NC.env.ua.opera,i=NC.env.ua.webkit,a=NC.env.ua.gecko,e=NC.env.ua.ie;var c={HYPHEN:/(-[a-z])/i,ROOT_TAG:/^body|html$/i};var m=function(o){var n=d[o];if(!n){n=new RegExp("(?:^|\\s+)"+o+"(?:\\s+|$)");d[o]=n}return n};var l=function(n){if(!c.HYPHEN.test(n)){return n}if(g[n]){return g[n]}var o=n;while(c.HYPHEN.exec(o)){o=o.replace(RegExp.$1,RegExp.$1.substr(1).toUpperCase())}g[n]=o;return o};if(k.defaultView&&k.defaultView.getComputedStyle){h=function(n,q){var p=null;if(q=="float"){q="cssFloat"}var o=k.defaultView.getComputedStyle(n,"");if(o){p=o[l(q)]}return n.style[q]||p}}else{if(k.documentElement.currentStyle&&e){h=function(n,p){switch(l(p)){case"opacity":var r=100;try{r=n.filters["DXImageTransform.Microsoft.Alpha"].opacity}catch(q){try{r=n.filters("alpha").opacity}catch(q){}}return r/100;case"float":p="styleFloat";default:var o=n.currentStyle?n.currentStyle[p]:null;return(n.style[p]||o)}}}else{h=function(n,o){return n.style[o]}}}if(e){f=function(n,o,p){switch(o){case"opacity":if(YAHOO.lang.isString(n.style.filter)){n.style.filter="alpha(opacity="+p*100+")";if(!n.currentStyle||!n.currentStyle.hasLayout){n.style.zoom=1}}break;case"float":o="styleFloat";default:n.style[o]=p}}}else{f=function(n,o,p){if(o=="float"){o="cssFloat"}n.style[o]=p}}NC.util.Dom={setClassName:function(o,n){if(NC.env.FaceBook==1){o.setClassName(n)}else{o.className=n}},getClassName:function(n){if(NC.env.FaceBook==1){return n.getClassName()}else{return n.className}},hasClass:function(p,o){var n=m(o);return n.test(this.getClassName(p))},addClass:function(o,n){if(this.hasClass(o,n)){return false}this.setClassName(o,NC.lang.trim([this.getClassName(o),n].join(" ")));return true},removeClass:function(p,o){var n=m(o);if(!o||!this.hasClass(p,o)){return false}var q=this.getClassName(p);this.setClassName(p,q.replace(n," "));if(this.hasClass(p,o)){this.removeClass(p,o)}this.setClassName(p,NC.lang.trim(this.getClassName(p)));return true},replaceClass:function(q,o,n){if(!n||o===n){return false}var p=m(o);if(!this.hasClass(q,o)){this.addClass(q,n);return true}this.setClassName(q,this.getClassName(q).replace(p," "+n+" "));if(this.hasClass(q,o)){this.replaceClass(q,o,n)}this.setClassName(q,NC.lang.trim(this.getClassName(q)));return true},getStyle:function(n,o){o=l(o);return h(n,o)},setStyle:function(n,o,p){o=l(o);f(n,o,p)},getDocumentScrollLeft:function(n){n=n||k;return Math.max(n.documentElement.scrollLeft,n.body.scrollLeft)},getDocumentScrollTop:function(n){n=n||k;return Math.max(n.documentElement.scrollTop,n.body.scrollTop)},getAbsoluteXY:function(o){var n=function(){if(k.documentElement.getBoundingClientRect){return function(q){var r=q.getBoundingClientRect();var p=q.ownerDocument;return[r.left+NC.util.Dom.getDocumentScrollLeft(p),r.top+NC.util.Dom.getDocumentScrollTop(p)]}}else{return function(r){var s=[r.offsetLeft,r.offsetTop];var q=r.offsetParent;var p=(i&&NC.util.Dom.getStyle(r,"position")=="absolute"&&r.offsetParent==r.ownerDocument.body);if(q!=r){while(q){s[0]+=q.offsetLeft;s[1]+=q.offsetTop;if(!p&&i&&NC.util.Dom.getStyle(q,"position")=="absolute"){p=true}q=q.offsetParent}}if(p){s[0]-=r.ownerDocument.body.offsetLeft;s[1]-=r.ownerDocument.body.offsetTop}q=r.parentNode;while(q.tagName&&!c.ROOT_TAG.test(q.tagName)){if(NC.util.Dom.getStyle(q,"display").search(/^inline|table-row.*$/i)){s[0]-=q.scrollLeft;s[1]-=q.scrollTop}q=q.parentNode}return s}}};return n()(o)},setAbsoluteXY:function(n,q,p){var o=function(t){var s=NC.util.Dom.getStyle(t,"position");if(s=="static"){NC.util.Dom.setStyle(t,"position","relative");s="relative"}var v=NC.util.Dom.getAbsoluteXY(t);if(v===false){return false}var u=[parseInt(NC.util.Dom.getStyle(t,"left"),10),parseInt(NC.util.Dom.getStyle(t,"top"),10)];if(isNaN(u[0])){u[0]=(s=="relative")?0:t.offsetLeft}if(isNaN(u[1])){u[1]=(s=="relative")?0:t.offsetTop}if(q[0]!==null){t.style.left=q[0]-v[0]+u[0]+"px"}if(q[1]!==null){t.style.top=q[1]-v[1]+u[1]+"px"}if(!p){var r=NC.util.Dom.getAbsoluteXY(t);if((q[0]!==null&&r[0]!=q[0])||(q[1]!==null&&r[1]!=q[1])){NC.util.Dom.setAbsoluteXY(t,q,true)}}};o(n)},get:function(p){if(p&&(p.nodeType||p.item)){return p}if(NC.lang.isString(p)||!p){return k.getElementById(p)}if(p.length!==undefined){var q=[];for(var o=0,n=p.length;o<n;++o){q[q.length]=NC.util.Dom.get(p[o])}return q}return p},getElementsByClassName:function(r,v,s,t){v=v||"*";s=(s)?NC.util.Dom.get(s):null||k;if(!s){return[]}var o=[],n=s.getElementsByTagName(v),u=m(r);for(var p=0,q=n.length;p<q;++p){if(u.test(n[p].className)){o[o.length]=n[p];if(t){t.call(n[p],n[p])}}}return o},getParentByType:function(o,p){var n=o;for(;;){if(n==null){return null}n=n.parentNode;if(n==k){return null}if(n.tagName.toLowerCase()===p.toLowerCase()){return n}}},getViewportHeight:function(){var n=self.innerHeight;var o=k.compatMode;if((o||e)&&!b){n=(o=="CSS1Compat")?k.documentElement.clientHeight:k.body.clientHeight}return n},getViewportWidth:function(){var n=self.innerWidth;var o=k.compatMode;if(o||e){n=(o=="CSS1Compat")?k.documentElement.clientWidth:k.body.clientWidth}return n},extractEncodedField:function(o,q){var p="";var n=o.getElementsByTagName(q);if(n!=null&&n.getLength()>0){if(n.item(0).getFirstChild()!=null){p=decode64(n.item(0).getFirstChild().getNodeValue())}}return p},extractField:function(o,q){var p="";var n=o.getElementsByTagName(q);if(n!=null&&n.getLength()>0){if(n.item(0).getFirstChild()!=null){p=n.item(0).getFirstChild().getNodeValue()}}return p},updateField:function(r,s,q){var p=r.getDocumentElement();var n=p.getElementsByTagName(s);if(n!=null&&n.getLength()>0){if(n.item(0).getFirstChild()!=null){n.item(0).getFirstChild().setNodeValue(q)}else{var o=r.createTextNode(q);n.item(0).appendChild(o)}}else{}return q},updateEncodedField:function(p,q,o){var n=encode64(o);return this.updateField(p,q,n)},enumerateElementProperties:function(p){var n="";for(var o in p){n+=o+" = "+p[o]+" ---- "}return n},getFormElement:function(q,n){for(var p=0;p<q.elements.length;p++){var o=q.elements[p];if(o.name==n){return o}}return null},showElementValue:function(q,n){var r=k.forms[q];for(var p=0;p<r.elements.length;p++){var o=r.elements[p];if(o.name==n){alert(q+"."+o.name+"="+o.value)}}},getElementValue:function(q,n){var r=k.forms[q];for(var p=0;p<r.elements.length;p++){var o=r.elements[p];if(o.name==n){switch(o.type){case"select-multiple":value="";for(j=0;j<o.length;j++){if(o.options[j].selected){if(value.length>0){value+=","}value+=o.options[j].value}}return value;default:value=o.value;if(value==0){value=""}return o.value}}}return null},getCheckBoxState:function(q,n){var r=k.forms[q];for(var p=0;p<r.elements.length;p++){var o=r.elements[p];if(o.name==n){if(o.type=="checkbox"){return o.checked}else{return null}}}return null},setElementValue:function(q,n,s){var r=k.forms[q];for(var p=0;p<r.elements.length;p++){var o=r.elements[p];if(o.name==n){o.value=s}}},getValue:function(o){switch(o.type){case"select-one":var n=o.selectedIndex;return n>=0?o.options[n].value:null;case"select-multiple":p="";for(j=0;j<o.length;j++){if(o.options[j].selected){if(p.length>0){p+=","}p+=o.options[j].value}}return p;case"checkbox":case"radio":var p=o.checked?o.value:null;return p;default:var p=o.value;if(p==0){p=""}return p}},serializeForm:function(q){var n="";if(q!=null){for(var p=0;p<q.elements.length;p++){var o=q.elements[p];if(!o.disabled){if(n.length>0&&n.charAt(n.length-1)!="&"){n+="&"}switch(o.type){case"hidden":case"text":case"password":case"textarea":var r=escape(o.value);n+=o.name+"="+r;break;case"checkbox":if(o.checked){n+=o.name+"="+o.value}break;case"radio":if(o.checked){n+=o.name+"="+o.value}break;case"select-one":n+=o.name+"="+o.value;break;case"select-multiple":for(j=0;j<o.length;j++){if(o.options[j].selected){if(n.length>0&&n.charAt(n.length-1)!="&"){n+="&"}n+=o.name+"[]="+o.options[j].value}}break;default:}}}}return n},checkEmail:function(n){var o=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i;return(o.test(n))},descendants:function(n){return n.getElementsByTagName("*")},disable:function(n){n.disabled=true;return n},enable:function(n){n.blur();n.disabled=false;return n},getFormDescendant:function(n,q){var p=k.getElementById(n);var s=NC.util.Dom.descendants(p);for(var o=0;o<s.length;++o){var r=s[o];if(r.name==q){return r}}}}})();NC.util.Region=function(d,e,a,c){this.top=d;this[1]=d;this.right=e;this.bottom=a;this.left=c;this[0]=c};NC.util.Region.prototype.toString=function(){return("Region {top: "+this.top+", right: "+this.right+", bottom: "+this.bottom+", left: "+this.left+"}")};NC.util.Region.getRegion=function(e){var g=NC.util.Dom.getAbsoluteXY(e);var d=g[1];var f=g[0]+e.offsetWidth;var a=g[1]+e.offsetHeight;var c=g[0];return new NC.util.Region(d,f,a,c)};if(typeof NC=="undefined"){alert("element.js requires the NC JavaScript framework")}NC.core.EventType={Abort:"abort",Blur:"blur",Change:"change",Click:"click",Dblclick:"dblclick",Error:"error",Focus:"focus",Keydown:"keydown",Keypress:"keypress",Keyup:"keyup",Load:"load",Mousedown:"mousedown",Mousemove:"mousemove",Mouseout:"mouseout",Mouseover:"mouseover",Mouseup:"mouseup",Reset:"reset",Resize:"resize",Select:"select",Submit:"submit",Unload:"unload"};NC.core.Event={getEventTarget:function(a){var b=a.target?a.target:a.srcElement;if(b&&(b.nodeType==3||b.nodeType==4)){b=b.parentNode}return b}};if(typeof NC=="undefined"){alert("element.js requires the NC JavaScript framework")}NC.widget.Attribute={};NC.widget.Attribute.ActorId="NCactorid";NC.widget.Attribute.OwnerId="NCownerid";NC.widget.Attribute.SelectedOption="NCSelectedOption";NC.widget.Attribute.set=function(b,a,c){b.setAttribute(a,c)};NC.widget.Attribute.get=function(b,a){return b.getAttribute(a)};NC.widget.Element=function(a){this.domId=a};NC.widget.Element.addDocumentDomEvent=function(c,a,b){if(window.addEventListener){document.addEventListener(c,a,(b))}else{if(window.attachEvent){document.attachEvent("on"+c,a)}}};NC.widget.Element.removeDocumentDomEvent=function(c,a,b){if(window.removeEventListener){document.removeEventListener(c,a,(b))}else{if(window.detachEvent){document.detachEvent("on"+c,a)}}};NC.widget.Element.addElementDomEvent=function(d,c,a,b){if(window.addEventListener){d.addEventListener(c,a,(b))}else{if(window.attachEvent){d.attachEvent("on"+c,a)}}};NC.widget.Element.removeElementDomEvent=function(d,c,a,b){if(window.removeEventListener){d.removeEventListener(c,a,(b))}else{if(window.detachEvent){d.detachEvent("on"+c,a)}}};NC.widget.Element.prototype={init:function(){},getId:function(){return this.domId},render:function(){return"Override Element.render"},enable:function(b){if(this.domId!="-1"){var a=document.getElementById(this.domId);b=b?false:true;a.disabled=b}},addDomEvent:function(d,a,b){var c=document.getElementById(this.domId);if(window.addEventListener){c.addEventListener(d,a,(b))}else{if(window.attachEvent){c.attachEvent("on"+d,a)}}},removeDomEvent:function(e,d,a,b){var c=document.getElementById(e);if(window.removeEventListener){c.removeEventListener(d,a,(b))}else{if(window.detachEvent){c.detachEvent("on"+d,a)}}},fireEvent:function(c){var b;var a=document.getElementById(this.domId);if(NC.env.ua.ie){b=a.fireEvent("on"+c)}else{oEvent=document.createEvent("HTMLEvents");oEvent.initEvent(c,true,true);bSubmitForm=a.dispatchEvent(oEvent)}},onSelect:function(a){alert("Element.onSelect called. Override this")}};NC.lang.JSON={_ESCAPES:/\\./g,_VALUES:/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,_BRACKETS:/(?:^|:|,)(?:\s*\[)+/g,_INVALID:/^[\],:{}\s]*$/,_SPECIAL_CHARS:/["\\\x00-\x1f]/g,_PARSE_DATE:/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})Z$/,_CHARS:{"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},_applyFilter:function(c,b){var a=function(e,d){var f,g;if(d&&typeof d==="object"){for(f in d){if(NC.lang.hasOwnProperty(d,f)){g=a(f,d[f]);if(g===undefined){delete d[f]}else{d[f]=g}}}}return b(e,d)};if(NC.lang.isFunction(b)){a("",c)}return c},isValid:function(a){if(!NC.lang.isString(a)){return false}return this._INVALID.test(a.replace(this._ESCAPES,"@").replace(this._VALUES,"]").replace(this._BRACKETS,""))},dateToString:function(b){function a(c){return c<10?"0"+c:c}return'"'+b.getUTCFullYear()+"-"+a(b.getUTCMonth()+1)+"-"+a(b.getUTCDate())+"T"+a(b.getUTCHours())+":"+a(b.getUTCMinutes())+":"+a(b.getUTCSeconds())+'Z"'},stringToDate:function(b){if(this._PARSE_DATE.test(b)){var a=new Date();a.setUTCFullYear(RegExp.$1,(RegExp.$2|0)-1,RegExp.$3);a.setUTCHours(RegExp.$4,RegExp.$5,RegExp.$6);return a}},parse:function(s,filter){if(this.isValid(s)){return this._applyFilter(eval("("+s+")"),filter)}throw new SyntaxError("parseJSON")},stringify:function(c,k,g){var f=NC.lang,i=f.JSON,e=i._CHARS,a=this._SPECIAL_CHARS,b=[];var j=function(l){if(!e[l]){var d=l.charCodeAt();e[l]="\\u00"+Math.floor(d/16).toString(16)+(d%16).toString(16)}return e[l]};var p=function(d){return'"'+d.replace(a,j)+'"'};var n=this.dateToString;var h=function(l,y,u){var B=typeof l,r,s,q,m,z,A,x;if(B==="string"){return p(l)}if(B==="boolean"||l instanceof Boolean){return String(l)}if(B==="number"||l instanceof Number){return isFinite(l)?String(l):"null"}if(l instanceof Date){return n(l)}if(f.isArray(l)){for(r=b.length-1;r>=0;--r){if(b[r]===l){return"null"}}b[b.length]=l;x=[];if(u>0){for(r=l.length-1;r>=0;--r){x[r]=h(l[r],y,u-1)}}b.pop();return"["+x.join(",")+"]"}if(B==="object"&&l){for(r=b.length-1;r>=0;--r){if(b[r]===l){return"null"}}b[b.length]=l;x=[];if(u>0){if(y){for(r=0,q=0,s=y.length;r<s;++r){z=l[y[r]];A=typeof z;if(A!=="undefined"&&A!=="function"){x[q++]=p(y[r])+":"+h(z,y,u-1)}}}else{q=0;for(m in l){if(typeof m==="string"&&f.hasOwnProperty(l,m)){z=l[m];A=typeof z;if(A!=="undefined"&&A!=="function"){x[q++]=p(m)+":"+h(z,y,u-1)}}}}}b.pop();return"{"+x.join(",")+"}"}return"null"};g=g>=0?g:1/0;return h(c,k,g)}};NC.util.Cookie={_createCookieString:function(b,d,c,a){var f=NC.lang,e=encodeURIComponent(b)+"="+(c?encodeURIComponent(d):d);if(f.isObject(a)){if(a.expires instanceof Date){e+="; expires="+a.expires.toUTCString()}if(f.isString(a.path)&&a.path!==""){e+="; path="+a.path}if(f.isString(a.domain)&&a.domain!==""){e+="; domain="+a.domain}if(a.secure===true){e+="; secure"}}return e},_createCookieHashString:function(b){var d=NC.lang;if(!d.isObject(b)){throw new TypeError("Cookie._createCookieHashString(): Argument must be an object.")}var c=[];for(var a in b){if(d.hasOwnProperty(b,a)&&!d.isFunction(b[a])&&!d.isUndefined(b[a])){c.push(encodeURIComponent(a)+"="+encodeURIComponent(String(b[a])))}}return c.join("&")},_parseCookieHash:function(e){var d=e.split("&"),f=null,c={};if(e.length>0){for(var b=0,a=d.length;b<a;b++){f=d[b].split("=");c[decodeURIComponent(f[0])]=decodeURIComponent(f[1])}}return c},_parseCookieString:function(k,a){var l={};if(NC.lang.isString(k)&&k.length>0){var b=(a===false?function(i){return i}:decodeURIComponent);var h=k.split(/;\s/g),j=null,c=null,e=null;for(var d=0,f=h.length;d<f;d++){e=h[d].match(/([^=]+)=/i);if(e instanceof Array){try{j=decodeURIComponent(e[1]);c=b(h[d].substring(e[1].length+1))}catch(g){}}else{j=decodeURIComponent(h[d]);c=""}l[j]=c}}return l},exists:function(a){if(!NC.lang.isString(a)||a===""){throw new TypeError("Cookie.exists(): Cookie name must be a non-empty string.")}var b=this._parseCookieString(document.cookie,true);return b.hasOwnProperty(a)},get:function(b,a){var e=NC.lang,c;if(e.isFunction(a)){c=a;a={}}else{if(e.isObject(a)){c=a.converter}else{a={}}}var d=this._parseCookieString(document.cookie,!a.raw);if(!e.isString(b)||b===""){throw new TypeError("Cookie.get(): Cookie name must be a non-empty string.")}if(e.isUndefined(d[b])){return null}if(!e.isFunction(c)){return d[b]}else{return c(d[b])}},getSub:function(a,c,b){var e=NC.lang,d=this.getSubs(a);if(d!==null){if(!e.isString(c)||c===""){throw new TypeError("Cookie.getSub(): Subcookie name must be a non-empty string.")}if(e.isUndefined(d[c])){return null}if(!e.isFunction(b)){return d[c]}else{return b(d[c])}}else{return null}},getSubs:function(b){var a=NC.lang.isString;if(!a(b)||b===""){throw new TypeError("Cookie.getSubs(): Cookie name must be a non-empty string.")}var c=this._parseCookieString(document.cookie,false);if(a(c[b])){return this._parseCookieHash(c[b])}return null},remove:function(b,a){if(!NC.lang.isString(b)||b===""){throw new TypeError("Cookie.remove(): Cookie name must be a non-empty string.")}a=NC.lang.merge(a||{},{expires:new Date(0)});return this.set(b,"",a)},removeSub:function(b,e,a){var f=NC.lang;a=a||{};if(!f.isString(b)||b===""){throw new TypeError("Cookie.removeSub(): Cookie name must be a non-empty string.")}if(!f.isString(e)||e===""){throw new TypeError("Cookie.removeSub(): Subcookie name must be a non-empty string.")}var d=this.getSubs(b);if(f.isObject(d)&&f.hasOwnProperty(d,e)){delete d[e];if(!a.removeIfEmpty){return this.setSubs(b,d,a)}else{for(var c in d){if(f.hasOwnProperty(d,c)&&!f.isFunction(d[c])&&!f.isUndefined(d[c])){return this.setSubs(b,d,a)}}return this.remove(b,a)}}else{return""}},set:function(b,c,a){var e=NC.lang;a=a||{};if(!e.isString(b)){throw new TypeError("Cookie.set(): Cookie name must be a string.")}if(e.isUndefined(c)){throw new TypeError("Cookie.set(): Value cannot be undefined.")}var d=this._createCookieString(b,c,!a.raw,a);document.cookie=d;return d},setSub:function(b,d,c,a){var f=NC.lang;if(!f.isString(b)||b===""){throw new TypeError("Cookie.setSub(): Cookie name must be a non-empty string.")}if(!f.isString(d)||d===""){throw new TypeError("Cookie.setSub(): Subcookie name must be a non-empty string.")}if(f.isUndefined(c)){throw new TypeError("Cookie.setSub(): Subcookie value cannot be undefined.")}var e=this.getSubs(b);if(!f.isObject(e)){e={}}e[d]=c;return this.setSubs(b,e,a)},setSubs:function(b,c,a){var e=NC.lang;if(!e.isString(b)){throw new TypeError("Cookie.setSubs(): Cookie name must be a string.")}if(!e.isObject(c)){throw new TypeError("Cookie.setSubs(): Cookie value must be an object.")}var d=this._createCookieString(b,this._createCookieHashString(c),false,a);document.cookie=d;return d}};(function(){NC.widget.ElementManager=function(){var a={};return{register:function(c,b){a[c]=b},unregister:function(b){delete a[b]},lookup:function(b){return a[b]},test1:function(){alert("ElementManager.test1")},test2:function(){alert("ElementManager.test2")}}}()})();if(typeof NC=="undefined"){alert("button.js requires the NC JavaScript framework")}if(typeof NC.widget=="undefined"){alert("button.js requires the NC JavaScript framework")}NC.widget.Button=function(b){var a=NC.widget.Button.superclass.constructor;a.call(this,b)};NC.lang.extend(NC.widget.Button,NC.widget.Element,{_mouseOver:function(a){var b=NC.core.Event.getEventTarget(a);NC.util.Dom.replaceClass(b,b.className,b.className+"-focus")},_mouseOut:function(c){var d=NC.core.Event.getEventTarget(c);var b=d.className.indexOf("-focus");if(b!=-1){var a=d.className.substring(0,b);NC.util.Dom.replaceClass(d,d.className,a)}},init:function(){NC.widget.Button.superclass.init.call(this);this.addDomEvent(NC.core.EventType.Mouseover,this._mouseOver,false);this.addDomEvent(NC.core.EventType.Mouseout,this._mouseOut,false);return"init button function"},render:function(){return"render"}});if(typeof NC=="undefined"){alert("popup.js requires the NC JavaScript framework")}if(typeof NC.widget=="undefined"){alert("popup.js requires the NC JavaScript framework")}NC.widget.Popup=function(b){var a=NC.widget.Popup.superclass.constructor;a.call(this,-1);this.target=b};NC.widget.Popup.makeShimId=function(a){return a+"-iShim"};NC.widget.Popup.documentMouseOut=function(b){var f=NC.core.Event.getEventTarget(b);var e=NC.util.Event.getPageX(b);var d=NC.util.Event.getPageY(b);var a=NC.widget.PopupManager.getPopup();if(a!=null){var f=a.target;var c=document.getElementById(f);var g=NC.util.Region.getRegion(c);var h=2;var i=11;g.left-=h;g.top-=i;g.bottom+=h;g.right+=h;if(e>=g.left&&e<g.right&&d>=g.top&&d<g.bottom){}else{NC.widget.Element.removeDocumentDomEvent(NC.core.EventType.Mouseout,NC.widget.Popup.documentMouseOut,false);NC.widget.Popup.close(f)}}};NC.widget.Popup.close=function(f){var e=document.getElementById(f);var a=e.panel;a.onHide(f);e.innerHTML="";e.style.display="none";var e=document.getElementById(f);var c=NC.widget.Popup.makeShimId(f);var d=document.getElementById(c);var b=new NC.widget.IFrameShim(c,e);b.setShimIframe(d);b.hideIframe();e.panel=null;NC.widget.PopupManager.setPopup(null)};NC.lang.extend(NC.widget.Popup,NC.widget.Element,{show:function(c,a,f,h,i){NC.widget.PopupManager.setPopup(this);responseText="No response";var e=document.getElementById(this.target);e.panel=this;var b;var j=document.getElementById(NC.widget.Popup.OverlayDivName);var g=NC.widget.Popup.makeShimId(this.target);var d=document.getElementById(g);b=new NC.widget.IFrameShim(g,e);if(d==null){b.createIframe()}else{b.setShimIframe(d)}e.style.left=c+"px";e.style.top=a+"px";if(f>0){e.style.width=f+"px"}if(h>0){e.style.height=h+"px"}e.style.display="block";NC.widget.Element.addDocumentDomEvent(NC.core.EventType.Mouseout,NC.widget.Popup.documentMouseOut,false);if(i!=null){i(e)}setTimeout(function(){if(b!=null){b.config()}},1000);this.onShow(this.target)},hide:function(){NC.widget.Popup.close(this.target)},onShow:function(){},onHide:function(){},setShowFn:function(a){this.onShow=a},setHideFn:function(a){this.onHide=a},post:function(){alert("Override this post function with your own")}});(function(){NC.widget.PopupManager=function(){var a=null;return{setPopup:function(b){a=b},getPopup:function(){return a}}}()})();if(typeof NC=="undefined"){alert("panel.js requires the NC JavaScript framework")}if(typeof NC.widget=="undefined"){alert("panel.js requires the NC JavaScript framework")}NC.widget.Panel=function(b){var a=NC.widget.Panel.superclass.constructor;a.call(this,b)};NC.lang.extend(NC.widget.Panel,NC.widget.Element,{init:function(){NC.widget.Panel.superclass.init.call(this);return"init panel function"},render:function(){return"render"}});if(typeof NC=="undefined"){alert("menu.js requires the NC JavaScript framework")}(function(){NC.widget.MenuManager=function(){var c={};var b=null;function e(){for(var f in c){a(f)}}function a(k){var f=new NC.widget.Menu(k);f.init();f.removeMenuEvents(k);f.removeMenuHighLight(k);var j=document.getElementById(k);var h=d(k);var i=document.getElementById(h);var g=new NC.widget.IFrameShim(h,j);g.setShimIframe(i);g.hideIframe();NC.util.Dom.setStyle(j,"visibility","hidden");delete c[k]}function d(f){return f+"-iShim"}return{SHOW_TIMER_DELAY_MILLISECONDS:100,clearShowMenuTimer:function(){if(b){window.clearTimeout(b);b=null}},_showMenu:function(j,l,o){this.clearShowMenuTimer();e();var i=document.getElementById(j);var n=new NC.widget.Menu(j);n.init();n.addMenuEvents(j);n.setOwner(o);var k=d(j);var h=document.getElementById(k);var g=new NC.widget.IFrameShim(k,i);if(h==null){g.createIframe()}else{g.setShimIframe(h)}var f=NC.util.Region.getRegion(i);var m=(l[0]+f.right-f.left)-NC.util.Dom.getViewportWidth();if(m>0){l[0]-=m+3}NC.util.Dom.setAbsoluteXY(i,l,true);g.config();NC.util.Dom.setStyle(i,"visibility","visible");c[j]=n;if(typeof NC.widget.QueryManager!="undefined"){NC.widget.QueryManager.hidePromoAnimation()}},showMenu:function(i,g,f){function h(){NC.widget.MenuManager._showMenu(i,g,f)}if(!b){b=window.setTimeout(h,this.SHOW_TIMER_DELAY_MILLISECONDS)}},hideMenu:function(f){a(f)},hideAllMenus:function(){e()},isMenuVisible:function(f){if(typeof c[f]=="undefined"){return false}else{return true}},getMenu:function(f){return c[f]}}}()})();if(typeof NC=="undefined"){alert("menu.js requires the NC JavaScript framework")}if(typeof NC.widget.Panel=="undefined"){alert("menu.js requires the NC JavaScript framework")}NC.widget.Menu=function(b){var a=NC.widget.Menu.superclass.constructor;a.call(this,b)};NC.widget.Menu.setMenuOwner=function(d){var c=document.getElementById(d);var a=c.getElementsByTagName("li");for(var b=0;b<a.length;b++){}};NC.widget.Menu.documentMouseUp=function(a){var b=NC.core.Event.getEventTarget(a);NC.widget.Element.removeDocumentDomEvent(NC.core.EventType.Mouseup,NC.widget.Menu.documentMouseUp,false);NC.widget.MenuManager.hideAllMenus(b.id)};NC.widget.Menu.menuElementMouseOver=function(a){var b=NC.core.Event.getEventTarget(a);NC.util.Dom.addClass(b,"ncmenuitem-highlight")};NC.widget.Menu.menuElementMouseOut=function(a){var b=NC.core.Event.getEventTarget(a);NC.util.Dom.removeClass(b,"ncmenuitem-highlight")};NC.widget.Menu.menuElementMouseUp=function(b){var d=NC.core.Event.getEventTarget(b);var a=NC.widget.Attribute.get(d,NC.widget.Attribute.OwnerId);if(a!=null){var c=NC.widget.ElementManager.lookup(a);c.onMenuItemSelected(b,d,d.innerHTML,d.id)}};NC.lang.extend(NC.widget.Menu,NC.widget.Panel,{init:function(){NC.widget.Menu.superclass.init.call(this);return"init menu function"},addMenuEvents:function(d){var c=document.getElementById(d);var a=c.getElementsByTagName("li");for(var b=0;b<a.length;b++){NC.widget.Element.addElementDomEvent(a[b],NC.core.EventType.Mouseover,NC.widget.Menu.menuElementMouseOver,false);NC.widget.Element.addElementDomEvent(a[b],NC.core.EventType.Mouseout,NC.widget.Menu.menuElementMouseOut,false);NC.widget.Element.addElementDomEvent(a[b],NC.core.EventType.Mouseup,NC.widget.Menu.menuElementMouseUp,false)}NC.widget.Element.addDocumentDomEvent(NC.core.EventType.Mouseup,NC.widget.Menu.documentMouseUp,false)},removeMenuEvents:function(d){var c=document.getElementById(d);var a=c.getElementsByTagName("li");for(var b=0;b<a.length;b++){NC.widget.Element.removeElementDomEvent(a[b],NC.core.EventType.Mouseover,NC.widget.Menu.menuElementMouseOver,false);NC.widget.Element.removeElementDomEvent(a[b],NC.core.EventType.Mouseout,NC.widget.Menu.menuElementMouseOut,false);NC.widget.Element.removeElementDomEvent(a[b],NC.core.EventType.Mouseup,NC.widget.Menu.menuElementMouseUp,false)}},removeMenuHighLight:function(d){var c=document.getElementById(d);var a=c.getElementsByTagName("li");for(var b=0;b<a.length;b++){NC.util.Dom.removeClass(a[b],"ncmenuitem-highlight")}},setOwner:function(b){var d=document.getElementById(this.getId());d.setAttribute(NC.widget.Attribute.OwnerId,b);var a=d.getElementsByTagName("li");for(var c=0;c<a.length;c++){a[c].setAttribute(NC.widget.Attribute.OwnerId,b)}},getOwner:function(){var a=document.getElementById(this.getId());return a.getAttribute(NC.widget.Attribute.OwnerId)},render:function(){return"render"}});if(typeof NC=="undefined"){alert("menubutton.js requires the NC JavaScript framework")}if(typeof NC.widget.Button=="undefined"){alert("menubutton.js requires button.js")}if(typeof NC.widget.Menu=="undefined"){alert("menubutton.js requires menu.js")}NC.widget.MenuButton=function(a,d){var b=NC.widget.MenuButton.superclass.constructor;b.call(this,a);var c=document.getElementById(a);c.menuId=d;c.buttonId=a;this.menuId=d;this.buttonId=a};NC.lang.extend(NC.widget.MenuButton,NC.widget.Button,{_click:function(b){var d=NC.core.Event.getEventTarget(b);if(NC.widget.MenuManager.isMenuVisible(d.menuId)){NC.widget.MenuManager.hideMenu(d.menuId)}else{var e=NC.util.Dom.getAbsoluteXY(d);var c=NC.util.Region.getRegion(d);var a=[c.left+3,c.bottom];NC.widget.MenuManager.showMenu(d.menuId,a,d.buttonId)}},init:function(){NC.widget.MenuButton.superclass.init.call(this);this.addDomEvent(NC.core.EventType.Click,this._click,false);NC.widget.ElementManager.register(this.buttonId,this);return"init button function"},render:function(){return"render"},getMenuId:function(){return this.menuId},getButtonId:function(){return this.buttonId},onMenuItemSelected:function(d,a,c,e){var b=document.getElementById(this.domId);b.value=c;NC.widget.Attribute.set(b,NC.widget.Attribute.SelectedOption,e);this.fireEvent(NC.core.EventType.Change)}});if(typeof NC=="undefined"){alert("TabView.js requires the NC JavaScript framework")}if(typeof NC.widget=="undefined"){alert("TabView.js requires the NC JavaScript framework")}NC.widget.TabView=function(c,a){var b=NC.widget.TabView.superclass.constructor;this.contentContainer=a;b.call(this,c)};NC.widget.TabView.SelectedTabClass="selected";NC.widget.TabView.selectTab=function(e,d){if(d==null){return}var a=document.getElementById(e);if(a!=null){var c=a.getElementsByTagName("li");for(var b=0;b<c.length;b++){if(c[b]!=d){NC.util.Dom.removeClass(c[b],NC.widget.TabView.SelectedTabClass)}}NC.util.Dom.addClass(d,NC.widget.TabView.SelectedTabClass)}};NC.widget.TabView.tabMouseUp=function(f){var h=NC.core.Event.getEventTarget(f);var a=NC.util.Dom.getParentByType(h,"ul");if(a!=null){var c=a.getElementsByTagName("li");var e=NC.util.Dom.getParentByType(h,"li");for(var b=0;b<c.length;b++){if(c[b]!=e){NC.util.Dom.removeClass(c[b],NC.widget.TabView.SelectedTabClass)}}NC.util.Dom.addClass(e,NC.widget.TabView.SelectedTabClass);var g=NC.util.Dom.getParentByType(a,"div");var d=NC.widget.ElementManager.lookup(g.id);if(d!=null){d.onTabSelected(f,e)}}};NC.widget.TabView.tabMouseOver=function(e){var g=NC.core.Event.getEventTarget(e);var a=NC.util.Dom.getParentByType(g,"ul");if(a!=null){var b=a.getElementsByTagName("li");var d=NC.util.Dom.getParentByType(g,"li");var f=NC.util.Dom.getParentByType(a,"div");var c=NC.widget.ElementManager.lookup(f.id);if(c!=null){c.onTabMouseOver(e,d)}}};NC.widget.TabView.tabMouseOut=function(e){var g=NC.core.Event.getEventTarget(e);var a=NC.util.Dom.getParentByType(g,"ul");if(a!=null){var b=a.getElementsByTagName("li");var d=NC.util.Dom.getParentByType(g,"li");var f=NC.util.Dom.getParentByType(a,"div");var c=NC.widget.ElementManager.lookup(f.id);if(c!=null){c.onTabMouseOut(e,d)}}};NC.lang.extend(NC.widget.TabView,NC.widget.Element,{init:function(){NC.widget.TabView.superclass.init.call(this);var a=document.getElementById(this.domId);NC.widget.Element.addElementDomEvent(a,NC.core.EventType.Mouseup,NC.widget.TabView.tabMouseUp,false);NC.widget.Element.addElementDomEvent(a,NC.core.EventType.Mouseover,NC.widget.TabView.tabMouseOver,false);NC.widget.Element.addElementDomEvent(a,NC.core.EventType.Mouseout,NC.widget.TabView.tabMouseOut,false);NC.widget.ElementManager.register(this.domId,this);return"init TabView function"},onTabSelected:function(b,a){},onTabMouseOver:function(b,a){},onTabMouseOut:function(b,a){},render:function(){return"render"}});if(typeof NC=="undefined"){alert("TabView.js requires the NC JavaScript framework")}if(typeof NC.widget=="undefined"){alert("TabView.js requires the NC JavaScript framework")}NC.widget.ContentView=function(e,b,d,a){var c=NC.widget.ContentView.superclass.constructor;c.call(this,e,b);this.content=d;this.firstVariableTab=a;this.startTab=0;this.endTab=-1};NC.lang.extend(NC.widget.ContentView,NC.widget.TabView,{MoreCommand:1,ContentCommand:2,init:function(){NC.widget.ContentView.superclass.init.call(this);var b=document.getElementById(this.domId);var a=NC.util.Region.getRegion(b);var c=NC.util.Dom.getElementsByClassName("nc-nav","ul",b,null);this.addTabs(c[0],a.right);NC.widget.ElementManager.register(this.domId,this);return"init ContentView function"},addTabs:function(a,d){var c=this.startTab;for(;c<this.content.length;c++){var b=this.addContentTab(a,this.content[c][0],this.content[c][1],this.content[c][2],this.content[c][3]);var e=NC.util.Region.getRegion(b);if(d-e.right<150){break}}if(c<this.content.length-1||(c==this.content.length&&this.startTab>0)){var b=this.addTab(a,"More...",{cmd:this.MoreCommand});this.endTab=c}else{this.endTab=-1}},addContentTab:function(e,a,c,d,b){return this.addTab(e,a,{cid:c,cmd:this.ContentCommand,menu:d,edit:b})},addTab:function(c,g,e){var d=document.createElement("li");var b=document.createTextNode(g);var f=document.createElement("em");f.appendChild(b);var h=document.createElement("a");h.appendChild(f);d.appendChild(h);for(var i in e){NC.widget.Attribute.set(d,i,e[i])}c.appendChild(d);var a=NC.util.Region.getRegion(d);return d},rotateContent:function(){var e=document.getElementById(this.domId);var f=NC.util.Dom.getElementsByClassName("nc-nav","ul",e,null);var d=f[0].getElementsByTagName("li");var b=d.length;for(var c=this.firstVariableTab;c<b;c++){f[0].removeChild(d[this.firstVariableTab])}var a=NC.util.Region.getRegion(e);this.startTab=this.endTab+1;if(this.startTab>=this.content.length){this.startTab=this.firstVariableTab}this.addTabs(f[0],a.right)},toggleMenu:function(a,e,c){var d=NC.core.Event.getEventTarget(a);if(NC.widget.MenuManager.isMenuVisible(e)){}else{var f=NC.util.Dom.getAbsoluteXY(d);var g=NC.util.Region.getRegion(d);var h=[g.left+3,g.bottom+5];var i=document.getElementById(e);var b=NC.util.Region.getRegion(i);NC.widget.MenuManager.showMenu(e,h,this.domId)}},onTabMouseOver:function(e,d){var b=document.getElementById(this.contentContainer);var f=NC.widget.Attribute.get(d,"cmd");if(f==this.ContentCommand){var h=NC.widget.Attribute.get(d,"menu");if(h!=null&&h.length>0){var g=document.getElementById(h);var a=g.getElementsByTagName("li");var c=a.length;if(c>1){this.toggleMenu(e,h,d)}else{NC.widget.MenuManager.hideAllMenus()}}else{NC.widget.MenuManager.hideAllMenus()}}},onTabMouseOut:function(c,b){NC.widget.MenuManager.clearShowMenuTimer();var a=document.getElementById(this.contentContainer);var d=NC.widget.Attribute.get(b,"cmd");if(d==this.ContentCommand){var f=NC.widget.Attribute.get(b,"cid");var e=NC.widget.Attribute.get(b,"menu");if(e!=null&&e.length>0){}}},getTabForContentType:function(a){var b=document.getElementById("ContentTabList");if(b!=null){var d=b.getElementsByTagName("li");for(var c=0;c<d.length;c++){var e=NC.widget.Attribute.get(d[c],"cid");if(e>0){if(e==a){return d[c]}}}}return null},onTabSelected:function(a,g){var e=document.getElementById(this.contentContainer);var c=NC.widget.Attribute.get(g,"cmd");var l=NC.widget.Attribute.get(g,"edit");if(c==this.ContentCommand){var j=NC.widget.Attribute.get(g,"menu");var b=document.getElementById(j);var n=b.getElementsByTagName("li");var d=null;var h=n.item;if(h.className==undefined){h=n.item(0)}if(h!=null){d=NC.widget.Attribute.get(h,"url")}if(d==null||d.length==0||l==1){var i=NC.widget.Attribute.get(g,"cid");if(i>0){d="./sc.php?ct="+i}}if(d!=null){if(typeof NC.promo.PromoManager.hidePromo=="function"){NC.promo.PromoManager.hidePromo()}var f=d.indexOf(NC.util.AjaxManager.getNcFuncFlag());if(f>-1){var k=d.substring(f+NC.util.AjaxManager.getNcFuncFlag().length);if(k=="showscore"){NC.widget.ResumeUploadManager.showResumeInfo("MainFrame");NC.util.AjaxManager.addMainFrameHistory(d)}else{if(k=="showjshome"){NC.widget.MemberManager.showMemberHome();NC.util.AjaxManager.addMainFrameHistory(d)}else{if(k=="showemphome"){NC.widget.MemberManager.showEmployerHome();NC.util.AjaxManager.addMainFrameHistory(d)}else{if(k=="showgetbadge"){NC.widget.MemberManager.showGetBadge();NC.util.AjaxManager.addMainFrameHistory(d)}else{if(k=="invitemember"){NC.widget.CandidateManager.showInvitePopup("inviteMemberForm.php","JsInviteForm","do_invite.php","",null,2,-1)}else{if(k=="newwordad"){NC.widget.AdManager.showAdEditDialog("js_wordad_edit.php?NewAd=1","WordAdEditForm","do_update_wordad.php",1)}else{if(k=="showjsquickstart"){NC.widget.MemberManager.showMemberQuickStart();NC.util.AjaxManager.addMainFrameHistory(d)}}}}}}}}else{var m=new NC.util.AjaxUpdate("GET",d,this.contentContainer,this.contentContainer,null);m.doUpdate(true);NC.util.AjaxManager.addMainFrameHistory(d)}}}else{if(c==this.MoreCommand){this.rotateContent()}}},onMenuItemSelected:function(a,e,i,j){if(typeof NC.promo.PromoManager.hidePromo=="function"){NC.promo.PromoManager.hidePromo()}var b=NC.widget.Attribute.get(e,"url");var h=NC.widget.Attribute.get(e,"target");var d=NC.widget.Attribute.get(e,"func");var f=-2;if(d!=null&&d.length>0){if(d=="copyDivToIFrame"){copyDivToIFrame(h,b)}else{if(d=="showConversationPopupById"){var g=NC.widget.Attribute.get(e,"cid");NC.widget.ConversationManager.showConversationPopupById(a,g,"Notes");f=19}else{if(d=="invitemember"){NC.widget.CandidateManager.showInvitePopup("inviteMemberForm.php","JsInviteForm","do_invite.php","",null,2,-1);f=5}else{if(d=="newwordad"){NC.widget.AdManager.showAdEditDialog("js_wordad_edit.php?NewAd=1","WordAdEditForm","do_update_wordad.php",1);f=25}else{if(d=="showgetbadge"){NC.widget.MemberManager.showGetBadge();NC.util.AjaxManager.addMainFrameHistory(b);f=7}else{if(d=="uploadresume"){showUploadPane("centercontent");f=7}else{if(d=="updateprivacy"){NC.widget.DashboardManager.showJsSelectPrivacyPopup(a,-1,false);f=7}else{if(d=="updateprofile"){NC.widget.ResumeUploadManager.editResumeInfo(a,"./getResumeInfo.php","centercontent");f=7}else{if(d=="showscore"){NC.widget.ResumeUploadManager.showResumeInfo("MainFrame");NC.util.AjaxManager.addMainFrameHistory(b);f=7}else{if(d=="showjsquickstart"){NC.widget.MemberManager.showMemberQuickStart();NC.util.AjaxManager.addMainFrameHistory(b);f=-1}}}}}}}}}}}else{if(h=="_blank"){window.location=b}else{xmlHttpGet(b,true)}}if(f==-2){f=NC.util.AjaxManager.findContentType(b)}if(f>-2&&window.oContentTabContainer!=null){var c=window.oContentTabContainer.getTabForContentType(f);if(c!=null){NC.widget.TabView.selectTab("ContentTabList",c)}}}});NC.util.CustomEvent=function(d,b,c,a){this.type=d;this.scope=b||window;this.silent=c;this.signature=a||NC.util.CustomEvent.LIST;this.subscribers=[];if(!this.silent){}var e="_YUICEOnSubscribe";if(d!==e){this.subscribeEvent=new NC.util.CustomEvent(e,this,true)}this.lastError=null};NC.util.CustomEvent.LIST=0;NC.util.CustomEvent.FLAT=1;NC.util.CustomEvent.prototype={subscribe:function(b,c,a){if(!b){throw new Error("Invalid callback for subscriber to '"+this.type+"'")}if(this.subscribeEvent){this.subscribeEvent.fire(b,c,a)}this.subscribers.push(new NC.util.Subscriber(b,c,a))},unsubscribe:function(d,f){if(!d){return this.unsubscribeAll()}var e=false;for(var b=0,a=this.subscribers.length;b<a;++b){var c=this.subscribers[b];if(c&&c.contains(d,f)){this._delete(b);e=true}}return e},fire:function(){var d=this.subscribers.length;if(!d&&this.silent){return true}var j=[],g=true,c,k=false;for(c=0;c<arguments.length;++c){j.push(arguments[c])}if(!this.silent){}for(c=0;c<d;++c){var n=this.subscribers[c];if(!n){k=true}else{if(!this.silent){}var m=n.getScope(this.scope);if(this.signature==NC.util.CustomEvent.FLAT){var a=null;if(j.length>0){a=j[0]}try{g=n.fn.call(m,a,n.obj)}catch(f){this.lastError=f}}else{try{g=n.fn.call(m,this.type,j,n.obj)}catch(h){this.lastError=h}}if(false===g){if(!this.silent){}return false}}}if(k){var l=[],b=this.subscribers;for(c=0,d=b.length;c<d;c=c+1){l.push(b[c])}this.subscribers=l}return true},unsubscribeAll:function(){for(var b=0,a=this.subscribers.length;b<a;++b){this._delete(a-1-b)}this.subscribers=[];return b},_delete:function(a){var b=this.subscribers[a];if(b){delete b.fn;delete b.obj}this.subscribers[a]=null},toString:function(){return"CustomEvent: '"+this.type+"', scope: "+this.scope}};NC.util.Subscriber=function(b,c,a){this.fn=b;this.obj=NC.lang.isUndefined(c)?null:c;this.override=a};NC.util.Subscriber.prototype.getScope=function(a){if(this.override){if(this.override===true){return this.obj}else{return this.override}}return a};NC.util.Subscriber.prototype.contains=function(a,b){if(b){return(this.fn==a&&this.obj==b)}else{return(this.fn==a)}};NC.util.Subscriber.prototype.toString=function(){return"Subscriber { obj: "+this.obj+", override: "+(this.override||"no")+" }"};if(!NC.util.Event){NC.util.Event=function(){var h=false;var i=[];var j=[];var g=[];var e=[];var c=0;var f=[];var b=[];var a=0;var d={63232:38,63233:40,63234:37,63235:39,63276:33,63277:34,25:9};return{POLL_RETRYS:2000,POLL_INTERVAL:20,EL:0,TYPE:1,FN:2,WFN:3,UNLOAD_OBJ:3,ADJ_SCOPE:4,OBJ:5,OVERRIDE:6,lastError:null,isSafari:NC.env.ua.webkit,webkit:NC.env.ua.webkit,isIE:NC.env.ua.ie,_interval:null,_dri:null,DOMReady:false,startInterval:function(){if(!this._interval){var k=this;var l=function(){k._tryPreloadAttach()};this._interval=setInterval(l,this.POLL_INTERVAL)}},onAvailable:function(p,m,q,o,n){var k=(NC.lang.isString(p))?[p]:p;for(var l=0;l<k.length;l=l+1){f.push({id:k[l],fn:m,obj:q,override:o,checkReady:n})}c=this.POLL_RETRYS;this.startInterval()},onContentReady:function(m,k,n,l){this.onAvailable(m,k,n,l,true)},onDOMReady:function(k,m,l){if(this.DOMReady){setTimeout(function(){var n=window;if(l){if(l===true){n=m}else{n=l}}k.call(n,"DOMReady",[],m)},0)}else{this.DOMReadyEvent.subscribe(k,m,l)}},addListener:function(m,k,v,q,l){if(!v||!v.call){return false}if(this._isValidCollection(m)){var w=true;for(var r=0,t=m.length;r<t;++r){w=this.on(m[r],k,v,q,l)&&w}return w}else{if(NC.lang.isString(m)){var p=this.getEl(m);if(p){m=p}else{this.onAvailable(m,function(){NC.util.Event.on(m,k,v,q,l)});return true}}}if(!m){return false}if("unload"==k&&q!==this){j[j.length]=[m,k,v,q,l];return true}var y=m;if(l){if(l===true){y=q}else{y=l}}var n=function(z){return v.call(y,NC.util.Event.getEvent(z,m),q)};var x=[m,k,v,n,y,q,l];var s=i.length;i[s]=x;if(this.useLegacyEvent(m,k)){var o=this.getLegacyIndex(m,k);if(o==-1||m!=g[o][0]){o=g.length;b[m.id+k]=o;g[o]=[m,k,m["on"+k]];e[o]=[];m["on"+k]=function(z){NC.util.Event.fireLegacyEvent(NC.util.Event.getEvent(z),o)}}e[o].push(x)}else{try{this._simpleAdd(m,k,n,false)}catch(u){this.lastError=u;this.removeListener(m,k,v);return false}}return true},fireLegacyEvent:function(o,m){var q=true,k,s,r,t,p;s=e[m];for(var l=0,n=s.length;l<n;++l){r=s[l];if(r&&r[this.WFN]){t=r[this.ADJ_SCOPE];p=r[this.WFN].call(t,o);q=(q&&p)}}k=g[m];if(k&&k[2]){k[2](o)}return q},getLegacyIndex:function(l,m){var k=this.generateId(l)+m;if(typeof b[k]=="undefined"){return -1}else{return b[k]}},useLegacyEvent:function(l,m){if(this.webkit&&("click"==m||"dblclick"==m)){var k=parseInt(this.webkit,10);if(!isNaN(k)&&k<418){return true}}return false},removeListener:function(l,k,t){var o,r,v;if(typeof l=="string"){l=this.getEl(l)}else{if(this._isValidCollection(l)){var u=true;for(o=0,r=l.length;o<r;++o){u=(this.removeListener(l[o],k,t)&&u)}return u}}if(!t||!t.call){return this.purgeElement(l,false,k)}if("unload"==k){for(o=0,r=j.length;o<r;o++){v=j[o];if(v&&v[0]==l&&v[1]==k&&v[2]==t){j[o]=null;return true}}return false}var p=null;var q=arguments[3];if("undefined"===typeof q){q=this._getCacheIndex(l,k,t)}if(q>=0){p=i[q]}if(!l||!p){return false}if(this.useLegacyEvent(l,k)){var n=this.getLegacyIndex(l,k);var m=e[n];if(m){for(o=0,r=m.length;o<r;++o){v=m[o];if(v&&v[this.EL]==l&&v[this.TYPE]==k&&v[this.FN]==t){m[o]=null;break}}}}else{try{this._simpleRemove(l,k,p[this.WFN],false)}catch(s){this.lastError=s;return false}}delete i[q][this.WFN];delete i[q][this.FN];i[q]=null;return true},getTarget:function(m,l){var k=m.target||m.srcElement;return this.resolveTextNode(k)},resolveTextNode:function(l){try{if(l&&3==l.nodeType){return l.parentNode}}catch(k){}return l},getPageX:function(l){var k=l.pageX;if(!k&&0!==k){k=l.clientX||0;if(this.isIE){k+=this._getScrollLeft()}}return k},getPageY:function(k){var l=k.pageY;if(!l&&0!==l){l=k.clientY||0;if(this.isIE){l+=this._getScrollTop()}}return l},getXY:function(k){return[this.getPageX(k),this.getPageY(k)]},getRelatedTarget:function(l){var k=l.relatedTarget;if(!k){if(l.type=="mouseout"){k=l.toElement}else{if(l.type=="mouseover"){k=l.fromElement}}}return this.resolveTextNode(k)},getTime:function(m){if(!m.time){var l=new Date().getTime();try{m.time=l}catch(k){this.lastError=k;return l}}return m.time},stopEvent:function(k){this.stopPropagation(k);this.preventDefault(k)},stopPropagation:function(k){if(k.stopPropagation){k.stopPropagation()}else{k.cancelBubble=true}},preventDefault:function(k){if(k.preventDefault){k.preventDefault()}else{k.returnValue=false}},getEvent:function(m,k){var l=m||window.event;if(!l){var n=this.getEvent.caller;while(n){l=n.arguments[0];if(l&&Event==l.constructor){break}n=n.caller}}return l},getCharCode:function(l){var k=l.keyCode||l.charCode||0;if(NC.env.ua.webkit&&(k in d)){k=d[k]}return k},_getCacheIndex:function(o,p,n){for(var m=0,l=i.length;m<l;++m){var k=i[m];if(k&&k[this.FN]==n&&k[this.EL]==o&&k[this.TYPE]==p){return m}}return -1},generateId:function(k){var l=k.id;if(!l){l="yuievtautoid-"+a;++a;k.id=l}return l},_isValidCollection:function(l){try{return(l&&typeof l!=="string"&&l.length&&!l.tagName&&!l.alert&&typeof l[0]!=="undefined")}catch(k){return false}},elCache:{},getEl:function(k){return(typeof k==="string")?document.getElementById(k):k},clearCache:function(){},DOMReadyEvent:new NC.util.CustomEvent("DOMReady",this),_load:function(l){if(!h){h=true;var k=NC.util.Event;k._ready();k._tryPreloadAttach()}},_ready:function(l){var k=NC.util.Event;if(!k.DOMReady){k.DOMReady=true;k.DOMReadyEvent.fire();k._simpleRemove(document,"DOMContentLoaded",k._ready)}},_tryPreloadAttach:function(){if(this.locked){return false}if(this.isIE){if(!this.DOMReady){this.startInterval();return false}}this.locked=true;var p=!h;if(!p){p=(c>0)}var o=[];var q=function(s,t){var r=s;if(t.override){if(t.override===true){r=t.obj}else{r=t.override}}t.fn.call(r,t.obj)};var l,k,n,m;for(l=0,k=f.length;l<k;++l){n=f[l];if(n&&!n.checkReady){m=this.getEl(n.id);if(m){q(m,n);f[l]=null}else{o.push(n)}}}for(l=0,k=f.length;l<k;++l){n=f[l];if(n&&n.checkReady){m=this.getEl(n.id);if(m){if(h||m.nextSibling){q(m,n);f[l]=null}}else{o.push(n)}}}c=(o.length===0)?0:c-1;if(p){this.startInterval()}else{clearInterval(this._interval);this._interval=null}this.locked=false;return true},purgeElement:function(p,q,s){var n=(NC.lang.isString(p))?this.getEl(p):p;var r=this.getListeners(n,s),o,k;if(r){for(o=0,k=r.length;o<k;++o){var m=r[o];this.removeListener(n,m.type,m.fn,m.index)}}if(q&&n&&n.childNodes){for(o=0,k=n.childNodes.length;o<k;++o){this.purgeElement(n.childNodes[o],q,s)}}},getListeners:function(n,k){var q=[],m;if(!k){m=[i,j]}else{if(k==="unload"){m=[j]}else{m=[i]}}var s=(NC.lang.isString(n))?this.getEl(n):n;for(var p=0;p<m.length;p=p+1){var u=m[p];if(u&&u.length>0){for(var r=0,t=u.length;r<t;++r){var o=u[r];if(o&&o[this.EL]===s&&(!k||k===o[this.TYPE])){q.push({type:o[this.TYPE],fn:o[this.FN],obj:o[this.OBJ],adjust:o[this.OVERRIDE],scope:o[this.ADJ_SCOPE],index:r})}}}}return(q.length)?q:null},_unload:function(s){var r=NC.util.Event,p,o,m,k,n;for(p=0,k=j.length;p<k;++p){m=j[p];if(m){var q=window;if(m[r.ADJ_SCOPE]){if(m[r.ADJ_SCOPE]===true){q=m[r.UNLOAD_OBJ]}else{q=m[r.ADJ_SCOPE]}}m[r.FN].call(q,r.getEvent(s,m[r.EL]),m[r.UNLOAD_OBJ]);j[p]=null;m=null;q=null}}j=null;if(i&&i.length>0){o=i.length;while(o){n=o-1;m=i[n];if(m){r.removeListener(m[r.EL],m[r.TYPE],m[r.FN],n)}o--}m=null}g=null;r._simpleRemove(window,"unload",r._unload)},_getScrollLeft:function(){return this._getScroll()[1]},_getScrollTop:function(){return this._getScroll()[0]},_getScroll:function(){var k=document.documentElement,l=document.body;if(k&&(k.scrollTop||k.scrollLeft)){return[k.scrollTop,k.scrollLeft]}else{if(l){return[l.scrollTop,l.scrollLeft]}else{return[0,0]}}},regCE:function(){},_simpleAdd:function(){if(window.addEventListener){return function(m,n,l,k){m.addEventListener(n,l,(k))}}else{if(window.attachEvent){return function(m,n,l,k){m.attachEvent("on"+n,l)}}else{return function(){}}}}(),_simpleRemove:function(){if(window.removeEventListener){return function(m,n,l,k){m.removeEventListener(n,l,(k))}}else{if(window.detachEvent){return function(l,m,k){l.detachEvent("on"+m,k)}}else{return function(){}}}}()}}();(function(){var a=NC.util.Event;a.on=a.addListener;
/* DOMReady: based on work by: Dean Edwards/John Resig/Matthias Miller */
if(a.isIE){NC.util.Event.onDOMReady(NC.util.Event._tryPreloadAttach,NC.util.Event,true);a._dri=setInterval(function(){var c=document.createElement("p");try{c.doScroll("left");clearInterval(a._dri);a._dri=null;a._ready();c=null}catch(b){c=null}},a.POLL_INTERVAL)}else{if(a.webkit&&a.webkit<525){a._dri=setInterval(function(){var b=document.readyState;if("loaded"==b||"complete"==b){clearInterval(a._dri);a._dri=null;a._ready()}},a.POLL_INTERVAL)}else{a._simpleAdd(document,"DOMContentLoaded",a._ready)}}a._simpleAdd(window,"load",a._load);a._simpleAdd(window,"unload",a._unload);a._tryPreloadAttach()})()}NC.util.EventProvider=function(){};NC.util.EventProvider.prototype={__yui_events:null,__yui_subscribers:null,subscribe:function(a,c,f,e){this.__yui_events=this.__yui_events||{};var d=this.__yui_events[a];if(d){d.subscribe(c,f,e)}else{this.__yui_subscribers=this.__yui_subscribers||{};var b=this.__yui_subscribers;if(!b[a]){b[a]=[]}b[a].push({fn:c,obj:f,override:e})}},unsubscribe:function(c,e,g){this.__yui_events=this.__yui_events||{};var a=this.__yui_events;if(c){var f=a[c];if(f){return f.unsubscribe(e,g)}}else{var b=true;for(var d in a){if(NC.lang.hasOwnProperty(a,d)){b=b&&a[d].unsubscribe(e,g)}}return b}return false},unsubscribeAll:function(a){return this.unsubscribe(a)},createEvent:function(g,d){this.__yui_events=this.__yui_events||{};var a=d||{};var j=this.__yui_events;if(j[g]){}else{var h=a.scope||this;var e=(a.silent);var b=new NC.util.CustomEvent(g,h,e,NC.util.CustomEvent.FLAT);j[g]=b;if(a.onSubscribeCallback){b.subscribeEvent.subscribe(a.onSubscribeCallback)}this.__yui_subscribers=this.__yui_subscribers||{};var f=this.__yui_subscribers[g];if(f){for(var c=0;c<f.length;++c){b.subscribe(f[c].fn,f[c].obj,f[c].override)}}}return j[g]},fireEvent:function(e,d,a,c){this.__yui_events=this.__yui_events||{};var g=this.__yui_events[e];if(!g){return null}var b=[];for(var f=1;f<arguments.length;++f){b.push(arguments[f])}return g.fire.apply(g,b)},hasEvent:function(a){if(this.__yui_events){if(this.__yui_events[a]){return true}}return false}};NC.util.KeyListener=function(a,f,b,c){if(!a){}else{if(!f){}else{if(!b){}}}if(!c){c=NC.util.KeyListener.KEYDOWN}var d=new NC.util.CustomEvent("keyPressed");this.enabledEvent=new NC.util.CustomEvent("enabled");this.disabledEvent=new NC.util.CustomEvent("disabled");if(typeof a=="string"){a=document.getElementById(a)}if(typeof b=="function"){d.subscribe(b)}else{d.subscribe(b.fn,b.scope,b.correctScope)}function e(k,j){if(!f.shift){f.shift=false}if(!f.alt){f.alt=false}if(!f.ctrl){f.ctrl=false}if(k.shiftKey==f.shift&&k.altKey==f.alt&&k.ctrlKey==f.ctrl){var g;if(f.keys instanceof Array){for(var h=0;h<f.keys.length;h++){g=f.keys[h];if(g==k.charCode){d.fire(k.charCode,k);break}else{if(g==k.keyCode){d.fire(k.keyCode,k);break}}}}else{g=f.keys;if(g==k.charCode){d.fire(k.charCode,k)}else{if(g==k.keyCode){d.fire(k.keyCode,k)}}}}}this.enable=function(){if(!this.enabled){NC.util.Event.addListener(a,c,e);this.enabledEvent.fire(f)}this.enabled=true};this.disable=function(){if(this.enabled){NC.util.Event.removeListener(a,c,e);this.disabledEvent.fire(f)}this.enabled=false};this.toString=function(){return"KeyListener ["+f.keys+"] "+a.tagName+(a.id?"["+a.id+"]":"")}};NC.util.KeyListener.KEYDOWN="keydown";NC.util.KeyListener.KEYUP="keyup";NC.util.KeyListener.KEY={ALT:18,BACK_SPACE:8,CAPS_LOCK:20,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,META:224,NUM_LOCK:144,PAGE_DOWN:34,PAGE_UP:33,PAUSE:19,PRINTSCREEN:44,RIGHT:39,SCROLL_LOCK:145,SHIFT:16,SPACE:32,TAB:9,UP:38};NC.util.Connect={_msxml_progid:["Microsoft.XMLHTTP","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP"],_http_headers:{},_has_http_headers:false,_use_default_post_header:true,_default_post_header:"application/x-www-form-urlencoded; charset=UTF-8",_default_form_header:"application/x-www-form-urlencoded",_use_default_xhr_header:true,_default_xhr_header:"XMLHttpRequest",_has_default_headers:true,_default_headers:{},_isFormSubmit:false,_isFileUpload:false,_formNode:null,_sFormData:null,_poll:{},_timeOut:{},_polling_interval:50,_transaction_id:0,_transaction_date:null,ONLINE_DETECT_INTERVAL:60000,_submitElementValue:null,_hasSubmitListener:(function(){if(NC.util.Event){NC.util.Event.addListener(document,"click",function(b){var a=NC.util.Event.getTarget(b);if(a.nodeName.toLowerCase()=="input"&&(a.type&&a.type.toLowerCase()=="submit")){NC.util.Connect._submitElementValue=encodeURIComponent(a.name)+"="+encodeURIComponent(a.value)}});return true}return false})(),startEvent:new NC.util.CustomEvent("start"),completeEvent:new NC.util.CustomEvent("complete"),successEvent:new NC.util.CustomEvent("success"),failureEvent:new NC.util.CustomEvent("failure"),uploadEvent:new NC.util.CustomEvent("upload"),abortEvent:new NC.util.CustomEvent("abort"),_customEvents:{onStart:["startEvent","start"],onComplete:["completeEvent","complete"],onSuccess:["successEvent","success"],onFailure:["failureEvent","failure"],onUpload:["uploadEvent","upload"],onAbort:["abortEvent","abort"]},setProgId:function(a){this._msxml_progid.unshift(a)},setDefaultPostHeader:function(a){if(typeof a=="string"){this._default_post_header=a}else{if(typeof a=="boolean"){this._use_default_post_header=a}}},setDefaultXhrHeader:function(a){if(typeof a=="string"){this._default_xhr_header=a}else{this._use_default_xhr_header=a}},setPollingInterval:function(a){if(typeof a=="number"&&isFinite(a)){this._polling_interval=a}},createXhrObject:function(f){var d,a;try{a=new XMLHttpRequest();d={conn:a,tId:f}}catch(c){for(var b=0;b<this._msxml_progid.length;++b){try{a=new ActiveXObject(this._msxml_progid[b]);d={conn:a,tId:f};break}catch(c){}}}finally{return d}},getConnectionObject:function(a){var c;var d=this._transaction_id;try{if(!a){c=this.createXhrObject(d)}else{c={};c.tId=d;c.isUpload=true}if(c){this._transaction_id++}}catch(b){}finally{return c}},asyncRequest:function(f,c,e,a){var d=(this._isFileUpload)?this.getConnectionObject(true):this.getConnectionObject();var b=(e&&e.argument)?e.argument:null;if(!d){return null}else{if(e&&e.customevents){this.initCustomEvents(d,e)}if(this._isFormSubmit){if(this._isFileUpload){this.uploadFile(d,e,c,a);return d}if(f.toUpperCase()=="GET"){if(this._sFormData.length!==0){c+=((c.indexOf("?")==-1)?"?":"&")+this._sFormData}}else{if(f.toUpperCase()=="POST"){a=a?this._sFormData+"&"+a:this._sFormData}}}if(f.toUpperCase()=="GET"&&(e&&e.cache===false)){c+=((c.indexOf("?")==-1)?"?":"&")+"rnd="+new Date().valueOf().toString()}d.conn.open(f,c,true);if(this._use_default_xhr_header){if(!this._default_headers["X-Requested-With"]){this.initHeader("X-Requested-With",this._default_xhr_header,true)}}if((f.toUpperCase()=="POST"&&this._use_default_post_header)&&this._isFormSubmit===false){this.initHeader("Content-Type",this._default_post_header)}if(this._has_default_headers||this._has_http_headers){this.setHeader(d)}this.handleReadyState(d,e);d.conn.send(a||"");if(this._isFormSubmit===true){this.resetFormState()}this.startEvent.fire(d,b);if(d.startEvent){d.startEvent.fire(d,b)}return d}},initCustomEvents:function(a,c){for(var b in c.customevents){if(this._customEvents[b][0]){a[this._customEvents[b][0]]=new NC.util.CustomEvent(this._customEvents[b][1],(c.scope)?c.scope:null);a[this._customEvents[b][0]].subscribe(c.customevents[b])}}},handleReadyState:function(c,d){var b=this;var a=(d&&d.argument)?d.argument:null;if(d&&d.timeout){this._timeOut[c.tId]=window.setTimeout(function(){b.abort(c,d,true)},d.timeout)}this._poll[c.tId]=window.setInterval(function(){if(c.conn&&c.conn.readyState===4){window.clearInterval(b._poll[c.tId]);delete b._poll[c.tId];if(d&&d.timeout){window.clearTimeout(b._timeOut[c.tId]);delete b._timeOut[c.tId]}b.completeEvent.fire(c,a);if(c.completeEvent){c.completeEvent.fire(c,a)}b.handleTransactionResponse(c,d)}},this._polling_interval)},handleTransactionResponse:function(g,h,a){var d,c;var b=(h&&h.argument)?h.argument:null;try{if(g.conn.status!==undefined&&g.conn.status!==0){d=g.conn.status}else{d=13030}}catch(f){d=13030}if(d>=200&&d<300||d===1223){c=this.createResponseObject(g,b);if(h&&h.success){if(!h.scope){h.success(c)}else{h.success.apply(h.scope,[c])}}this.successEvent.fire(c);if(g.successEvent){g.successEvent.fire(c)}}else{switch(d){case 12002:case 12029:case 12030:case 12031:case 12152:case 13030:c=this.createExceptionObject(g.tId,b,(a?a:false));if(h&&h.failure){if(!h.scope){h.failure(c)}else{h.failure.apply(h.scope,[c])}}break;default:c=this.createResponseObject(g,b);if(h&&h.failure){if(!h.scope){h.failure(c)}else{h.failure.apply(h.scope,[c])}}}this.failureEvent.fire(c);if(g.failureEvent){g.failureEvent.fire(c)}}this.releaseObject(g);c=null},createResponseObject:function(a,h){var d={};var k={};try{var c=a.conn.getAllResponseHeaders();var g=c.split("\n");for(var f=0;f<g.length;f++){var b=g[f].indexOf(":");if(b!=-1){k[g[f].substring(0,b)]=g[f].substring(b+2)}}}catch(j){}d.tId=a.tId;d.status=(a.conn.status==1223)?204:a.conn.status;d.statusText=(a.conn.status==1223)?"No Content":a.conn.statusText;d.getResponseHeader=k;d.getAllResponseHeaders=c;d.responseText=a.conn.responseText;d.responseXML=a.conn.responseXML;if(h){d.argument=h}return d},createExceptionObject:function(h,d,a){var f=0;var g="communication failure";var c=-1;var b="transaction aborted";var e={};e.tId=h;if(a){e.status=c;e.statusText=b}else{e.status=f;e.statusText=g}if(d){e.argument=d}return e},initHeader:function(a,d,c){var b=(c)?this._default_headers:this._http_headers;b[a]=d;if(c){this._has_default_headers=true}else{this._has_http_headers=true}},setHeader:function(a){if(this._has_default_headers){for(var b in this._default_headers){if(NC.lang.hasOwnProperty(this._default_headers,b)){a.conn.setRequestHeader(b,this._default_headers[b])}}}if(this._has_http_headers){for(var b in this._http_headers){if(NC.lang.hasOwnProperty(this._http_headers,b)){a.conn.setRequestHeader(b,this._http_headers[b])}}delete this._http_headers;this._http_headers={};this._has_http_headers=false}},resetDefaultHeaders:function(){delete this._default_headers;this._default_headers={};this._has_default_headers=false},setForm:function(m,e,b){this.resetFormState();var l;if(typeof m=="string"){l=(document.getElementById(m)||document.forms[m])}else{if(typeof m=="object"){l=m}else{return}}if(e){var f=this.createFrame((window.location.href.toLowerCase().indexOf("https")===0||b)?true:false);this._isFormSubmit=true;this._isFileUpload=true;this._formNode=l;return}var a,k,g,n;var h=false;for(var d=0;d<l.elements.length;d++){a=l.elements[d];n=a.disabled;k=a.name;g=a.value;if(!n&&k){switch(a.type){case"select-one":case"select-multiple":for(var c=0;c<a.options.length;c++){if(a.options[c].selected){if(window.ActiveXObject){this._sFormData+=encodeURIComponent(k)+"="+encodeURIComponent(a.options[c].attributes.value.specified?a.options[c].value:a.options[c].text)+"&"}else{this._sFormData+=encodeURIComponent(k)+"="+encodeURIComponent(a.options[c].hasAttribute("value")?a.options[c].value:a.options[c].text)+"&"}}}break;case"radio":case"checkbox":if(a.checked){this._sFormData+=encodeURIComponent(k)+"="+encodeURIComponent(g)+"&"}break;case"file":case undefined:case"reset":case"button":break;case"submit":if(h===false){if(this._hasSubmitListener&&this._submitElementValue){this._sFormData+=this._submitElementValue+"&"}else{this._sFormData+=encodeURIComponent(k)+"="+encodeURIComponent(g)+"&"}h=true}break;default:this._sFormData+=encodeURIComponent(k)+"="+encodeURIComponent(g)+"&"}}}this._isFormSubmit=true;this._sFormData=this._sFormData.substr(0,this._sFormData.length-1);this.initHeader("Content-Type",this._default_form_header);return this._sFormData},resetFormState:function(){this._isFormSubmit=false;this._isFileUpload=false;this._formNode=null;this._sFormData=""},createFrame:function(a){var b="yuiIO"+this._transaction_id;var c;if(window.ActiveXObject){c=document.createElement('<iframe id="'+b+'" name="'+b+'" />');if(typeof a=="boolean"){c.src="javascript:false"}}else{c=document.createElement("iframe");c.id=b;c.name=b}c.style.position="absolute";c.style.top="-1000px";c.style.left="-1000px";document.body.appendChild(c)},appendPostData:function(a){var d=[];var b=a.split("&");for(var c=0;c<b.length;c++){var e=b[c].indexOf("=");if(e!=-1){d[c]=document.createElement("input");d[c].type="hidden";d[c].name=b[c].substring(0,e);d[c].value=b[c].substring(e+1);this._formNode.appendChild(d[c])}}return d},uploadFile:function(d,n,e,c){var p=this;var h="yuiIO"+d.tId;var j="multipart/form-data";var l=document.getElementById(h);var k=(n&&n.argument)?n.argument:null;var b={action:this._formNode.getAttribute("action"),method:this._formNode.getAttribute("method"),target:this._formNode.getAttribute("target")};this._formNode.setAttribute("action",e);this._formNode.setAttribute("method","POST");this._formNode.setAttribute("target",h);if(this._formNode.encoding){this._formNode.setAttribute("encoding",j)}else{this._formNode.setAttribute("enctype",j)}if(c){var m=this.appendPostData(c)}this._formNode.submit();this.startEvent.fire(d,k);if(d.startEvent){d.startEvent.fire(d,k)}if(n&&n.timeout){this._timeOut[d.tId]=window.setTimeout(function(){p.abort(d,n,true)},n.timeout)}if(m&&m.length>0){for(var g=0;g<m.length;g++){this._formNode.removeChild(m[g])}}for(var a in b){if(NC.lang.hasOwnProperty(b,a)){if(b[a]){this._formNode.setAttribute(a,b[a])}else{this._formNode.removeAttribute(a)}}}this.resetFormState();var f=function(){if(n&&n.timeout){window.clearTimeout(p._timeOut[d.tId]);delete p._timeOut[d.tId]}p.completeEvent.fire(d,k);if(d.completeEvent){d.completeEvent.fire(d,k)}var o={};o.tId=d.tId;o.argument=n.argument;try{o.responseText=l.contentWindow.document.body?l.contentWindow.document.body.innerHTML:l.contentWindow.document.documentElement.textContent;o.responseXML=l.contentWindow.document.XMLDocument?l.contentWindow.document.XMLDocument:l.contentWindow.document}catch(i){}if(n&&n.upload){if(!n.scope){n.upload(o)}else{n.upload.apply(n.scope,[o])}}p.uploadEvent.fire(o);if(d.uploadEvent){d.uploadEvent.fire(o)}NC.util.Event.removeListener(l,"load",f);setTimeout(function(){document.body.removeChild(l);p.releaseObject(d)},100)};NC.util.Event.addListener(l,"load",f)},abort:function(e,g,a){var d;var b=(g&&g.argument)?g.argument:null;if(e&&e.conn){if(this.isCallInProgress(e)){e.conn.abort();window.clearInterval(this._poll[e.tId]);delete this._poll[e.tId];if(a){window.clearTimeout(this._timeOut[e.tId]);delete this._timeOut[e.tId]}d=true}}else{if(e&&e.isUpload===true){var c="yuiIO"+e.tId;var f=document.getElementById(c);if(f){NC.util.Event.removeListener(f,"load");document.body.removeChild(f);if(a){window.clearTimeout(this._timeOut[e.tId]);delete this._timeOut[e.tId]}d=true}}else{d=false}}if(d===true){this.abortEvent.fire(e,b);if(e.abortEvent){e.abortEvent.fire(e,b)}this.handleTransactionResponse(e,g,true)}return d},isCallInProgress:function(b){if(b&&b.conn){return b.conn.readyState!==4&&b.conn.readyState!==0}else{if(b&&b.isUpload===true){var a="yuiIO"+b.tId;return document.getElementById(a)?true:false}else{return false}}},releaseObject:function(a){if(a&&a.conn){a.conn=null;a=null}},setTransactionDate:function(a){this._transaction_date=a},getTransactionDate:function(){return this._transaction_date},isOnline:function(){if(this._transaction_date!=null){var a=new Date();if(a.getTime()-this._transaction_date.getTime()<=this.ONLINE_DETECT_INTERVAL){return true}else{return false}}else{return false}}};NC.util.AjaxConnection=function(c,b,a){this.method=c;this.url=b;this.postData=a;this.updateTransactionDate=true};NC.util.AjaxConnection.prototype={executeMethod:function(b){if(this.updateTransactionDate){NC.util.Connect.setTransactionDate(new Date())}var a=NC.util.Connect.asyncRequest(this.method,this.url,b,this.postData)},initHeader:function(a,c,b){NC.util.Connect.initHeader(a,c,b)},addUnprecedentedParameter:function(){var a="nc081";if(this.url.indexOf("?")==-1){this.url+="?"+a+"="+new Date().getTime()}else{this.url+="&"+a+"="+new Date().getTime()}},getUrl:function(){return this.url},setUpdateTransactionsFlag:function(a){this.updateTransactionDate=a},substituteTags:function(h){this.getList=null;var b=new RegExp("(<[ \\n\\r\\t]*nc:(topic|doc|link|get)(>|[^>]*>))","g");var a=new RegExp("(<[ \\n\\r\\t]*/[ \\n\\r\\t]*nc:(topic|doc|link|get)(>|[^>]*>))","g");var c="";var g=false;do{g=h.indexOf("<nc:");if(g!=-1){c+=h.substr(0,g);h=h.substr(g);b.lastIndex=0;var i=b.exec(h);if(i==null){break}else{h=h.substr(b.lastIndex);g=h.indexOf("</nc:");if(g!=-1){var f=h.substr(0,g);if(i[2]=="get"){var e=f.split("=");if(e.length==2){if(this.getList==null){this.getList=new Array()}this.getList[this.getList.length]=e}}else{}var h=h.substr(g);var d=a.exec(h);if(d!=null){h=h.substr(a.lastIndex)}else{}}}}else{c+=h;h=""}}while(h.length>0);return c},refreshDivs:function(){if(this.getList!=null&&this.getList.length>0){var c=this.getList;function b(){var d;for(d=0;d<c.length;d++){var e=new NC.util.AjaxUpdate("GET",c[d][1],c[d][0],c[d][0],null);e.doUpdate(true)}}var a=window.setTimeout(b,250)}}};NC.util.AjaxUpdate=function(g,b,c,e,a){var d=NC.util.AjaxUpdate.superclass.constructor;d.call(this,g,b,a);this.successId=c;this.failureId=e;this.getList=null;var f=document.getElementById(c);if(f==null){NC.util.Debug.writeToConsole("NC.util.AjaxUpdate: successId is bad: "+c+" Url: "+b)}f=document.getElementById(e);if(f==null){NC.util.Debug.writeToConsole("NC.util.AjaxUpdate: failureId is bad: "+e+" Url: "+b)}};NC.lang.extend(NC.util.AjaxUpdate,NC.util.AjaxConnection,{doUpdate:function(a){var b={success:this.onSuccess,failure:this.onFailure,scope:this};this.addUnprecedentedParameter();this.executeMethod(b)},instanceElements:function(e){var d=e.getElementsByTagName("input");for(var b=0;b<d.length;b++){var a=d[b];if((a.type=="button"||a.type=="submit")&&a.className.indexOf("ncbutton")==0){var c=new NC.widget.Button(a.id);c.init()}}},onSuccess:function(f){if(f.responseText!==undefined){var g=document.getElementById(this.successId);var c=this.substituteTags(f.responseText);g.innerHTML=c;this.refreshDivs();var e=g.getElementsByTagName("input");for(var b=0;b<e.length;b++){var a=e[b];if((a.type=="button"||a.type=="submit")&&a.className.indexOf("ncbutton")==0){var d=new NC.widget.Button(a.id);d.init()}}}},onFailure:function(a){var b=document.getElementById(this.failureId);if(a.responseText!==undefined){b.innerHTML=a.responseText}else{b.innerHTML="Your Internet connection was interrupted."}}});NC.util.AjaxDialogDisplay=function(f,b,c,e,a){var d=NC.util.AjaxDialogDisplay.superclass.constructor;d.call(this,f,b,c,e,a)};NC.util.AjaxDialogDisplay.DialogWrapper="NCDialogWrapper";NC.util.AjaxDialogDisplay.ProgressDialog="NCProgressDiv";NC.util.AjaxDialogDisplay.addDialogWrapper=function(a){return'<div><a href="#" onclick="NC.widget.ModalDialog.closeDialog(\''+a+"')\">Close</a></div>"};NC.lang.extend(NC.util.AjaxDialogDisplay,NC.util.AjaxUpdate,{onSuccess:function(b){if(b.responseText!==undefined){var c=document.getElementById(this.successId);var a=b.responseText;a+=NC.util.AjaxDialogDisplay.addDialogWrapper(this.successId);c.innerHTML=a;this.instanceElements(c)}},onFailure:function(a){if(a.responseText!==undefined){var b=document.getElementById(this.failureId);b.innerHTML=a.responseText}}});NC.util.AjaxDialogDisplayExtended=function(g,b,d,f,a,c){var e=NC.util.AjaxDialogDisplayExtended.superclass.constructor;e.call(this,g,b,d,f,a);this.onSuccessFn=c};NC.lang.extend(NC.util.AjaxDialogDisplayExtended,NC.util.AjaxDialogDisplay,{onSuccess:function(b){if(b.responseText!==undefined){var c=document.getElementById(this.successId);var a=b.responseText;a+=NC.util.AjaxDialogDisplay.addDialogWrapper(this.successId);c.innerHTML=a;this.instanceElements(c)}if(this.onSuccessFn!=null){this.onSuccessFn()}}});if(typeof NC=="undefined"){alert("modaldialog.js requires the NC JavaScript framework")}if(typeof NC.widget=="undefined"){alert("modaldialog.js requires the NC JavaScript framework")}NC.widget.ModalDialog=function(a,e,d,f,c){var b=NC.widget.ModalDialog.superclass.constructor;b.call(this,-1);this.sourceUrl=a;this.showAsPopup=c;if(this.sourceUrl.length>0){if(e.length>0){if(this.sourceUrl.lastIndexOf("?")==-1){this.sourceUrl+="?"+e}else{this.sourceUrl+="&"+e}}}this.parameters=e;this.target=d;if(f){this.targetFormName=f}else{this.targetFormName="PopupForm"}};NC.widget.ModalDialog.OverlayDivName="NCDialogOverlay";NC.widget.ModalDialog.makeShimId=function(a){return a+"-iShim"};NC.widget.ModalDialog.documentMouseUp=function(d){var g=NC.core.Event.getEventTarget(d);var c=NC.util.Event.getPageX(d);var b=NC.util.Event.getPageY(d);var a=NC.widget.DialogManager.getDialog();if(a!=null){var g=a.target;var e=document.getElementById(g);var f=NC.util.Region.getRegion(e);if(c>=f.left&&c<f.right&&b>=f.top&&b<f.bottom){}else{NC.widget.ModalDialog.closeDialog(g)}}};NC.widget.ModalDialog.closeDialog=function(f){var e=document.getElementById(f);var d=e.dialog;if(d!=null&&d.showAsPopup){d.onHide(f);e.innerHTML="";e.style.display="none";var e=document.getElementById(f);var b=NC.widget.ModalDialog.makeShimId(f);var c=document.getElementById(b);var a=new NC.widget.IFrameShim(b,e);a.setShimIframe(c);a.hideIframe();e.dialog=null;NC.widget.DialogManager.setDialog(null)}};NC.lang.extend(NC.widget.ModalDialog,NC.widget.Element,{show:function(c,a,g,i,j){NC.widget.DialogManager.setDialog(this);responseText="No response";var f=document.getElementById(this.target);f.dialog=this;var b;if(this.showAsPopup){var k=document.getElementById(NC.widget.ModalDialog.OverlayDivName);var h=NC.widget.ModalDialog.makeShimId(this.target);var d=document.getElementById(h);b=new NC.widget.IFrameShim(h,f);if(d==null){b.createIframe()}else{b.setShimIframe(d)}f.style.left=c+"px";f.style.top=a+"px";if(g>0){f.style.width=g+"px"}if(i>0){f.style.height=i+"px"}f.style.display="block";NC.widget.Element.addDocumentDomEvent(NC.core.EventType.Mouseup,NC.widget.ModalDialog.documentMouseUp,false)}if(this.sourceUrl.length>0){var e=null;if(this.showAsPopup){e=new NC.util.AjaxDialogDisplayExtended("GET",this.sourceUrl,this.target,this.target,null,j)}else{e=new NC.util.AjaxUpdate("GET",this.sourceUrl,this.target,this.target,null)}e.doUpdate()}setTimeout(function(){if(b!=null){b.config()}},1000);this.onShow(this.target)},hide:function(){NC.widget.ModalDialog.closeDialog(this.target)},onShow:function(){},onHide:function(){},setShowFn:function(a){this.onShow=a},setHideFn:function(a){this.onHide=a},post:function(){alert("Override this post function with your own")}});(function(){NC.widget.DialogManager=function(){var a=null;return{setDialog:function(b){a=b},getDialog:function(){return a}}}()})();if(typeof NC=="undefined"){alert("uploaddialog.js requires the NC JavaScript framework")}if(typeof NC.widget=="undefined"){alert("uploaddialog.js requires the NC JavaScript framework")}NC.widget.UploadDialog=function(g,d,c,l,j,i,k,f,e,b,h){var a=NC.widget.UploadDialog.superclass.constructor;a.call(this,g,d,c,l);this.iFrameName=j;this.progressDivName=i;this.progressMessage=k;this.onUploadCompleteFunction=f;this.checkValidFunction=e;this.errorDivName=b;this.showAsPopup=h};NC.lang.extend(NC.widget.UploadDialog,NC.widget.ModalDialog,{doFileUpload:function(){if(this.checkValidFunction==null||this.checkValidFunction()==true){var e=document.forms[this.targetFormName];e.target=this.iFrameName;resumeFile=document.getElementById("ResumeFileName");var f=false;if(resumeFile!=null){var c=NC.util.Dom.getValue(resumeFile);if(c!=null&&c.length>0){var b=c.lastIndexOf(".");var d=c.substring(b+1);if(d=="txt"||d=="doc"||d=="htm"||d=="php"){f=true}else{f=false}}else{f=true}}else{f=true}if(f){e.submit();var a=document.getElementById(this.progressDivName);if(a!=null){a.innerHTML=this.progressMessage}else{}this.hide()}else{NC.widget.ResumeUploadManager.showError("This file format is not supported. Please enter a text, html or Word document(.doc) file.")}}},onUploadComplete:function(){if(this.onUploadCompleteFunction!=null){this.onUploadCompleteFunction()}}});(function(){NC.widget.ResumeUploadManager=function(){var f=null;var d=true;var e="";var t="";var n="";var k=null;var i=null;var p=null;var g=null;var q=null;var s=null;var o=null;var r=null;var h=null;var m=-1;var l=false;var b="largencbadge";var a="membereval";var c="smallncbadge";var j="This invite code is invalid or no longer available. To request an invite code, please click Don't have one? below.";return{setupResumeUploadPopup:function(y,x,w,F,C,B,E,u,A,G,v,z,D,H){f=new NC.widget.UploadDialog(y,x,w,F,C,B,E,function(){NC.widget.ResumeUploadManager.onResumeResultLoad(this.iFrameName,u)},function(){var N="";var J=document.getElementById("ResumeFileName");if(J!=null){N=NC.util.Dom.getValue(J)}var L="";var I=document.getElementById("ResumeFileLink");if(I!=null){L=NC.util.Dom.getValue(I)}var M="";var K=document.getElementById("PlainTextResume");if(K!=null){M=NC.util.Dom.getValue(K)}if(N.length==0&&L.length==0&&M.length==0){NC.widget.ResumeUploadManager.showError("Please provide a resume to upload.");return false}else{NC.widget.ResumeUploadManager.clearError();return true}},"",A);d=G;e=v;q=z;r=D;h=H},showResumeUploadPopup:function(w,v,u){f.show(w,v,u)},getUploadDialog:function(){return f},showResumeWizard:function(v,x,w,y,z){o=NC.widget.ResumeWizard.create(x,g,e,w,y,z);if(d){var u=new NC.widget.ResumeScorePage(g);NC.widget.ResumeWizard.addPageToBeginning(u)}if(i!=null){i()}if(k!=null){k(g)}NC.widget.ResumeWizard.display()},onResumeResultLoad:function(u,x){var w=window.frames[u].document.body.innerHTML;if(w.length>0){iframeContent=decode64(w);this.parseDocument(iframeContent);var y=NC.util.Dom.extractField(p,NC.widget.ResumeWizard.StrErrorcode);if(y==0){NC.widget.MemberManager.updateMemberEvalAndBadgePublic(m,a,b);NC.widget.StateManager.setUploadedResumeFlag();if(q==null){this.showResumeWizard(u,x,r,h,false)}else{q(u,x,p)}f.hide()}else{var v=NC.util.Dom.extractField(p,NC.widget.ResumeWizard.StrErrormessage);NC.widget.ResumeUploadManager.showError(v)}}else{NC.widget.ResumeUploadManager.showError("There was a system problem(1).")}},onFinishUploadResumeInfo:function(){NC.widget.ResumeUploadManager.onFinishEditResumeInfo()},onCancelUploadResumeInfo:function(){NC.widget.ResumeUploadManager.onCancelEditResumeInfo()},onFinishEditResumeInfo:function(){NC.widget.ResumeWizard.updateResumeInfo(function(){NC.util.AjaxManager.showCurrentMainFrameContent()});if(s!=null){s.hide();s=null}NC.widget.StateManager.setViewedProfileFlag();return false},onCancelEditResumeInfo:function(){if(s!=null){s.hide();s=null}NC.util.AjaxManager.showCurrentMainFrameContent();return false},test:function(){var u=document.getElementById("centercontent");u.innerHTML="center content"},editResumeInfo:function(w,u,x){var y={success:function(F){var E=decode64(F.responseText);this.parseDocument(E);var D=false;if(x==null){x=NC.util.AjaxDialogDisplay.DialogWrapper;D=true}s=new NC.widget.ModalDialog("","",x,"",D);var A=510;var z=400;var C=(NC.util.Dom.getViewportWidth()-A)/2;var B=Math.max(20,(NC.util.Dom.getViewportHeight()-z)/2);s.show(C,B,A);d=false;e="./updateEditedResumeInfo.php";if(x==null||x.length==0){x=NC.util.AjaxDialogDisplay.DialogWrapper}this.showResumeWizard("",x,this.onFinishEditResumeInfo,this.onCancelEditResumeInfo,true)},failure:function(z){},scope:this};var v=new NC.util.AjaxConnection("GET",u,null);v.addUnprecedentedParameter();v.executeMethod(y)},showResumeInfoWithHistory:function(u){this.showResumeInfo(u);NC.util.AjaxManager.addMainFrameHistory(NC.util.AjaxManager.getNcFuncFlag()+":showscore")},showResumeInfo:function(w){if(p==null){var u="./getResumeInfo.php?Profile=1";var x={success:function(z){var y=decode64(z.responseText);this.parseDocument(y);this.formatResults(p,w)},failure:function(y){},scope:this};var v=new NC.util.AjaxConnection("GET",u,null);v.addUnprecedentedParameter();v.executeMethod(x)}else{this.formatResults(p,w)}},getResumeInfo:function(w){if(p==null){var u="./getResumeInfo.php?Profile=1";var x={success:function(z){var y=decode64(z.responseText);this.parseDocument(y);w()},failure:function(y){},scope:this};var v=new NC.util.AjaxConnection("GET",u,null);v.addUnprecedentedParameter();v.executeMethod(x)}else{w()}},getResumeInfoByMd5Id:function(v,x,z,y){if(p==null){var u="./getResumeInfo.php?Profile=1&ResumeId="+v;var A={success:function(C){var B=decode64(C.responseText);this.parseDocument(B);y(x,z,p)},failure:function(B){},scope:this};var w=new NC.util.AjaxConnection("GET",u,null);w.addUnprecedentedParameter();w.executeMethod(A)}else{y()}},getResumeInfoByResumeId:function(w,y,A,z,x){if(p==null){var u="./getResumeInfo.php?Profile=1&ResumeId="+w;var B={success:function(D){var C=decode64(D.responseText);this.parseDocument(C);z(y,A,p,x)},failure:function(C){},scope:this};var v=new NC.util.AjaxConnection("GET",u,null);v.addUnprecedentedParameter();v.executeMethod(B)}else{z()}},processEncodedProfile:function(u){var v=decode64(u);this.parseDocument(v)},parseDocument:function(u){try{var w=new DOMImplementation();g=w.loadXML(u);p=g.getDocumentElement();m=NC.util.Dom.extractField(p,NC.widget.ResumeWizard.StrResumeid)}catch(v){alert("There was a system problem. Please contact NimbleCat Customer Support.");p=null;g=null}},getDomRoot:function(){return p},getDomDocument:function(){return g},formatResults:function(w,x){var u=document.getElementById(x);var v='        <div id="LeftSpacer">             <img src="../imagesv2/1X500_spacer.gif">        </div>		<div class="publicprofile" id="publicprofile"></div>  		<div class="privateprofile" id="privateprofile"></div>  		<p><input type="button" class="ncbutton"  onclick="NC.util.AjaxManager.showCurrentMainFrameContent();" name="ChangeProfileButton" id="ChangeProfileButton" value="Cancel"></p>';if(u!=null){u.innerHTML=v;this.showProfile()}},setShowPublicProfile:function(u){l=u;this.showProfile()},showProfile:function(){if(l){var u=NC.util.Dom.extractEncodedField(p,NC.widget.ResumeWizard.StrPublicProfile);var w=document.getElementById("publicprofile");u='		<h2>Your Public Profile (<a href="#"  onclick="NC.widget.ResumeUploadManager.setShowPublicProfile(false);">show confidential profile</a>)</h2> '+u;w.innerHTML=u;var x=document.getElementById("privateprofile");x.innerHTML=""}else{var x=document.getElementById("privateprofile");var v='<h2>Your Confidential Profile (<a href="#"  onclick="NC.widget.ResumeUploadManager.setShowPublicProfile(true);">show public profile</a>)</h2> 		<div class="workhistory" id="workhistorypriv">'+this.formatWorkHistory(p)+'        </div>  		<div class="educationhistory" id="educationhistorypriv"> '+this.formatEducationHistory(p)+"        </div>  ";x.innerHTML=v;var w=document.getElementById("publicprofile");w.innerHTML=""}},makeAbsoluteBadgeUrl:function(u,w,v){return"http://www.nimblecat.com/alerts/"+this.makeRelativeBadgeUrl(u,w,v)},makeRelativeBadgeUrl:function(u,x,w){var v="getbadge.php?rid="+u+"&style="+x;if(w==1){v+="&nc="+new Date().getTime()}return v},wrapWithValidation:function(u){u='<a target="_blank" title="NimbleCat Score. Click to validate this." href="validatescore.php?mid='+this.getMd5id()+'">'+u+"</a>";return u},makeBadgeImageTag:function(u){return'<img border="0" src="'+u+'" />'},makeScoreTextTag:function(){return"NC"+this.getNCScore()},showBadge:function(w,y,u){var v=document.getElementById(u);var z="";if(v!=null){var x=this.makeRelativeBadgeUrl(w,y,0);x=NC.util.AjaxManager.addUnprecedentedParameter("nc081",x);v.innerHTML=this.wrapWithValidation(this.makeBadgeImageTag(x))+z}},refreshBadge:function(v,w,u){this.showBadge(v,w,u)},formatEducationHistory:function(z){var A=z.getElementsByTagName(NC.widget.ResumeWizard.StrEducationexperience);var y="<h3>Education Credentials</h3>";for(var x=0;x<A.getLength();x++){var u=A.item(x).getChildNodes();var v="";var w="";var D="";var C=true;for(var G=0;G<u.getLength();G++){var F=u.item(G);var E=null;if(F.getFirstChild()!=null){var B=F.getFirstChild().getNodeValue();switch(F.getNodeName()){case NC.widget.ResumeWizard.StrSchool:w=B;break;case NC.widget.ResumeWizard.StrDegreecode:v=(B.charAt(0).toUpperCase()+B.substr(1).toLowerCase());break;case NC.widget.ResumeWizard.StrDegreeDate:D=(B.charAt(0).toUpperCase()+B.substr(1).toLowerCase());break;case NC.widget.ResumeWizard.StrFlags:if(B==NC.widget.ResumeWizard.DeletedRow){C=false}break}}}if(C){y+="<p>";y+=w+",&nbsp;"+v+"("+D+")";y+="</p>"}}return y},formatWorkHistory:function(A){var x=A.getElementsByTagName(NC.widget.ResumeWizard.StrWorkexperience);var z="";z+="<h3>Work History</h3>";for(var y=0;y<x.getLength();y++){var v=x.item(y).getChildNodes();var D=true;var C="";var w="";var u="";for(var F=0;F<v.getLength();F++){var E=v.item(F);if(E.getFirstChild()!=null){var B=E.getFirstChild().getNodeValue();switch(E.getNodeName()){case NC.widget.ResumeWizard.StrStartdate:C=B;break;case NC.widget.ResumeWizard.StrEnddate:w=B;break;case NC.widget.ResumeWizard.StrCompanyandtitle:u=B;break;case NC.widget.ResumeWizard.StrFlags:if(B==NC.widget.ResumeWizard.DeletedRow){D=false}break}}}if(D){z+="<p>";z+=C+"&nbsp;-&nbsp;"+w+", "+u;z+="</p>"}}return z},formatScore:function(A){var C="";var w=0;var y=A.getElementsByTagName("category");for(ci=0;ci<y.getLength();ci++){var u=y.item(ci);var B=u.getElementsByTagName("categoryweight").item(0);var v=B.getFirstChild().getNodeValue();w+=parseInt(v)}if(y.getLength()>0){C+='<font color="#0b3d91">NimbleCat Score:</font>&nbsp;';C+=w+"<br>";for(ci=0;ci<y.getLength();ci++){if(ci>0){C+="<br>"}var u=y.item(ci);var x=u.getElementsByTagName("categoryname").item(0);var z=x.getFirstChild().getNodeValue();var B=u.getElementsByTagName("categoryweight").item(0);var v=B.getFirstChild().getNodeValue();C+=z+"&nbsp;&nbsp;"+v}}return C},setExtraPagesFunc:function(u){k=u},setValidationFunc:function(u){i=u},clearError:function(){var u=document.getElementById("NCError");u.style.display="none";u.innerHTML=""},showError:function(u){var v=document.getElementById("NCError");v.style.display="block";u+=NC.messages.MsgCallSupport;v.innerHTML=u},getResumeId:function(){return m},deletePreviousResumeInfo:function(){p=null;m=-1},getMd5id:function(){return NC.util.Dom.extractField(p,NC.widget.ResumeWizard.StrMd5id)},getFirstName:function(){return NC.util.Dom.extractEncodedField(p,NC.widget.ResumeWizard.StrFirstname)},getTopCategoryName:function(){return NC.util.Dom.extractField(p,NC.widget.ResumeWizard.StrTopCategoryName)},getTopCategoryScore:function(){return NC.util.Dom.extractField(p,NC.widget.ResumeWizard.StrTopCategoryScore)},getTopCategoryId:function(){return NC.util.Dom.extractField(p,NC.widget.ResumeWizard.StrTopCategoryId)},getManagerCategory:function(){return NC.util.Dom.extractField(p,NC.widget.ResumeWizard.StrManagerCategory)},getManagerScore:function(){return NC.util.Dom.extractField(p,NC.widget.ResumeWizard.StrManagerScore)},getNCScore:function(){return NC.util.Dom.extractField(p,NC.widget.ResumeWizard.StrNCScore)},getNCScoreExplanation:function(){if(p!=null){return NC.util.Dom.extractField(p,NC.widget.ResumeWizard.StrExplanation)}else{return""}},getZipCode:function(){return NC.util.Dom.extractEncodedField(p,NC.widget.ResumeWizard.StrZipcode)},getEmploymentCount:function(){return NC.util.Dom.extractField(p,NC.widget.ResumeWizard.StrEmploymentCount)},getAverageEmpDescLength:function(){return NC.util.Dom.extractField(p,NC.widget.ResumeWizard.StrAverageEmpDescLength)},getEducationCount:function(){return NC.util.Dom.extractField(p,NC.widget.ResumeWizard.StrEducationCount)},getResumeLength:function(){return NC.util.Dom.extractField(p,NC.widget.ResumeWizard.StrResumeLength)},getResumeTextLength:function(){return NC.util.Dom.extractField(p,NC.widget.ResumeWizard.StrResumeTextLength)},getTotalJobAlerts:function(){return NC.util.Dom.extractField(p,NC.widget.ResumeWizard.StrTotalJobAlerts)},doFileUploadCheckInvite:function(){var y=document.getElementById("InviteCode");var x=NC.util.Dom.getValue(y);var w={success:function(C){if(C.responseText.substr(0,1)=="1"){var B={success:function(D){},failure:function(D){},scope:this};var A="./incrementInviteCode.php?InviteCode="+x;var z=new NC.util.AjaxConnection("GET",A,"");z.executeMethod(B);this.getUploadDialog().doFileUpload()}else{NC.widget.ResumeUploadManager.showError(j)}},failure:function(z){},scope:this};var v="./checkInviteCode.php?InviteCode="+x;var u=new NC.util.AjaxConnection("GET",v,"");u.executeMethod(w)}}}()})();if(typeof NC=="undefined"){alert("element.js requires the NC JavaScript framework")}NC.widget.WizardPage=function(c,a){var b=NC.widget.WizardPage.superclass.constructor;this.step=c;b.call(this,-1);this.pageLabel=a};NC.lang.extend(NC.widget.WizardPage,NC.widget.Element,{render:function(a){alert("overide WizardPage.render()")},save:function(){alert("override WizardPage.save()")},validate:function(a){return true},setValidateFn:function(a){this.validate=a},serialize:function(){alert("override WizardPage.serialize(()")},startFieldContainer:function(){return'<div class="fieldcontainer">'},endFieldContainer:function(){return'</div><div style="clear:both"></div>'},startFieldLabel:function(){return'<div class="fieldlabel">'},startLongFieldLabel:function(){return'<div class="longfieldlabel">'},endFieldLabel:function(){return"</div>"},startFieldSequence:function(){return'<div class="field">'},endFieldSequence:function(){return"</div>"},createTextField:function(b){var a="";a+=b;return a},requiredFlag:function(){return'<span class="requiredflag">*</span>'},createButton:function(b,d,a){var c='<input onclick="'+d+'" type="image" border="0" name="'+b+'" id="'+b+'" src="'+a+'" width="12" height="12">';return c},createFieldHeader:function(c,a){var b="";a=(typeof a=="undefined")?15:a;b+='<input type="text" class="fieldheader" " size="'+a+'" value="'+c+'">';return b},createTextEditField:function(c,b,f,d,h,g){var e="";if(c.length>0){e+=c}d=(typeof d=="undefined")?15:d;h=(typeof h=="undefined")?30:h;var a="inputfield";if(g==1){a="inputfieldreq"}e+='<input type="text" class="'+a+'" name="'+b+'" id="'+b+'" size="'+d+'" maxlength="'+h+'" value="'+f+'">';if(g==1){e+=this.requiredFlag()}return e},createCheckbox:function(a,b,h,i,c,e){var d="";if(a.length>0){d+=a}var f="checkbox";if(c){f="radio"}var g="inputfield";if(e==1){g="inputfieldreq"}d+='<input class="'+g+'" type="'+f+'" name="'+b+'" id="'+b+'" value="'+h+'" ';if(i){d+="checked"}d+=">";if(e==1){d+=this.requiredFlag()}return d},createRadioButtons:function(b,g,a,e,f){var d="";for(var c=0;c<a.length;c++){d+=this.createCheckbox(g[c],b,a[c],e[c],true)}if(f==1){d+=this.requiredFlag()}return d},createSelectBox:function(a,b,e,j,c,g){var f="";if(a.length>0){f+=a}var h="inputfield";if(g==1){h="inputfieldreq"}f+='<select class="'+h+'" name="'+b+'" id="'+b+'" >';for(var d=0;d<j.length;d++){f+='<option value="'+j[d]+'"';if(c[d]){f+=" selected "}f+=">"+e[d]+"</option>"}f+="</select>";if(g==1){f+=this.requiredFlag()}return f}});NC.widget.Wizard=function(i,e,b,f,h,j,c,d,g){var a=NC.widget.Wizard.superclass.constructor;a.call(this,-1);this.title=i;this.targetDivId=e;this.pages=b;this.currentPage=f;this.onFinish=h;this.onCancel=j;this.onUpdate=c;this.updateUrl=d;this.enableAllPageFinish=g};NC.lang.extend(NC.widget.Wizard,NC.widget.Element,{NCWizardBannerId:"NCWizardBanner",NCWizardPageId:"NCWizardPage",NCWizardNavId:"NCWizardNav",NCWizardPreviousId:"NCWizardPrevious",NCWizardNextId:"NCWizardNext",NCWizardFinishId:"NCWizardFinish",NCWizardCancelId:"NCWizardCancel",NCWizardErrorId:"NCWizardError",compose:function(){var b="";b+='<div class="ncwizardcontainer">';b+='<div class="ncwizardbanner" id="'+this.NCWizardBannerId+'"> ';b+=this.title;b+="</div> ";b+='<div class="ncwizarderror" id="'+this.NCWizardErrorId+'"> ';b+="";b+="</div> ";b+='<div class="ncwizardpagecontainer">';b+='<div class="ncwizardpagespacer">';b+="</div> ";b+='<div class="ncwizardpage" id="'+this.NCWizardPageId+'"> ';b+="</div> ";b+="</div> ";b+='<div style="clear:both"></div>';b+='<div class="ncwizardnav" id = "'+this.NCWizardNavId+'"> ';b+='<span class="requiredflaglabel">*</span>Fields marked like this are required.<br><br>';b+='<input type="button" border="0"  title="" class="ncbutton" name="previousButton" id="'+this.NCWizardPreviousId+'" value="Previous"> ';b+='<input type="button" border="0"  title="" class="ncbutton" name="nextButton" id="'+this.NCWizardNextId+'" value="Next"> ';b+='<input type="button" border="0"  title="" class="ncbutton" name="finishButton" id="'+this.NCWizardFinishId+'" value="Finish"> ';b+='<input type="button" border="0"  title="" class="ncbutton" name="finishButton" id="'+this.NCWizardCancelId+'" value="Cancel"> ';b+="</div> ";b+="</div>";var a=document.getElementById(this.targetDivId);a.innerHTML=b},clearError:function(){var a=document.getElementById(this.NCWizardErrorId);a.style.display="none";a.innerHTML=""},showError:function(a){var b=document.getElementById(this.NCWizardErrorId);b.style.display="block";a+=NC.messages.MsgCallSupport;b.innerHTML=a},showPrevious:function(a){var c=NC.core.Event.getEventTarget(a);var b=c.wizard;if(b.currentPage>0){if(b.pages[b.currentPage].validate(b)){b.pages[b.currentPage].save();b.currentPage-=1;b.clearError();b.renderCurrentPage()}}},showNext:function(a){var c=NC.core.Event.getEventTarget(a);var b=c.wizard;if(b.currentPage<(b.pages.length-1)){if(b.pages[b.currentPage].validate(b)){b.pages[b.currentPage].save();b.currentPage+=1;b.clearError();b.renderCurrentPage()}}},doFinish:function(a){var c=NC.core.Event.getEventTarget(a);var b=c.wizard;if(b.onFinish!=null){if(b.pages[b.currentPage].validate(b)){if(b.currentPage>=0){b.pages[b.currentPage].save()}b.clearError();b.onFinish();NC.util.AjaxManager.displayNavigationBar()}}},doCancel:function(b){var d=NC.core.Event.getEventTarget(b);var c=d.wizard;var a=true;if(c.onCancel!=null){a=c.onCancel()}NC.util.AjaxManager.displayNavigationBar();if(a){c.clearError();if(typeof(showTabView)!="undefined"){showTabView()}else{NC.util.AjaxManager.showPreviousMainFrameContent()}}},renderCurrentPage:function(){this.finishButton.enable(this.enableAllPageFinish);if(this.pages&&this.pages[this.currentPage]){this.pages[this.currentPage].render(this.NCWizardPageId)}if(this.currentPage==0){this.previousButton.enable(false)}else{this.previousButton.enable(true)}if(this.currentPage==this.pages.length-1){this.nextButton.enable(false);if(this.enableAllPageFinish==false){this.finishButton.enable(true)}}else{this.nextButton.enable(true)}},addPageToBeginning:function(a){this.pages.unshift(a)},addPageToEnd:function(a){this.pages.push(a)},getPageByLabel:function(a){var b;for(var b=0;b<this.pages.length;b++){if(this.pages[b].pageLabel==a){return this.pages[b]}}},init:function(){this.previousButton=new NC.widget.Button(this.NCWizardPreviousId);this.previousButton.init();this.nextButton=new NC.widget.Button(this.NCWizardNextId);this.nextButton.init();this.finishButton=new NC.widget.Button(this.NCWizardFinishId);this.finishButton.init();this.cancelButton=new NC.widget.Button(this.NCWizardCancelId);this.cancelButton.init();this.previousButton.addDomEvent(NC.core.EventType.Click,this.showPrevious,false);this.nextButton.addDomEvent(NC.core.EventType.Click,this.showNext,false);this.finishButton.addDomEvent(NC.core.EventType.Click,this.doFinish,false);this.cancelButton.addDomEvent(NC.core.EventType.Click,this.doCancel,false);var d=document.getElementById(this.NCWizardPreviousId);var a=document.getElementById(this.NCWizardNextId);var c=document.getElementById(this.NCWizardFinishId);var b=document.getElementById(this.NCWizardCancelId);d.wizard=this;a.wizard=this;c.wizard=this;b.wizard=this;this.renderCurrentPage();NC.util.AjaxManager.hideNavigationBar()},submit:function(){}});if(typeof NC=="undefined"){alert("modaldialog.js requires the NC JavaScript framework")}if(typeof NC.util=="undefined"){alert("modaldialog.js requires the NC JavaScript framework")}NC.util.AjaxRefresh=function(g,c,a,f){this.currentRefresh=new Date();this.currentConversationId=NC.widget.ConversationManager.getVisibleConversationId();if(this.currentConversationId>0){var b=-1;if(f==false){b=this.currentRefresh.getTime()-NC.util.RefreshManager.getLastConversationRefresh().getTime()}c+="?convid="+this.currentConversationId+"&cperiod="+b}var e=this.currentRefresh.getTime()-NC.util.RefreshManager.getLastInviteRefresh().getTime();if(c.indexOf("?")==-1){c+="?"}else{c+="&"}c+="iperiod="+e;var d=NC.util.AjaxRefresh.superclass.constructor;d.call(this,g,c,a);this.setUpdateTransactionsFlag(false)};NC.lang.extend(NC.util.AjaxRefresh,NC.util.AjaxConnection,{doRefresh:function(a){var e=NC.util.Connect.isOnline();var b=document.getElementById("ShowOnline");var c=document.getElementById("RefreshUrl");if(e||NC.util.RefreshManager.isSearchPending()){skip=NC.util.RefreshManager.getRefreshSkip();if(e){if(!NC.util.RefreshManager.isSearchPending()){skip=5}}if(NC.util.RefreshManager.incrementRefreshCount()%skip==0){var d={success:this.onSuccess,failure:this.onFailure,scope:this};this.addUnprecedentedParameter();this.executeMethod(d);if(this.currentConversationId>0){NC.util.RefreshManager.setLastConversationRefresh(this.currentRefresh)}NC.util.RefreshManager.setLastInviteRefresh(this.currentRefresh)}else{}}else{if(c!=null){c.innerHTML="no refresh"}}},showSearchResultsCallback:function(b,a){NC.util.AjaxManager.displaySearchResults(a.url,"MainFrame",true)},ignoreSearchResultsCallback:function(b,a){},onSuccess:function(v){var o=v.responseXML;var r="";var j="";try{var p=o.getElementsByTagName("valid").item(0).firstChild.data;var f=o.getElementsByTagName("refresh").item(0).firstChild.data;var j=o.getElementsByTagName("refreshurl").item(0).firstChild.data;var r=o.getElementsByTagName("refreshdiv").item(0).firstChild.data}catch(x){}updateNodeList=o.getElementsByTagName("update").item(0).childNodes;for(t=0;t<updateNodeList.length;t++){var A=updateNodeList.item(t).nodeName;if(updateNodeList.item(t).firstChild!=null){var c=updateNodeList.item(t).firstChild.data;div=document.getElementById(A);if(div!=null){div.innerHTML=c}else{}}}if(f==1){if(j.length>1){NC.util.RefreshManager.resetRefreshSkip();j=j.replace(/&amp;/g,"&");if(r.length>1){NC.util.AjaxManager.displaySearchResults(j,r,false)}else{if(NC.widget.MessageManager.isDialogShown()){NC.widget.MessageManager.hideDialog();NC.util.AjaxManager.displaySearchResults(j,"MainFrame",true)}else{var g={ok:this.showSearchResultsCallback,cancel:this.ignoreSearchResultsCallback,url:j};NC.widget.MessageManager.showDialog("./searchResultsReady.php",NC.util.AjaxDialogDisplay.ProgressDialog,g,true,300)}}}}if(p==1){varNameList=o.getElementsByTagName("var").item(0).childNodes;for(t=0;t<varNameList.length;t++){varName=varNameList.item(t).nodeName;elements=document.getElementsByName(varName);if(elements.length>0){varValue=varNameList.item(t).firstChild.data;if(elements[0].type=="hidden"||elements[0].type=="text"){elements[0].value=varValue;NC.util.AjaxManager.setDivModifiedFlag(true)}}}}else{}var a=o.getElementsByTagName("conversations");var l="";if(a!=null&&a.length>0){var y=a.item(0);NC.widget.ConversationManager.updateConversation(y);l="New message"}var z=o.getElementsByTagName("newcontentlist");if(z!=null&&z.length>0){var d=z.item(0).childNodes;var t;for(t=0;t<d.length;t++){var u=d.item(t).childNodes;var q="";var h=0;var b="";var w="";var k;for(k=0;k<u.length;k++){var C=u.item(k).nodeName;var s=u.item(k).firstChild.data;if(C=="contentname"){q=s}else{if(C=="contentcount"){h=s}else{if(C=="menuname"){b=s}else{if(C=="menucontent"){w=s}}}}}h=parseInt(h);if(h>0){if(l.length>0){l+="<br>"}l+=h+" new "+q;if(h>1){l+="s"}l+="."}if(b.length>0&&w.length>0){if(NC.widget.MenuManager.isMenuVisible(b)==false){var n=document.getElementById(b);if(n!=null){n.innerHTML=w}}}}var m=document.getElementById("NCMessage");if(m!=null&&l.length>0){m.innerHTML="<h1>Alert</h1><p>"+l+"</p>";var B=new NC.widget.AnimatedMessage("NCMessage",15,70,3000);B.show()}}},onFailure:function(a){}});(function(){NC.util.RefreshManager=function(){var c=2000;var h=1000;var i="./refresh2008.php";var a=0;var d=10;var f=false;var g=null;var e=null;var b=function b(j){};return{startUpdates:function(){d=h;g=new Date();e=new Date();setInterval(this.callServer,c)},callServer:function(){var j=new NC.util.AjaxRefresh("GET",i,null,!NC.widget.ConversationManager.isConversationContentPopulated());j.doRefresh()},getLastConversationRefresh:function(){if(g==null){lastConversationREfresh=new Date()}return g},setLastConversationRefresh:function(j){g=j},getLastInviteRefresh:function(){if(e==null){e=new Date()}return e},setLastInviteRefresh:function(j){e=j},getRefreshPeriod:function(){return c},getRefreshCount:function(){return a},incrementRefreshCount:function(){return ++a},getRefreshSkip:function(){return d},isSearchPending:function(){return f},setSearchPending:function(j){d=1;f=true},resetRefreshSkip:function(){d=h;f=false}}}()})();if(typeof NC=="undefined"){alert("generatedlist.js requires the NC JavaScript framework")}NC.widget.GeneratedList=function(a){this.targetFormName=a};NC.widget.GeneratedList.prototype={initialize:function(a){this.targetFormName=a},listCheckedBoxes:function(){var d="";var c=document.forms[this.targetFormName];for(var b=0;b<c.elements.length;b++){var a=c.elements[b];switch(a.type.toLowerCase()){case"checkbox":if(a.checked==true){if(d.length>0){d+=","}d+=a.name}break;default:break}}return d},countCheckedBoxes:function(){var d=0;var c=document.forms[this.targetFormName];for(var b=0;b<c.elements.length;b++){var a=c.elements[b];switch(a.type.toLowerCase()){case"checkbox":if(a.checked==true){d+=1}break;default:break}}return d},setAllCheckboxes:function(d){var c=document.forms[this.targetFormName];for(var b=0;b<c.elements.length;b++){var a=c.elements[b];switch(a.type.toLowerCase()){case"checkbox":a.checked=d;break;default:break}}},submitFilter:function(j,a,h,e){var b="./sc.php?"+a;var c=c=document.getElementById(j);var d=NC.util.Dom.descendants(c);var g;for(g=0;g<d.length;g++){var f=d[g];var l="";switch(f.tagName.toLowerCase()){case"select":l=f.options[f.selectedIndex].value;break;case"input":l=f.value;break;case"default":l=""}if(l.length>0){b+="&"+f.name+"="+l}}b+="&ref="+new Date().getTime();var k="";var m=new NC.util.AjaxUpdate("GET",b,h,h,null);m.doUpdate(true);if(addtoHistory){NC.util.AjaxManager.addMainFrameHistory(b)}}};(function(){NC.widget.ContentManager=function(){var a=null;return{showUploadPopup:function(c,b){a=new NC.widget.UploadDialog("contentUpdate.php","TopicId="+b,NC.util.AjaxDialogDisplay.DialogWrapper,"ContentUploadForm","UploadIFrame","","",function(){NC.util.AjaxManager.showCurrentMainFrameContent()},function(){var g=document.getElementById("ContentTitle");var e=document.getElementById("ContentFileName");var d=document.getElementById("ContentLink");var j=document.getElementById("ContentLabel");var f=document.getElementById("ContentTarget");var h="";if(g.value.length<=0){h="Please enter a title."}if(e.value.length<=0&&d.value.length<=0){if(h.length>0){h+="<br>"}h+="Please select a file or enter a link."}if(e.value.length>0&&d.value.length>0){if(h.length>0){h+="<br>"}h+="You may choose either a file or a link, but not both."}if(h.length<=0){return true}else{if(this.errorDivName.length>0){var i=document.getElementById(this.errorDivName);i.innerHTML=h}else{alert(h)}return false}},"contentErrorDiv",true);a.show(c.clientX,c.clientY,300)},getUploadDialog:function(){return a}}}()})();if(typeof NC=="undefined"){alert("xfermodaldialog.js requires the NC JavaScript framework")}if(typeof NC.widget=="undefined"){alert("xfermodaldialog.js requires the NC JavaScript framework")}NC.widget.XferModalDialog=function(b,f,e,h,d,a,g){var c=NC.widget.XferModalDialog.superclass.constructor;c.call(this,b,f,e,h,true);this.xferFormName=d;this.updateFunc=a;this.updateTarget=g};NC.lang.extend(NC.widget.XferModalDialog,NC.widget.ModalDialog,{post:function(){var f=document.getElementById(this.target);var e=NC.util.Dom.descendants(f);for(var d=0;d<e.length;++d){var h=e[d];if(h.name==this.targetFormName){var g=document.forms[this.xferFormName];var a=h.elements;for(var c=0;c<a.length;c++){if(a[c]!="undefined"&&a[c].name!="undefined"&&a[c].name.length>0){for(var b=0;b<g.elements.length;b++){var f=g.elements[b];if(f!="undefined"&&f.name!="undefined"&&f.name==a[c].name){f.value=NC.util.Dom.getValue(a[c])}}}}this.updateFunc(this.xferFormName,this.updateTarget)}}this.hide()}});(function(){NC.widget.JobMatchManager=function(){var M=NC.util.AjaxDialogDisplay.DialogWrapper;var P="JobInformationError";var a="JobInfoDiv";var h="JobLocationDiv";var N="JobCategoryDiv";var f="JobLocationError";var af="JobCategoryError";var O="ExperienceDiv";var i="ExperienceError";var c="EducationDiv";var Q="EducationError";var Z="DistanceDiv";var V="DistanceError";var t="MatchDiv";var n="MatchError";var x="JobAction";var m="JobActionError";var p="ShowActiveStateDiv";var ag="KeywordSearchDiv";var b="JobPost";var R="JobId";var ae="JobTitle";var L="JobReqNumber";var X="ResponseEmail";var D="PreviousResponseEmail";var J="SpecificSchools";var ah="PrimaryCategory";var ad="PrimaryCategoryScore";var ab="SecondaryCategory";var E="SecondaryCategoryScore";var T="Location";var v="ZipCode";var w="CityState";var A="MinExperience";var C="MaxExperience";var q="SpecificCompanies";var s="RequiredDegree";var F="SchoolRank";var J="SpecificSchools";var Y="Distance";var z="RestrictToState";var r="AcceptScore";var ac="UseMatch";var S="Broadcast";var k="EmailSelected";var e="Active";var j="SearchKeyWords";var g="SearchType";var U="SearchIndustry";var aa="SearchDaysBack";var W=null;var y=null;var o=null;var l=null;var u=null;var d=null;var B=null;var K=null;var H=null;var I=null;var G=null;return{showKeywordSearchPopup:function(aj,ak){var ai="SearchKeyWords="+NC.util.Dom.getElementValue(ak,j);ai+="&SearchType="+NC.util.Dom.getElementValue(ak,g);ai+="&SearchIndustry="+NC.util.Dom.getElementValue(ak,U);ai+="&SearchDaysBack="+NC.util.Dom.getElementValue(ak,aa);ai=encodeURI(ai);this.dialog=new NC.widget.XferModalDialog("enterKeywordSearch.php?",ai,M,"JsSearchForm",ak,function(am,al){url="showSearchInfo.php?";url+="SearchKeyWords="+NC.util.Dom.getElementValue(am,j);url+="&SearchType="+NC.util.Dom.getElementValue(am,g);url+="&SearchIndustry="+NC.util.Dom.getElementValue(am,U);url+="&SearchDaysBack="+NC.util.Dom.getElementValue(am,aa);url=encodeURI(url);NC.util.AjaxManager._xmlHttpGet(url,al,false)},"KeywordSearchDiv");W=this.dialog;this.dialog.show(aj.clientX,aj.clientY-100,425)},getKeywordDialog:function(){return W},showWorkStatusPopup:function(aj,ak){var ai="WorkStatus="+NC.util.Dom.getElementValue(ak,"WorkStatus");ai+="&SecurityClearanceCountry="+NC.util.Dom.getElementValue(ak,"SecurityClearanceCountry");ai+="&SecurityClearanceType="+NC.util.Dom.getElementValue(ak,"SecurityClearanceType");ai+="&SecurityClearanceStatus="+NC.util.Dom.getElementValue(ak,"SecurityClearanceStatus");ai=encodeURI(ai);this.dialog=new NC.widget.XferModalDialog("selectWorkStatus.php?",ai,M,"JsWorkStatusForm",ak,function(am,al){url="showWorkStatus.php?";url+="&WorkStatus="+NC.util.Dom.getElementValue(ak,"WorkStatus");url+="&SecurityClearanceCountry="+NC.util.Dom.getElementValue(ak,"SecurityClearanceCountry");url+="&SecurityClearanceType="+NC.util.Dom.getElementValue(ak,"SecurityClearanceType");url+="&SecurityClearanceLevel="+NC.util.Dom.getElementValue(ak,"SecurityClearanceLevel");url+="&SecurityClearanceStatus="+NC.util.Dom.getElementValue(ak,"SecurityClearanceStatus");url=encodeURI(url);NC.util.AjaxManager._xmlHttpGet(url,al,false)},"WorkStatusDiv");y=this.dialog;this.dialog.show(aj.clientX,aj.clientY,300)},getWorkstatusDialog:function(){return y},showTravelPopup:function(aj,ak){var ai="WillRelocate="+NC.util.Dom.getElementValue(ak,"WillRelocate");ai+="&TravelPercent="+NC.util.Dom.getElementValue(ak,"TravelPercent");ai=encodeURI(ai);this.dialog=new NC.widget.XferModalDialog("selectRelocation.php",ai,M,"JsRelocationForm",ak,function(am,al){url="showRelocation.php?";url+="&WillRelocate="+NC.util.Dom.getElementValue(ak,"WillRelocate");url+="&TravelPercent="+NC.util.Dom.getElementValue(ak,"TravelPercent");url=encodeURI(url);NC.util.AjaxManager._xmlHttpGet(url,al,false)},"RelocationDiv");o=this.dialog;this.dialog.show(aj.clientX,aj.clientY,250)},getTravelDialog:function(){return o},showJobInfoPopup:function(aj,ak){var ai="JobTitle="+NC.util.Dom.getElementValue(ak,ae);ai+="&JobReqNumber="+NC.util.Dom.getElementValue(ak,L);ai+="&ResponseEmail="+NC.util.Dom.getElementValue(ak,X);ai=encodeURI(ai);this.dialog=new NC.widget.XferModalDialog("enterJobInfo.php",ai,M,"JsJobInfoForm",ak,function(ao,an){var aq=NC.util.Dom.getElementValue(ak,ae);var ap=NC.util.Dom.getElementValue(ak,L);var am=NC.util.Dom.getElementValue(ak,X);var al="Job Title:&nbsp;"+aq+"<br>";al+="Requisition #:&nbsp;"+ap+"<br>";al+="Send resumes to:&nbsp;"+am;copyToDiv(a,al)},a);l=this.dialog;this.dialog.show(aj.clientX,aj.clientY,300)},getJobinfoDialog:function(){return l},showLocationPopup:function(aj,ak){var ai="Location="+NC.util.Dom.getElementValue(ak,T);ai+="&ZipCode="+NC.util.Dom.getElementValue(ak,v);ai+="&CityState="+NC.util.Dom.getElementValue(ak,w);ai=encodeURI(ai);this.dialog=new NC.widget.XferModalDialog("selectLocation.php",ai,M,"JsLocationForm",ak,function(am,al){var an=NC.util.Dom.getElementValue(ak,v);url="./zipinfo.php?ZipCode="+an;url=encodeURI(url);NC.util.AjaxManager._xmlHttpGet(url,al,false)},h);locationDialog=this.dialog;this.dialog.show(aj.clientX,aj.clientY,230)},getLocationDialog:function(){return locationDialog},showCategoryPopup:function(aj,ak){var ai="PrimaryCategory="+NC.util.Dom.getElementValue(ak,ah);ai+="&PrimaryCategoryScore="+NC.util.Dom.getElementValue(ak,ad);ai+="&SecondaryCategory="+NC.util.Dom.getElementValue(ak,ab);ai+="&SecondaryCategoryScore="+NC.util.Dom.getElementValue(ak,E);ai=encodeURI(ai);this.dialog=new NC.widget.XferModalDialog("selectCategory.php",ai,M,"JsCategoryForm",ak,function(ao,an){var ap=NC.util.Dom.getElementValue(ak,ah);var aq=NC.util.Dom.getElementValue(ak,ad);var al=NC.util.Dom.getElementValue(ak,ab);var am=NC.util.Dom.getElementValue(ak,E);url="./categoryinfo.php?PrimaryCategoryId="+ap;url+="&SecondaryCategoryId="+al;url+="&PrimaryCategoryScore="+aq;url+="&SecondaryCategoryScore="+am;NC.util.AjaxManager._xmlHttpGet(url,an,false)},N);d=this.dialog;this.dialog.show(aj.clientX,aj.clientY,450)},getCategoryDialog:function(){return d},showExperiencePopup:function(aj,ak){var ai="MinExperience="+NC.util.Dom.getElementValue(ak,A);ai+="&MaxExperience="+NC.util.Dom.getElementValue(ak,C);ai+="&SpecificCompanies="+NC.util.Dom.getElementValue(ak,q);ai=encodeURI(ai);this.dialog=new NC.widget.XferModalDialog("selectExperience.php",ai,M,"JsExperienceForm",ak,function(am,al){var ap=NC.util.Dom.getElementValue(ak,A);var ao=NC.util.Dom.getElementValue(ak,C);var an=NC.util.Dom.getElementValue(ak,q);expInfo="";if(ap>0&&ao>0){expInfo+=ap+" - "+ao+" years.<br>"}else{if(ap>0){expInfo+="At least "+ap+" years.<br>"}else{if(ao>0){expInfo+="Less than "+ao+" years.<br>"}}}if(an.length>0){expInfo+="Experience at: "+an}if(expInfo.length<=0){expInfo="No specific requirement."}copyToDiv(O,expInfo)},O);B=this.dialog;this.dialog.show(aj.clientX,aj.clientY,400)},getExperienceDialog:function(){return B},showEducationPopup:function(aj,ak){var ai="RequiredDegree="+NC.util.Dom.getElementValue(ak,s);ai+="&SchoolRank="+NC.util.Dom.getElementValue(ak,F);ai+="&SpecificSchools="+NC.util.Dom.getElementValue(ak,J);ai=encodeURI(ai);this.dialog=new NC.widget.XferModalDialog("selectEducation.php",ai,M,"JsEducationForm",ak,function(ap,an){var am=new Array;am[0]="No";am[1]="Associates";am[2]="Bachelors";am[3]="Masters";am[4]="Doctoral";var al=new Array;al[0]="No rank";al[1]="0.5%";al[2]="1%";al[3]="2%";al[4]="5%";var ar=NC.util.Dom.getElementValue(ak,s);var ao=NC.util.Dom.getElementValue(ak,F);var aq=NC.util.Dom.getElementValue(ak,J);nDegreeValue=Number(ar);if(nDegreeValue>0){educationInfo=am[nDegreeValue]+" degree required<br>"}else{educationInfo="No degree required<br>"}nRank=Number(ao);if(nRank==0){}else{educationInfo+="School in top "+al[nRank]+".<br>"}if(aq.length>0){educationInfo+="Required: "+aq}copyToDiv(c,educationInfo)},c);K=this.dialog;this.dialog.show(aj.clientX,aj.clientY,300)},getEducationDialog:function(){return K},showDistancePopup:function(aj,ak){var ai="Distance="+NC.util.Dom.getElementValue(ak,Y);ai+="&RestrictToState="+NC.util.Dom.getElementValue(ak,z);ai=encodeURI(ai);this.dialog=new NC.widget.XferModalDialog("selectDistance.php",ai,M,"JsDistanceForm",ak,function(ao,an){var al=new Array;al[0]="Don't care";al[1]="5 miles";al[2]="10 miles";al[3]="15 miles";al[4]="20 miles";al[5]="25 miles";al[6]="50 miles";al[7]="100 miles";var ap=NC.util.Dom.getElementValue(ak,Y);var am=NC.util.Dom.getElementValue(ak,z);distanceInfo="";nDistance=Number(ap);if(nDistance>0){distanceInfo="Distance from job less than "+al[nDistance]+"."}else{distanceInfo="Distance from job not specified."}if(am>0){distanceInfo+="<br>In-state candidates only."}copyToDiv(Z,distanceInfo)},Z);H=this.dialog;this.dialog.show(aj.clientX,aj.clientY,300)},getDistanceDialog:function(){return H},showEducationPopup:function(aj,ak){var ai="RequiredDegree="+NC.util.Dom.getElementValue(ak,s);ai+="&SchoolRank="+NC.util.Dom.getElementValue(ak,F);ai+="&SpecificSchools="+NC.util.Dom.getElementValue(ak,J);ai=encodeURI(ai);this.dialog=new NC.widget.XferModalDialog("selectEducation.php",ai,M,"JsEducationForm",ak,function(ap,an){var am=new Array;am[0]="No";am[1]="Associates";am[2]="Bachelors";am[3]="Masters";am[4]="Doctoral";var al=new Array;al[0]="No rank";al[1]="0.5%";al[2]="1%";al[3]="2%";al[4]="5%";var ar=NC.util.Dom.getElementValue(ak,s);var ao=NC.util.Dom.getElementValue(ak,F);var aq=NC.util.Dom.getElementValue(ak,J);nDegreeValue=Number(ar);if(nDegreeValue>0){educationInfo=am[nDegreeValue]+" degree required<br>"}else{educationInfo="No degree required<br>"}nRank=Number(ao);if(nRank==0){}else{educationInfo+="School in top "+al[nRank]+".<br>"}if(aq.length>0){educationInfo+="Required: "+aq}copyToDiv(c,educationInfo)},c);K=this.dialog;this.dialog.show(aj.clientX,aj.clientY,300)},getEducationDialog:function(){return K},showMatchPopup:function(ak,al){var aj="AcceptScore="+NC.util.Dom.getElementValue(al,r);var ai=NC.util.Dom.getElementValue(al,ac);if(ai!=1){ai=0}aj+="&UseMatch="+ai;aj=encodeURI(aj);this.dialog=new NC.widget.XferModalDialog("selectMatch.php",aj,M,"JsMatchForm",al,function(ap,ao){var aq=NC.util.Dom.getElementValue(al,r);var an=NC.util.Dom.getElementValue(al,ac);if(an!=1){an=0}var am="";if(aq==0){am="Don't use the NimbleCat score."}else{if(an==1){am="Job match score greater than "+aq}else{am="NimbleCat score greater than "+aq}}copyToDiv(t,am)},t);I=this.dialog;this.dialog.show(ak.clientX,ak.clientY,300)},getMatchDialog:function(){return I},showJobPostPopup:function(aj,ak){var ai="JobId="+NC.util.Dom.getElementValue(ak,R);ai=encodeURI(ai);this.dialog=new NC.widget.XferModalDialog("editJobPost.php",ai,M,"JsJobPostForm",ak,function(am,al){NC.util.AjaxManager._postRequest("JsJobPostForm","./updatejobpost.php",b)},b);G=this.dialog;this.dialog.show(aj.clientX,aj.clientY-300,550)},getJobPostDialog:function(){return G},onActivateJobSuccess:function(ai){showPreviousMainFrameContent()},onActivateJobFailure:function(ai){alert("Job deletion failed. Please contact NimbleCat Customer Support")},activateJob:function(ai,al){var ak="Activate="+al+"&JobId="+ai;var am="./do_activatejob_ajax.php?"+ak;var an={success:this.onActivateJobSuccess,failure:this.onActivateJobFailure,scope:this};var aj=new NC.util.AjaxConnection("GET",am,null);aj.executeMethod(an)}}}()})();if(typeof NC=="undefined"){alert("validatedmodaldialog.js requires the NC JavaScript framework")}if(typeof NC.widget=="undefined"){alert("validatedmodaldialog.js requires the NC JavaScript framework")}NC.widget.ValidatedModalDialog=function(f,j,c,i,g,d,b,k,e,h){var a=NC.widget.ValidatedModalDialog.superclass.constructor;a.call(this,f,j,c,i,h);this.updateFunc=g;this.updateUrl=d;this.updateTarget=b;this.validateFunc=k;this.errorDiv=e};NC.lang.extend(NC.widget.ValidatedModalDialog,NC.widget.ModalDialog,{post:function(){var b=document.getElementById(this.target);var e=NC.util.Dom.descendants(b);for(var a=0;a<e.length;++a){var d=e[a];if(d.name==this.targetFormName){if(this.validateFunc!=null&&this.validateFunc(d,this.errorDiv)){var c=NC.util.Dom.serializeForm(d);if(this.updateFunc!=null&&this.updateUrl!=null){this.updateFunc(this.updateUrl,c,this.updateTarget)}this.hide()}break}}}});(function(){NC.widget.CandidateManager=function(){var b=null;var a=null;var c=null;return{showForwardResumePopup:function(k,h,f){var j="ResumeId="+h;j+="&JobId="+f;j=encodeURI(j);this.dialog=new NC.widget.ValidatedModalDialog("forwardResumeForm.php",j,NC.util.AjaxDialogDisplay.DialogWrapper,"JsForwardResumeForm",function(n,p,m){var o={success:function(q){},failure:function(q){},scope:this};n+="?"+p;var l=new NC.util.AjaxConnection("GET",n,null);l.executeMethod(o)},"do_forwardResume.php","",function(p,q){var o=false;var l=p.elements;for(var n=0;n<l.length;n++){if(l[n].name=="ForwardEmail"){o=NC.util.Dom.checkEmail(NC.util.Dom.getValue(l[n]))}}if(!o){var m=document.getElementById(q);m.innerHTML="Please enter a valid email address";m.style.display="block"}return o},"ForwardResumeError",true);b=this.dialog;var e=375;var d=250;var i=(NC.util.Dom.getViewportWidth()-e)/2;var g=(NC.util.Dom.getViewportHeight()-d)/2;this.dialog.show(i,g,e)},getForwardResumeDialog:function(){return b},showEmailCandidatePopup:function(k,h,f){var j="ResumeId="+h;j+="&JobId="+f;j=encodeURI(j);this.dialog=new NC.widget.ValidatedModalDialog("emailCandidateForm.php",j,NC.util.AjaxDialogDisplay.DialogWrapper,"JsEmailCandidateForm",function(n,p,m){var o={success:function(q){},failure:function(q){},scope:this};n+="?"+p;var l=new NC.util.AjaxConnection("GET",n,null);l.executeMethod(o)},"do_emailCandidate.php","",function(p,q){var o=false;var l=p.elements;for(var n=0;n<l.length;n++){if(l[n].name=="CandidateEmail"){o=NC.util.Dom.checkEmail(NC.util.Dom.getValue(l[n]))}}if(!o){var m=document.getElementById(q);m.innerHTML="Please enter a valid email address";m.style.display="block"}return o},"EmailCandidateError",true);a=this.dialog;var e=550;var d=400;var i=(NC.util.Dom.getViewportWidth()-e)/2;var g=(NC.util.Dom.getViewportHeight()-d)/2;this.dialog.show(i,g,e)},getEmailCandidateDialog:function(){return a},showInvitePopup:function(m,p,l,j,i,f,n){var e=0;if(i!=null){e=i.countCheckedBoxes()}else{if(n>0){e=1}}if((i!=null&&e>0)||i==null){var g="";if(j!=null&&j.length>0){g+="JobId="+j}if(g.length>0){g+="&"}g+="Purpose="+f;g+="&NumCandidates="+e;if(i!=null){g+="&Candidates="+i.listCheckedBoxes()}else{if(n>0){g+="&Candidates="+n}}g=encodeURI(g);this.dialog=new NC.widget.ValidatedModalDialog(m+"?",g,NC.util.AjaxDialogDisplay.DialogWrapper,p,function(s,u,r){var t={success:function(v){},failure:function(v){},scope:this};s+="?"+u;var q=new NC.util.AjaxConnection("GET",s,null);q.executeMethod(t);var t={ok:function(){}};NC.widget.MessageManager.showDialog("invitationsent.php",NC.util.AjaxDialogDisplay.DialogWrapper,t,true,-1)},l,"",function(v,w){var u=true;var r="";var q=v.elements;for(var t=0;t<q.length;t++){if(q[t].name=="Message"){if(NC.util.Dom.getValue(q[t]).length<=0){u=false;if(r.length>0){r+="<br>"}r+="Please enter a message"}}if(q[t].name=="Subject"){if(NC.util.Dom.getValue(q[t]).length<=0){u=false;if(r.length>0){r+="<br>"}r+="Please enter a subject"}}}if(!u){var s=document.getElementById(w);s.innerHTML=r;s.style.display="block"}return u},"InviteError",true);c=this.dialog;var k=400;var o=250;var h=(NC.util.Dom.getViewportWidth()-k)/2;var d=(NC.util.Dom.getViewportHeight()-o)/2;this.dialog.show(h,d,k)}else{alert("Please select at least one candidate to invite.")}},excludeCheckedCandidates:function(){var e="do_excludeCandidates.php?";e+="&Candidates="+listHandler.listCheckedBoxes();var f={success:function(g){NC.util.AjaxManager.showCurrentMainFrameContent()},failure:function(g){},scope:this};var d=new NC.util.AjaxConnection("GET",e,null);d.executeMethod(f)},getInviteDialog:function(){return c}}}()})();if(typeof NC=="undefined"){alert("conversationdialog.js requires the NC JavaScript framework")}if(typeof NC.widget=="undefined"){alert("conversationdialog.js requires the NC JavaScript framework")}NC.widget.ConversationDialog=function(a,d,c,g,e,f){var b=NC.widget.ConversationDialog.superclass.constructor;b.call(this,a,d,c,g,true);this.setShowFn(e);this.setHideFn(f)};NC.widget.ConversationDialog.scrollToEnd=function(){var a=document.getElementById("ConversationContainer");if(a!=null){a.scrollTop=a.scrollHeight}};NC.lang.extend(NC.widget.ConversationDialog,NC.widget.ModalDialog,{post:function(){var b=document.getElementById(this.target);var g=NC.util.Dom.descendants(b);for(var a=0;a<g.length;++a){var d=g[a];if(d.name==this.targetFormName){var c=NC.util.Dom.serializeForm(d);var e=this.sourceUrl+"?"+c;var f=new NC.util.AjaxDialogDisplayExtended("GET",e,this.target,this.target,null,NC.widget.ConversationDialog.scrollToEnd);f.doUpdate(true);break}}}});(function(){NC.widget.ConversationManager=function(){var a=null;var b=null;return{showConversationPopup:function(d,k,g,i){var e="ContentType="+k;e+="&DetailId="+g;e+="&Title="+i;e+="&rand="+new Date().getTime();e=encodeURI(e);this.dialog=new NC.widget.ConversationDialog("showConversations.php",e,"NCConversation","ShowConversationsForm",this.onShow,this.onHide);a=this.dialog;var h=300;var j=325;var f=(NC.util.Dom.getViewportWidth()-h)/2;var c=(NC.util.Dom.getViewportHeight()-j)/2;this.dialog.show(f,c,h);NC.widget.ConversationDialog.scrollToEnd()},showConversationPopupById:function(h,i,j){var g="ConversationId="+i;g+="&Title="+j;g+="&rand="+new Date().getTime();g=encodeURI(g);this.dialog=new NC.widget.ConversationDialog("showConversations.php",g,"NCConversation","ShowConversationsForm",this.onShow,this.onHide);a=this.dialog;var d=300;var c=325;var f=(NC.util.Dom.getViewportWidth()-d)/2;var e=(NC.util.Dom.getViewportHeight()-c)/2;this.dialog.show(f,e,d);NC.widget.ConversationDialog.scrollToEnd()},showConversationPopupByIdXY:function(g,f,d,e){var c="ConversationId="+d;c+="&Title="+e;c+="&rand="+new Date().getTime();c=encodeURI(c);this.dialog=new NC.widget.ConversationDialog("showConversations.php",c,"NCConversation","ShowConversationsForm",this.onShow,this.onHide);a=this.dialog;this.dialog.show(g,f,300);NC.widget.ConversationDialog.scrollToEnd()},onShow:function(c){b=null},onHide:function(c){b=null},getConversationDialog:function(){return a},addToConversation:function(){a.post()},addNewConversation:function(c){if(c.keyCode==13){dialog.post()}},getVisibleConversationId:function(){var c=document.getElementById("ConversationId");if(c!=null){return NC.util.Dom.getValue(c)}else{return -1}},isConversationContentPopulated:function(){if(b==null){return false}else{return true}},updateConversation:function(n){var e=false;if(b==null){b={}}else{e=true}var f=n.childNodes;var h;var i=document.getElementById("ConversationContainer");for(h=0;h<f.length;h++){var m=f.item(h).childNodes;var s;for(s=0;s<m.length;s++){var l=m.item(s);if(l.nodeName=="conversationelement"){detailelements=l.childNodes;var p;var g="";var c="";var j="";var o="";for(p=0;p<detailelements.length;p++){var d=detailelements.item(p).nodeName;var q=detailelements.item(p).firstChild.data;if(d=="id"){g=q}else{if(d=="name"){c=q}else{if(d=="timestamp"){j=q}else{if(d=="content"){o=q}}}}}var k={author:c,timestamp:j,content:o};if(typeof b[g]=="undefined"){b[g]=k;if(e==true){var r="";r+='<div class="separator">';r+='<p class="name">';r+=c+":";r+="</p>";r+='<p class="date">';r+=j;r+="</p>";r+='<div class="clearer"></div>';r+="</div>";r+="<p>";r+=o;r+="</p>";i.innerHTML=i.innerHTML+r;NC.widget.ConversationDialog.scrollToEnd()}}}}}}}}()})();(function(){NC.widget.DashboardManager=function(){var d=null;var b=null;var f=null;var e=null;var c=null;var a=null;return{showJsSelectLocationPopup:function(l,k){var j="UserId="+k+"&rand="+new Date().getTime();j=encodeURI(j);this.dialog=new NC.widget.ValidatedModalDialog("js_selectLocation.php?",j,NC.util.AjaxDialogDisplay.DialogWrapper,"JsSelectLocation",function(n,o,m){n+="?"+o;NC.util.AjaxManager._xmlHttpGet(n,m,false);NC.widget.StateManager.setSelectLocationsFlag()},"js_updateSelectedLocations.php","JsPrefLocationDiv",function(m,n){return true},"JsSelectLocationError",true);d=this.dialog;var g=425;var i=(NC.util.Dom.getViewportWidth()-g)/2;var h=200;this.dialog.show(i,h,g)},getSelectLocationDialog:function(){return d},showJsSelectCategoryPopup:function(l,k){var j="UserId="+k+"&rand="+new Date().getTime();j=encodeURI(j);this.dialog=new NC.widget.ValidatedModalDialog("js_selectCategory.php?",j,NC.util.AjaxDialogDisplay.DialogWrapper,"JsSelectCategory",function(n,o,m){n+="?"+o;NC.util.AjaxManager._xmlHttpGet(n,m,false);NC.widget.StateManager.setSelectCategoriesFlag()},"js_updateSelectedCategories.php","JsPrefCategoryDiv",function(m,n){return true},"JsSelectCategoryError",true);b=this.dialog;var g=275;var i=(NC.util.Dom.getViewportWidth()-g)/2;var h=200;this.dialog.show(i,h,g)},getSelectCategoryDialog:function(){return b},showJsSelectProfilePopup:function(l,k){var j="UserId="+k+"&rand="+new Date().getTime();j=encodeURI(j);this.dialog=new NC.widget.ValidatedModalDialog("js_selectProfile.php?",j,NC.util.AjaxDialogDisplay.DialogWrapper,"JsSelectProfile",function(n,o,m){n+="?"+o;NC.util.AjaxManager._xmlHttpGet(n,m,false)},"js_updateProfile.php","JsPrefProfileDiv",function(m,n){return true},"JsSelectProfileError",true);f=this.dialog;var g=350;var i=(NC.util.Dom.getViewportWidth()-g)/2;var h=200;this.dialog.show(i,h,g)},getSelectProfileDialog:function(){return f},showJsSelectPreferencesPopup:function(l,k){var j="UserId="+k+"&rand="+new Date().getTime();j=encodeURI(j);this.dialog=new NC.widget.ValidatedModalDialog("js_selectPreferences.php?",j,NC.util.AjaxDialogDisplay.DialogWrapper,"JsSelectPreferences",function(n,o,m){n+="?"+o;NC.util.AjaxManager._xmlHttpGet(n,m,false)},"js_updatePreferences.php","JsPrefPreferencesDiv",function(m,n){return true},"JsSelectPreferencesError",true);e=this.dialog;var g=325;var i=(NC.util.Dom.getViewportWidth()-g)/2;var h=200;this.dialog.show(i,h,g)},getSelectPreferencesDialog:function(){return e},showHideWork:function(){var g=document.getElementById("ShowWorkExperience");var i=document.getElementById("experienceoptions");if(g!=null&&i!=null){var h=NC.util.Dom.getValue(g);if(h!=null){i.style.display="block"}else{i.style.display="none"}}},showHideEducation:function(){var g=document.getElementById("ShowEducation");var i=document.getElementById("educationoptions");if(g!=null&&i!=null){var h=NC.util.Dom.getValue(g);if(h!=null){i.style.display="block"}else{i.style.display="none"}}},showJsSelectPrivacyPopup:function(j,i,l){var h=0;var k={success:function(t){h=parseInt(t.responseText);proceed=true;var s="UserId="+i+"&ProfileFlag="+h+"&rand="+new Date().getTime();s=encodeURI(s);this.dialog=new NC.widget.ValidatedModalDialog("js_selectUserPrivacy.php?",s,"centercontent","JsSelectUserPrivacy",function(w,x,v){w+="?"+x;var u={success:function(y){NC.widget.StateManager.setUpdatedSecurityFlag();NC.util.AjaxManager.showCurrentMainFrameContent()},failure:function(y){},scope:this};var o=new NC.util.AjaxConnection("GET",w,"");o.executeMethod(u)},"setProfileFlag.php","JsPrefPrivacyDiv",function(o,u){return true},"JsSelectPreferencesError",false);c=this.dialog;var n=400;var m=300;var r=(NC.util.Dom.getViewportWidth()-n)/2;var q=(NC.util.Dom.getViewportHeight()-m)/2;this.dialog.show(r,q,400);function p(){NC.widget.DashboardManager.showHideEducation();NC.widget.DashboardManager.showHideWork()}window.setTimeout(p,200)},failure:function(m){h=0;proceed=false;alert("failed")},scope:this};var g=new NC.util.AjaxConnection("GET","getProfileFlag.php","");g.executeMethod(k)},getSelectPrivacyDialog:function(){return c},showJsUpdateLoginPopup:function(l,k){this.dialog=new NC.widget.ValidatedModalDialog("js_updateLogin.php?","","centercontent","JsUpdateLogin",function(p,q,o){p+="?"+q;var n={success:function(r){if(r.responseText.length==0){NC.util.AjaxManager.showCurrentMainFrameContent()}else{NC.messages.showError(r.responseText)}},failure:function(r){NC.messages.showError("There was a system error.")},scope:this};var m=new NC.util.AjaxConnection("GET",p,"");m.executeMethod(n)},"updateLoginInfo.php","",function(m,p){var r="";var o="";var q="";var n="";var u="";var s=m.elements;for(var t=0;t<s.length;t++){if(s[t].name=="Email"){q=NC.util.Dom.getValue(s[t])}else{if(s[t].name=="Password"){r=NC.util.Dom.getValue(s[t])}else{if(s[t].name=="Password1"){o=NC.util.Dom.getValue(s[t])}else{if(s[t].name=="ScreenName"){n=NC.util.Dom.getValue(s[t])}}}}}if(q.length==0){u="Please enter an email address"}if(r.length>=0&&o.length>=0&&r!=o){if(u.length>0){u+="<br>"}u+="The password and repeat password do not match"}if(n.length==0){if(u.length>0){u+="<br>"}u+="Please enter a screen name"}if(u.length>0){NC.messages.showError(u);return false}return true},"JsUpdateLoginError",false);a=this.dialog;var h=400;var g=300;var j=(NC.util.Dom.getViewportWidth()-h)/2;var i=(NC.util.Dom.getViewportHeight()-g)/2;this.dialog.show(j,i,400)},getUpdateLoginDialog:function(){return a},onUseMsa:function(){},onUseZip:function(){},selectMsaOption:function(){var h=document.getElementById("UseZip");h.checked=false;var g=document.getElementById("UseMsa");g.checked=true},selectZipOption:function(){var h=document.getElementById("UseZip");h.checked=true;var g=document.getElementById("UseMsa");g.checked=false}}}()})();(function(){NC.widget.UploadManager=function(){var c=1;var d=2;var b=c;var a=null;return{UploadResume:1,UploadContent:2,onContentUploadComplete:function(){if(b==d){if(NC.widget.ContentManager.getUploadDialog()!=null){NC.widget.ContentManager.getUploadDialog().onUploadComplete()}}else{if(NC.widget.ResumeUploadManager.getUploadDialog()!=null){if(a!=null){NC.widget.ResumeUploadManager.setExtraPagesFunc(a)}NC.widget.ResumeUploadManager.getUploadDialog().onUploadComplete()}}},setExtraPagesFunc:function(e){a=e},setUploadType:function(e){b=e},getUploadType:function(){return b}}}()})();(function(){NC.widget.InvitationManager=function(){var g=1;var e=2;var b=3;var d=4;var c=5;var a=6;var f=7;return{PurposeJobInvite:1,PurposeConversation:2,PurposeFaceBookConnect:3,PurposeLinkedInConnect:4,acceptInvite:function(l,j,i){var k="./do_processInvitationAcceptance.php?InviteId="+j;var m={success:function(t){if(i==this.PurposeConversation){var s=t.responseXML;var q=s.getElementsByTagName("conversationid").item(0).firstChild.data;var n=s.getElementsByTagName("conversationtitle").item(0).firstChild.data;NC.widget.ConversationManager.showConversationPopupByIdXY(50,50,q,n);var u="./sc.php?ct=19";var r=new NC.util.AjaxUpdate("GET",u,"MainFrame","MainFrame",null);r.doUpdate(true)}else{if(i==this.PurposeFaceBookConnect||i==this.PurposeLinkedInConnect){var p={ok:function(){NC.util.AjaxManager.showCurrentMainFrameContent()}};NC.widget.MessageManager.showDialog("invitationsent.php",NC.util.AjaxDialogDisplay.DialogWrapper,p,true,-1)}}},failure:function(n){},scope:this};var h=new NC.util.AjaxConnection("GET",k,"");h.executeMethod(m)},declineInvite:function(j,h){var i="./do_processInvitationResponse.php?InviteId="+h+"&Status="+d;var k=new NC.util.AjaxUpdate("GET",i,"MainFrame","MainFrame",null);k.doUpdate(true)},declareAsSpam:function(j,h){var i="./do_processInvitationResponse.php?InviteId="+h+"&Status="+c;var k=new NC.util.AjaxUpdate("GET",i,"MainFrame","MainFrame",null);k.doUpdate(true)},blockSender:function(j,h){var i="./do_processInvitationResponse.php?InviteId="+h+"&Status="+a;var k=new NC.util.AjaxUpdate("GET",i,"MainFrame","MainFrame",null);k.doUpdate(true)},withdrawInvite:function(j,h){var i="./do_processInvitationResponse.php?InviteId="+h+"&Status="+f;var k=new NC.util.AjaxUpdate("GET",i,"MainFrame","MainFrame",null);k.doUpdate(true)}}}()})();if(typeof NC=="undefined"){alert("tagdialog.js requires the NC JavaScript framework")}if(typeof NC.widget=="undefined"){alert("tagdialog.js requires the NC JavaScript framework")}NC.widget.TagDialog=function(a,d,c,e){var b=NC.widget.TagDialog.superclass.constructor;b.call(this,a,d,c,e,true)};NC.lang.extend(NC.widget.TagDialog,NC.widget.ModalDialog,{post:function(f){var b=document.getElementById(this.target);var h=NC.util.Dom.descendants(b);for(var a=0;a<h.length;++a){var d=h[a];if(d.name==this.targetFormName){var c=NC.util.Dom.serializeForm(d);c+="&Cmd="+f;var e=this.sourceUrl+"?"+c;var g=new NC.util.AjaxDialogDisplay("GET",e,this.target,this.target,null);g.doUpdate(true);break}}}});(function(){NC.widget.TagManager=function(){var a=null;return{AddTag:1,DeleteTag:2,SelectTag:3,showTagPopup:function(c,d,k,h,e){var f="DetailId="+d;f+="&ContentType="+k;f+="&ContentName="+h;if(e!=undefined&&e==true){f+="&RestrictToEntity=1"}f=encodeURI(f);this.dialog=new NC.widget.TagDialog("showTagForm.php",f,NC.util.AjaxDialogDisplay.DialogWrapper,"ShowTagForm");a=this.dialog;var i=350;var j=200;var g=(NC.util.Dom.getViewportWidth()-i)/2;var b=(NC.util.Dom.getViewportHeight()-j)/2;this.dialog.show(g,b,i)},getTagDialog:function(){return a}}}()})();if(typeof NC=="undefined"){alert("menu.js requires the NC JavaScript framework")}if(typeof NC.widget=="undefined"){alert("button.js requires the NC JavaScript framework")}NC.widget.IFrameShim=function(c,a){var b=NC.widget.IFrameShim.superclass.constructor;b.call(this,c);this.iframe=null;this.owner=a;this.id=c};NC.widget.IFrameShim.IFRAME_SRC="javascript:false;";NC.widget.IFrameShim.IFRAME_OFFSET=3;NC.lang.extend(NC.widget.IFrameShim,NC.widget.Element,{init:function(){NC.widget.IFrameShim.superclass.init.call(this)},_addToParent:function(a,b){if(a===document.body&&a.firstChild){a.insertBefore(b,a.firstChild)}else{a.appendChild(b)}},createIframe:function(){var b=this.iframe;var c=this.owner;if(!b){b=document.createElement("iframe");b.id=this.id;if(this.isSecure){b.src=NC.widget.IFrame.IFRAME_SRC}if(NC.env.ua.ie){b.style.filter="alpha(opacity=0)";b.frameBorder=0}else{b.style.opacity="0"}b.style.position="absolute";b.style.border="none";b.style.margin="0";b.style.padding="0";b.style.display="none";var a=document.body;this._addToParent(a,b);this.iframe=b}},setShimIframe:function(a){this.iframe=a},showIframe:function(){if(this.iframe){this.iframe.style.display="block"}},hideIframe:function(){if(this.iframe){this.iframe.style.display="none"}},syncIframe:function(){var b=this.iframe,d=this.owner,g=NC.widget.IFrameShim.IFRAME_OFFSET,c=(g*2),e;if(b){var f=NC.util.Region.getRegion(d);b.style.width=(f.right-f.left+c+"px");var a=f.bottom-f.top;if(a<3){a=500}b.style.height=(a+c+"px");e=NC.util.Dom.getAbsoluteXY(d);if(d.style.position=="absolute"){e[0]=-g;e[1]=-g}else{e[0]-=g;e[1]-=g}NC.util.Dom.setAbsoluteXY(b,e,true)}else{}},stackIframe:function(){if(this.iframe){var a=NC.util.Dom.getStyle(this.owner,"zIndex");if(!NC.lang.isUndefined(a)&&!isNaN(a)){NC.util.Dom.setStyle(this.iframe,"zIndex",(a-1))}}else{}},createAndConfig:function(){if(this.iframe==null){NC.util.Debug.writeToConsole("stackIframe: shim iframe is null")}this.createIframe();this.showIframe();this.syncIframe();this.stackIframe()},config:function(){this.showIframe();this.syncIframe();this.stackIframe()}});if(typeof NC=="undefined"){alert("modaldialog.js requires the NC JavaScript framework")}if(typeof NC.widget=="undefined"){alert("modaldialog.js requires the NC JavaScript framework")}NC.widget.MessageBox=function(b,f,e,h,d,a,g){var c=NC.widget.MessageBox.superclass.constructor;c.call(this,-1);this.sourceUrl=b;this.showAsPopup=d;this.handlers=a;this.persist=g;if(f.length>0){if(this.sourceUrl.lastIndexOf("?")==-1){this.sourceUrl+="?"+f}else{this.sourceUrl+="&"+f}}this.parameters=f;this.target=e;if(h){this.targetFormName=h}else{this.targetFormName="PopupForm"}};NC.widget.MessageBox.OverlayDivName="NCDialogOverlay";NC.widget.MessageBox.makeShimId=function(a){return a+"-iShim"};NC.widget.MessageBox.documentMouseUp=function(c){var e=NC.core.Event.getEventTarget(c);var b=NC.util.Event.getPageX(c);var a=NC.util.Event.getPageY(c);var f=document.getElementById(NC.widget.MessageManager.getMessageDialog().target);var d=NC.util.Region.getRegion(f);if(b>=d.left&&b<d.right&&a>=d.top&&a<d.bottom){}else{NC.widget.MessageManager.hideDialog()}};NC.widget.MessageBox.makeContentDivName=function(){return this.target+"_content"},NC.widget.MessageBox.closeDialog=function(){if(!this.persist){NC.widget.Element.removeDocumentDomEvent(NC.core.EventType.Mouseup,NC.widget.MessageBox.documentMouseUp,false)}var e=document.getElementById(this.target);var d=e.dialog;if(d.showAsPopup){e.innerHTML="";e.style.display="none";var e=document.getElementById(this.target);var b=NC.widget.MessageBox.makeShimId(this.target);var c=document.getElementById(b);var a=new NC.widget.IFrameShim(b,e);a.setShimIframe(c);a.hideIframe();if(this.handlers.ok){this.okButton.removeDomEvent(this.target,NC.core.EventType.Click,this.onOK,false)}if(this.handlers.cancel){this.cancelButton.removeDomEvent(this.target,NC.core.EventType.Click,this.onCancel,false)}e.dialog=null}};NC.lang.extend(NC.widget.MessageBox,NC.widget.Element,{NCMessageBoxOk:"NCMessageBoxOK",NCMessageBoxCancel:"NCMessageBoxCancel",show:function(j,d,b,o,c){responseText="No response";var i=document.getElementById(this.target);i.dialog=this;var q=document.createElement("div");q.id=NC.widget.MessageBox.makeContentDivName();var n=document.createElement("div");n.id=this.target+"_buttonbar";NC.util.Dom.setClassName(n,"messageButtonBar");var p="";if(this.handlers.ok){p+='<input type="button" border="0"  title="" class="throngbutton" name="okButton" id="'+this.NCMessageBoxOk+'" value="OK"> '}if(this.handlers.cancel){p+='<input type="button" border="0"  title="" class="throngbutton" name="cancelButton" id="'+this.NCMessageBoxCancel+'" value="Cancel"> '}n.innerHTML=p;i.innerHTML="";i.appendChild(q);i.appendChild(n);if(this.handlers.ok){this.okButton=new NC.widget.Button(this.NCMessageBoxOk);this.okButton.init();this.okButton.addDomEvent(NC.core.EventType.Click,this.onOK,false);buttonElement=document.getElementById(this.NCMessageBoxOk);buttonElement.dialog=this}if(this.handlers.cancel){this.cancelButton=new NC.widget.Button(this.NCMessageBoxCancel);this.cancelButton.init();this.cancelButton.addDomEvent(NC.core.EventType.Click,this.onCancel,false);buttonElement=document.getElementById(this.NCMessageBoxCancel);buttonElement.dialog=this}var h=this.sourceUrl.indexOf(NC.util.AjaxManager.getNcFuncFlag());if(h>-1){var k=this.sourceUrl.substring(h+NC.util.AjaxManager.getNcFuncFlag().length);if(k=="showcategorybrowser"){NC.widget.CategoryManager.showCategoryTree(this.target,q.id)}else{if(k=="shownetworkbrowser"){NC.widget.NetworkManager.showNetwork(this.target)}else{if(k=="showNetworkMergeDialog"){NC.widget.NetworkManager.showMergeDialogContent(this.target)}else{if(k=="showNetworkUnmergeDialog"){NC.widget.NetworkManager.showUnmergeDialogContent(this.target)}else{if(k=="showFacebookErrorDialog"){NC.util.Facebook.showFacebookErrorContent(this.target)}else{if(k=="showLinkedInPost"){NC.util.LinkedIn.showShareContent(this.target)}else{alert("unknown function: "+k)}}}}}}}else{var g=null;g=new NC.util.AjaxUpdate("GET",this.sourceUrl,q.id,q.id,null);g.doUpdate()}var a;if(this.showAsPopup){var l=NC.widget.MessageBox.makeShimId(this.target);var f=document.getElementById(l);a=new NC.widget.IFrameShim(l,i);if(f==null){a.createIframe()}else{a.setShimIframe(f)}if(typeof d=="undefined"||d==-1){d=(NC.util.Dom.getViewportWidth()-j)/2}if(typeof b=="undefined"||b==-1){b=(NC.util.Dom.getViewportHeight()-i.style.height)/3}i.style.left=d+"px";i.style.top=b+"px";if(j>0){i.style.width=j+"px"}else{i.style.width="auto"}if(typeof o!="undefined"){if(o>0){if(c){var m={height:{to:o},};var e=new NC.util.Anim(this.target,m,0.5,NC.util.Easing.bounceOut);e.duration=0.5;e.animate()}else{i.style.height=o+"px"}}else{if(o==-1){i.style.height="auto"}}}i.style.display="block";if(!this.persist){NC.widget.Element.addDocumentDomEvent(NC.core.EventType.Mouseup,NC.widget.MessageBox.documentMouseUp,false)}}else{i.style.display="block"}setTimeout(function(){if(a!=null){a.config()}},1000)},hide:function(){NC.widget.MessageBox.closeDialog()},post:function(){alert("Override this post function with your own")},onOK:function(b){var a=NC.core.Event.getEventTarget(b);a.dialog.handlers.ok(b,a.dialog.handlers);NC.widget.MessageManager.hideDialog()},onCancel:function(b){var a=NC.core.Event.getEventTarget(b);a.dialog.handlers.cancel(b,a.dialog.handlers);NC.widget.MessageManager.hideDialog()}});(function(){NC.widget.MessageManager=function(){var a=[];return{showDialog:function(c,j,k,h,f,e,b,g,i,d){if(typeof g=="undefined"){this.persist=false}dialog=new NC.widget.MessageBox(c,"",j,j,h,k,g);a.push(dialog);dialog.show(f,e,b,i,d)},hideDialog:function(){if(a.length>0){var b=a.pop();NC.widget.MessageBox.closeDialog.call(b)}},isDialogShown:function(){return(dialog.length>0?false:true)},getMessageDialog:function(){if(a.length>0){return a[a.length-1]}else{return null}}}}()})();(function(){var b=NC.util;var a=function(d,c,e,f){if(!d){}this.init(d,c,e,f)};a.NAME="Anim";a.prototype={toString:function(){var c=this.getEl()||{};var d=c.id||c.tagName;return(this.constructor.NAME+": "+d)},patterns:{noNegatives:/width|height|opacity|padding/i,offsetAttribute:/^((width|height)|(top|left))$/,defaultUnit:/width|height|top$|bottom$|left$|right$/i,offsetUnit:/\d+(em|%|en|ex|pt|in|cm|mm|pc)$/i},doMethod:function(c,e,d){return this.method(this.currentFrame,e,d-e,this.totalFrames)},setAttribute:function(c,e,d){if(this.patterns.noNegatives.test(c)){e=(e>0)?e:0}b.Dom.setStyle(this.getEl(),c,e+d)},getAttribute:function(c){var e=this.getEl();var g=b.Dom.getStyle(e,c);if(g!=="auto"&&!this.patterns.offsetUnit.test(g)){return parseFloat(g)}var d=this.patterns.offsetAttribute.exec(c)||[];var h=!!(d[3]);var f=!!(d[2]);if(f||(b.Dom.getStyle(e,"position")=="absolute"&&h)){g=e["offset"+d[0].charAt(0).toUpperCase()+d[0].substr(1)]}else{g=0}return g},getDefaultUnit:function(c){if(this.patterns.defaultUnit.test(c)){return"px"}return""},setRuntimeAttribute:function(d){var j;var e;var f=this.attributes;this.runtimeAttributes[d]={};var h=function(i){return(typeof i!=="undefined")};if(!h(f[d]["to"])&&!h(f[d]["by"])){return false}j=(h(f[d]["from"]))?f[d]["from"]:this.getAttribute(d);if(h(f[d]["to"])){e=f[d]["to"]}else{if(h(f[d]["by"])){if(j.constructor==Array){e=[];for(var g=0,c=j.length;g<c;++g){e[g]=j[g]+f[d]["by"][g]*1}}else{e=j+f[d]["by"]*1}}}this.runtimeAttributes[d].start=j;this.runtimeAttributes[d].end=e;this.runtimeAttributes[d].unit=(h(f[d].unit))?f[d]["unit"]:this.getDefaultUnit(d);return true},init:function(e,j,i,c){var d=false;var f=null;var h=0;e=b.Dom.get(e);this.attributes=j||{};this.duration=!NC.lang.isUndefined(i)?i:1;this.method=c||b.Easing.easeNone;this.useSeconds=true;this.currentFrame=0;this.totalFrames=b.AnimMgr.fps;this.setEl=function(m){e=b.Dom.get(m)};this.getEl=function(){return e};this.isAnimated=function(){return d};this.getStartTime=function(){return f};this.runtimeAttributes={};this.animate=function(){if(this.isAnimated()){return false}this.currentFrame=0;this.totalFrames=(this.useSeconds)?Math.ceil(b.AnimMgr.fps*this.duration):this.duration;if(this.duration===0&&this.useSeconds){this.totalFrames=1}b.AnimMgr.registerElement(this);return true};this.stop=function(m){if(!this.isAnimated()){return false}if(m){this.currentFrame=this.totalFrames;this._onTween.fire()}b.AnimMgr.stop(this)};var l=function(){this.onStart.fire();this.runtimeAttributes={};for(var m in this.attributes){this.setRuntimeAttribute(m)}d=true;h=0;f=new Date()};var k=function(){var o={duration:new Date()-this.getStartTime(),currentFrame:this.currentFrame};o.toString=function(){return("duration: "+o.duration+", currentFrame: "+o.currentFrame)};this.onTween.fire(o);var n=this.runtimeAttributes;for(var m in n){this.setAttribute(m,this.doMethod(m,n[m].start,n[m].end),n[m].unit)}h+=1};var g=function(){var m=(new Date()-f)/1000;var n={duration:m,frames:h,fps:h/m};n.toString=function(){return("duration: "+n.duration+", frames: "+n.frames+", fps: "+n.fps)};d=false;h=0;this.onComplete.fire(n)};this._onStart=new b.CustomEvent("_start",this,true);this.onStart=new b.CustomEvent("start",this);this.onTween=new b.CustomEvent("tween",this);this._onTween=new b.CustomEvent("_tween",this,true);this.onComplete=new b.CustomEvent("complete",this);this._onComplete=new b.CustomEvent("_complete",this,true);this._onStart.subscribe(l);this._onTween.subscribe(k);this._onComplete.subscribe(g)}};b.Anim=a})();NC.util.AnimMgr=new function(){var c=null;var b=[];var a=0;this.fps=1000;this.delay=1;this.registerElement=function(f){b[b.length]=f;a+=1;f._onStart.fire();this.start()};this.unRegister=function(g,f){f=f||e(g);if(!g.isAnimated()||f==-1){return false}g._onComplete.fire();b.splice(f,1);a-=1;if(a<=0){this.stop()}return true};this.start=function(){if(c===null){c=setInterval(this.run,this.delay)}};this.stop=function(h){if(!h){clearInterval(c);for(var g=0,f=b.length;g<f;++g){this.unRegister(b[0],0)}b=[];c=null;a=0}else{this.unRegister(h)}};this.run=function(){for(var h=0,f=b.length;h<f;++h){var g=b[h];if(!g||!g.isAnimated()){continue}if(g.currentFrame<g.totalFrames||g.totalFrames===null){g.currentFrame+=1;if(g.useSeconds){d(g)}g._onTween.fire()}else{NC.util.AnimMgr.stop(g,h)}}};var e=function(h){for(var g=0,f=b.length;g<f;++g){if(b[g]==h){return g}}return -1};var d=function(g){var j=g.totalFrames;var i=g.currentFrame;var h=(g.currentFrame*g.duration*1000/g.totalFrames);var f=(new Date()-g.getStartTime());var k=0;if(f<g.duration*1000){k=Math.round((f/h-1)*g.currentFrame)}else{k=j-(i+1)}if(k>0&&isFinite(k)){if(g.currentFrame+k>=j){k=j-(i+1)}g.currentFrame+=k}}};NC.util.Bezier=new function(){this.getPosition=function(e,d){var f=e.length;var c=[];for(var b=0;b<f;++b){c[b]=[e[b][0],e[b][1]]}for(var a=1;a<f;++a){for(b=0;b<f-a;++b){c[b][0]=(1-d)*c[b][0]+d*c[parseInt(b+1,10)][0];c[b][1]=(1-d)*c[b][1]+d*c[parseInt(b+1,10)][1]}}return[c[0][0],c[0][1]]}};(function(){var a=function(f,e,g,h){a.superclass.constructor.call(this,f,e,g,h)};a.NAME="ColorAnim";var c=NC.util;NC.lang.extend(a,c.Anim);var d=a.superclass;var b=a.prototype;b.patterns.color=/color$/i;b.patterns.rgb=/^rgb\(([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\)$/i;b.patterns.hex=/^#?([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})$/i;b.patterns.hex3=/^#?([0-9A-F]{1})([0-9A-F]{1})([0-9A-F]{1})$/i;b.patterns.transparent=/^transparent|rgba\(0, 0, 0, 0\)$/;b.parseColor=function(e){if(e.length==3){return e}var f=this.patterns.hex.exec(e);if(f&&f.length==4){return[parseInt(f[1],16),parseInt(f[2],16),parseInt(f[3],16)]}f=this.patterns.rgb.exec(e);if(f&&f.length==4){return[parseInt(f[1],10),parseInt(f[2],10),parseInt(f[3],10)]}f=this.patterns.hex3.exec(e);if(f&&f.length==4){return[parseInt(f[1]+f[1],16),parseInt(f[2]+f[2],16),parseInt(f[3]+f[3],16)]}return null};b.getAttribute=function(e){var g=this.getEl();if(this.patterns.color.test(e)){var h=NC.util.Dom.getStyle(g,e);if(this.patterns.transparent.test(h)){var f=g.parentNode;h=c.Dom.getStyle(f,e);while(f&&this.patterns.transparent.test(h)){f=f.parentNode;h=c.Dom.getStyle(f,e);if(f.tagName.toUpperCase()=="HTML"){h="#fff"}}}}else{h=d.getAttribute.call(this,e)}return h};b.doMethod=function(f,k,g){var j;if(this.patterns.color.test(f)){j=[];for(var h=0,e=k.length;h<e;++h){j[h]=d.doMethod.call(this,f,k[h],g[h])}j="rgb("+Math.floor(j[0])+","+Math.floor(j[1])+","+Math.floor(j[2])+")"}else{j=d.doMethod.call(this,f,k,g)}return j};b.setRuntimeAttribute=function(f){d.setRuntimeAttribute.call(this,f);if(this.patterns.color.test(f)){var h=this.attributes;var k=this.parseColor(this.runtimeAttributes[f].start);var g=this.parseColor(this.runtimeAttributes[f].end);if(typeof h[f]["to"]==="undefined"&&typeof h[f]["by"]!=="undefined"){g=this.parseColor(h[f].by);for(var j=0,e=k.length;j<e;++j){g[j]=k[j]+g[j]}}this.runtimeAttributes[f].start=k;this.runtimeAttributes[f].end=g}};c.ColorAnim=a})();
/*
TERMS OF USE - EASING EQUATIONS
Open source under the BSD License.
Copyright 2001 Robert Penner All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

 * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
 * Neither the name of the author nor the names of contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
NC.util.Easing={easeNone:function(e,a,g,f){return g*e/f+a},easeIn:function(e,a,g,f){return g*(e/=f)*e+a},easeOut:function(e,a,g,f){return -g*(e/=f)*(e-2)+a},easeBoth:function(e,a,g,f){if((e/=f/2)<1){return g/2*e*e+a}return -g/2*((--e)*(e-2)-1)+a},easeInStrong:function(e,a,g,f){return g*(e/=f)*e*e*e+a},easeOutStrong:function(e,a,g,f){return -g*((e=e/f-1)*e*e*e-1)+a},easeBothStrong:function(e,a,g,f){if((e/=f/2)<1){return g/2*e*e*e*e+a}return -g/2*((e-=2)*e*e*e-2)+a},elasticIn:function(g,e,k,j,f,i){if(g==0){return e}if((g/=j)==1){return e+k}if(!i){i=j*0.3}if(!f||f<Math.abs(k)){f=k;var h=i/4}else{var h=i/(2*Math.PI)*Math.asin(k/f)}return -(f*Math.pow(2,10*(g-=1))*Math.sin((g*j-h)*(2*Math.PI)/i))+e},elasticOut:function(g,e,k,j,f,i){if(g==0){return e}if((g/=j)==1){return e+k}if(!i){i=j*0.3}if(!f||f<Math.abs(k)){f=k;var h=i/4}else{var h=i/(2*Math.PI)*Math.asin(k/f)}return f*Math.pow(2,-10*g)*Math.sin((g*j-h)*(2*Math.PI)/i)+k+e},elasticBoth:function(g,e,k,j,f,i){if(g==0){return e}if((g/=j/2)==2){return e+k}if(!i){i=j*(0.3*1.5)}if(!f||f<Math.abs(k)){f=k;var h=i/4}else{var h=i/(2*Math.PI)*Math.asin(k/f)}if(g<1){return -0.5*(f*Math.pow(2,10*(g-=1))*Math.sin((g*j-h)*(2*Math.PI)/i))+e}return f*Math.pow(2,-10*(g-=1))*Math.sin((g*j-h)*(2*Math.PI)/i)*0.5+k+e},backIn:function(e,a,h,g,f){if(typeof f=="undefined"){f=1.70158}return h*(e/=g)*e*((f+1)*e-f)+a},backOut:function(e,a,h,g,f){if(typeof f=="undefined"){f=1.70158}return h*((e=e/g-1)*e*((f+1)*e+f)+1)+a},backBoth:function(e,a,h,g,f){if(typeof f=="undefined"){f=1.70158}if((e/=g/2)<1){return h/2*(e*e*(((f*=(1.525))+1)*e-f))+a}return h/2*((e-=2)*e*(((f*=(1.525))+1)*e+f)+2)+a},bounceIn:function(e,a,g,f){return g-NC.util.Easing.bounceOut(f-e,0,g,f)+a},bounceOut:function(e,a,g,f){if((e/=f)<(1/2.75)){return g*(7.5625*e*e)+a}else{if(e<(2/2.75)){return g*(7.5625*(e-=(1.5/2.75))*e+0.75)+a}else{if(e<(2.5/2.75)){return g*(7.5625*(e-=(2.25/2.75))*e+0.9375)+a}}}return g*(7.5625*(e-=(2.625/2.75))*e+0.984375)+a},bounceBoth:function(e,a,g,f){if(e<f/2){return NC.util.Easing.bounceIn(e*2,0,g,f)*0.5+a}return NC.util.Easing.bounceOut(e*2-f,0,g,f)*0.5+g*0.5+a}};(function(){var a=function(h,g,i,j){if(h){a.superclass.constructor.call(this,h,g,i,j)}};a.NAME="Motion";var e=NC.util;NC.lang.extend(a,e.ColorAnim);var f=a.superclass;var c=a.prototype;c.patterns.points=/^points$/i;c.setAttribute=function(g,i,h){if(this.patterns.points.test(g)){h=h||"px";f.setAttribute.call(this,"left",i[0],h);f.setAttribute.call(this,"top",i[1],h)}else{f.setAttribute.call(this,g,i,h)}};c.getAttribute=function(g){if(this.patterns.points.test(g)){var h=[f.getAttribute.call(this,"left"),f.getAttribute.call(this,"top")]}else{h=f.getAttribute.call(this,g)}return h};c.doMethod=function(g,k,h){var j=null;if(this.patterns.points.test(g)){var i=this.method(this.currentFrame,0,100,this.totalFrames)/100;j=e.Bezier.getPosition(this.runtimeAttributes[g],i)}else{j=f.doMethod.call(this,g,k,h)}return j};c.setRuntimeAttribute=function(q){if(this.patterns.points.test(q)){var h=this.getEl();var k=this.attributes;var g;var m=k.points["control"]||[];var j;var n,p;if(m.length>0&&!(m[0] instanceof Array)){m=[m]}else{var l=[];for(n=0,p=m.length;n<p;++n){l[n]=m[n]}m=l}if(e.Dom.getStyle(h,"position")=="static"){e.Dom.setStyle(h,"position","relative")}if(d(k.points["from"])){e.Dom.setXY(h,k.points["from"])}else{e.Dom.setXY(h,e.Dom.getXY(h))}g=this.getAttribute("points");if(d(k.points["to"])){j=b.call(this,k.points["to"],g);var o=e.Dom.getXY(this.getEl());for(n=0,p=m.length;n<p;++n){m[n]=b.call(this,m[n],g)}}else{if(d(k.points["by"])){j=[g[0]+k.points["by"][0],g[1]+k.points["by"][1]];for(n=0,p=m.length;n<p;++n){m[n]=[g[0]+m[n][0],g[1]+m[n][1]]}}}this.runtimeAttributes[q]=[g];if(m.length>0){this.runtimeAttributes[q]=this.runtimeAttributes[q].concat(m)}this.runtimeAttributes[q][this.runtimeAttributes[q].length]=j}else{f.setRuntimeAttribute.call(this,q)}};var b=function(g,i){var h=e.Dom.getXY(this.getEl());g=[g[0]-h[0]+i[0],g[1]-h[1]+i[1]];return g};var d=function(g){return(typeof g!=="undefined")};e.Motion=a})();(function(){var d=function(f,e,g,h){if(f){d.superclass.constructor.call(this,f,e,g,h)}};d.NAME="Scroll";var b=NC.util;NC.lang.extend(d,b.ColorAnim);var c=d.superclass;var a=d.prototype;a.doMethod=function(e,h,f){var g=null;if(e=="scroll"){g=[this.method(this.currentFrame,h[0],f[0]-h[0],this.totalFrames),this.method(this.currentFrame,h[1],f[1]-h[1],this.totalFrames)]}else{g=c.doMethod.call(this,e,h,f)}return g};a.getAttribute=function(e){var g=null;var f=this.getEl();if(e=="scroll"){g=[f.scrollLeft,f.scrollTop]}else{g=c.getAttribute.call(this,e)}return g};a.setAttribute=function(e,h,g){var f=this.getEl();if(e=="scroll"){f.scrollLeft=h[0];f.scrollTop=h[1]}else{c.setAttribute.call(this,e,h,g)}};b.Scroll=d})();if(typeof NC=="undefined"){alert("animatedmessage.js requires the NC JavaScript framework")}if(typeof NC.widget=="undefined"){alert("animatedmessage.js requires the NC JavaScript framework")}NC.widget.AnimatedMessage=function(d,b,c,a){this.targetName=d;this.toTop=b;this.toHeight=c;this.showTime=a};NC.widget.AnimatedMessage.prototype={show:function(){var b={top:{to:this.toTop},height:{to:this.toHeight}};var a={height:{to:0},top:{to:this.toTop+this.toHeight}};this.anim1=new NC.util.Anim(this.targetName,b,2);var f=new NC.util.Anim(this.targetName,a,2);var c=this.showTime;function e(){f.animate()}function d(){setTimeout(e(),c)}this.anim1.onComplete.subscribe(d);this.anim1.animate()}};(function(){NC.widget.MemberManager=function(){function e(n,o){n+='		<div id ="steps"> 			<h4 id="'+o+'">Confirm Your Membership</h4>			<h5 class="numbersText">We just sent an email to the address in your resume.  				Click on the confirmation link in this email to activate your membership in NimbleCat. 				This email also has an automatically generated password. 				<a href="#" onclick="NC.widget.DashboardManager.showJsUpdateLoginPopup( null,-1)">Change your password to one you can remember easily.</a></h5>	</div>';return n}function i(n,o){n+='		<div id ="steps"> 			<h4 id="'+o+'">Grade your Social Profile or Resume</h4>			<h5 class="numbersText"><a href="#" onclick="javascript:showUploadPane(\'centercontent\')">Grade</a> your Facebook or LinkedIn profile or your resume. 				<a href="#" onclick="NC.widget.DashboardManager.showJsUpdateLoginPopup( null,-1)"></a>				See how your social profile or resume stacks up against others in your industry today.			</h5>	</div>';return n}function g(n,o){n+='		<div id ="steps"> 			<h4 id="'+o+'">Set your Job Preferences</h4><h5  class="numbersText">	NimbleCat aggregates more than a million jobs daily. <a href="#" onclick="NC.util.AjaxManager._xmlHttpGet(\'./js_dashboard.php\', \'centercontent\', false)">  Set your job preferences</a> and get the best matched jobs for you daily. </h5>	</div>';return n}function b(n,w,o){var x=NC.widget.ResumeUploadManager.getNCScore();var p=document.getElementById(w);if(p!=null){var t="";if(x.length>0){var y=NC.widget.ResumeUploadManager.getTopCategoryName();var r=NC.widget.ResumeUploadManager.getTopCategoryId();var s=NC.widget.ResumeUploadManager.getManagerScore();var v=new NC.widget.ShareScoreOnFacebook(n,s,x,r,NC.SiteRoot);var q=new NC.widget.ShareScoreOnTwitter(n,s,x,r,NC.SiteRoot);var u=new NC.widget.ShareScoreOnLinkedIn(n,s,x,r,NC.SiteRoot);t="				<p>"+NC.widget.ResumeUploadManager.getNCScoreExplanation()+"        		</p><p>Share your score ";t+=v.makeShareImage(NC.widget.Share.SmallImage);t+=u.makeShareImage(NC.widget.Share.SmallImage);t+=q.makeShareImage(NC.widget.Share.SmallImage);t+="</p>";t+='				<p>Click on your score to see your public profile and validation certificate others will see when they click on it. <a href="#" onclick="javascript:NC.widget.MemberManager.showGetBadge()">Add your score</a> to your resume or social profile. 				</p>'}else{t='<p>We can\'t give you a score yet because you have not graded your social profile or resume.</p><p>Your score is computed from an analysis of your accomplishments,  experience and education. Its an "experience" or "career" score similar to the FICO score for credit worthiness. </p><p>Our scoring engine uses technology that incorporates the judgment of senior managers and domain experts into the scoring process. '}p.innerHTML=t}if(x.length>0){NC.widget.ResumeUploadManager.showBadge(n,2,o)}}function l(){var w="stepOne";var n="stepTwo";var y="stepThree";if(NC.widget.StateManager.isConfirmedRegistrationSet()){w="stepOneDone"}if(NC.widget.StateManager.isUploadedResumeSet()){n="stepTwoDone"}if(NC.widget.StateManager.isJobUser()){if(NC.widget.StateManager.jobAlertsConfigured()){y="stepThreeDone"}}else{y=""}var x='<div id="ContentContainer"> 	<div class="leftcolumn"> 		<div class="highlights"> 		    <h3>Your Score</h3>			<div class="ncbadgelarge" id="largencbadge"></div>			<div id="membereval">				</div>     	</div>	</div> 	<div class="contentbody" id="centercontent">         <div id="LeftSpacer">             <img src="../imagesv2/1X500_spacer.gif">        </div>		<div id="nextsteps" class="steps">';x=e(x,w);x=i(x,n);if(NC.widget.StateManager.isJobUser()){x=g(x,y)}x+='        </div> 	</div> 	<div class="rightcolumn"> 		<div class="highlights"> 		<h3>What next?</h3>		<p>Promote your professional accomplishments on Facebook, LinkedIn and Twitter, connect with your peers, 				and get notified about jobs you are a good fit for.</p> 			</div>     	</div>	</div> </div> ';var u='<div id="ContentContainer"> 	<div class="leftcolumn"> 		<div class="highlights"> 		    <h3>Your Score</h3>			<div class="ncbadgelarge" id="largencbadge"></div>			<div id="membereval">				</div>     	</div>	</div> 	<div class="contentbody" id="centercontent">         <div id="LeftSpacer">             <img src="../imagesv2/1X500_spacer.gif">        </div>		<div id="nextsteps" class="steps">        </div> 	</div>  	<div class="rightcolumn"> 		<div id="Promo" class="promo"> 		</div> 	</div> </div> ';var D=u;if(NC.widget.StateManager.trainingWheels()==true){D=x}var p=document.getElementById("MainFrame");p.innerHTML=D;var v=NC.widget.ResumeUploadManager.getResumeId();b(v,"membereval","largencbadge");updater=new NC.util.AjaxUpdate("GET","showPromo.php","Promo","Promo",null);updater.doUpdate(true);var s=NC.widget.ResumeUploadManager.getNCScore();var r=NC.widget.ResumeUploadManager.getTopCategoryName();var z=NC.widget.ResumeUploadManager.getTopCategoryId();var A=NC.widget.ResumeUploadManager.getTopCategoryScore();var E=parseInt(NC.widget.ResumeUploadManager.getManagerCategory());var t=NC.widget.ResumeUploadManager.getManagerScore();var B="getCategoryCount.php?Eid=0&CategoryId="+z+"&Score="+A+"&Cname="+r;if(E>1){B+="&Mscore="+t}if(NC.widget.StateManager.trainingWheels()==false){var C={};var o={success:function(G){C=NC.lang.JSON.parse(G.responseText);var N=document.getElementById("nextsteps");var M=new NC.widget.ShareScoreOnFacebook(v,t,s,z,NC.SiteRoot);var J=new NC.widget.ShareScoreOnTwitter(v,t,s,z,NC.SiteRoot);var L=new NC.widget.ShareScoreOnLinkedIn(v,t,s,z,NC.SiteRoot);var F='        <h4 id="stepOne">Share your score'+M.makeShareImage(NC.widget.Share.LargeImage)+L.makeShareImage(NC.widget.Share.LargeImage)+J.makeShareImage(NC.widget.Share.LargeImage);F+='</h4>		<h5  class="numbersText">'+NC.widget.ResumeUploadManager.getNCScoreExplanation()+"</h5>";F+='        <h4 id="stepTwo"><a href="#" onclick="xmlHttpGet(\'js_searchedit_ajax.php?NewJob=1\', \'MainFrame\', true)">Connect with your peers</a></h4>        <h5  class="numbersText">		There are '+C.CategoryTotal+" "+C.CategoryName+" professionals at NimbleCat,		and "+C.CategoryRange+" professionals with backgrounds similar to yours.";if(C.MgrTotal>0){F+="There are "+C.MgrTotal+" professionals with management experience at NimbleCat, and "+C.MgrRange+" professionals with management experience similar to yours."}F+='		Want to broaden your network?         <a href="#" onclick="NC.widget.MemberManager.showSimilarMembers();">Connect with these professionals now</a>.</h5>';var I="stepThree";var H=NC.widget.ResumeUploadManager.getTotalJobAlerts();if(NC.widget.StateManager.jobAlertsConfigured()==true){if(H>0){var K=H+" jobs ";if(H==1){K="job "}F+='        <h4 id="'+I+'">View matched jobs</h4><h5  class="numbersText">	See the <a href="#" onclick="NC.widget.MemberManager.showJobs()">'+K+"</a> that NimbleCat matched with your resume here. </h5>"}else{F+='        <h4 id="'+I+'">You don\'t have any job alerts yet</h4><h5  class="numbersText">We match your resume to new jobs every day. Check NimbleCat for the latest job alerts after 8 am Pacific time daily. If you do not get job alerts soon, you should <a href="#" onclick="NC.util.AjaxManager._xmlHttpGet(\'./js_dashboard.php\', \'centercontent\', false)">check and adjust</a> your job preferences.';"</h5>"}}else{F+='        <h4 id="'+I+'"><a href="#" onclick="xmlHttpGet(\'./js_dashboard.php\', true)">Let NimbleCat select jobs for you</a></h4><h5  class="numbersText">	NimbleCat aggregates millions of jobs each month. <a href="#" onclick="NC.util.AjaxManager._xmlHttpGet(\'./js_dashboard.php\', \'centercontent\', false)">Set your work preferences</a> and let NimbleCat select the best matched jobs for you daily. </h5>'}I="stepFour";F+='        <h4 id="'+I+'"><a href="#" onclick="xmlHttpGet(\'./inv_send_email_form.php\', true)">Tell a friend</a></h4>		<h5  class="numbersText">Like what you see? <a href="#" onclick="NC.util.AjaxManager._xmlHttpGet(\'./inv_send_email_form.php\', \'centercontent\', false)">Tell your friends</a>. </h5>';N.innerHTML=F},failure:function(F){},scope:this};var q=new NC.util.AjaxConnection("GET",B,"");q.executeMethod(o)}}function m(){var D="stepOne";var q="stepTwo";var s="stepThree";if(NC.widget.StateManager.isConfirmedRegistrationSet()){D="stepOneDone"}if(NC.widget.StateManager.isUploadedResumeSet()){q="stepTwoDone"}if(NC.widget.StateManager.isJobUser()){if(NC.widget.StateManager.jobAlertsConfigured()){s="stepThreeDone"}}else{s=""}var z='<div id="ContentContainer"> 	<div class="leftcolumn"> 		<div class="highlights"> 		    <h3>Your Score</h3>			<div class="ncbadgelarge" id="largencbadge"></div>			<div id="membereval">				</div>     	</div>	</div> 	<div class="contentbody" id="centercontent">         <div id="LeftSpacer">             <img src="../imagesv2/1X500_spacer.gif">        </div>		<div id="nextsteps" class="steps">        </div> 	</div>  </div> ';var r=document.getElementById("MainFrame");r.innerHTML=z;var p=NC.widget.ResumeUploadManager.getResumeId();b(p,"membereval","largencbadge");var C=NC.widget.ResumeUploadManager.getNCScore();var y=parseInt(C);var B=NC.widget.ResumeUploadManager.getTopCategoryName();var t=NC.widget.ResumeUploadManager.getTopCategoryId();var w=NC.widget.ResumeUploadManager.getTopCategoryScore();var o=parseInt(NC.widget.ResumeUploadManager.getManagerCategory());var v=NC.widget.ResumeUploadManager.getManagerScore();var u="getCategoryCount.php?Eid=0&CategoryId="+t+"&Score="+w+"&Cname="+B;if(o>1){u+="&Mscore="+v}var x={};var A={success:function(H){x=NC.lang.JSON.parse(H.responseText);var F=document.getElementById("nextsteps");var E=new NC.widget.ShareScoreOnFacebook(p,v,C,t,NC.SiteRoot);var K=new NC.widget.ShareScoreOnTwitter(p,v,C,t,NC.SiteRoot);var J=new NC.widget.ShareScoreOnLinkedIn(p,v,C,t,NC.SiteRoot);var I="";if(y>=70){I+='        <h4 id="stepOne">Share your score'+E.makeShareImage(NC.widget.Share.LargeImage)+J.makeShareImage(NC.widget.Share.LargeImage)+K.makeShareImage(NC.widget.Share.LargeImage);I+='</h4>		<h5  class="numbersText">'+NC.widget.ResumeUploadManager.getNCScoreExplanation()+"</h5>"}else{I+='        <h4 id="stepOne">NimbleCat did not assign a score yet.';I+='</h4>		<h5  class="numbersText">'+NC.widget.ResumeUploadManager.getNCScoreExplanation()+"</h5>"}I+='        <h4 id="stepTwo">Connect with your peers</h4>        <h5  class="numbersText">';I+='		Want to broaden your network?         <a target="_top" href="http://apps.facebook.com/ncsearch">Connect with these professionals now</a>.</h5>';var G="stepThree";I+='        <h4 id="'+G+'">Let NimbleCat select jobs for you</h4><h5  class="numbersText">	NimbleCat aggregates millions of jobs each month. <a target="_top" href="http://apps.facebook.com/ncjobalerts">Let NimbleCat select the best matched jobs for you daily.</a></h5>';G="stepFour";I+='        <h4 id="'+G+'">Add a link to your social profiles</h4>		<h5  class="numbersText">Like what you see? <a href="#" onclick="NC.widget.MemberManager.showGetBadge()">Add a link to your NimbleCat Score to your professional profile</a>. </h5>';G="stepFive";I+='        <h4 id="'+G+'">Invite your friends</h4>		<h5  class="numbersText">Like what you see? <a href="#" onclick="NC.util.Facebook.showInviteFriendsDialog();">Invite your friends to use Grader</a>. </h5>';F.innerHTML=I},failure:function(E){},scope:this};var n=new NC.util.AjaxConnection("GET",u,"");n.executeMethod(A)}function j(){var n="stepOne";var r="stepTwo";var o="stepThree";if(NC.widget.StateManager.isUploadedResumeSet()){n="stepOneDone"}if(NC.widget.StateManager.jobAlertsConfigured()){r="stepTwoDone"}var q='<div id="ContentContainer"> 	<div class="contentbody" id="centercontent">         <div id="LeftSpacer">             <img src="../imagesv2/1X500_spacer.gif">        </div><h2 class="ncblue"> Get daily alerts on jobs you are a good fit for  </h2> <p>  NimbleCat aggregates over a million jobs each month. Grade your profile, select your job preferences and  NimbleCat will select the best jobs for you daily.  </p>';'		<div id="nextsteps" class="steps">';q+='			<div id ="steps"> 				<h4 id="'+n+'">Grade your Social Profile or Resume</h4>				<h5 class="numbersText"><a href="#" onclick="NC.promo.PromoManager.startScoreWoSignupPromo(\'centercontent\', \'resumeUpload_v3_fb.php\')">Grade</a> your Facebook or LinkedIn profile or your resume. 					We\'ll use your profile or resume to select the jobs you are a good fit for.				</h5>			</div>';q=g(q,r);q+='			<div id ="steps">         		<h4 id="'+o+'">Let NimbleCat select jobs for you</h4>				<h5  class="numbersText">					NimbleCat aggregates millions of jobs each month. Let NimbleCat select the best matched jobs for you daily. 				</h5>';q+="  			</div> 		</div> 	</div> </div> ";template=q;var p=document.getElementById("MainFrame");p.innerHTML=template}function h(o){var n='<h2 class="ncblue">There are no job alerts for you today</h2><p>We match your resume to new jobs every day. Check NimbleCat for the latest job alerts after 8 am Pacific time daily. If you do not get job alerts soon, you should <a href="#" onclick="NC.util.AjaxManager._xmlHttpGet(\'./js_dashboard.php\', \'centercontent\', false)">check and adjust</a> your job preferences.</p>';var o=document.getElementById(o);o.innerHTML=n}function c(){var n=NC.widget.ResumeUploadManager.getTotalJobAlerts();if(NC.widget.StateManager.jobAlertsConfigured()==true){if(n>0){var o=new NC.util.AjaxUpdate("GET","sc.php?ct=1","centercontent","centercontent",null);o.doUpdate(true);NC.fbJobMapShown=0}else{h("centercontent")}}}function d(){var n='		<div id="ContentContainer"> ';n+='				<div id="LeftColumnWide" class="leftcolumnwide"> ';n+='					<div id="Messages"> ';n+="					</div> ";n+='					<div id="Offers"> ';n+="					</div>  ";n+='					<div class="contentbody" id="centercontent"> ';n+="						&nbsp; ";n+="					</div>   ";n+="				</div> ";n+="			</div>  ";var o=document.getElementById("MainFrame");o.innerHTML=n}function k(){var n=NC.widget.ResumeUploadManager.getTotalJobAlerts();var o=NC.util.Cookie.get("scid",Number);if(n>0&&(NC.widget.StateManager.isJobUser()||(o==23||o==26))){NC.widget.MemberManager.showJobs()}else{if(NC.widget.StateManager.isSearchUser()){d()}else{if(NC.widget.StateManager.isGradeUser()){l()}else{l()}}}}function a(){var r="./peoplesearch.php";var p=NC.util.UrlUtil.parameterExists(window.location.search,"q");if(NC.widget.StateManager.isUploadedResumeSet()||p!=null){if(p!=null){r+="?q="+p[1]}else{r+="?rpc="+NC.widget.ResumeUploadManager.getTopCategoryId();var q=parseInt(NC.widget.ResumeUploadManager.getNCScore());var t=parseInt(NC.widget.ResumeUploadManager.getManagerScore());var n=parseInt(NC.widget.ResumeUploadManager.getManagerCategory());var o=NC.widget.ResumeUploadManager.getZipCode();r+="&nmin="+(q-5);r+="&nmax="+(q+5);r+="&mc="+n;if(n==2){r+="&mmin="+(t-5);r+="&mmax="+(t+5)}if(o.length>=5){r+="&zip="+o}}NC.widget.PeopleManager.setSearchTitle("Connect with your peers");NC.widget.PeopleManager.execPeopleSearch(r,null)}else{var s=new NC.util.AjaxUpdate("GET","uploadResumeOffer.php",NC.widget.PeopleManager.getResultsDiv(),NC.widget.PeopleManager.getResultsDiv(),null);s.doUpdate(true)}s=new NC.util.AjaxUpdate("GET","showPromo.php","Promo","Promo",null);s.doUpdate(true)}function f(){var p='		<div>		    <h2>Promote yourself online. </h2> <p>Select one of the score styles below. Click on the code box next to it to select the code. Then right click and  select Copy from the popup menu.  Next, open your social profile and add this link to your websites.		<div id="badgelink">		</div		<div>    	</div>     </div><p><input type="button" class="ncbutton"  onclick="NC.util.AjaxManager.showCurrentMainFrameContent();" name="ChangeProfileButton" id="ChangeProfileButton" value="Cancel"></p>';'	</div>  	<div class="rightcolumn"> 		<div id="Promo" class="promo"> 		</div> 		<div id ="Links"class="links"> 		</div> 	</div> </div> ';var q=document.getElementById("centercontent");q.innerHTML=p;var o=NC.widget.ResumeUploadManager.getResumeId();var n="makegetbadgecontent.php?rid="+o;var r=new NC.util.AjaxUpdate("GET",n,"badgelink","badgelink",null);r.doUpdate(true)}return{showMemberHome:function(){NC.widget.ResumeUploadManager.getResumeInfo(k)},showMemberHomeNoRefresh:function(){k();NC.util.AjaxManager.addMainFrameHistory(NC.util.AjaxManager.getNcFuncFlag()+":showjshome")},showEmployerHome:function(){var n='<div id="ContentContainer"> 	<div class="leftcolumn"> 		<div class="highlights" id="EmpMessage"> 		    <h3>&nbsp;</h3>    	</div>	</div> 	<div class="contentbody" id="centercontent">        <div id="LeftSpacer">             <img src="../imagesv2/1X500_spacer.gif">        </div>		<div id="greeting"></div> 		<div id="memberstats" class="memberstatistics">        </div> 		<div id="countstats" class="countstatistics">        </div> 	</div>  	<div class="rightcolumn"> 		<div id="Promo" class="promo"> 		</div> 		<div id ="Links"class="links"> 		</div> 	</div> </div> ';var o=document.getElementById("MainFrame");o.innerHTML=n;var p=document.getElementById("greeting");p.innerHTML="<h2>Welcome!</h2>";var q=new NC.util.AjaxUpdate("GET","getMemberStats.php","memberstats","memberstats",null);q.doUpdate(true);var r="getTopCategories.php";var q=new NC.util.AjaxUpdate("GET",r,"countstats","countstats",null);q.doUpdate(true);q=new NC.util.AjaxUpdate("GET","showPromo.php","Promo","Promo",null);q.doUpdate(true);q=new NC.util.AjaxUpdate("GET","showLinks.php","Links","Links",null);q.doUpdate(true);q=new NC.util.AjaxUpdate("GET","showEmpMessage.php","EmpMessage","EmpMessage",null);q.doUpdate(true)},showMemberQuickStart:function(){NC.widget.ResumeUploadManager.getResumeInfo(NC.widget.MemberManager._showMemberQuickStart)},_showMemberQuickStart:function(){var t='<div id="ContentContainer"> 	<div class="leftcolumn"> 		<div class="highlights"> 		    <h3>Your NimbleCat Score</h3>		<div id="membereval">		<p>'+NC.widget.ResumeUploadManager.getNCScoreExplanation()+'        </p>			</div> 			<div> 				<div class="ncbadgelarge" id="largencbadge"></div>			</div>		    <p>This certificate verifies your NimbleCat Score.  When you display your NimbleCat Score in your email or on                LinkedIn, FaceBook or another social network and someone clicks on it, this certificate will be displayed along with                 your public profile. </p>    	</div>	</div> 	<div class="contentbody" id="centercontent">         <div id="LeftSpacer">             <img src="../imagesv2/1X500_spacer.gif">        </div>        <h4 id="stepOne">Promote yourself online</h4>		<h5  class="numbersText">Add your NimbleCat Score to your 		<a href="#" onclick="xmlHttpGet(\'./sc.php?ct=20&cd=55&cl=nc_emailsignature\', true)">email</a>, 		<a href="#" onclick="xmlHttpGet(\'./sc.php?ct=20&cd=55&cl=nc_facebook\', true)">FaceBook</a>, 		<a href="#" onclick="xmlHttpGet(\'./sc.php?ct=20&cd=55&cl=nc_linkedin\', true)">LinkedIn</a>,		and <a href="#" onclick="xmlHttpGet(\'./sc.php?ct=20&cd=55&cl=nc_plaxo\', true)">Plaxo</a> 		profiles.</h5>        <h4 id="stepTwo">Connect with professionals you don\'t know</h4>        <h5  class="numbersText">Want to broaden your network?         <a href="#" onclick="NC.util.AjaxManager._xmlHttpGet(\'js_searchedit_ajax.php?NewJob=1\', \'MainFrame\', 0)">Find new colleagues</a>.</h5>        <h4 id="stepThree">Connect with your colleagues</h4>		<h5  class="numbersText">Did you get referred by a friend? You\'re now connected to that person. See your connections by clicking the Connections tab above.</h5>        <h4 id="stepThree">Tell a friend</h4>		<h5  class="numbersText">Like what you see? <a href="#" onclick="xmlHttpGet(\'./inv_send_email_form.php\', true)">Tell your friends</a>. Feel free to browse. You can get back to this page by clicking the 		QuickStart link at the top of the page.</h5>	</div>  	<div class="rightcolumn"> 		<div id="Promo" class="promo"> 		</div> 		<div id ="Links"class="links"> 		</div> 	</div> </div> ';var n="stepOne";if(NC.widget.StateManager.isConfirmedRegistrationSet()){n="stepOneDone"}var s="stepTwo";if(NC.widget.StateManager.isViewedProfileSet()){s="stepTwoDone"}var o="stepThree";if(NC.widget.StateManager.isUpdatedSecuritySet()){o="stepThreeDone"}var r='<div id="ContentContainer"> 	<div class="leftcolumn"> 		<div class="highlights"> 		    <h3>Your NimbleCat Score</h3>			<div id="membereval">				<p>'+NC.widget.ResumeUploadManager.getNCScoreExplanation()+'        		</p>				</div>     	</div>	</div> 	<div class="contentbody" id="centercontent">         <div id="LeftSpacer">             <img src="../imagesv2/1X500_spacer.gif">        </div>';r+='		<div id ="steps"> 			<h4 id="'+n+'">Confirm Your Membership</h1>			<h5 class="numbersText">We sent an email to the address in your resume. Click on the confirmation link in that email. Then, exchange the password that we sent you for a password you can remember</h5>			<h4 id="'+s+'"><a onclick="NC.widget.ResumeUploadManager.editResumeInfo(event,\'./getResumeInfo.php\', \'centercontent\')" href="#">Check Your Profile</a></h1>			<h5 class="numbersText">Your work experience affects your NimbleCat Score. Please make sure that our website correctly identified all of your work experience. <a href="#">Check</a> the the most common reasons why we might not identify 			all your work experience. Update your resume to fix these issues and <a onclick="showUploadPane(\'centercontent\')" href="#">upload it</a>.</h5>			<h4 id="'+o+'"><a onclick="NC.widget.DashboardManager.showJsSelectPrivacyPopup( event,-1, false)" href="#">Create Your Secure Public Profile</a></h1>			<h5 class="numbersText">Protect your privacy and decide how much of your profile the world sees.</h5>';r+='		</div> 	</div>  	<div class="rightcolumn"> 		<div class="highlights"> 		<h3>What next?</h3>		<p>Once you\'ve completed these steps, you\'ll be ready to use your NimbleCat Score to promote yourself everywhere you have an online presence. </p> 			</div>     	</div>	</div> </div> ';var p=t;if(NC.widget.StateManager.trainingWheels()==true){p=r}var q=document.getElementById("MainFrame");q.innerHTML=p;NC.widget.ResumeUploadManager.showBadge(NC.widget.ResumeUploadManager.getResumeId(),1,"largencbadge");updater=new NC.util.AjaxUpdate("GET","showPromo.php","Promo","Promo",null);updater.doUpdate(true);updater=new NC.util.AjaxUpdate("GET","showLinks.php","Links","Links",null);updater.doUpdate(true)},showGetBadge:function(){f()},showSimilarMembers:function(){this.writeWideMainFrame(function(){a();updater=new NC.util.AjaxUpdate("GET","showPromo.php","Promo","Promo",null);updater.doUpdate(true)})},showJobs:function(){var n=NC.widget.ResumeUploadManager.getTotalJobAlerts();if(NC.widget.StateManager.isConfirmedRegistrationSet()&&NC.widget.StateManager.isUploadedResumeSet()&&NC.widget.StateManager.jobAlertsConfigured()&&n>0){this.writeWideMainFrame(function(){NC.util.AjaxManager._xmlHttpGet("./sc.php?ct=1&maplink=1","centercontent",false);updater=new NC.util.AjaxUpdate("GET","showPromo.php","Promo","Promo",null);updater.doUpdate(true)})}else{l()}},writeWideMainFrame:function(o){var n='<div id="ContentContainer"> 	<div id="LeftColumnWide" class="leftcolumnwide"> 		<div id="Messages"> 		</div> 		<div id="Offers"> 		</div>  		<div class="contentbody" id="centercontent"> 		</div>   	</div> 	<div class="rightcolumnwide">  		<div id="Promo" class="promo" style="width:200px;float:right;"> 		</div> 	</div>  </div> <!-- end content container --> ';elMainFrame=document.getElementById("MainFrame");elMainFrame.innerHTML=n;NC.util.Event.onContentReady("MainFrame",function(){o()})},updateMemberEvalAndBadgePublic:function(p,o,n){b(p,o,n)},showGradeProfilePage:function(n){var o="gradeProfilePage.php?appName="+n;var p=new NC.util.AjaxUpdate("GET",o,"MainFrame","MainFrame",null);p.doUpdate(true)},showPostGradeProfilePage:function(){NC.widget.ResumeUploadManager.getResumeInfo(m)},showConfigureJobAlerts:function(){NC.widget.ResumeUploadManager.getResumeInfo(j)},showJobAlerts:function(){NC.widget.ResumeUploadManager.getResumeInfo(c)}}}()})();NC.widget.TreeView=function(a){if(a){this.init(a)}};NC.widget.TreeView.prototype={id:null,_el:null,_nodes:null,locked:false,_expandAnim:null,_collapseAnim:null,_animCount:0,maxAnim:2,setExpandAnim:function(a){this._expandAnim=(NC.widget.TVAnim.isValid(a))?a:null},setCollapseAnim:function(a){this._collapseAnim=(NC.widget.TVAnim.isValid(a))?a:null},animateExpand:function(d,e){if(this._expandAnim&&this._animCount<this.maxAnim){var b=this;var c=NC.widget.TVAnim.getAnim(this._expandAnim,d,function(){b.expandComplete(e)});if(c){++this._animCount;this.fireEvent("animStart",{node:e,type:"expand"});c.animate()}return true}return false},animateCollapse:function(d,e){if(this._collapseAnim&&this._animCount<this.maxAnim){var b=this;var c=NC.widget.TVAnim.getAnim(this._collapseAnim,d,function(){b.collapseComplete(e)});if(c){++this._animCount;this.fireEvent("animStart",{node:e,type:"collapse"});c.animate()}return true}return false},expandComplete:function(a){--this._animCount;this.fireEvent("animComplete",{node:a,type:"expand"})},collapseComplete:function(a){--this._animCount;this.fireEvent("animComplete",{node:a,type:"collapse"})},init:function(b){this.id=b;if("string"!==typeof b){this._el=b;this.id=this.generateId(b)}this.createEvent("animStart",this);this.createEvent("animComplete",this);this.createEvent("collapse",this);this.createEvent("collapseComplete",this);this.createEvent("expand",this);this.createEvent("expandComplete",this);this._nodes=[];NC.widget.TreeView.trees[this.id]=this;this.root=new NC.widget.RootNode(this);var a=NC.widget.LogWriter},draw:function(){var a=this.root.getHtml();this.getEl().innerHTML=a;this.firstDraw=false},getEl:function(){if(!this._el){this._el=document.getElementById(this.id)}return this._el},regNode:function(a){this._nodes[a.index]=a},getRoot:function(){return this.root},setDynamicLoad:function(a,b){this.root.setDynamicLoad(a,b)},expandAll:function(){if(!this.locked){this.root.expandAll()}},collapseAll:function(){if(!this.locked){this.root.collapseAll()}},getNodeByIndex:function(b){var a=this._nodes[b];return(a)?a:null},getNodeByProperty:function(c,b){for(var a in this._nodes){var d=this._nodes[a];if(d.data&&b==d.data[c]){return d}}return null},getNodesByProperty:function(d,c){var a=[];for(var b in this._nodes){var e=this._nodes[b];if(e.data&&c==e.data[d]){a.push(e)}}return(a.length)?a:null},getNodeByElement:function(c){var d=c,a,b=/ygtv([^\d]*)(.*)/;do{if(d&&d.id){a=d.id.match(b);if(a&&a[2]){return this.getNodeByIndex(a[2])}}d=d.parentNode;if(!d||!d.tagName){break}}while(d.id!==this.id&&d.tagName.toLowerCase()!=="body");return null},removeNode:function(b,a){if(b.isRoot()){return false}var c=b.parent;if(c.parent){c=c.parent}this._deleteNode(b);if(a&&c&&c.childrenRendered){c.refresh()}return true},_removeChildren_animComplete:function(a){this.unsubscribe(this._removeChildren_animComplete);this.removeChildren(a.node)},removeChildren:function(a){if(a.expanded){if(this._collapseAnim){this.subscribe("animComplete",this._removeChildren_animComplete,this,true);NC.widget.Node.prototype.collapse.call(a);return}a.collapse()}while(a.children.length){this._deleteNode(a.children[0])}if(a.isRoot()){NC.widget.Node.prototype.expand.call(a)}a.childrenRendered=false;a.dynamicLoadComplete=false;a.updateIcon()},_deleteNode:function(a){this.removeChildren(a);this.popNode(a)},popNode:function(e){var f=e.parent;var c=[];for(var d=0,b=f.children.length;d<b;++d){if(f.children[d]!=e){c[c.length]=f.children[d]}}f.children=c;f.childrenRendered=false;if(e.previousSibling){e.previousSibling.nextSibling=e.nextSibling}if(e.nextSibling){e.nextSibling.previousSibling=e.previousSibling}e.parent=null;e.previousSibling=null;e.nextSibling=null;e.tree=null;delete this._nodes[e.index]},toString:function(){return"TreeView "+this.id},generateId:function(a){var b=a.id;if(!b){b="yui-tv-auto-id-"+NC.widget.TreeView.counter;++NC.widget.TreeView.counter}return b},onExpand:function(a){},onCollapse:function(a){}};NC.augment(NC.widget.TreeView,NC.util.EventProvider);NC.widget.TreeView.nodeCount=0;NC.widget.TreeView.trees=[];NC.widget.TreeView.counter=0;NC.widget.TreeView.getTree=function(b){var a=NC.widget.TreeView.trees[b];return(a)?a:null};NC.widget.TreeView.getNode=function(b,c){var a=NC.widget.TreeView.getTree(b);return(a)?a.getNodeByIndex(c):null};NC.widget.TreeView.addHandler=function(b,c,a){if(b.addEventListener){b.addEventListener(c,a,false)}else{if(b.attachEvent){b.attachEvent("on"+c,a)}}};NC.widget.TreeView.removeHandler=function(b,c,a){if(b.removeEventListener){b.removeEventListener(c,a,false)}else{if(b.detachEvent){b.detachEvent("on"+c,a)}}};NC.widget.TreeView.preload=function(h,g){g=g||"ygtv";var c=["tn","tm","tmh","tp","tph","ln","lm","lmh","lp","lph","loading"];var j=[];for(var a=1;a<c.length;a=a+1){j[j.length]='<span class="'+g+c[a]+'">&#160;</span>'}var d=document.createElement("div");var b=d.style;b.className=g+c[0];b.position="absolute";b.height="1px";b.width="1px";b.top="-1000px";b.left="-1000px";d.innerHTML=j.join("");document.body.appendChild(d);NC.widget.TreeView.removeHandler(window,"load",NC.widget.TreeView.preload)};NC.widget.TreeView.addHandler(window,"load",NC.widget.TreeView.preload);NC.widget.Node=function(c,b,a){if(c){this.init(c,b,a)}};NC.widget.Node.prototype={index:0,children:null,tree:null,data:null,parent:null,depth:-1,href:null,target:"_self",expanded:false,multiExpand:true,renderHidden:false,childrenRendered:false,dynamicLoadComplete:false,previousSibling:null,nextSibling:null,_dynLoad:false,dataLoader:null,isLoading:false,hasIcon:true,iconMode:0,nowrap:false,isLeaf:false,_type:"Node",init:function(c,b,a){this.data=c;this.children=[];this.index=NC.widget.TreeView.nodeCount;++NC.widget.TreeView.nodeCount;this.expanded=a;this.createEvent("parentChange",this);if(b){b.appendChild(this)}},applyParent:function(b){if(!b){return false}this.tree=b.tree;this.parent=b;this.depth=b.depth+1;if(!this.href){this.href="javascript:"+this.getToggleLink()}this.tree.regNode(this);b.childrenRendered=false;for(var c=0,a=this.children.length;c<a;++c){this.children[c].applyParent(this)}this.fireEvent("parentChange");return true},appendChild:function(b){if(this.hasChildren()){var a=this.children[this.children.length-1];a.nextSibling=b;b.previousSibling=a}this.children[this.children.length]=b;b.applyParent(this);if(this.childrenRendered&&this.expanded){this.getChildrenEl().style.display=""}return b},appendTo:function(a){return a.appendChild(this)},insertBefore:function(a){var c=a.parent;if(c){if(this.tree){this.tree.popNode(this)}var b=a.isChildOf(c);c.children.splice(b,0,this);if(a.previousSibling){a.previousSibling.nextSibling=this}this.previousSibling=a.previousSibling;this.nextSibling=a;a.previousSibling=this;this.applyParent(c)}return this},insertAfter:function(a){var c=a.parent;if(c){if(this.tree){this.tree.popNode(this)}var b=a.isChildOf(c);if(!a.nextSibling){this.nextSibling=null;return this.appendTo(c)}c.children.splice(b+1,0,this);a.nextSibling.previousSibling=this;this.previousSibling=a;this.nextSibling=a.nextSibling;a.nextSibling=this;this.applyParent(c)}return this},isChildOf:function(b){if(b&&b.children){for(var c=0,a=b.children.length;c<a;++c){if(b.children[c]===this){return c}}}return -1},getSiblings:function(){return this.parent.children},showChildren:function(){if(!this.tree.animateExpand(this.getChildrenEl(),this)){if(this.hasChildren()){this.getChildrenEl().style.display=""}}},hideChildren:function(){if(!this.tree.animateCollapse(this.getChildrenEl(),this)){this.getChildrenEl().style.display="none"}},getElId:function(){return"ygtv"+this.index},getChildrenElId:function(){return"ygtvc"+this.index},getToggleElId:function(){return"ygtvt"+this.index},getEl:function(){return document.getElementById(this.getElId())},getChildrenEl:function(){return document.getElementById(this.getChildrenElId())},getToggleEl:function(){return document.getElementById(this.getToggleElId())},getToggleLink:function(){return"NC.widget.TreeView.getNode('"+this.tree.id+"',"+this.index+").toggle()"},collapse:function(){if(!this.expanded){return}var a=this.tree.onCollapse(this);if(false===a){return}a=this.tree.fireEvent("collapse",this);if(false===a){return}if(!this.getEl()){this.expanded=false}else{this.hideChildren();this.expanded=false;this.updateIcon()}a=this.tree.fireEvent("collapseComplete",this)},expand:function(c){if(this.expanded&&!c){return}var a=true;if(!c){a=this.tree.onExpand(this);if(false===a){return}a=this.tree.fireEvent("expand",this)}if(false===a){return}if(!this.getEl()){this.expanded=true;return}if(!this.childrenRendered){this.getChildrenEl().innerHTML=this.renderChildren()}else{}this.expanded=true;this.updateIcon();if(this.isLoading){this.expanded=false;return}if(!this.multiExpand){var d=this.getSiblings();for(var b=0;b<d.length;++b){if(d[b]!=this&&d[b].expanded){d[b].collapse()}}}this.showChildren();a=this.tree.fireEvent("expandComplete",this)},updateIcon:function(){if(this.hasIcon){var a=this.getToggleEl();if(a){a.className=this.getStyle()}}},getStyle:function(){if(this.isLoading){return"ygtvloading"}else{var b=(this.nextSibling)?"t":"l";var a="n";if(this.hasChildren(true)||(this.isDynamic()&&!this.getIconMode())){a=(this.expanded)?"m":"p"}return"ygtv"+b+a}},getHoverStyle:function(){var a=this.getStyle();if(this.hasChildren(true)&&!this.isLoading){a+="h"}return a},expandAll:function(){for(var a=0;a<this.children.length;++a){var b=this.children[a];if(b.isDynamic()){alert("Not supported (lazy load + expand all)");break}else{if(!b.multiExpand){alert("Not supported (no multi-expand + expand all)");break}else{b.expand();b.expandAll()}}}},collapseAll:function(){for(var a=0;a<this.children.length;++a){this.children[a].collapse();this.children[a].collapseAll()}},setDynamicLoad:function(a,b){if(a){this.dataLoader=a;this._dynLoad=true}else{this.dataLoader=null;this._dynLoad=false}if(b){this.iconMode=b}},isRoot:function(){return(this==this.tree.root)},isDynamic:function(){if(this.isLeaf){return false}else{return(!this.isRoot()&&(this._dynLoad||this.tree.root._dynLoad))}},getIconMode:function(){return(this.iconMode||this.tree.root.iconMode)},hasChildren:function(a){if(this.isLeaf){return false}else{return(this.children.length>0||(a&&this.isDynamic()&&!this.dynamicLoadComplete))}},toggle:function(){if(!this.tree.locked&&(this.hasChildren(true)||this.isDynamic())){if(this.expanded){this.collapse()}else{this.expand()}}},getHtml:function(){this.childrenRendered=false;var a=[];a[a.length]='<div class="ygtvitem" id="'+this.getElId()+'">';a[a.length]=this.getNodeHtml();a[a.length]=this.getChildrenHtml();a[a.length]="</div>";return a.join("")},getChildrenHtml:function(){var a=[];a[a.length]='<div class="ygtvchildren"';a[a.length]=' id="'+this.getChildrenElId()+'"';if(!this.expanded||!this.hasChildren()){a[a.length]=' style="display:none;"'}a[a.length]=">";if((this.hasChildren(true)&&this.expanded)||(this.renderHidden&&!this.isDynamic())){a[a.length]=this.renderChildren()}a[a.length]="</div>";return a.join("")},renderChildren:function(){var a=this;if(this.isDynamic()&&!this.dynamicLoadComplete){this.isLoading=true;this.tree.locked=true;if(this.dataLoader){setTimeout(function(){a.dataLoader(a,function(){a.loadComplete()})},10)}else{if(this.tree.root.dataLoader){setTimeout(function(){a.tree.root.dataLoader(a,function(){a.loadComplete()})},10)}else{return"Error: data loader not found or not specified."}}return""}else{return this.completeRender()}},completeRender:function(){var b=[];for(var a=0;a<this.children.length;++a){b[b.length]=this.children[a].getHtml()}this.childrenRendered=true;return b.join("")},loadComplete:function(){this.getChildrenEl().innerHTML=this.completeRender();this.dynamicLoadComplete=true;this.isLoading=false;this.expand(true);this.tree.locked=false},getAncestor:function(b){if(b>=this.depth||b<0){return null}var a=this.parent;while(a.depth>b){a=a.parent}return a},getDepthStyle:function(a){return(this.getAncestor(a).nextSibling)?"ygtvdepthcell":"ygtvblankdepthcell"},getNodeHtml:function(){return""},refresh:function(){this.getChildrenEl().innerHTML=this.completeRender();if(this.hasIcon){var a=this.getToggleEl();if(a){a.className=this.getStyle()}}},toString:function(){return"Node ("+this.index+")"}};NC.augment(NC.widget.Node,NC.util.EventProvider);NC.widget.TextNode=function(c,b,a){if(c){this.init(c,b,a);this.setUpLabel(c)}};NC.extend(NC.widget.TextNode,NC.widget.Node,{labelStyle:"ygtvlabel",labelElId:null,label:null,textNodeParentChange:function(){if(this.tree&&!this.tree.hasEvent("labelClick")){this.tree.createEvent("labelClick",this.tree)}},setUpLabel:function(a){this.textNodeParentChange();this.subscribe("parentChange",this.textNodeParentChange);if(typeof a=="string"){a={label:a}}this.label=a.label;this.data.label=a.label;if(a.href){this.href=encodeURI(a.href)}if(a.target){this.target=a.target}if(a.style){this.labelStyle=a.style}if(a.title){this.title=a.title}this.labelElId="ygtvlabelel"+this.index},getLabelEl:function(){return document.getElementById(this.labelElId)},getNodeHtml:function(){var c=[];c[c.length]='<table border="0" cellpadding="0" cellspacing="0">';c[c.length]="<tr>";for(var a=0;a<this.depth;++a){c[c.length]='<td class="'+this.getDepthStyle(a)+'"><div class="ygtvspacer"></div></td>'}var b="NC.widget.TreeView.getNode('"+this.tree.id+"',"+this.index+")";c[c.length]="<td";c[c.length]=' id="'+this.getToggleElId()+'"';c[c.length]=' class="'+this.getStyle()+'"';if(this.hasChildren(true)){c[c.length]=' onmouseover="this.className=';c[c.length]=b+'.getHoverStyle()"';c[c.length]=' onmouseout="this.className=';c[c.length]=b+'.getStyle()"'}c[c.length]=' onclick="javascript:'+this.getToggleLink()+'">';c[c.length]='<div class="ygtvspacer">';c[c.length]="</div>";c[c.length]="</td>";c[c.length]="<td ";c[c.length]=(this.nowrap)?' nowrap="nowrap" ':"";c[c.length]=" >";c[c.length]="<a";c[c.length]=' id="'+this.labelElId+'"';if(this.title){c[c.length]=' title="'+this.title+'"'}c[c.length]=' class="'+this.labelStyle+'"';c[c.length]=' href="'+this.href+'"';c[c.length]=' target="'+this.target+'"';c[c.length]=' onclick="return '+b+".onLabelClick("+b+')"';if(this.hasChildren(true)){c[c.length]=" onmouseover=\"document.getElementById('";c[c.length]=this.getToggleElId()+"').className=";c[c.length]=b+'.getHoverStyle()"';c[c.length]=" onmouseout=\"document.getElementById('";c[c.length]=this.getToggleElId()+"').className=";c[c.length]=b+'.getStyle()"'}c[c.length]=" >";c[c.length]=this.label;c[c.length]="</a>";c[c.length]="</td>";c[c.length]="</tr>";c[c.length]="</table>";return c.join("")},onLabelClick:function(a){return a.tree.fireEvent("labelClick",a)},toString:function(){return"TextNode ("+this.index+") "+this.label}});NC.widget.RootNode=function(a){this.init(null,null,true);this.tree=a};NC.extend(NC.widget.RootNode,NC.widget.Node,{getNodeHtml:function(){return""},toString:function(){return"RootNode"},loadComplete:function(){this.tree.draw()},collapse:function(){},expand:function(){}});NC.widget.HTMLNode=function(d,c,b,a){if(d){this.init(d,c,b);this.initContent(d,a)}};NC.extend(NC.widget.HTMLNode,NC.widget.Node,{contentStyle:"ygtvhtml",contentElId:null,html:null,initContent:function(b,a){this.setHtml(b);this.contentElId="ygtvcontentel"+this.index;this.hasIcon=a},setHtml:function(b){this.data=b;this.html=(typeof b==="string")?b:b.html;var a=this.getContentEl();if(a){a.innerHTML=this.html}},getContentEl:function(){return document.getElementById(this.contentElId)},getNodeHtml:function(){var b=[];b[b.length]='<table border="0" cellpadding="0" cellspacing="0">';b[b.length]="<tr>";for(var a=0;a<this.depth;++a){b[b.length]='<td class="'+this.getDepthStyle(a)+'"><div class="ygtvspacer"></div></td>'}if(this.hasIcon){b[b.length]="<td";b[b.length]=' id="'+this.getToggleElId()+'"';b[b.length]=' class="'+this.getStyle()+'"';b[b.length]=' onclick="javascript:'+this.getToggleLink()+'"';if(this.hasChildren(true)){b[b.length]=' onmouseover="this.className=';b[b.length]="NC.widget.TreeView.getNode('";b[b.length]=this.tree.id+"',"+this.index+').getHoverStyle()"';b[b.length]=' onmouseout="this.className=';b[b.length]="NC.widget.TreeView.getNode('";b[b.length]=this.tree.id+"',"+this.index+').getStyle()"'}b[b.length]='><div class="ygtvspacer"></div></td>'}b[b.length]="<td";b[b.length]=' id="'+this.contentElId+'"';b[b.length]=' class="'+this.contentStyle+'"';b[b.length]=(this.nowrap)?' nowrap="nowrap" ':"";b[b.length]=" >";b[b.length]=this.html;b[b.length]="</td>";b[b.length]="</tr>";b[b.length]="</table>";return b.join("")},toString:function(){return"HTMLNode ("+this.index+")"}});NC.widget.MenuNode=function(c,b,a){if(c){this.init(c,b,a);this.setUpLabel(c)}this.multiExpand=false};NC.extend(NC.widget.MenuNode,NC.widget.TextNode,{toString:function(){return"MenuNode ("+this.index+") "+this.label}});NC.widget.TVAnim=function(){return{FADE_IN:"TVFadeIn",FADE_OUT:"TVFadeOut",getAnim:function(b,a,c){if(NC.widget[b]){return new NC.widget[b](a,c)}else{return null}},isValid:function(a){return(NC.widget[a])}}}();NC.widget.TVFadeIn=function(a,b){this.el=a;this.callback=b};NC.widget.TVFadeIn.prototype={animate:function(){var e=this;var d=this.el.style;d.opacity=0.1;d.filter="alpha(opacity=10)";d.display="";var c=0.4;var b=new NC.util.Anim(this.el,{opacity:{from:0.1,to:1,unit:""}},c);b.onComplete.subscribe(function(){e.onComplete()});b.animate()},onComplete:function(){this.callback()},toString:function(){return"TVFadeIn"}};NC.widget.TVFadeOut=function(a,b){this.el=a;this.callback=b};NC.widget.TVFadeOut.prototype={animate:function(){var d=this;var c=0.4;var b=new NC.util.Anim(this.el,{opacity:{from:1,to:0.1,unit:""}},c);b.onComplete.subscribe(function(){d.onComplete()});b.animate()},onComplete:function(){var a=this.el.style;a.display="none";a.filter="alpha(opacity=100)";this.callback()},toString:function(){return"TVFadeOut"}};NC.widget.TaskNode=function(e,d,b,c,a){if(e){this.init(e,d,b);this.setUpLabel(e);this.setUpCheck(c)}this.partialParentCheck=a};NC.extend(NC.widget.TaskNode,NC.widget.TextNode,{checked:false,checkState:0,taskNodeParentChange:function(){},setUpCheck:function(a){if(a&&a===true){this.check()}else{if(this.parent&&2===this.parent.checkState){this.updateParent()}}if(this.tree&&!this.tree.hasEvent("checkClick")){this.tree.createEvent("checkClick",this.tree)}this.subscribe("parentChange",this.taskNodeParentChange)},getCheckElId:function(){return"ygtvcheck"+this.index},getCheckEl:function(){return document.getElementById(this.getCheckElId())},getCheckStyle:function(){return"ygtvcheck"+this.checkState},getCheckLink:function(){return"NC.widget.TreeView.getNode('"+this.tree.id+"',"+this.index+").checkClick()"},checkClick:function(){if(this.checkState===0){this.check()}else{this.uncheck()}this.onCheckClick(this);this.tree.fireEvent("checkClick",this)},onCheckClick:function(){},updateParent:function(){var e=this.parent;if(!e||!e.updateParent){return}var a=false;var d=false;for(var c=0,b=e.children.length;c<b;c=c+1){var f=e.children[c];if("checked" in f){if(f.checked){a=true;if(f.checkState===1){d=true}}else{d=true}}}if(a){if(e.partialParentCheck){e.setCheckState(1)}else{e.setCheckState((d)?1:2)}}else{e.setCheckState(0)}e.updateCheckHtml();e.updateParent()},updateCheckHtml:function(){if(this.parent&&this.parent.childrenRendered){this.getCheckEl().className=this.getCheckStyle()}},setCheckState:function(a){this.checkState=a;this.checked=(a>0)},check:function(){this.setCheckState(2);this.updateCheckHtml();this.updateParent()},uncheck:function(){this.setCheckState(0);for(var b=0,a=this.children.length;b<a;b=b+1){var d=this.children[b];if(d.uncheck){d.uncheck()}}this.updateCheckHtml();this.updateParent()},getNodeHtml:function(){var c=[];var b="NC.widget.TreeView.getNode('"+this.tree.id+"',"+this.index+")";c[c.length]='<table border="0" cellpadding="0" cellspacing="0">';c[c.length]="<tr>";for(var a=0;a<this.depth;++a){c[c.length]='<td class="'+this.getDepthStyle(a)+'"><div class="ygtvspacer"></div></td>'}c[c.length]="<td";c[c.length]=' id="'+this.getToggleElId()+'"';c[c.length]=' class="'+this.getStyle()+'"';if(this.hasChildren(true)){c[c.length]=' onmouseover="this.className=';c[c.length]="NC.widget.TreeView.getNode('";c[c.length]=this.tree.id+"',"+this.index+').getHoverStyle()"';c[c.length]=' onmouseout="this.className=';c[c.length]="NC.widget.TreeView.getNode('";c[c.length]=this.tree.id+"',"+this.index+').getStyle()"'}c[c.length]=' onclick="javascript:'+this.getToggleLink()+'">';c[c.length]='<div class="ygtvspacer"></div></td>';c[c.length]="<td";c[c.length]=' id="'+this.getCheckElId()+'"';c[c.length]=' class="'+this.getCheckStyle()+'"';c[c.length]=' onclick="javascript:'+this.getCheckLink()+'">';c[c.length]='<div class="ygtvspacer"></div></td>';c[c.length]="<td>";c[c.length]="<a";c[c.length]=' id="'+this.labelElId+'"';if(this.title){c[c.length]=' title="'+this.title+'"'}c[c.length]=' class="'+this.labelStyle+'"';c[c.length]=' href="'+this.href+'"';c[c.length]=' target="'+this.target+'"';c[c.length]=' onclick="return '+b+".onLabelClick("+b+')"';if(this.hasChildren(true)){c[c.length]=" onmouseover=\"document.getElementById('";c[c.length]=this.getToggleElId()+"').className=";c[c.length]="NC.widget.TreeView.getNode('";c[c.length]=this.tree.id+"',"+this.index+').getHoverStyle()"';c[c.length]=" onmouseout=\"document.getElementById('";c[c.length]=this.getToggleElId()+"').className=";c[c.length]="NC.widget.TreeView.getNode('";c[c.length]=this.tree.id+"',"+this.index+').getStyle()"'}c[c.length]=(this.nowrap)?' nowrap="nowrap" ':"";c[c.length]=" >";c[c.length]=this.label;c[c.length]="</a>";c[c.length]="</td>";c[c.length]="</tr>";c[c.length]="</table>";return c.join("")},toString:function(){return"TaskNode ("+this.index+") "+this.label}});NC.widget.AlphaNode=function(d,c,a,b){if(d){this.init(d,c,a);this.setUpLabel(d)}this.multiExpand=false};NC.extend(NC.widget.AlphaNode,NC.widget.MenuNode,{showChildLabels:function(){if(!this.expanded){var d=[];for(var b=0,a=this.children.length;b<a;++b){d[d.length]=this.children[b].label;if(b>5){d[d.length]="...";break}}var c=NC.util.Region.getRegion(this.getLabelEl());this.panel=new NC.widget.Popup("NCSocialGraphDisplay");this.panel.show(c.right+10,c.top,250,-1,function(e){e.innerHTML=d.join(", ")})}},hidePopup:function(){if(this.panel!=null){this.panel.hide()}},getNodeHtml:function(){var c=[];c[c.length]='<table border="0" cellpadding="0" cellspacing="0">';c[c.length]="<tr>";for(var a=0;a<this.depth;++a){c[c.length]='<td class="'+this.getDepthStyle(a)+'"><div class="ygtvspacer"></div></td>'}var b="NC.widget.TreeView.getNode('"+this.tree.id+"',"+this.index+")";c[c.length]="<td";c[c.length]=' id="'+this.getToggleElId()+'"';c[c.length]=' class="'+this.getStyle()+'"';if(this.hasChildren(true)){c[c.length]=' onmouseover="this.className=';c[c.length]=b+'.getHoverStyle()"';c[c.length]=' onmouseout="this.className=';c[c.length]=b+'.getStyle()"'}c[c.length]=' onclick="javascript:'+this.getToggleLink()+'">';c[c.length]='<div class="ygtvspacer">';c[c.length]="</div>";c[c.length]="</td>";c[c.length]="<td ";c[c.length]=(this.nowrap)?' nowrap="nowrap" ':"";c[c.length]=" >";c[c.length]="<a";c[c.length]=' id="'+this.labelElId+'"';if(this.title){c[c.length]=' title="'+this.title+'"'}c[c.length]=' class="'+this.labelStyle+'"';c[c.length]=' href="'+this.href+'"';c[c.length]=' target="'+this.target+'"';c[c.length]=' onclick="return '+b+".onLabelClick("+b+')"';if(this.hasChildren(true)){c[c.length]=" onmouseover=\"document.getElementById('";c[c.length]=this.getToggleElId()+"').className=";c[c.length]=b+".getHoverStyle();"+b+'.showChildLabels();"';c[c.length]=" onmouseout=\"document.getElementById('";c[c.length]=this.getToggleElId()+"').className=";c[c.length]=b+".getStyle();"+b+'.hidePopup();"'}c[c.length]=" >";c[c.length]=this.label;c[c.length]="</a>";c[c.length]="</td>";c[c.length]="</tr>";c[c.length]="</table>";return c.join("")},});(function(){NC.widget.CategoryManager=function(){var h=null;var c=null;var a=null;var f=null;var d=-1;var g="";var e=false;var b=null;return{StrNode:"node",StrId:"id",StrName:"name",StrChildren:"children",getSelectedCategory:function(){return d},getSelectedCategoryName:function(){return g},isBrowserShown:function(){return e},hideCategoryBrowser:function(){},ignoreSearchResultsCallback:function(){},showCategoryBrowser:function(j,m,n){var l=-1;var k=-1;if(typeof n!="undefined"){var i=document.getElementById(n);var o=NC.util.Region.getRegion(i);l=o.left+3;k=o.bottom}b=m;var p={cancel:this.ignoreSearchResultsCallback};NC.widget.MessageManager.showDialog("ncfunc:showcategorybrowser","NCCategoryWrapper",p,true,300,l,k);NC.widget.QueryManager.hidePromoAnimation()},showCategoryTree:function(m,o){var l=document.getElementById(m);var j=document.getElementById(o);NC.util.Dom.setClassName(j,"dialog");var k=document.createElement("div");k.id=o+"_tree";j.appendChild(k);var n={success:function(q){h=q.responseXML;var p="";a=new NC.widget.TreeView(k.id);p=this.traverse(h.documentElement,p,a,a.getRoot());a.subscribe("labelClick",function(s){if(!s.hasChildren()){d=s.categoryId;g=s.label;NC.widget.MessageManager.hideDialog();e=false;var r=document.getElementById("PrimaryCategoryName");if(r!=null){r.value=g}var t=document.getElementById("PrimaryCategory");if(t!=null){t.value=d}if(b!=null){b(g,d)}}else{if(s.childrenRendered&&s.categoryId!=-2){d=s.categoryId;g=s.label;NC.widget.MessageManager.hideDialog();e=false;var r=document.getElementById("PrimaryCategoryName");if(r!=null){r.value=g}var t=document.getElementById("PrimaryCategory");if(t!=null){t.value=d}if(b!=null){b(g,d)}}}});a.getRoot().expand();if(c!=null){c.expand()}a.draw();e=true},failure:function(p){},scope:this};var i=new NC.util.AjaxConnection("GET","getCategoryXml.php",null);i.executeMethod(n)},traverse:function(r,p,t,k){if(r.hasChildNodes()){var q="";if(r.firstChild!=null){q=r.firstChild.nodeValue}if(r.nodeName==NC.widget.CategoryManager.StrNode){var l=new NC.widget.MenuNode("tmp",k,false);if(k==t.getRoot()){c=l;var s=new NC.widget.MenuNode("tmp",c,false);s.setUpLabel("Any");s.data.categoryId=-1;s.categoryId=-1}k=l}var m="";var n="";for(var o=0;o<r.childNodes.length;o++){var j=r.childNodes.item(o);if(j.nodeName==NC.widget.CategoryManager.StrName){m=j.firstChild.nodeValue}if(j.nodeName==NC.widget.CategoryManager.StrId){n=j.firstChild.nodeValue}p=this.traverse(j,p,t,k)}k.setUpLabel(m);k.data.categoryId=n;k.categoryId=n}return p}}}()})();if(typeof NC=="undefined"){alert("promo.js requires the NC JavaScript framework")}(function(){NC.promo.PromoManager=function(){var a=null;var b=null;var c=100;return{getPromo:function(){return a},setPromo:function(d){a=d},setSelectionId:function(d){b=d},getSelectionId:function(){return b},hidePromo:function(){if(a!=null){var d=document.getElementById(a.getPromoFrameName());d.style.display="none";var e=document.getElementById(a.getPromoDivName());e.innerHTML=""}},startPeopleSearchPromo:function(f,g,e){gaPageTracker._trackEvent(this.getCpid(),"Click","PeopleSearch");var d=new NC.promo.PeopleSearchPromo(f,g,e);this.setPromo(d);d.start()},ShowSearchResult:1,ShowMoreLikeMe:2,ShowWelcomePage:4,doAutoLogin:function(h,p,s,q,g){gaPageTracker._trackEvent(NC.promo.PromoManager.getCpid(),"Click","SignupWoResume");var n="";var i="";var f="";var e="";var o="";var k=document.getElementById("Email");if(k!=null){n=NC.util.Dom.getValue(k)}var d=document.getElementById("Name");if(d!=null){f=NC.util.Dom.getValue(d)}var m=document.getElementById("PeopleSearchQuery");if(m!=null){o=NC.util.Dom.getValue(m)}var j="./js_doautosignup.php?";var l=new Object();l.Name=f;l.Email=n;l.Md5Id=i;l.ZipCode=e;l.us=p;if((s&this.ShowSearchResult)>0){l.q=o}else{if((s&this.ShowWelcomePage)>0){l.Content=q}}if(g==null||welcomePopUrl.length==0){g="welcomeGeneral.php"}l.Welcome=g;var r={};progressDialog="./progress.php";NC.widget.MessageManager.showDialog(progressDialog,h,r,false,400);NC.widget.LoginManager.clearLoginFormVisibleFlag();NC.widget.LoginManager.doAutoLogin(j,l,h)},startLinkOrResumeUploadPromo:function(f,d){gaPageTracker._trackEvent(this.getCpid(),"Click","GradeLinkToProfile");if(typeof f=="undefined"){f="ProfileScoreDiv"}if(typeof d=="undefined"){d="./uploadResumeFromLink.php"}var e=new NC.promo.LinkOrResumeUploadPromo(f,"",d);if(e!=null){NC.promo.PromoManager.setPromo(e);e.start()}},startScoreWoSignupPromo:function(f,d){gaPageTracker._trackEvent(this.getCpid(),"Click","GradeResume");if(typeof f=="undefined"){f="ProfileScoreDiv"}if(typeof d=="undefined"){d="./uploadScoreResume1.php"}var e=new NC.promo.ScoreWoSignupPromo(f,"",d);if(e!=null){NC.promo.PromoManager.setPromo(e);e.start()}},getCpid:function(){var d=NC.util.UrlUtil.parameterExists(window.location.search,"cpid");if(d==null){return c}else{return d[1]}},setCpid:function(d){c=d},getParameterValue:function(d){var e=NC.util.UrlUtil.parameterExists(window.location.search,d);if(e==null){return -1}else{return e[1]}},uploadAndScoreResume:function(){gaPageTracker._trackEvent(this.getCpid(),"Click","UploadAndScoreResume");NC.widget.ResumeUploadManager.getUploadDialog().doFileUpload()},startCandidateSearch:function(){gaPageTracker._trackEvent(this.getCpid(),"Click","DoCandidateSearch");NC.util.AjaxManager.doCandidateSearchCheckInvite()},showLogin:function(){var d=this.getParameterValue("cxid");var e="ConsumerLogin";if(d==6){e="EmployerLogin"}gaPageTracker._trackEvent(this.getCpid(),"Click",e);NC.widget.LoginManager.showLoginDialog("../content/jslogin_v3.php",false,250)},startFacebookPromo:function(d){gaPageTracker._trackEvent(this.getCpid(),"Click","GradeFacebookProfile");if(typeof d=="undefined"){d="ProfileScoreDiv"}promo=new NC.promo.FacebookProfileAnalyzerPromo(d,null);if(promo!=null){NC.promo.PromoManager.setPromo(promo);promo.start()}},startFacebookLoginPromo:function(d){gaPageTracker._trackEvent(this.getCpid(),"Click","FacebookLogin");promo=new NC.promo.FacebookLoginPromo("ProfileScoreDiv",null,d);if(promo!=null){NC.promo.PromoManager.setPromo(promo);promo.start()}},startFacebookAuthorizationPromo:function(d){promo=new NC.promo.FacebookAuthorizationPromo(d,"ProfileScoreDiv",null);if(promo!=null){NC.promo.PromoManager.setPromo(promo);promo.start()}},makeFullName:function(f,e,d){var g=f;if(e.length>1||e!="-"){g+=" "+e}g+=" "+d;return g}}}()})();NC.promo.Base=function(a,b){this.promoDivName=a;this.promoFrameName=b};NC.promo.Base.formatWelcome=function(g){var l=NC.util.Dom.extractEncodedField(g,NC.widget.ResumeWizard.StrFirstname);var m=NC.util.Dom.extractEncodedField(g,NC.widget.ResumeWizard.StrLastname);var e=NC.util.Dom.extractEncodedField(g,NC.widget.ResumeWizard.StrMiddleinitial);var n=NC.util.Dom.extractField(g,NC.widget.ResumeWizard.StrNCScore);var d=NC.util.Dom.extractField(g,NC.widget.ResumeWizard.StrManagerCategory);var a=NC.util.Dom.extractField(g,NC.widget.ResumeWizard.StrExplanation);var j="";var h=g.getElementsByTagName("category");if(h.getLength()>0){j+="<h1>NC";j+=n;j+="</h1><p>";if(d==NC.widget.ResumeWizard.ManagerCategory_Manager){j+="Your resume indicates that you are a manager.</p><p>"}else{if(d==NC.widget.ResumeWizard.ManagerCategory_Exec){j+="Your resume indicates that you are an executive.</p><p>"}}if(h.getLength()>0){j+="Your resume indicates skills and experience in "}for(ci=0;ci<h.getLength();ci++){if(ci>0){j+=", "}var c=h.item(ci);var f=c.getElementsByTagName("categoryname").item(0);var i=f.getFirstChild().getNodeValue();var k=c.getElementsByTagName("categoryweight").item(0);var b=k.getFirstChild().getNodeValue();j+=i}j+="</p>";return j}};NC.promo.Base.prototype={start:function(){},showUploadPage:function(){},loginUser:function(){},getPromoDivName:function(){return this.promoDivName},getPromoFrameName:function(){return this.promoFrameName},positionPromoDialog:function(b){var a=document.getElementById("PageContainer");var c=NC.util.Dom.getAbsoluteXY(a);c[0]+=450;c[1]+=375;b.style.left=c[0]+"px";b.style.top=c[1]+"px";b.style.width="460px"},centerPromoDialog:function(c,e){var a=document.getElementById(e);var d=NC.util.Dom.getAbsoluteXY(a);var b=460;d[0]+=(950-b)/2;d[1]+=(800-375)/2;c.style.left=d[0]+"px";c.style.top=d[1]+"px";c.style.width=b+"px"},setDocRoot:function(a){this.docRoot=a},getDocRoot:function(){return this.docRoot},doAutoLogin:function(d,k){if(typeof d!="undefined"&&d.length>0){gaPageTracker._trackEvent(NC.promo.PromoManager.getCpid(),"Click",d)}var j=NC.util.Dom.extractEncodedField(this.docRoot,NC.widget.ResumeWizard.StrEmail);var c=NC.util.Dom.extractField(this.docRoot,NC.widget.ResumeWizard.StrMd5id);var m=NC.util.Dom.extractEncodedField(this.docRoot,NC.widget.ResumeWizard.StrFirstname);var o=NC.util.Dom.extractEncodedField(this.docRoot,NC.widget.ResumeWizard.StrLastname);var e=NC.util.Dom.extractEncodedField(this.docRoot,NC.widget.ResumeWizard.StrMiddleinitial);var g=NC.promo.PromoManager.makeFullName(m,e,o);var a=NC.util.Dom.extractEncodedField(this.docRoot,NC.widget.ResumeWizard.StrZipcode);var l=NC.util.Dom.extractEncodedField(this.docRoot,NC.widget.ResumeWizard.StrRandomzipcode);var h=NC.util.Dom.extractField(this.docRoot,NC.widget.ResumeWizard.StrCategoryid);var b=0;if(a.length==0){a=l;b=1}var f="./js_doautosignup.php?";var i=new Object();i.Name=g;i.Email=j;i.Md5Id=c;i.ZipCode=a;i.ZipIsRandom=b;i.Category=h;i.us=k;i.Welcome="welcomeGeneral.php";var n={};progressDialog="./referralLoginProgress.php";NC.widget.MessageManager.showDialog(progressDialog,this.promoDivName,n,false,400);NC.widget.LoginManager.clearLoginFormVisibleFlag();NC.widget.LoginManager.doAutoLogin(f,i,this.promoDivName)}};NC.promo.ConnectionSearchPromo=function(b,c){var a=NC.promo.ConnectionSearchPromo.superclass.constructor;a.call(this,b,c)};NC.lang.extend(NC.promo.ConnectionSearchPromo,NC.promo.Base,{start:function(){var b="NewJob=1";b=encodeURI(b);this.dialog=new NC.widget.ValidatedModalDialog("js_searchedit_ajax_nl.php?",b,this.promoDivName,"JobEditForm",function(d,e,c){d+="?"+e;NC.util.AjaxManager._xmlHttpGet(d,c,false)},"","",function(c,d){return true},"",false);var a=document.getElementById(this.promoFrameName);a.style.display="block";this.centerPromoDialog(a,"PageContainerPlainLogo");this.dialog.show(0,0,0);NC.widget.ResumeUploadManager.setupResumeUploadPopup("","",this.promoDivName,"ResumeUploadForm","UploadIFrame","","",this.promoDivName,false,false,"./updateResumeInfo.php",this.onInfoAvailable,null,null)},onInfoAvailable:function(g,b,k){var j=NC.util.Dom.extractEncodedField(k,NC.widget.ResumeWizard.StrEmail);var c=NC.util.Dom.extractField(k,NC.widget.ResumeWizard.StrMd5id);var l=NC.util.Dom.extractEncodedField(k,NC.widget.ResumeWizard.StrFirstname);var n=NC.util.Dom.extractEncodedField(k,NC.widget.ResumeWizard.StrLastname);var d=NC.util.Dom.extractEncodedField(k,NC.widget.ResumeWizard.StrMiddleinitial);var f=NC.promo.PromoManager.makeFullName(l,d,n);var a=NC.util.Dom.extractEncodedField(k,NC.widget.ResumeWizard.StrZipcode);var i=NC.util.Dom.extractField(k,NC.widget.ResumeWizard.StrTopCategoryScore);var o=NC.util.Dom.extractField(k,NC.widget.ResumeWizard.StrNCScore);var e="./js_doautosignup.php?";var h=new Object();h.Name=f;h.Email=j;h.Md5Id=c;h.ZipCode=a;h.SelectionId=NC.promo.PromoManager.getSelectionId();var m={};progressDialog="./autoLoginProgress.php";NC.widget.MessageManager.showDialog(progressDialog,b,m,false,400);NC.widget.LoginManager.clearLoginFormVisibleFlag();NC.widget.LoginManager.doAutoLogin(e,h,b)}});NC.promo.ReferrralPromo=function(b,c){var a=NC.promo.ReferrralPromo.superclass.constructor;a.call(this,b,c)};NC.lang.extend(NC.promo.ReferrralPromo,NC.promo.Base,{start:function(){NC.widget.ResumeUploadManager.setupResumeUploadPopup("","",this.promoDivName,"ResumeUploadForm","UploadIFrame","","",this.promoDivName,false,false,"./updateResumeInfo.php",this.onInfoAvailable,null,null);var e=NC.util.UrlUtil.parameterExists(window.location.search,"refcode");var c=NC.util.UrlUtil.parameterExists(window.location.search,"targetid");var b="./showReferralPromoPage.php";var f="?";if(e!=null){b+=f+"refcode="+e[1];f="&"}if(c!=null){b+=f+"targetid="+c[1]}var g=new NC.util.AjaxUpdate("GET",b,this.promoDivName,this.promoDivName,null);g.doUpdate(true);var d=new NC.widget.ModalDialog("","",this.promoDivName,"",true);var a=document.getElementById(this.promoFrameName);a.style.display="block";this.centerPromoDialog(a,"PageContainerPlainLogo");d.show(0,0,0)},onInfoAvailable:function(h,c,l){var k=NC.util.Dom.extractEncodedField(l,NC.widget.ResumeWizard.StrEmail);var d=NC.util.Dom.extractField(l,NC.widget.ResumeWizard.StrMd5id);var m=NC.util.Dom.extractEncodedField(l,NC.widget.ResumeWizard.StrFirstname);var o=NC.util.Dom.extractEncodedField(l,NC.widget.ResumeWizard.StrLastname);var e=NC.util.Dom.extractEncodedField(l,NC.widget.ResumeWizard.StrMiddleinitial);var g=NC.promo.PromoManager.makeFullName(m,e,o);var b=NC.util.Dom.extractEncodedField(l,NC.widget.ResumeWizard.StrZipcode);var j=NC.util.Dom.extractField(l,NC.widget.ResumeWizard.StrTopCategoryScore);var q=NC.util.Dom.extractField(l,NC.widget.ResumeWizard.StrNCScore);var f="./js_doautosignup.php?";var i=new Object();i.Name=g;i.Email=k;i.Md5Id=d;i.ZipCode=b;var a=NC.util.UrlUtil.parameterExists(window.location.search,"refcode");var p=NC.util.UrlUtil.parameterExists(window.location.search,"iid");if(a!=null){i.refcode=a[1];if(p==null){i.ct="23";i.Welcome="welcomeReferral.php"}else{i.ct="5";i.cd=p[1];i.Welcome="welcomeInvite.php"}}var n={};progressDialog="./referralLoginProgress.php";NC.widget.MessageManager.showDialog(progressDialog,c,n,false,400);NC.widget.LoginManager.clearLoginFormVisibleFlag();NC.widget.LoginManager.doAutoLogin(f,i,c)}});NC.promo.ScorePromo=function(b,c){var a=NC.promo.ScorePromo.superclass.constructor;a.call(this,b,c)};NC.lang.extend(NC.promo.ScorePromo,NC.promo.Base,{start:function(){NC.widget.ResumeUploadManager.setupResumeUploadPopup("","",this.promoDivName,"ResumeUploadForm","UploadIFrame","","",this.promoDivName,false,false,"./updateResumeInfo.php",this.onInfoAvailable,null,null);var c="./uploadScoreResume.php";var d=new NC.util.AjaxUpdate("GET",c,this.promoDivName,this.promoDivName,null);d.doUpdate(true);var b=new NC.widget.ModalDialog("","",this.promoDivName,"",true);var a=document.getElementById(this.promoFrameName);a.style.display="block";this.centerPromoDialog(a,"PageContainerPlainLogo");b.show(0,0,0)},onInfoAvailable:function(g,b,k){var j=NC.util.Dom.extractEncodedField(k,NC.widget.ResumeWizard.StrEmail);var c=NC.util.Dom.extractField(k,NC.widget.ResumeWizard.StrMd5id);var l=NC.util.Dom.extractEncodedField(k,NC.widget.ResumeWizard.StrFirstname);var n=NC.util.Dom.extractEncodedField(k,NC.widget.ResumeWizard.StrLastname);var d=NC.util.Dom.extractEncodedField(k,NC.widget.ResumeWizard.StrMiddleinitial);var f=NC.promo.PromoManager.makeFullName(l,d,n);var a=NC.util.Dom.extractEncodedField(k,NC.widget.ResumeWizard.StrZipcode);var i=NC.util.Dom.extractField(k,NC.widget.ResumeWizard.StrTopCategoryScore);var o=NC.util.Dom.extractField(k,NC.widget.ResumeWizard.StrNCScore);var e="./js_doautosignup.php?";var h=new Object();h.Name=f;h.Email=j;h.Md5Id=c;h.ZipCode=a;var m={};progressDialog="./referralLoginProgress.php";NC.widget.MessageManager.showDialog(progressDialog,b,m,false,400);NC.widget.LoginManager.clearLoginFormVisibleFlag();NC.widget.LoginManager.doAutoLogin(e,h,b)}});NC.promo.AutoSignupPromo=function(c,d,a){var b=NC.promo.AutoSignupPromo.superclass.constructor;b.call(this,c,d);this.md5Id=a};NC.lang.extend(NC.promo.AutoSignupPromo,NC.promo.Base,{start:function(){var a="";var b=this.promoDivName;NC.widget.ResumeUploadManager.getResumeInfoByMd5Id(this.md5Id,a,b,this.onInfoAvailable)},onInfoAvailable:function(g,b,k){var j=NC.util.Dom.extractEncodedField(k,NC.widget.ResumeWizard.StrEmail);var c=NC.util.Dom.extractField(k,NC.widget.ResumeWizard.StrMd5id);var l=NC.util.Dom.extractEncodedField(k,NC.widget.ResumeWizard.StrFirstname);var n=NC.util.Dom.extractEncodedField(k,NC.widget.ResumeWizard.StrLastname);var d=NC.util.Dom.extractEncodedField(k,NC.widget.ResumeWizard.StrMiddleinitial);var f=NC.promo.PromoManager.makeFullName(l,d,n);var a=NC.util.Dom.extractEncodedField(k,NC.widget.ResumeWizard.StrZipcode);var i=NC.util.Dom.extractField(k,NC.widget.ResumeWizard.StrTopCategoryScore);var o=NC.util.Dom.extractField(k,NC.widget.ResumeWizard.StrNCScore);var e="./js_doautosignup.php?";var h=new Object();h.Name=f;h.Email=j;h.Md5Id=c;h.ZipCode=a;var m={};progressDialog="./referralLoginProgress.php";NC.widget.MessageManager.showDialog(progressDialog,b,m,false,400);NC.widget.LoginManager.clearLoginFormVisibleFlag();NC.widget.LoginManager.doAutoLogin(e,h,b)}});NC.promo.FacebookLoginPromo=function(b,c,d){var a=NC.promo.FacebookLoginPromo.superclass.constructor;a.call(this,b,c);this.userState=d};NC.lang.extend(NC.promo.FacebookLoginPromo,NC.promo.Base,{start:function(){var b=NC.util.Facebook.getFbUid();if(b!=null&&b.length>0){var a=this.promoDivName;NC.util.Facebook.getUserName(false,function(f,d){var e="";var c="./js_doautosignup.php?";var g=new Object();g.FbLogin="1";g.fbuid=b;g.fbname=f;var h={};progressDialog="./facebookLoginProgress.php";NC.widget.MessageManager.showDialog(progressDialog,a,h,false,400);NC.widget.LoginManager.clearLoginFormVisibleFlag();NC.widget.LoginManager.doAutoLogin(c,g,a)})}}});NC.promo.EmployerInfoPromo=function(b,c){var a=NC.promo.EmployerInfoPromo.superclass.constructor;a.call(this,b,c)};NC.lang.extend(NC.promo.EmployerInfoPromo,NC.promo.Base,{start:function(){var b="";this.dialog=new NC.widget.ValidatedModalDialog("getEmployerInfoForm.php?",b,this.promoDivName,"EmployerEnrollmentForm",function(d,e,c){d+="?"+e;NC.util.AjaxManager._xmlHttpGet(d,c,false)},"","",function(c,d){return true},"",false);var a=document.getElementById(this.promoFrameName);a.style.display="block";this.centerPromoDialog(a,"PageContainerPlainLogo");this.dialog.show(0,0,0)},onInfoAvailable:function(a,c,b){}});NC.promo.FacebookProfileAnalyzerPromo=function(b,c){var a=NC.promo.FacebookProfileAnalyzerPromo.superclass.constructor;a.call(this,b,c)};NC.lang.extend(NC.promo.FacebookProfileAnalyzerPromo,NC.promo.Base,{start:function(){var b={success:function(d){var c=document.getElementById(this.promoDivName);c.innerHTML=d.responseText;NC.util.Facebook.gradeUserProfile(this.promoDivName)},failure:function(c){},scope:this};var a=new NC.util.AjaxConnection("GET","./progressFb.php",null);a.executeMethod(b)}});NC.promo.FacebookAuthorizationPromo=function(a,c,d){var b=NC.promo.FacebookAuthorizationPromo.superclass.constructor;b.call(this,c,d);this.appName=a};NC.lang.extend(NC.promo.FacebookAuthorizationPromo,NC.promo.Base,{start:function(){offers=NC.offer.OfferManager.constructFacebookAuthorizationOffer(this.promoDivName,null,null,this.appName);NC.offer.OfferManager.setOffers(offers);NC.offer.OfferManager.startNextOffer()}});NC.promo.ScoreWoSignupPromo=function(c,d,a){var b=NC.promo.ScoreWoSignupPromo.superclass.constructor;b.call(this,c,d);this.formSource=a};NC.lang.extend(NC.promo.ScoreWoSignupPromo,NC.promo.Base,{start:function(){NC.widget.ResumeUploadManager.setupResumeUploadPopup("","",this.promoDivName,"ResumeUploadForm","UploadIFrame","ProgressDiv",'<img src="../imagesv2/progressbar.gif">',this.promoDivName,false,false,"./updateResumeInfo.php",this.shareScore,null,null);if(this.formSource.length==0){this.formSource="./uploadScoreResume1.php"}var c=new NC.util.AjaxUpdate("GET",this.formSource,this.promoDivName,this.promoDivName,null);c.doUpdate(true);var b=new NC.widget.ModalDialog("","",this.promoDivName,"",true);var a=document.getElementById(this.promoFrameName);if(a!=null){a.style.display="block";this.centerPromoDialog(a,"PageContainerPlainLogo");b.show(0,0,0)}},shareScore:function(b,d,c){NC.promo.PromoManager.getPromo().setDocRoot(c);var e=NC.util.Dom.extractField(c,NC.widget.ResumeWizard.StrNCScore);var a=NC.offer.OfferManager.constructOffer(d,c,NC.offer.OfferManager.SourceResume);NC.offer.OfferManager.setOffers(a);NC.offer.OfferManager.startNextOffer()}});NC.promo.LinkOrResumeUploadPromo=function(c,d,a){var b=NC.promo.LinkOrResumeUploadPromo.superclass.constructor;b.call(this,c,d);this.formSource=a};NC.lang.extend(NC.promo.LinkOrResumeUploadPromo,NC.promo.Base,{start:function(){var a="";if(this.formSource.length==0){this.formSource="./uploadResumeFromLink.php"}this.resumeOrLinkUploadDialog=new NC.widget.ValidatedModalDialog(this.formSource,a,this.promoDivName,"ResumeOrLinkUploadForm",function(d,f,c){var e={success:function(i){var h=document.getElementById(this.target);h.innerHTML=i.responseText;var j={success:function(p){NC.widget.StateManager.setUploadedResumeFlag();NC.widget.ResumeUploadManager.processEncodedProfile(p.responseText);var m=NC.widget.ResumeUploadManager.getDomRoot();NC.promo.PromoManager.getPromo().setDocRoot(m);var k=NC.offer.OfferManager.getCategories(m);var n=NC.util.Dom.extractField(m,NC.widget.ResumeWizard.StrNCScore);var l=NC.offer.OfferManager.constructOffer(this.target,m,NC.offer.OfferManager.SourceLinkedIn);NC.offer.OfferManager.setOffers(l);NC.offer.OfferManager.startNextOffer()},failure:function(k){},scope:this};d+="?"+f;var g=new NC.util.AjaxConnection("GET",d,null);g.executeMethod(j)},failure:function(g){},scope:this};var b=new NC.util.AjaxConnection("GET","progressFb.php",null);b.executeMethod(e)},"./scoreResume.php","",function(g,i){var f=true;var c="";var b=g.elements;var h=false;for(var e=0;e<b.length;e++){if(b[e].name=="ResumeFileLink"){if(NC.util.Dom.getValue(b[e]).length>0){h=true}}else{if(b[e].name=="ResumeFileName"){if(NC.util.Dom.getValue(b[e]).length>0){h=true}}else{if(b[e].name=="PlainTextResume"){if(NC.util.Dom.getValue(b[e]).length>0){h=true}}}}}if(!h){f=false;c="Please tell us where to find your resume or profile"}if(!f){var d=document.getElementById(i);d.innerHTML=c;d.style.display="block"}return f},"NCError",false);this.resumeOrLinkUploadDialog.show(0,0,0)},uploadResumeOrLink:function(){this.resumeOrLinkUploadDialog.post()}});NC.promo.AcceptInvitePromo=function(f,g,c,d,b,a){var e=NC.promo.AcceptInvitePromo.superclass.constructor;e.call(this,f,g);this.referralCode=c;this.invitationId=d;this.resumeId=b;this.purpose=a};NC.lang.extend(NC.promo.AcceptInvitePromo,NC.promo.Base,{start:function(){var a="";var b=this.promoDivName;NC.widget.ResumeUploadManager.getResumeInfoByResumeId(this.resumeId,a,b,this.onInfoAvailable,this)},onInfoAvailable:function(g,b,k,n){var j=NC.util.Dom.extractEncodedField(k,NC.widget.ResumeWizard.StrEmail);var c=NC.util.Dom.extractField(k,NC.widget.ResumeWizard.StrMd5id);var l=NC.util.Dom.extractEncodedField(k,NC.widget.ResumeWizard.StrFirstname);var o=NC.util.Dom.extractEncodedField(k,NC.widget.ResumeWizard.StrLastname);var d=NC.util.Dom.extractEncodedField(k,NC.widget.ResumeWizard.StrMiddleinitial);var f=NC.promo.PromoManager.makeFullName(l,d,o);var a=NC.util.Dom.extractEncodedField(k,NC.widget.ResumeWizard.StrZipcode);var i=NC.util.Dom.extractField(k,NC.widget.ResumeWizard.StrTopCategoryScore);var p=NC.util.Dom.extractField(k,NC.widget.ResumeWizard.StrNCScore);var e="./js_doautosignup.php?";var h=new Object();h.Name=f;h.Email=j;h.Md5Id=c;h.ZipCode=a;h.InvitationId=n.invitationId;h.ReferralCode=n.referralCode;h.Purpose=n.purpose;var m={};progressDialog="./inviteLoginProgress.php";NC.widget.MessageManager.showDialog(progressDialog,b,m,false,400);NC.widget.LoginManager.clearLoginFormVisibleFlag();NC.widget.LoginManager.doAutoLogin(e,h,b)}});NC.promo.PeopleSearchPromo=function(c,d,a){var b=NC.promo.PeopleSearchPromo.superclass.constructor;b.call(this,c,d);this.style=a};NC.lang.extend(NC.promo.PeopleSearchPromo,NC.promo.Base,{start:function(a){offers=NC.offer.OfferManager.constructPeopleSearchOffer(this.promoDivName,null,null,this.style);NC.offer.OfferManager.setOffers(offers);NC.offer.OfferManager.startNextOffer()}});NC.promo.PremiumSearchPromo=function(c,d,a){var b=NC.promo.PremiumSearchPromo.superclass.constructor;b.call(this,c,d);this.availableSearches=a};NC.lang.extend(NC.promo.PremiumSearchPromo,NC.promo.Base,{start:function(a){offers=NC.offer.OfferManager.constructPremiumSearchOffer(this.promoDivName,null,null,this.availableSearches);NC.offer.OfferManager.setOffers(offers);NC.offer.OfferManager.startNextOffer()}});NC.offer.Base=function(a,b,c){this.displayDivName=a;this.docRoot=b;this.source=c;this.url=null};NC.offer.Base.prototype={show:function(){var a=new NC.util.AjaxUpdate("GET",this.url,this.displayDivName,this.displayDivName,null);a.doUpdate(true)}};NC.offer.ShareScoreOffer=function(a,c,d){var b=NC.offer.ShareScoreOffer.superclass.constructor;b.call(this,a,c,d)};NC.lang.extend(NC.offer.ShareScoreOffer,NC.offer.Base,{show:function(){var c="orange";if(NC.util.Facebook.isAppConnected()){c="ncblue"}var b=NC.util.Dom.extractEncodedField(this.docRoot,NC.widget.ResumeWizard.StrFirstname);var j=NC.util.Dom.extractEncodedField(this.docRoot,NC.widget.ResumeWizard.StrLastname);var q=NC.util.Dom.extractEncodedField(this.docRoot,NC.widget.ResumeWizard.StrMiddleinitial);var s=NC.promo.PromoManager.makeFullName(b,q,j);var f=NC.util.Dom.extractField(this.docRoot,NC.widget.ResumeWizard.StrNCScore);var l=NC.util.Dom.extractField(this.docRoot,NC.widget.ResumeWizard.StrExplanation);var e=NC.widget.ResumeUploadManager.getTopCategoryName();var n=NC.widget.ResumeUploadManager.getTopCategoryId();var p=NC.widget.ResumeUploadManager.getTopCategoryScore();var r=parseInt(NC.widget.ResumeUploadManager.getManagerCategory());var g=NC.widget.ResumeUploadManager.getManagerScore();var a=Math.round(NC.widget.ResumeUploadManager.getManagerScore()/20);var i=NC.widget.ResumeUploadManager.getResumeId();NC.GaussAppManager.insertScore(e,"2009-12-15","",r,a,f,999,"","mygaussbox");var k='<h2 class="'+c+'">Your NimbleCat Score is '+f+". </h2>";k+="<p>	We just scored your "+NC.offer.OfferManager.getSourceString(this.source)+". </p><p>";if(f>=90){k+="Congratulations! "}k+=l;k+="</p>";k+="<p>Share your score:</p> ";var m=new NC.widget.ShareScoreOnFacebook(i,g,f,n,NC.SiteRoot);var o=new NC.widget.ShareScoreOnTwitter(i,g,f,n,NC.SiteRoot);var d=new NC.widget.ShareScoreOnLinkedIn(i,g,f,n,NC.SiteRoot);k+=m.makeShareImage(NC.widget.Share.LargeImage);k+=d.makeShareImage(NC.widget.Share.LargeImage);k+=o.makeShareImage(NC.widget.Share.LargeImage);k+="</p>";k+="				<p>";k+='<div class="skipfornow">';k+='<a href="#" onclick="javascript:NC.offer.OfferManager.startNextOffer()">Skip for now</a>';k+="</div>";var h=document.getElementById(this.displayDivName);h.innerHTML=k;gaPageTracker._trackEvent(NC.promo.PromoManager.getCpid(),"Click","ShareScoreOffer")}});NC.offer.JobAlertOffer=function(a,c,d){var b=NC.offer.JobAlertOffer.superclass.constructor;b.call(this,a,c,d)};NC.lang.extend(NC.offer.JobAlertOffer,NC.offer.Base,{show:function(){var h="";var o=NC.util.StringUtil.capitalizeWord(NC.util.Dom.extractEncodedField(this.docRoot,NC.widget.ResumeWizard.StrFirstname));var f=NC.util.Dom.extractEncodedField(this.docRoot,NC.widget.ResumeWizard.StrFullname);var i=NC.util.Dom.extractEncodedField(this.docRoot,NC.widget.ResumeWizard.StrEmail);var a=NC.util.Dom.extractEncodedField(this.docRoot,NC.widget.ResumeWizard.StrZipcode);var l=NC.util.Dom.extractEncodedField(this.docRoot,NC.widget.ResumeWizard.StrRandomzipcode);if(a==null||a.length==0){a=l}var k="";var c="";if(l.length>0){k=NC.util.Dom.extractEncodedField(this.docRoot,NC.widget.ResumeWizard.StrRandomcity);c=NC.util.Dom.extractEncodedField(this.docRoot,NC.widget.ResumeWizard.StrRandomstate)}var e=NC.util.Dom.extractField(this.docRoot,NC.widget.ResumeWizard.StrTotaljobs);var n=NC.util.Dom.extractField(this.docRoot,NC.widget.ResumeWizard.StrTotaljobsforcategory);var q=NC.util.Dom.extractField(this.docRoot,NC.widget.ResumeWizard.StrTopcategorylabel);var g=this.docRoot.getElementsByTagName(NC.widget.ResumeWizard.StrJobinfo);var b="orange";if(NC.util.Facebook.isAppConnected()){b="ncblue"}if(g.getLength()>0){if(l.length>=5){h+='<h2 class="'+b+'">NimbleCat would select these jobs for you if you lived in '+k+", "+c+"</h2>"}else{h+='<h2 class="'+b+'">NimbleCat selected these jobs for you</h2>'}for(ji=0;ji<Math.min(3,g.getLength());ji++){var d=g.item(ji);var p=decode64(d.getFirstChild().getNodeValue());h+="<p>"+p+"</p>"}h+="<p>These jobs were selected from <b>"+e+"</b> jobs scanned in the last 24 hours. <b>"+n+"</b> jobs for <b>"+q+"</b> were found within 50 miles of  zip code "+a+".</p>";if(l.length>0){h+='<p style="font-size:9px">This zipcode was selected from the top ten metro areas for jobs in the US because we could not determine a zip code from your social profile or resume.'}h+="</p>";h+="<p>";var j=NC.widget.StateManager.JOBUSER|NC.widget.StateManager.UPLOADEDRESUME|NC.widget.StateManager.SELECTJOBLOCATION|NC.widget.StateManager.SELECTJOBCATEGORY;switch(this.source){case NC.offer.OfferManager.SourceFacebook:j|=NC.widget.StateManager.FACEBOOKUSER;break;case NC.offer.OfferManager.SourceLinkedIn:j|=NC.widget.StateManager.LINKEDINUSER;break}if(!NC.util.Facebook.isAppConnected()){h+="<a href=\"javascript:NC.promo.PromoManager.getPromo().doAutoLogin('SignupJob', "+j+')">Create your account now</a> to see more jobs daily!'}else{h+='<a target="_top" href="http://apps.facebook.com/ncjobalerts">Use the Jobs app</a> to see more jobs daily!'}h+="</p>";h+='<div class="skipfornow">';h+='<a href="#" onclick="javascript:NC.offer.OfferManager.startNextOffer()">Skip for now</a>';h+="</div>"}else{h="No jobs were found"}var m=document.getElementById(this.displayDivName);m.innerHTML=h;gaPageTracker._trackEvent(NC.promo.PromoManager.getCpid(),"Click","MatchedJobsOffer")}});NC.offer.ClosingGoodOffer=function(a,c,d){var b=NC.offer.ClosingGoodOffer.superclass.constructor;b.call(this,a,c,d)};NC.lang.extend(NC.offer.ClosingGoodOffer,NC.offer.Base,{show:function(){this.url="./closingGoodScoreOffer.php";NC.offer.ClosingGoodOffer.superclass.show.call(this);gaPageTracker._trackEvent(NC.promo.PromoManager.getCpid(),"Click","ClosingGoodOffer")}});NC.offer.ClosingGoodOfferFb=function(a,c,d){var b=NC.offer.ClosingGoodOfferFb.superclass.constructor;b.call(this,a,c,d)};NC.lang.extend(NC.offer.ClosingGoodOfferFb,NC.offer.Base,{show:function(){this.url="./closingGoodScoreOfferFb.php";NC.offer.ClosingGoodOfferFb.superclass.show.call(this);gaPageTracker._trackEvent(NC.promo.PromoManager.getCpid(),"Click","ClosingGoodOfferFb")}});NC.offer.ClosingBadOffer=function(a,c,d){var b=NC.offer.ClosingBadOffer.superclass.constructor;b.call(this,a,c,d)};NC.lang.extend(NC.offer.ClosingBadOffer,NC.offer.Base,{show:function(){this.url="./closingBadScoreOffer.php";NC.offer.ClosingGoodOffer.superclass.show.call(this);gaPageTracker._trackEvent(NC.promo.PromoManager.getCpid(),"Click","ClosingBadOffer")}});NC.offer.ClosingBadOfferFb=function(a,c,d){var b=NC.offer.ClosingBadOfferFb.superclass.constructor;b.call(this,a,c,d)};NC.lang.extend(NC.offer.ClosingBadOfferFb,NC.offer.Base,{show:function(){this.url="./closingBadScoreOfferFb.php";NC.offer.ClosingBadOfferFb.superclass.show.call(this);gaPageTracker._trackEvent(NC.promo.PromoManager.getCpid(),"Click","ClosingBadOfferFb")}});NC.offer.SelectCategoryOffer=function(b,d,e,a,f){var c=NC.offer.SelectCategoryOffer.superclass.constructor;c.call(this,b,d,e);this.categories=a;this.first=f};NC.lang.extend(NC.offer.SelectCategoryOffer,NC.offer.Base,{show:function(){var b="orange";if(NC.util.Facebook.isAppConnected()){b="ncblue"}var d='<h2 class="'+b+'">Please help us improve NimbleCat</h2>';if(this.first){d+="<p>Mon dieu! We're not sure we got your primary profession right. Is it one of these? If not, please tell us."}else{d+="<p>We may not have your primary profession right. Is it one of these? If not, please tell us."}d+='<form id="SelectCategoryForm" name="SelectCategoryForm" method="post">';d+='<input type="hidden" name="ResumeId" value="'+NC.widget.ResumeUploadManager.getResumeId()+'" >';if(this.categories.length>0){for(var a=0;a<this.categories.length;a++){var e=this.categories[a];d+="<p>";d+='<input type="radio" name="CategoryId" value="'+e.id+'" >&nbsp;';d+=e.name+"</p>"}d+="<p>Other&nbsp;";d+='<input type="input" name="NewCategory" value = "" length="20">';d+="</p>";d+='<p><input type="button" onclick="NC.offer.OfferManager.updateCategory(\'SelectCategoryForm\');" class="ncbutton" name="SelectCategory" id="SelectCategory" value="Go"><p>';d+="</form>"}else{d+="</p>"}d+='<div class="skipfornow">';d+='<a href="#" onclick="javascript:NC.offer.OfferManager.startNextOffer()">Skip for now</a>';d+="</div>";var c=document.getElementById(this.displayDivName);c.innerHTML=d;gaPageTracker._trackEvent(NC.promo.PromoManager.getCpid(),"Click","SelectCategoryOffer")}});NC.offer.ClosingNoCategoryOffer=function(a,c,d){var b=NC.offer.ClosingNoCategoryOffer.superclass.constructor;b.call(this,a,c,d)};NC.lang.extend(NC.offer.ClosingNoCategoryOffer,NC.offer.Base,{show:function(){this.url="./closingNoCategoryOffer.php";NC.offer.ClosingGoodOffer.superclass.show.call(this);gaPageTracker._trackEvent(NC.promo.PromoManager.getCpid(),"Click","ClosingNoCategoryOffer")}});NC.offer.ClosingNoCategoryOfferFb=function(a,c,d){var b=NC.offer.ClosingNoCategoryOfferFb.superclass.constructor;b.call(this,a,c,d)};NC.lang.extend(NC.offer.ClosingNoCategoryOfferFb,NC.offer.Base,{show:function(){this.url="./closingNoCategoryOfferFb.php";NC.offer.ClosingNoCategoryOfferFb.superclass.show.call(this);gaPageTracker._trackEvent(NC.promo.PromoManager.getCpid(),"Click","ClosingNoCategoryOfferFb")}});NC.offer.ImproveScoreOffer=function(a,c,d,e){var b=NC.offer.ImproveScoreOffer.superclass.constructor;b.call(this,a,c,d);this.recommendation=e};NC.lang.extend(NC.offer.ImproveScoreOffer,NC.offer.Base,{show:function(){var d="";this.recommendation="<ul>"+this.recommendation+"</ul>";var b="orange";if(NC.util.Facebook.isAppConnected()){b="ncblue"}var d='<h2 class="'+b+'">You can get a higher score</h2>';var a=this.recommendation.replace("[[source]]",NC.offer.OfferManager.getSourceString(this.source));var e="<p>NimbleCat has powerful career tools that you can use to analyse and fine-tune your [[source]].</p>";e=e.replace("[[source]]",NC.offer.OfferManager.getSourceString(this.source));a=a.replace("[[source]]",NC.offer.OfferManager.getSourceString(this.source));d+="<p>We think you can get a higher score:</p>";d+=a;d+=e;var f=NC.widget.StateManager.GRADEUSER|NC.widget.StateManager.UPLOADEDRESUME;switch(this.source){case NC.offer.OfferManager.SourceFacebook:f|=NC.widget.StateManager.FACEBOOKUSER;break;case NC.offer.OfferManager.SourceLinkedIn:f|=NC.widget.StateManager.LINKEDINUSER;break}if(!NC.util.Facebook.isAppConnected()){d+=" <h3><a href=\"javascript:NC.promo.PromoManager.getPromo().doAutoLogin('SignupImproveScore', "+f+')">Create your account now</a></h3>'}d+='<div class="skipfornow">';d+='<a href="#" onclick="javascript:NC.offer.OfferManager.startNextOffer()">Skip for now</a>';d+="</div>";var c=document.getElementById(this.displayDivName);c.innerHTML=d;gaPageTracker._trackEvent(NC.promo.PromoManager.getCpid(),"Click","ImproveScoreOffer")}});NC.offer.JoinNimbleCatOffer=function(a,c,d){var b=NC.offer.JoinNimbleCatOffer.superclass.constructor;b.call(this,a,c,d)};NC.lang.extend(NC.offer.JoinNimbleCatOffer,NC.offer.Base,{show:function(){this.url="./joinNimbleCatOffer.php?source="+this.source;NC.offer.JoinNimbleCatOffer.superclass.show.call(this);gaPageTracker._trackEvent(NC.promo.PromoManager.getCpid(),"Click","GeneralCreateAccountOffer")}});NC.offer.JoinNimbleCatBadScoreOffer=function(a,c,d){var b=NC.offer.JoinNimbleCatBadScoreOffer.superclass.constructor;b.call(this,a,c,d)};NC.lang.extend(NC.offer.JoinNimbleCatBadScoreOffer,NC.offer.Base,{show:function(){this.url="./joinNimbleCatOfferBadScore.php?source="+this.source;NC.offer.JoinNimbleCatBadScoreOffer.superclass.show.call(this);gaPageTracker._trackEvent(NC.promo.PromoManager.getCpid(),"Click","CreateAccountBadScoreOffer")}});NC.offer.EmptyProfileOffer=function(a,c,d){var b=NC.offer.EmptyProfileOffer.superclass.constructor;b.call(this,a,c,d)};NC.lang.extend(NC.offer.EmptyProfileOffer,NC.offer.Base,{show:function(){this.url="./emptyProfileOffer.php?source="+this.source;NC.offer.EmptyProfileOffer.superclass.show.call(this);gaPageTracker._trackEvent(NC.promo.PromoManager.getCpid(),"Click","CreateAccountEmptyProfileOffer")}});NC.offer.EmptyProfileOfferFb=function(a,c,d){var b=NC.offer.EmptyProfileOfferFb.superclass.constructor;b.call(this,a,c,d)};NC.lang.extend(NC.offer.EmptyProfileOfferFb,NC.offer.Base,{show:function(){this.url="./emptyProfileOfferFb.php?source="+this.source;NC.offer.EmptyProfileOfferFb.superclass.show.call(this);gaPageTracker._trackEvent(NC.promo.PromoManager.getCpid(),"Click","CreateAccountEmptyProfileOfferFb")}});NC.offer.BadParseOffer=function(a,c,d){var b=NC.offer.BadParseOffer.superclass.constructor;b.call(this,a,c,d)};NC.lang.extend(NC.offer.BadParseOffer,NC.offer.Base,{show:function(){this.url="./badParseOffer.php?source="+this.source;NC.offer.BadParseOffer.superclass.show.call(this);gaPageTracker._trackEvent(NC.promo.PromoManager.getCpid(),"Click","CreateAccountBadScoreOffer")}});NC.offer.BadParseOfferFb=function(a,c,d){var b=NC.offer.BadParseOfferFb.superclass.constructor;b.call(this,a,c,d)};NC.lang.extend(NC.offer.BadParseOfferFb,NC.offer.Base,{show:function(){this.url="./badParseOfferFb.php?source="+this.source;NC.offer.BadParseOfferFb.superclass.show.call(this);gaPageTracker._trackEvent(NC.promo.PromoManager.getCpid(),"Click","CreateAccountBadScoreOfferFb")}});NC.offer.PeopleSearchOpeningOffer=function(a,d,e,b){var c=NC.offer.PeopleSearchOpeningOffer.superclass.constructor;c.call(this,a,d,e);this.style=b};NC.lang.extend(NC.offer.PeopleSearchOpeningOffer,NC.offer.Base,{show:function(){if(this.style==0){this.url="./viewMoreSearchResults.php";gaPageTracker._trackEvent(NC.promo.PromoManager.getCpid(),"Click","PeopleSearchOffer")}else{this.url="./viewMoreSearchResultsMobile.php";gaPageTracker._trackEvent(NC.promo.PromoManager.getCpid(),"Click","PeopleSearchOfferMobile")}NC.offer.PeopleSearchOpeningOffer.superclass.show.call(this)}});NC.offer.PremiumSearchOffer=function(b,d,e,a){var c=NC.offer.PremiumSearchOffer.superclass.constructor;c.call(this,b,d,e);this.availableSearches=a};NC.lang.extend(NC.offer.PremiumSearchOffer,NC.offer.Base,{show:function(){this.url="./premiumSearchOffer.php?source="+this.source+"&available="+this.availableSearches;NC.offer.PremiumSearchOffer.superclass.show.call(this);gaPageTracker._trackEvent(NC.promo.PromoManager.getCpid(),"Click","PremiumSearchSignupOffer")}});NC.offer.PremiumSearchOfferDetail=function(b,d,e,a){var c=NC.offer.PremiumSearchOfferDetail.superclass.constructor;c.call(this,b,d,e);this.availableSearches=a};NC.lang.extend(NC.offer.PremiumSearchOfferDetail,NC.offer.Base,{show:function(){this.url="./premiumSearchOfferDetails.php?source="+this.source+"&available="+this.availableSearches;NC.offer.PremiumSearchOfferDetail.superclass.show.call(this);gaPageTracker._trackEvent(NC.promo.PromoManager.getCpid(),"Click","PremiumSearchSignupOfferDetails")}});NC.offer.FacebookBookmarkOffer=function(a,c,d){var b=NC.offer.FacebookBookmarkOffer.superclass.constructor;b.call(this,a,c,d)};NC.lang.extend(NC.offer.FacebookBookmarkOffer,NC.offer.Base,{show:function(){this.url="./facebookBookmarkOffer.php";NC.offer.FacebookBookmarkOffer.superclass.show.call(this);gaPageTracker._trackEvent(NC.promo.PromoManager.getCpid(),"Click","FacebookBookmarkOffer")}});NC.offer.FacebookInviteFriendsOffer=function(a,c,d){var b=NC.offer.FacebookInviteFriendsOffer.superclass.constructor;b.call(this,a,c,d)};NC.lang.extend(NC.offer.FacebookInviteFriendsOffer,NC.offer.Base,{show:function(){var a=document.getElementById("FBFormWrapper");a.style.width="760px";a.style.height="800px";a.style.display="block";NC.util.Facebook.insertInviteFriendsDialog("FBFormWrapper");gaPageTracker._trackEvent(NC.promo.PromoManager.getCpid(),"Click","FacebookInviteFriendsOffer")}});NC.offer.FacebookAuthorizationOffer=function(b,d,e,a){var c=NC.offer.FacebookAuthorizationOffer.superclass.constructor;c.call(this,b,d,e);this.appName=a};NC.lang.extend(NC.offer.FacebookAuthorizationOffer,NC.offer.Base,{show:function(){alert("FacebookAuthorizationOffer.show()");this.url="./facebookAuthorizationOffer.php";NC.offer.FacebookAuthorizationOffer.superclass.show.call(this)}});(function(){NC.offer.OfferManager=function(){var b=null;var a=null;var h="";var e=true;var c=false;var d=false;var g=false;var f=this.HintScore;return{HintNone:0,HintScore:1,HintJobs:2,setHint:function(i){f=i},getHint:function(){return f},SourceResume:1,SourceFacebook:2,SourceLinkedIn:3,getSourceString:function(i){switch(i){case this.SourceResume:return"resume";case this.SourceFacebook:return"Facebook profile";case this.SourceLinkedIn:return"LinkedIn profile";default:return"profile or resume"}},getOffers:function(){return b},setOffers:function(i){b=i},ignoreNextOffer:function(){return b.shift()},startNextOffer:function(){a=b.shift();if(a!=null){a.show()}else{}},getCategories:function(q){var n=q.getElementsByTagName("category");var s=new Array();if(n.getLength()>0){for(ci=0;ci<n.getLength();ci++){var j=n.item(ci);var m=j.getElementsByTagName("categoryid").item(0);var k=m.getFirstChild().getNodeValue();var l=j.getElementsByTagName("categoryname").item(0);var o=l.getFirstChild().getNodeValue();var p=j.getElementsByTagName("categoryweight").item(0);var i=p.getFirstChild().getNodeValue();var r={};r.name=o;r.weight=i;r.id=k;s[ci]=r}}return s},scoreCutoff:70,categoryCutoff:70,resumeLengthCutoff:6000,empDescCutoff:200,goodResumeMessage:"<li>Congratulations!  Your score indicates that your [[source]] clearly shows your skills and professionalism.</li>",shortResumeMessage:"<li>Your [[source]] is shorter than average.  Adding more details may improve your score.</li>",fewEmployersMessage:"<li>Adding details about other positions you have held may also improve your score.</li>",noDegreeMessage:"<li>Adding your educational qualifications is helpful too.</li>",shortEmpDescMessage:"<li>You should consider adding more details to your employment history.</li>",unfocusedNonManagerMessage:'<li>It appears you may have multiple "professions" in your [[source]].  You may wish to focus  on a single profession to show your expertise in that area.</li>',unfocusedManagerMessage:"<li>You appear to have substantial management experience across multiple professions.  You may wish to focus either on your management expertise or on a single profession to show your expertise in that area.</li>",badParseMessage:"<li>We may not have detected all the employment or education in your resume.</li>",makeResumeRecommendation:function(q,o,n,r,m,i,l,p,k){var j="";if(q<this.resumeLengthCutoff){c=true;j+=this.shortResumeMessage;if(o<this.empDescCutoff){j+=this.shortEmpDescMessage}if(n<=2){j+=this.fewEmployersMessage}if(r==0){j+=this.noDegreeMessage}if(m){j+=this.badParseMessage}}if(i==2){if(k.length>=2){j+=this.unfocusedManagerMessage}}else{if(k.length>=2){j+=this.unfocusedNonManagerMessage}}return j},constructOffer:function(q,w,t){var m=NC.util.Dom.extractField(w,NC.widget.ResumeWizard.StrNCScore);var l=NC.widget.ResumeUploadManager.getTopCategoryName();var y=NC.widget.ResumeUploadManager.getTopCategoryScore();var s=NC.offer.OfferManager.getCategories(w);var A=NC.widget.ResumeUploadManager.getManagerCategory();var n=NC.widget.ResumeUploadManager.getManagerScore();var r=NC.widget.ResumeUploadManager.getResumeTextLength();var x=NC.widget.ResumeUploadManager.getEmploymentCount();var j=NC.widget.ResumeUploadManager.getAverageEmpDescLength();var u=NC.widget.ResumeUploadManager.getEducationCount();var o=false;var i=false;var k=false;var p=false;if(m>this.scoreCutoff||y>this.categoryCutoff||(A==2&&n>60)){p=true}if(r>=this.resumeLengthCutoff/2&&(y<50||s.length>=3)){o=true}if((t==this.SourceFacebook||t==this.SourceLinkedIn)&&x==0){i=true}if(t==this.SourceResume&&x==0){k=true}var z=null;var v=this.makeResumeRecommendation(r,j,x,u,k,A,n,m,s);if(p){z=this.constructGoodScoreOffer(q,w,t,v,r,x,u,j,s)}else{if(i){z=this.constructEmptyProfileOffer(q,w,t,v,r,x,u,j,s)}else{if(k){z=this.constructBadParseOffer(q,w,t,v,r,x,u,j,s)}else{z=this.constructUnknownCategoryOffer(q,w,t,v,r,x,u,j,s)}}}return z},constructGoodScoreOffer:function(p,n,i,k,s,m,t,q,l){var r=new Array();var o=0;if(NC.util.Facebook.isAppConnected()){r[o++]=new NC.offer.ShareScoreOffer(p,n,i);if(k.length>0){r[o++]=new NC.offer.ImproveScoreOffer(p,n,i,k)}var j=n.getElementsByTagName(NC.widget.ResumeWizard.StrJobinfo);if(j.getLength()>0){r[o++]=new NC.offer.JobAlertOffer(p,n,i)}if(l.length>0){r[o++]=new NC.offer.SelectCategoryOffer(p,n,i,l,false)}r[o++]=new NC.offer.ClosingGoodOfferFb(p,n,i)}else{var j=n.getElementsByTagName(NC.widget.ResumeWizard.StrJobinfo);if(f==this.HintJobs){if(j.getLength()>0){r[o++]=new NC.offer.JobAlertOffer(p,n,i)}}r[o++]=new NC.offer.ShareScoreOffer(p,n,i);if(f!=this.HintJobs){if(j.getLength()>0){r[o++]=new NC.offer.JobAlertOffer(p,n,i)}}r[o++]=new NC.offer.JoinNimbleCatOffer(p,n,i);if(k.length>0){r[o++]=new NC.offer.ImproveScoreOffer(p,n,i,k)}if(l.length>0){r[o++]=new NC.offer.SelectCategoryOffer(p,n,i,l,false)}r[o++]=new NC.offer.ClosingGoodOffer(p,n,i)}return r},constructBadScoreOffer:function(p,o,i,k,r,n,s,q,l){var m=new Array();nextOffer=0;if(NC.util.Facebook.isAppConnected()){if(k.length>0){m[nextOffer++]=new NC.offer.ImproveScoreOffer(p,o,i,k)}if(l.length>0){m[nextOffer++]=new NC.offer.SelectCategoryOffer(p,o,i,l,false)}m[nextOffer++]=new NC.offer.ClosingBadOfferFb(p,o,i)}else{var j=o.getElementsByTagName(NC.widget.ResumeWizard.StrJobinfo);if(f==this.HintJobs){if(j.getLength()>0){m[nextOffer++]=new NC.offer.JobAlertOffer(p,o,i)}}if(k.length>0){m[nextOffer++]=new NC.offer.ImproveScoreOffer(p,o,i,k)}if(f!=this.HintJobs){if(j.getLength()>0){m[nextOffer++]=new NC.offer.JobAlertOffer(p,o,i)}}m[nextOffer++]=new NC.offer.JoinNimbleCatBadScoreOffer(p,o,i);if(l.length>0){m[nextOffer++]=new NC.offer.SelectCategoryOffer(p,o,i,l,false)}m[nextOffer++]=new NC.offer.ClosingBadOffer(p,o,i)}return m},constructUnknownCategoryOffer:function(p,n,i,k,r,m,s,q,l){var o=new Array();nextOffer=0;if(NC.util.Facebook.isAppConnected()){if(l.length>0){o[nextOffer++]=new NC.offer.SelectCategoryOffer(p,n,i,l,true)}if(k.length>0){o[nextOffer++]=new NC.offer.ImproveScoreOffer(p,n,i,k)}o[nextOffer++]=new NC.offer.ClosingNoCategoryOfferFb(p,n,i)}else{var j=n.getElementsByTagName(NC.widget.ResumeWizard.StrJobinfo);if(f==this.HintJobs){if(j.getLength()>0){o[nextOffer++]=new NC.offer.JobAlertOffer(p,n,i)}}if(l.length>0){o[nextOffer++]=new NC.offer.SelectCategoryOffer(p,n,i,l,true)}if(k.length>0){o[nextOffer++]=new NC.offer.ImproveScoreOffer(p,n,i,k)}if(f!=this.HintJobs){if(j.getLength()>0){o[nextOffer++]=new NC.offer.JobAlertOffer(p,n,i)}}o[nextOffer++]=new NC.offer.JoinNimbleCatBadScoreOffer(p,n,i);o[nextOffer++]=new NC.offer.ClosingNoCategoryOffer(p,n,i)}return o},constructEmptyProfileOffer:function(o,m,i,j,q,l,r,p,k){var n=new Array();nextOffer=0;if(NC.util.Facebook.isAppConnected()){n[nextOffer++]=new NC.offer.EmptyProfileOfferFb(o,m,i,k,true);n[nextOffer++]=new NC.offer.ClosingNoCategoryOfferFb(o,m,i)}else{n[nextOffer++]=new NC.offer.EmptyProfileOffer(o,m,i,k,true);n[nextOffer++]=new NC.offer.ClosingNoCategoryOfferFb(o,m,i)}return n},constructBadParseOffer:function(o,m,i,j,q,l,r,p,k){var n=new Array();nextOffer=0;if(NC.util.Facebook.isAppConnected()){n[nextOffer++]=new NC.offer.BadParseOfferFb(o,m,i,k,true);n[nextOffer++]=new NC.offer.ClosingNoCategoryOfferFb(o,m,i)}else{n[nextOffer++]=new NC.offer.BadParseOffer(o,m,i,k,true);n[nextOffer++]=new NC.offer.ClosingNoCategoryOffer(o,m,i)}return n},constructPeopleSearchOffer:function(m,l,n,k){var j=new Array();var i=0;j[i++]=new NC.offer.PeopleSearchOpeningOffer(m,l,n,k);return j},constructPremiumSearchOffer:function(m,l,n,i){var k=new Array();var j=0;k[j++]=new NC.offer.PremiumSearchOffer(m,l,n,i);return k},constructFacebookAuthorizationOffer:function(m,l,n,i){var k=new Array();var j=0;k[j++]=new NC.offer.FacebookAuthorizationOffer(m,l,n,i);return k},startSearchSignupWoResume:function(l){var j=document.getElementById("PeopleSearchDivMain");if(j!=null){j.style.display="none"}var i="./searchSignupWoResume.php?us="+l;var k=new NC.util.AjaxUpdate("GET",i,"MainFrame","MainFrame",null);k.doUpdate(true)},CreateAccountButton:1,CreateAccountLink:2,startSignupWoResume:function(m,i){var k=document.getElementById("PeopleSearchDivMain");if(k!=null){k.style.display="none"}if(i==this.CreateAccountButton){gaPageTracker._trackEvent(NC.promo.PromoManager.getCpid(),"Click","CreateAccountButton")}else{gaPageTracker._trackEvent(NC.promo.PromoManager.getCpid(),"Click","CreateAccountLink")}var j="./signupWoResume.php?us="+m;var l=new NC.util.AjaxUpdate("GET",j,"MainFrame","MainFrame",null);l.doUpdate(true)},updateCategory:function(k){var l=document.getElementById(k);var i=NC.util.Dom.serializeForm(l);var m={success:function(n){NC.offer.OfferManager.startNextOffer()},failure:function(n){NC.offer.OfferManager.startNextOffer()},scope:this};var j=new NC.util.AjaxConnection("GET","./selectNewCategory.php?"+i,null);j.executeMethod(m)},bookMark:function(){this.finishOffer()},finishOffer:function(){window.location.reload()}}}()})();(function(){NC.widget.AdManager=function(){var b=null;var a=null;return{showAdEditDialog:function(c,f,g,d){var e="";if(c.indexOf("?"==-1)){c+="?"}else{c+="&"}c+="AdId="+d;this.dialog=new NC.widget.ValidatedModalDialog(c,e,"MainFrame",f,function(j,l,i){var k={success:function(p){var m="./sc.php?ct=25";var n=new NC.util.AjaxUpdate("GET",m,"MainFrame","MainFrame",null);n.doUpdate()},failure:function(m){alert("A System Error has occurred. Please contact customersupport@nimblecat.com")},scope:this};j+="?"+l;var h=new NC.util.AjaxConnection("GET",j,null);h.executeMethod(k)},g,"",function(m,n){var l=true;var i="";var h=m.elements;for(var k=0;k<h.length;k++){if(h[k].name=="Title"){if(NC.util.Dom.getValue(h[k]).length<=0){l=false;if(i.length>0){i+="<br>"}i+="Please enter a title"}}if(h[k].name=="Desc1"){if(NC.util.Dom.getValue(h[k]).length<=0){l=false;if(i.length>0){i+="<br>"}i+="Please enter a description"}}if(h[k].name=="Link"){if(NC.util.Dom.getValue(h[k]).length<=0){l=false;if(i.length>0){i+="<br>"}i+="Please enter a complete url for the target web page"}}}if(!l){var j=document.getElementById(n);j.innerHTML=i;j.style.display="block"}return l},"NCError",false);b=this.dialog;this.dialog.show(0,0,0)},getAdDialog:function(){return b},showAdTargetDialog:function(c,f,g,e){var d="";if(c.indexOf("?"==-1)){c+="?"}else{c+="&"}c+="SelectionId="+e;this.dialog=new NC.widget.ValidatedModalDialog(c,d,"MainFrame",f,function(j,l,i){var k={success:function(m){NC.util.AjaxManager.showCurrentMainFrameContent()},failure:function(m){alert("A System Error has occurred. Please contact customersupport@nimblecat.com")},scope:this};j+="?"+l;var h=new NC.util.AjaxConnection("GET",j,null);h.executeMethod(k)},g,"",function(m,n){var l=true;var i="";var h=m.elements;for(var k=0;k<h.length;k++){if(h[k].name=="Title"){}}if(!l){var j=document.getElementById(n);j.innerHTML=i;j.style.display="block"}return l},"NCError",false);a=this.dialog;this.dialog.show(0,0,0)},getTargetDialog:function(){return a}}}()})();(function(){NC.widget.StateManager=function(){var g=-1;var h=0;var f=0;var d=null;var c=null;var a=-1;var b=null;var e=0;return{UPLOADEDRESUME:1,VIEWEDPROFILE:2,UPDATEDSECURITY:4,CONFIRMEDREGISTRATION:8,GOTBADGE:16,SELECTJOBLOCATION:32,SELECTJOBCATEGORY:64,UPDATEDPROFILE:128,UPLOADEDFBWORK:256,UPLOADEDFBACTIVITY:512,UPLOADEDLINKEDIN:1024,UPDATEDTWITTER:2048,UPDATEDFACEBOOK:4096,UPDATEDLINKEDIN:8192,GRADEUSER:16384,JOBUSER:32768,SEARCHUSER:65536,FACEBOOKUSER:131072,LINKEDINUSER:262144,UNKNOWNUSER:524288,setState:function(i){g=i},setName:function(i){_name=i},setMd5Id:function(i){d=i},getName:function(){return _name},getMd5Id:function(){return d},setSearchSubscriber:function(i){f=i},isSearchSubscriber:function(){return(f==1?true:false)},setPaidSearchSubscriber:function(i){h=i},isPaidSearchSubscriber:function(){return(h==1?true:false)},hasUploadedFbWork:function(){return(g&this.UPLOADEDFBWORK)>0},isFacebookUpdated:function(){return(g&this.UPDATEDFACEBOOK)>0},clearFacebookUpdatedFlag:function(j,i){if(g>=0){g&=~this.UPDATEDFACEBOOK;this.updateUserState(j,i)}},setUploadedFbWorkFlag:function(){g|=this.UPLOADEDFBWORK;this.updateUserState(null,null)},hasUploadedFbActivities:function(){return(g&this.UPLOADEDFBACTIVITY)>0},setUploadedFbActivitiesFlag:function(){g|=this.UPLOADEDFBACTIVITY;this.updateUserState(null,null)},hasUploadedLinkedIn:function(){return(g&this.UPLOADEDLINKEDIN)>0},setUploadedLinkedInFlag:function(){g|=this.UPLOADEDLINKEDIN;this.updateUserState(null,null)},clearLinkedInUpdatedFlag:function(j,i){if(g>=0){g&=~this.UPDATEDLINKEDIN;this.updateUserState(j,i)}},isUnknownUser:function(){return(g&this.UNKNOWNUSER)>0},isGradeUser:function(){return(g&this.GRADEUSER)>0},isJobUser:function(){return(g&this.JOBUSER)>0},isSearchUser:function(){return(g&this.SEARCHUSER)>0},isFacebookUser:function(){return(g&this.FACEBOOKUSER)>0},getState:function(){return g},jobAlertsConfigured:function(){var i=this.SELECTJOBLOCATION|this.SELECTJOBCATEGORY;return((g&i)==i)?true:false},trainingWheels:function(){var i=0;if(this.isJobUser()){i=this.CONFIRMEDREGISTRATION|this.UPLOADEDRESUME|this.SELECTJOBLOCATION|this.SELECTJOBCATEGORY}else{i=this.CONFIRMEDREGISTRATION|this.UPLOADEDRESUME}return((g&i)==i)?false:true},updateUserState:function(l,j){if(g>=0){var k="./setUserState.php";k+="?us="+g;var m={success:function(n){if(l){l()}},failure:function(n){if(j){j()}},scope:this};var i=new NC.util.AjaxConnection("GET",k,"");i.executeMethod(m);this.selectUIFeatures()}},setUploadedResumeFlag:function(){g|=this.UPLOADEDRESUME;this.updateUserState(null,null)},isUploadedResumeSet:function(){return(g&this.UPLOADEDRESUME)>0},setConfirmedRegistrationFlag:function(){if(g>=0){g|=this.CONFIRMEDREGISTRATION;this.updateUserState(null,null)}},isConfirmedRegistrationSet:function(){return(g&this.CONFIRMEDREGISTRATION)>0},setViewedProfileFlag:function(){if(g>=0){g|=this.VIEWEDPROFILE;this.updateUserState(null,null)}},isViewedProfileSet:function(){return(g&this.VIEWEDPROFILE)>0},setUpdatedSecurityFlag:function(){if(g>=0){g|=this.UPDATEDSECURITY;this.updateUserState(null,null)}},isUpdatedSecuritySet:function(){return(g&this.UPDATEDSECURITY)>0},setSelectCategoriesFlag:function(){g|=this.SELECTJOBCATEGORY;this.updateUserState(null,null)},setSelectLocationsFlag:function(){g|=this.SELECTJOBLOCATION;this.updateUserState(null,null)},selectUIFeatures:function(){var i=document.getElementById("ContentTabList");if(i!=null){var j=document.getElementById("ContentTabAlt");if(NC.widget.StateManager.trainingWheels()==true){i.style.display="none";j.style.display="block"}else{i.style.display="none";j.style.display="block"}}},getFlagTimerId:function(){return a},getCheckFlag:function(){return e},getOnFlagSet:function(){return b},waitTillFlagSet:function(j,i){e=j;b=i;a=setInterval("NC.widget.StateManager.checkFlagSet()",1000)},checkFlagSet:function(){var j={success:function(q){var n=NC.widget.StateManager;var m=n.getCheckFlag();var k=n.getOnFlagSet();var l=NC.lang.JSON.parse(q.responseText);var p=parseInt(l.userState);n.setState(p);if((p&m)>0){clearInterval(n.getFlagTimerId());if(k!=null){k()}}},failure:function(k){},scope:this};var i=new NC.util.AjaxConnection("GET","./getUserState.php","");i.executeMethod(j)},}}()})();if(typeof NC=="undefined"){alert("authenticationdialog.js requires the NC JavaScript framework")}if(typeof NC.widget=="undefined"){alert("validatedmodaldialog.js requires the NC JavaScript framework")}NC.widget.AuthenticationDialog=function(f,j,c,i,g,d,b,k,e,h){var a=NC.widget.AuthenticationDialog.superclass.constructor;a.call(this,f,j,c,i,h);this.updateFunc=g;this.updateUrl=d;this.updateTarget=b;this.validateFunc=k;this.errorDiv=e};NC.lang.extend(NC.widget.AuthenticationDialog,NC.widget.ModalDialog,{getErrorDiv:function(){return this.errorDiv},doSubmit:function(){var b=document.getElementById(this.target);var e=NC.util.Dom.descendants(b);for(var a=0;a<e.length;++a){var d=e[a];if(d.name==this.targetFormName){if(this.validateFunc!=null&&this.validateFunc(d,this.errorDiv)){var c=NC.util.Dom.serializeForm(d);if(this.updateFunc!=null&&this.updateUrl!=null){this.updateFunc(this.updateUrl,c,this.updateTarget)}}}}}});(function(){NC.widget.LoginManager=function(){var b=null;var d=null;var a=null;var e=false;var c=false;return{makeLoginUrl:function(f,h){var g;if(f==1){g="./alerts/validate_employer_ajax.php4";if(h==false){g="./validate_employer_ajax.php4"}}else{var g="./alerts/validate_user_ajax.php4";if(h==false){g="./validate_user_ajax.php4"}}return g},makeSignupUrl:function(g){var f;f="./alerts/js_dosignup_ajax.php";if(g==false){f="./js_dosignup_ajax.php"}return f},clearLoginFormVisibleFlag:function(){c=false},makeAutoLoginUrl:function(g,i){var f=g;var h=true;for(var j in i){if(h){h=false}else{f+="&"}f+=j+"="+i[j]}return f},retryLogin:function(h,f,j,g){var i=this.makeAutoLoginUrl(f,j);if(h!=null){d=new NC.widget.AuthenticationDialog(h,"",g,"JsSignup",function(n,p,k){var o=document.getElementById("Email");var r=NC.util.Dom.getValue(o);var l=document.getElementById("Name");var q=NC.util.Dom.getValue(l);j.Name=q;j.Email=r;i=NC.widget.LoginManager.makeAutoLoginUrl(f,j);var s={success:function(A){loginSuccessful=true;var z=A.responseXML;var y="";var t="";var w="";try{var y=z.getElementsByTagName("success").item(0).firstChild.data}catch(x){}try{var u=z.getElementsByTagName("message").item(0).firstChild.data}catch(x){}try{var v=z.getElementsByTagName("formurl").item(0).firstChild.data}catch(x){}if(y==1){var w=null;try{w=z.getElementsByTagName("url").item(0).firstChild.data}catch(x){}if(w!=null){window.location=w}else{NC.widget.LoginManager.retryLogin(v,f,j,g)}}else{var t=z.getElementsByTagName("message").item(0).firstChild.data}},failure:function(t){},scope:this};var m=new NC.util.AjaxConnection("GET",i,null);m.executeMethod(s)},"","",function(o,p){var n=document.getElementById("Email");var q=NC.util.Dom.getValue(n);var m=document.getElementById("Name");var k=NC.util.Dom.getValue(m);var l="";if(q.length==0){l="Please enter an email address"}if(k.length==0){if(l.length>0){l+="<br>"}l+="Please enter your name"}if(l.length==0){return true}else{var p=document.getElementById(NC.widget.LoginManager.getSignupDialog().getErrorDiv());p.innerHTML=l;p.style.display="block";return false}},"SignupError",false);d.show(425,450,500)}else{alert("form url was null")}},doAutoLogin:function(g,j,h){var i=this.makeAutoLoginUrl(g,j);var k={success:function(t){var s=t.responseXML;var r="";var l="";var p="";try{var r=-1;try{r=s.getElementsByTagName("success").item(0).firstChild.data}catch(q){}if(r==1){var p=null;var n=null;var l="";try{p=s.getElementsByTagName("url").item(0).firstChild.data}catch(q){}try{n=s.getElementsByTagName("formurl").item(0).firstChild.data}catch(q){}try{l=s.getElementsByTagName("message").item(0).firstChild.data}catch(q){}if(p!=null){window.location=p}else{this.retryLogin(n,g,j,h)}}else{var l=s.getElementsByTagName("message").item(0).firstChild.data;var m=document.getElementById(h);m.innerHTML=l;m.style.display="block"}}catch(q){}},failure:function(l){},scope:this};var f=new NC.util.AjaxConnection("GET",i,null);f.executeMethod(k)},showLoginDialog:function(k,l,h){e=l;var j="";b=new NC.widget.AuthenticationDialog(k,j,NC.util.AjaxDialogDisplay.DialogWrapper,"JsLogin",function(p,r,m){var o=0;var s=r.split("&");for(var q=0;q<s.length;q++){var u=s[q].split("=");if(u[0]=="Employer"){o=u[1]}}p=NC.widget.LoginManager.makeLoginUrl(o,e);var t={success:function(C){var B=C.responseXML;var A="";var v="";var y="";try{var A=B.getElementsByTagName("success").item(0).firstChild.data;if(A==1){var y=B.getElementsByTagName("url").item(0).firstChild.data;window.location=y}else{var v=B.getElementsByTagName("message").item(0).firstChild.data;var w=NC.widget.LoginManager.getLoginDialog().getErrorDiv();var x=document.getElementById(w);x.innerHTML=v;x.style.display="block"}}catch(z){}},failure:function(v){},scope:this};p+="?"+r;var n=new NC.util.AjaxConnection("GET",p,null);n.executeMethod(t)},"","",function(m,n){return true},"LoginError",true);var g=400;var f=350;var i=(NC.util.Dom.getViewportWidth()-f)/2;b.show(i,h,f)},doLogin:function(g,r){var k=document.getElementById("NCError");var h=0;var o=NC.util.Dom.getFormDescendant(g,r);var m=NC.util.Dom.serializeForm(o);var j="";var n=m.split("&");for(var l=0;l<n.length;l++){var q=n[l].split("=");if(q[0]=="Employer"){h=q[1]}}j=NC.widget.LoginManager.makeLoginUrl(h,e);var p={success:function(w){var v=w.responseXML;var u="";var i="";var s="";try{var u=v.getElementsByTagName("success").item(0).firstChild.data;if(u==1){var s=v.getElementsByTagName("url").item(0).firstChild.data;window.location=s}else{var i=v.getElementsByTagName("message").item(0).firstChild.data;k.innerHTML=i;k.style.display="block"}}catch(t){}},failure:function(i){},scope:this};j+="?"+m;var f=new NC.util.AjaxConnection("GET",j,null);f.executeMethod(p)},showPasswordDialog:function(j,l,h){e=l;var k="";a=new NC.widget.AuthenticationDialog(j,k,NC.util.AjaxDialogDisplay.DialogWrapper,"RecoverPassword",function(p,r,m){var o=0;var s=r.split("&");for(var q=0;q<s.length;q++){var u=s[q].split("=");if(u[0]=="Employer"){o=u[1]}}var t={success:function(C){var B=C.responseXML;var A="";var v="";var y="";try{var A=B.getElementsByTagName("success").item(0).firstChild.data;if(A==1){}else{var v=B.getElementsByTagName("message").item(0).firstChild.data;var w=NC.widget.LoginManager.getPasswordDialog().getErrorDiv();var x=document.getElementById(w);x.innerHTML=v;x.style.display="block"}}catch(z){}},failure:function(v){},scope:this};p+="?"+r;var n=new NC.util.AjaxConnection("GET",p,null);n.executeMethod(t)},"./emailpassword.php","",function(m,n){return true},"PasswordError",true);var g=400;var f=350;var i=(NC.util.Dom.getViewportWidth()-f)/2;a.show(i,h,f)},showSignupDialog:function(h,l,i){var k="";e=l;d=new NC.widget.AuthenticationDialog(h,k,NC.util.AjaxDialogDisplay.DialogWrapper,"JsSignup",function(o,q,n){o=NC.widget.LoginManager.makeSignupUrl(e);var p={success:function(t){var y=t.responseXML;var z="";var w="";var r="";try{var z=y.getElementsByTagName("success").item(0).firstChild.data;var A=y.getElementsByTagName("message").item(0).firstChild.data;if(z==1){var u=document.getElementById(this.target);A=NC.util.StringUtil.convertSpecialCharacters(A);A+=NC.util.AjaxDialogDisplay.addDialogWrapper(this.target);u.innerHTML=A}else{var A=y.getElementsByTagName("message").item(0).firstChild.data;var s=NC.widget.LoginManager.getSignupDialog().getErrorDiv();var v=document.getElementById(s);v.innerHTML=A;v.style.display="block"}}catch(x){}},failure:function(r){},scope:this};o+="?"+q;var m=new NC.util.AjaxConnection("GET",o,null);m.executeMethod(p)},"","",function(m,n){return true},"SignupError",true);var g=400;var f=400;var j=(NC.util.Dom.getViewportWidth()-f)/2;d.show(j,i,f)},getLoginDialog:function(){return b},getPasswordDialog:function(){return a},getSignupDialog:function(){return d},signupEmployer:function(h,f){var l=document.getElementById("Email");var o=NC.util.Dom.getValue(l);var g=document.getElementById("Name");var n=NC.util.Dom.getValue(g);var k="";if(o.length==0){k="Please enter an email address"}if(n.length==0){if(k.length>0){k+="<br>"}k+="Please enter your name"}if(k.length==0){var i="./enrollEmployer.php";i+="?Email="+o+"&Name="+n;var m=new NC.util.AjaxUpdate("POST",i,h,h,null);m.doUpdate()}else{var j=document.getElementById(f);j.innerHTML=k;j.style.display="block"}},receiveEmployerInfo:function(h,f){var l=document.getElementById("Email");var o=NC.util.Dom.getValue(l);var g=document.getElementById("Name");var n=NC.util.Dom.getValue(g);var k="";if(o.length==0){k="Please enter an email address"}if(n.length==0){if(k.length>0){k+="<br>"}k+="Please enter your name"}if(k.length==0){var i="./receiveEmployerInfo.php";i+="?Email="+o+"&Name="+n;var m=new NC.util.AjaxUpdate("POST",i,h,h,null);m.doUpdate()}else{var j=document.getElementById(f);j.innerHTML=k;j.style.display="block"}}}}()})();(function(){NC.widget.JobSearchManager=function(){return{jobSearch:function(h){var a="SearchJobShortForm";var d="SearchJobExtendedForm";var b=d;if(h==1){b=a}var e=document.forms[b];var c=NC.util.Dom.serializeForm(e);var f="./doJobSearch.php";f+="?"+c;var g=new NC.util.AjaxUpdate("POST",f,"MainFrame","MainFrame",null);g.doUpdate()}}}()})();(function(){NC.widget.PeopleManager=function(){var h=new Array("",'<img src="../imagesv2/badges/one_star_2.png">','<img src="../imagesv2/badges/two_stars_2.png">','<img src="../imagesv2/badges/three_stars_2.png">','<img src="../imagesv2/badges/four_stars_2.png">','<img src="../imagesv2/badges/five_stars_2.png">');var b=new Array("connectedness_3_0.png","connectedness_3_1.png","connectedness_3_2.png","connectedness_3_3.png","connectedness_3_4.png","connectedness_3_5.png");var f=null;var i="";var e="centercontent";var j="SearchProgress";var a="MainFrame";var d=false;var c=false;var g='							<div id="ContentContainer"> 								<div id="LeftColumnWide" class="leftcolumnwide">									<div class="contentbody" id="centercontent">									</div>  									<div id="MessageDiv">										<div id="ProfileScoreDiv">										</div>									</div>								</div>									<div class="rightcolumnwide"> 									<div id="StreamDiv"> 									</div> 								</div> ';"							</div>";return{showProgress:function(){var k=document.getElementById(j);k.innerHTML='<img src="../imagesv2/circle-ball-dark-antialiased.gif" border="0">'},hideProgress:function(){var k=document.getElementById(j);k.innerHTML=""},getResultsDiv:function(){return e},getRefreshPage:function(){return c},showResults:function(k,l){if(d){var m=document.getElementById(a);if(m!=null){m.innerHTML=g;NC.util.Event.onContentReady(a,function(){NC.widget.PeopleManager._showResults(k,l)})}}else{NC.widget.PeopleManager._showResults(k,l)}},StrFbUid:"fbUid",StrFbName:"fbName",StrEducationName:"fbEducationName",StrWorkName:"fbWorkName",StrFbProfileUrl:"fbProfile",StrPictureUrl:"fbPictureUrl",StrFbValues:"values",NetworkFacebook:1,NetworkLinkedIn:2,NetworkTwitterq:4,getConnectImages:function(){return b},getConnectResults:function(){return f},formatConnectionData:function(t,u,m){var k=parseInt(t.networktype);var s="";s+='<div class="person">';s+='<div class="picture">';var p="";var n="";if(k&this.NetworkFacebook){p="http://graph.facebook.com/"+t.fbUid+"/picture";t.fbPictureUrl=p;n=t.fbProfile}else{if(k&this.NetworkLinkedIn){p=t.lnPictureUrl;if(p==null||p.length==0){p="../imagesv2/nullpic.gif"}n=t.lnProfile}}s+='<img border="0" height="50" src="'+p+'">';s+="</div>";s+='<div class="info">';s+='<div class="name">';if(n.length>2){s+='<a target="_blank" href="'+n+'">'+t.fbName+"</a>"}else{s+=t.fbName}if(k&this.NetworkFacebook){s+='&nbsp;<a target="_blank" href="'+t.fbProfile+'"><img border="0" width="12" src="../imagesv2/ext/f_logo_16.png"></a>'}if(k&this.NetworkLinkedIn){s+='&nbsp;<a target="_blank" href="'+t.lnProfile+'"><img border="0" width="12" src="../imagesv2/ext/LinkedIn_Logo16px.png"></a>'}s+="</div>";s+='<div class="detail">';if(!(typeof t.fbWorkName=="undefined")){s+="<b>Match:</b> "+t.fbWorkName}if(!(typeof t.fbEducationName=="undefined")){s+="<b>Match:</b> "+t.fbEducationName}s+="</div>";var o="p"+t.fbUid;s+='<div id="'+o+'" class="profile"></div>';s+="</div>";s+='<div style="clear:both"></div>';if(typeof u!="undefined"&&u==true){var l=t.fbName.indexOf(" ");var r=t.fbName;if(l!=-1){r=r.substr(0,l)}s+='<div id="actions" class="action">';if(k&this.NetworkFacebook){if(t.nodetype=="root"){}else{if(t.nodetype=="friend"){s+='<a href="#" onclick="NC.util.Facebook.showShareMapDialog(\''+t.fbUid+"', '"+m+"')\">Share this map with "+r+"</a> ";if(t.subscriber=="0"){s+='<br><a href="#" onclick="NC.util.Facebook.showInviteThrongDialog(\''+t.fbUid+"', '"+m+"')\">Invite to Throng</a> "}}else{if(t.nodetype=="fof"){s+='<a href="#" onclick="NC.util.Facebook.showAddFriendDialog(\''+t.fbUid+"')\">Friend "+r+"</a>"}}}s+='<span id="ProfileEmail"></span><br><span style="font-weight:normal;font-size:10px;">Click '+r+" to message via Facebook.</span>"}s+="</div"}s+="</div>";var q={};q.content=s;q.profileDivId=o;return q},showAllConnections:function(m,l){var n=NC.widget.PeopleManager.getConnectResults()[l];if(n.length>0){var p=NC.util.Event.getTarget(m);var o=NC.util.Region.getRegion(p);var k=new NC.widget.Popup("NCSocialGraphDisplay");k.show(o.left,o.bottom+10,300,-1,function(q){var r="";for(var t=0;t<n.length;t++){if(t>0){r+="<hr>"}var s=NC.widget.PeopleManager.formatConnectionData(n[t]);r+=s.content}q.innerHTML=r})}else{}},showConnection:function(n,l,m){var o=NC.widget.PeopleManager.getConnectResults()[l];var q=NC.util.Event.getTarget(n);var p=NC.util.Region.getRegion(q);var k=new NC.widget.Popup("NCSocialGraphDisplay");k.show(p.left,p.bottom+5,300,-1,function(r){var s=NC.widget.PeopleManager.formatConnectionData(o[m]);r.innerHTML=s.content;NC.util.Event.onContentReady(s.profileDivId,function(){var v={success:function(z){var x=NC.lang.JSON.parse(z.responseText);var y=document.getElementById(s.profileDivId);y.innerHTML=x.profile;if(x.refCode.length>0){var w=document.getElementById("ProfileEmail")}},failure:function(w){},scope:this};var u="./getFbProfileData.php?fbuid="+o[m].fbUid;var t=new NC.util.AjaxConnection("GET",u,null);t.executeMethod(v)})})},_showResults:function(G,x){f=[];if(G!=null&&G.length>0){var v=document.getElementById(e);var J='<div class="peoplelistcontainer">';var w="inviteForm.php";var O="JsInviteForm";var C="do_invite.php";var M="Invite";var P="javascript:NC.widget.CandidateManager.showInvitePopup(  '"+w+"', '"+O+"', '"+C+"','', null,";var y=new Array();var s=new Array();for(var K=0;K<G.length;K++){J+="<div>";var n=G[K].badge;if(typeof(n)!="undefined"&&n.length>0){n=decode64(n)}var q=G[K].name;var B=q.split(" ");var l="";var F="";switch(B.length){case 1:q=B[0];F=q;break;case 2:q=B[0]+" "+B[1];l=B[0];F=B[1];break;case 3:default:q=B[0]+" "+B[2];l=B[0];F=B[2]}J+='<div class="detailed">';J+='<div class="badgeheader">';J+=G[K].ncscore;J+="</div>";J+='<div class="nameheader">'+q+"</div>";J+='<div class="detailheaderlefttall">';J+=", "+G[K].categoryname+"&nbsp;&nbsp;";if(G[K].mgrcategory==2){J+=h[G[K].mgrstars]}J+="</div>";if(NC.LoggedIn==1){var N="action"+G[K].resumeid;J+='<div class="detailheaderright" id="'+N+'">';var t=17;var H="Notes";var A="../imagesv2/notepencil_14px.png";if(true){J+='&nbsp;<a href="#" onclick="NC.widget.ConversationManager.showConversationPopup( event, '+t+","+G[K].resumeid+", '"+H+'\')"><img border="0" alt="View and add notes" src="'+A+'"></a>';var u=G[K].resumeid;u+=", "+t;u+=", '"+q+"'";u+=", true";J+='&nbsp;<a href="#" onclick="NC.widget.TagManager.showTagPopup(event,'+u+')"><img border="0" alt="View and edit tags" src="../imagesv2/hashtag_14px.png"></a>'}else{J+='&nbsp;<a href="#" onclick="NC.widget.QueryManager.showPromoPopup(\''+N+'\', \'search_subscribePromo.php\');"><img border="0" alt="View and add notes" src="'+A+'"></a>';J+='&nbsp;<a href="#" onclick="NC.widget.QueryManager.showPromoPopup(\''+N+'\', \'search_subscribePromo.php\');"><img border="0" alt="View and edit tags" src="../imagesv2/hashtag_14px.png"></a>'}J+="</div>";if(G[K].email!=undefined&&G[K].email.length>0){J+='<div class="detailheaderright">';J+='&nbsp;<a href="#" onclick="NC.widget.QueryManager.showEmailContactPopup(event, '+G[K].resumeid+",'"+q+'\')"><img border="0" alt="Email contact" src="../imagesv2/secure_email_14px.png"></a>';J+="</div>"}}J+='<div style="clear:both"></div>';J+='<div class="detailheaderfarleft">';J+=G[K].location+", since "+G[K].date;J+="</div>";J+='<div style="clear:both"></div>';var L="Profile"+G[K].resumeid;var E={};E.divname=L;E.resumeid=G[K].resumeid;y[y.length]=E;J+='<div class="profile" id="'+L+'"></div>';var o="http://twitter.com/search/users?q="+encodeURI(q)+"&category=people&source=find_on_twitter";var m="http://www.facebook.com/search/?ref=ffs&q="+encodeURI(q)+"&o=2048&init=ffs";var D="http://www.linkedin.com/search/fpsearch?fname="+encodeURI(l)+"&lname="+encodeURI(F)+"&searchLocationType=Y&page_num=1&search=&pplSearchOrigin=MDYS&viewCriteria=1&sortCriteria=R&redir=redir";var Q="http://www.google.com/search?hl=en&site=&q="+encodeURI(q+" "+G[K].location)+"&btnG=Search";J+='<div class="action">';J+='Connect: <a target="_blank" href="'+m+'">Facebook</a> ';J+='<a  target="_blank" href="'+D+'">LinkedIn</a> ';J+='| Follow: <a target="_blank" href="'+o+'">Twitter</a> ';J+='| Search:<a  target="_blank" href="'+Q+'">Google</a> ';J+="</div>";var k="Social"+G[K].resumeid;var I={};I.divname=k;I.resumeid=G[K].resumeid;s[s.length]=I;J+='<div class="socialgraphaction" id='+k+">";J+="</div>";J+='<div style="clear:both"></div>';J+="</div>";J+="</div>"}J+="</div>";explanation="<p>Click on the LinkedIn, Facebook, Twitter or Google link in the blue bar to find and connect with these people.</p>";i="";v.innerHTML=J;i=null;NC.util.Event.onContentReady(e,function(){for(var S=0;S<y.length;S++){var U=document.getElementById(y[S].divname);var r="./getprofile.php?rid="+y[S].resumeid;var T=new NC.util.AjaxUpdate("GET",r,y[S].divname,y[S].divname,null);T.doUpdate(true)}})}else{var K=x.indexOf("?");var p="";if(K!=-1){p=x.substring(K+1)}var R="./searchHelp.php?q="+encodeURI(p);var z=new NC.util.AjaxUpdate("GET",R,e,e,null);z.doUpdate(true)}},execPeopleSearch:function(m,l){var n={success:function(t){this.hideProgress();var r=null;if(t.responseText.length>2){var p=NC.lang.JSON.parse(t.responseText);r=p.data;if(p.originalquery!=p.modifiedquery){NC.widget.QueryManager.showHint('We modified your query. The results shown are for "'+p.modifiedquery+'"')}}NC.widget.PeopleManager.showResults(r,m);if(r!=null&&l!=null){l()}var s={success:function(w){var v=NC.lang.JSON.parse(w.responseText);var u=v.MaxSearches-v.WeeklySearches;u=u>0?u:"no"},failure:function(u){},scope:this};updateUrl="getAvailableSearchCount.php";var q=new NC.util.AjaxConnection("GET",updateUrl,"");q.executeMethod(s)},failure:function(p){this.hideProgress();return null},scope:this};this.showProgress();var k=new NC.util.AjaxConnection("GET",m,null);k.executeMethod(n);NC.widget.QueryManager.setHintShown(false)},setSearchTitle:function(k){i=k},initPeopleSearch:function(m,q,o,l,p){e=q;d=o;c=l;var n="";var k="./peoplesearchform.php";this.peopleSearchDialog=new NC.widget.ValidatedModalDialog(k,n,m,"PeopleSearchForm",function(s,t,r){NC.widget.QueryManager.clearHint();if(NC.widget.PeopleManager.getRefreshPage()){s=window.location.pathname;if(s.indexOf("?")==-1){s+="?"}else{(s+="&")}s+=t;window.location.href=s}else{s+="?"+t;NC.widget.PeopleManager.execPeopleSearch(s,p)}},"./peoplesearch.php","",function(r,s){if(NC.widget.QueryManager.isEditHintShown()||NC.widget.QueryManager.getQueryText().length==0){NC.widget.QueryManager.hidePromoAnimation();NC.widget.QueryManager.showHint("Please enter a query. Type into the text box or click one or more buttons.");return false}else{return true}},"NCError",false)},getPeopleSearchDialog:function(){return this.peopleSearchDialog},BasicHelp:0,DetailedHelp:1,ExampleHelp:2,getHelpUrl:function(l){var k="./peopleSearchHelp.php";if(l==this.DetailedHelp){k="./peopleSearchDetailedHelp.php"}else{if(l==this.ExampleHelp){k="./peopleSearchExamples.php"}}return k},showHelpRewrite:function(l){var k=this.getHelpUrl(l);var m=document.getElementById(a);if(m!=null){m.innerHTML=g;NC.util.Event.onContentReady(a,function(){var n=new NC.util.AjaxUpdate("GET",k,e,e,null);n.doUpdate(true)})}},showHelp:function(l){var k=this.getHelpUrl(l);var m=new NC.util.AjaxUpdate("GET",k,e,e,null);m.doUpdate(true)},showCategories:function(){var k=new NC.util.AjaxUpdate("GET","./categoryHelp.php",e,e,null);k.doUpdate(true)}}}()})();(function(){NC.util.Facebook=function(){var h=null;var a=null;var b="";var i=null;var l=-1;var f=false;var d=false;var n=-1;var k=1*60*1000;var g=-1;var j=[{name:"ncscore",label:"NC Score",canvas:"http://apps.facebook.com/ncscore",invite:"This is an invitation from NC Score",inviteaction:"Please check out NC Score",selectaction:"Invite your friends to grade their Facebook or LinkedIn profiles."},{name:"grader",label:"Profile Grader",canvas:"http://apps.facebook.com/ncgrader",invite:"Grade your Facebook or LinkedIn profile",inviteaction:"Try Profile Grader",selectaction:"Invite your friends to grade their Facebook or LinkedIn profiles."},{name:"grader_staging",label:"Profile Grader Beta",canvas:"http://apps.facebook.com/ncgrader-staging",invite:"Grade your Facebook or LinkedIn profile",inviteaction:"Try Profile Grader Beta",selectaction:"Invite your friends to grade their Facebook or LinkedIn profiles."},{name:"jobs",label:"Jobs",canvas:"http://apps.facebook.com/ncjobalerts",invite:"Get jobs matched to your profile daily",inviteaction:"Try NimbleCat Jobs",selectaction:"Invite your friends to get jobs matched to their Facebook or LinkedIn profiles."},{name:"jobs_staging",label:"Jobs Beta",canvas:"http://apps.facebook.com/ncjobalerts-staging",invite:"Get jobs matched to your profile daily",inviteaction:"Try NimbleCat Jobs Beta",selectaction:"Invite your friends to get jobs matched to their Facebook or LinkedIn profiles."},{name:"search",label:"Search",canvas:"http://apps.facebook.com/ncsearch",invite:"A new way to find friends and grow your professional and personal network on Facebook",inviteaction:"Use NimbleCat Search",selectaction:"Find friends and grow your professional and personal network on Facebook"},{name:"search_staging",label:"Search Beta",canvas:"http://apps.facebook.com/ncsearch-staging",invite:"A new way to find friends and grow your professional and personal network on Facebook",inviteaction:"Use NimbleCat Search",selectaction:"Find friends and grow your professional and personal network on Facebook"},{name:"navigator",label:"Navigator",canvas:"http://apps.facebook.com/ncthrong",invite:"A new way to connect with your friends on Facebook",inviteaction:"Use NimbleCat Navigator",selectaction:"Find friends and grow your professional and personal network on Facebook"},{name:"navigator_staging",label:"Navigator Beta",canvas:"http://apps.facebook.com/ncthrong-staging",invite:"A new way to connect with your friends on Facebook",inviteaction:"Use NimbleCat Navigator",selectaction:"Find friends and grow your professional and personal network on Facebook"}];return{AppNcScore:0,AppGrader:1,AppGraderStaging:2,AppJobs:3,AppJobsStaging:4,AppSearch:5,AppSearchStaging:6,AppNavigator:7,AppNavigatorStaging:8,FbGradeProfile:1,FbLogin:2,FbProfessionalInfo:1,FbPersonalInfo:2,init:function(o){h=o;a=h.userID;i=h.accessToken},getAuthResponse:function(){return authResponse},getFbUid:function(){return a},getAccessToken:function(){return i},isLoggedIn:function(){return(h!=null?true:false)},setConnectButtonAction:function(o){l=o},getConnectButtonAction:function(){return l},setConnected:function(o){f=o},isConnected:function(){return f},setAppConnected:function(o){d=o},isAppConnected:function(){return d},setAppId:function(o){n=o},getAppId:function(){return n},getAppName:function(){if(n==-1){return null}else{return j[n].name}},getAppCanvasByAppId:function(o){if(typeof o=="undefined"){return null}else{return j[o].canvas}},getAppLabel:function(){if(n==-1){return null}else{return j[n].label}},insertFacebookGradeProfileButton:function(p,o){var q=document.getElementById(p);if(q!=null){if(f){q.innerHTML='<a href="#" onclick="NC.promo.PromoManager.startFacebookPromo()"><img src="../imagesv2/ext/fbGradeProfile.png" border=0></a>'}else{q.innerHTML='<a href="#" onclick="NC.promo.PromoManager.startFacebookPromo()"><img src="../imagesv2/ext/fbGradeProfile.png" border=0></a>'}}},insertFacebookLoginButton:function(p,r){var q=document.getElementById(p);if(q!=null){var o="Login with your Facebook account. Its fast, easy and keeps your account info secure.";if(f){q.innerHTML='<a href="#" title="'+o+'" onclick="NC.promo.PromoManager.startFacebookLoginPromo(\''+r+'\')"><img src="../imagesv2/ext/fbLogin.png" border=0></a>'}else{q.innerHTML='<a href="#" title="'+o+'" onclick="login()"><img src="../imagesv2/ext/fbLogin.png" border=0></a>'}}},showInviteFriendsDialog:function(){},insertInviteFriendsDialog:function(o){},showJobAlertAction:function(p){var o=document.getElementById(p);o.innerHTML='<a href="#" onclick="onShowJobAlerts()">Show alerts</a>'},showJobMapAction:function(p){var o=document.getElementById(p);o.innerHTML='<a href="#" onclick="onShowJobMap()">Show map</a>'},getUserName:function(q,o){var p="SELECT name ";if(q){p+=", email "}p+=" from user where uid = "+a;FB.api({method:"fql.query",query:p},function(t){if(t!=null&&t.length>=1){var s="";var r="";if(q){s=t[0].email}o(t[0].name,s)}else{o("","")}})},PermUserWorkHistory:"user_work_history",PermUserEducationHistory:"user_education_history",PermFriendsWorkHistory:"friends_work_history",PermFriendsEducationHistory:"friends_education_history",PermEmail:"email",PermUserInterests:"user_interests",PermFriendsInterests:"friends_interests",PermUserActivities:"user_activities",PermFriendsActivities:"friends_activities",PermUserLocation:"user_location",PermFriendsLocation:"friends_location",PermPublishStream:"publish_stream",StrEducationHistory:"education_history",StrInstitutionName:"name",StrDegreeYear:"year",StrDegreeConcentrations:"concentrations",StrDegreeName:"degree",StrEmploymentHistory:"work_history",StrLocation:"location",StrCity:"city",StrState:"state",StrCountry:"country",StrCompanyName:"company_name",StrPosition:"position",StrDescription:"description",StrStartDate:"start_date",StrEndDate:"end_date",StrName:"name",StrProxiedEmail:"proxied_email",StrEmail:"email",StrLineBreak:"<br>",StrFacebookHeaders:"***Facebook Resume Headers***",StrEmploymentCount:"EmploymentCount:",StrAvgEmpDescLength:"AvgEmpDescLength:",StrEducationCount:"EducationCount:",StrHeaderTerminator:":",reformatFacebookDate:function(o){var p=o.split("-");if(p.length==2){var q=parseInt(p[0]);if(q==0){return"present"}else{return p[1]+"/1/"+p[0]}}else{return o}},formatResumeForParser:function(u){if(u.length==0){return""}var v="";v+=u[this.StrName]+this.StrLineBreak;v+=u[this.StrEmail]+this.StrLineBreak;v+="<br><br>";var z=u[this.StrEmploymentHistory];var o=z.length;var s=0;if(z.length>0){v+="Experience";for(m=0;m<z.length;m++){v+=this.StrLineBreak;var q=z[m];v+=this.StrLineBreak;var p=NC.lang.trim(q[this.StrStartDate]);var A=NC.lang.trim(q[this.StrEndDate]);if(p.length==0){p="Unknown"}else{p=this.reformatFacebookDate(p)}if(A.length==0){A="Present"}else{A=this.reformatFacebookDate(A)}v+=p+" - "+A+", ";v+=q[this.StrPosition]+", "+q[this.StrCompanyName];var y=q[this.StrLocation];if(y.length>0){v+=", "+y[this.StrCity]+", "+y[this.StrState]+", "+y[this.StrCountry]}v+=this.StrLineBreak;v+=q[this.StrDescription];s+=q[this.StrDescription].length}}v+=this.StrLineBreak;var t=u[this.StrEducationHistory];var r=t.length;v+=this.StrLineBreak;v+=this.StrLineBreak;v+="Education";v+=this.StrLineBreak;if(t.length>0){for(e=0;e<t.length;e++){v+=this.StrLineBreak;var x=t[e];v+=x[this.StrInstitutionName]+", ";v+=x[this.StrDegreeName]+", ";var w=x[this.StrDegreeConcentrations];if(w.length>0){for(c=0;c<w.length;c++){if(c>0){v+=", "}v+=w[c]}}v+=", ";v+=x[this.StrDegreeYear]}}v+=this.StrLineBreak+this.StrFacebookHeaders+this.StrLineBreak;v+=this.StrEmploymentCount+o+this.StrHeaderTerminator+this.StrLineBreak;v+=this.StrAvgEmpDescLength+s/o+this.StrHeaderTerminator+this.StrLineBreak;v+="EducationCount:"+r+this.StrHeaderTerminator+this.StrLineBreak;return v},getQueryTimer:function(){return g},resetQueryTimer:function(){g=-1},showFacebookErrorContent:function(o){var q=document.getElementById(NC.widget.MessageBox.makeContentDivName());var p='<div class="dialog"><h2>Oops!</h2>';p+="<p>Facebook did not give us any information about your friends yet. Could you please return to Throng later?</p>";p+="</p></div>";q.innerHTML=p},showFacebookError:function(){var o={ok:function(){}};NC.widget.MessageManager.showDialog("ncfunc:showFacebookErrorDialog",NC.util.AjaxDialogDisplay.DialogWrapper,o,true,-1,-1,-1,true,-1,false)},populateSocialGraph:function(p,r,o,s,q){g=setTimeout(function(){NC.util.Facebook.showFacebookError()},k);b=p;var t="SELECT uid, profile_url, name, education_history, work_history from user where uid = "+a+" or uid in (SELECT uid2 FROM friend WHERE uid1 = "+a+")";FB.api({method:"fql.query",query:t},function(v){if(NC.util.Facebook.getQueryTimer()!=-1){clearTimeout(NC.util.Facebook.getQueryTimer());NC.util.Facebook.resetQueryTimer()}var u="";if(v!=null&&v.length>0){u=NC.lang.JSON.stringify(v);NC.widget.StateManager.setUploadedFbWorkFlag()}else{NC.util.Status.showThrongMessage("<p>Oops! Facebook did not give us any information about your friends. Could you please return to Throng later?</p>","NetworkContent")}NC.util.Facebook.populateAuxiliarySocialGraph(p,r,s,q,u)})},populateAuxiliarySocialGraph:function(o,r,s,p,q){g=setTimeout(function(){NC.util.Facebook.showFacebookError()},k);var t="SELECT uid, profile_url, name, activities, interests, current_location from user where uid = "+a+" or uid in (SELECT uid2 FROM friend WHERE uid1 = "+a+")";FB.api({method:"fql.query",query:t},function(v){if(NC.util.Facebook.getQueryTimer()!=-1){clearTimeout(NC.util.Facebook.getQueryTimer());NC.util.Facebook.resetQueryTimer()}var u="";if(v!=null&&v.length>0){u=NC.lang.JSON.stringify(v);NC.widget.StateManager.setUploadedFbActivitiesFlag()}else{NC.util.Status.showThrongMessage("<p>Oops! Facebook did not give us any information about your friends. Could you please return to Throng later.</p>","NetworkContent")}NC.util.Facebook.populateProfile(o,r,s,p,q,u)})},onUpdateComplete:function(){if(NC.widget.StateManager.hasUploadedLinkedIn()==true){NC.util.LinkedIn.authorizeAndUpload("NetProgressDiv",false,null,false)}else{NC.util.LinkedIn.askUploadLinkedIn()}NC.widget.StateManager.clearFacebookUpdatedFlag()},populateProfile:function(p,s,t,q,r,o){var u="SELECT uid, profile_url, name, email, education_history, work_history from user where uid = "+a;FB.api({method:"fql.query",query:u},function(w){var v="";if(w!=null&&w.length>0){var v=NC.lang.JSON.stringify(w)}NC.widget.StateManager.clearFacebookUpdatedFlag(function(){var A={success:function(B){NC.widget.StateManager.setUploadedFbActivitiesFlag();if(t!=null){t()}if(q){setTimeout(function(){NC.widget.OfferPaneManager.refresh()},1000)}NC.widget.StateManager.waitTillFlagSet(NC.widget.StateManager.UPDATEDFACEBOOK,NC.util.Facebook.onUpdateComplete)},failure:function(B){},scope:this};var z="./connectSocialGraph.php";var x="flags=1&del="+s+"&professional="+encodeURIComponent(r)+"&personal="+encodeURIComponent(o)+"&profile="+encodeURIComponent(v);var y=new NC.util.AjaxConnection("POST",z,x);y.executeMethod(A)},function(){alert("Oops! Something bad happened(1003)")})})},updateFacebookNetwork:function(r,s,p){var t={success:function(v){var u=NC.lang.JSON.parse(v.responseText);if(u.daysSince>0){this._updateFacebookNetwork(r,s);if(p!=null){p(true)}}else{if(p!=null){p(false)}}},failure:function(u){this._updateFacebookNetwork(r,s);if(p!=null){p(true)}},scope:this};var q="./getDaysSinceLastUpdate.php";var o=new NC.util.AjaxConnection("GET",q,"");o.executeMethod(t)},_updateFacebookNetwork:function(o,p){var q="We're updating your throngs from Facebook and LinkedIn.";NC.util.Status.showThrongProgressAutoHide(q,"NetworkContent");NC.util.Facebook.populateSocialGraph(o,1,true,function(){if(p){NC.widget.NetworkManager.refreshNetwork()}},false)},gradeUserProfile:function(o){var p="SELECT name, email, education_history, work_history from user where uid = "+a;FB.api({method:"fql.query",query:p},function(t){if(t!=null&&t.length>0){var u={success:function(y){NC.widget.StateManager.setUploadedResumeFlag();NC.widget.ResumeUploadManager.processEncodedProfile(y.responseText);var w=NC.widget.ResumeUploadManager.getDomRoot();NC.promo.PromoManager.getPromo().setDocRoot(w);var x=NC.util.Dom.extractField(w,NC.widget.ResumeWizard.StrNCScore);var v=NC.offer.OfferManager.constructOffer(o,w,NC.offer.OfferManager.SourceFacebook);NC.offer.OfferManager.setOffers(v);NC.offer.OfferManager.startNextOffer()},failure:function(v){alert("grade profile failed")},scope:this};var s=NC.util.Facebook.formatResumeForParser(t[0]);var r="./processFacebookProfile.php";s="profile="+encodeURIComponent(s);var q=new NC.util.AjaxConnection("POST",r,s);q.executeMethod(u)}});FB.Facebook.apiClient.fql_query(query,function(q){})},showAddFriendDialog:function(o){gaPageTracker._trackEvent(NC.promo.PromoManager.getCpid(),"Click","ThrongAddFriend");FB.ui({method:"friends",id:o},function(p){if(p){if(p.action==1){}else{}}})},showFeedDialog:function(o,q,t,u,r,p){var s={method:"feed",name:t,link:q,picture:u,caption:"",description:r,actions:p};if(o!=null&&o.length>0){s.to=o}FB.ui(s,function(v){if(v&&v.post_id){}else{}})},showShareMapDialog:function(o,r){gaPageTracker._trackEvent(NC.promo.PromoManager.getCpid(),"Click","ThrongShare");var q=null;var s="";if(!NC.lang.isUndefined(NC.widget.NetworkManager)){q=NC.widget.NetworkManager.makeThrongLabel()}var t="";if(q==null){t="I mapped my social networks with Throng. Now I can see my connections in one place, and I can quickly identify new friends to connect with based on where they work or how they play. How will you use Throng? http://apps.facebook.com/ncthrong"}else{t="I mapped my social networks with Throng. This map shows people in my networks who "+q;t+=". Now I can see my connections in one place, and I can quickly identify new friends to connect with based on where they work or how they play. How will you use Throng? http://apps.facebook.com/ncthrong"}var u=NC.UserName.split(" ");var v=u[0]+" shared a throng";var p=new Array(1);p[0]={};p[0].name=u[0]+"'s throng";p[0].link=r;this.showFeedDialog(o,r,v,NC.SiteRoot+"imagesv2/throng_75x75_1.png",t,p)},showInviteThrongDialog:function(o,r){gaPageTracker._trackEvent(NC.promo.PromoManager.getCpid(),"Click","ThrongShare");var q=null;var s="";if(!NC.lang.isUndefined(NC.widget.NetworkManager)){q=NC.widget.NetworkManager.makeThrongLabel()}var u=NC.UserName.split(" ");var v=u[0]+" shared a Throng map";var t="";if(q==null){q="I mapped my social networks with Throng. Join me on Throng and we'll be able to give and receive help with career moves, and professional introductions and learn more about what our friends enjoy. How will you use Throng? http://apps.facebook.com/ncthrong"}else{q="I mapped my social networks with Throng. This map shows my friends who "+q;t+=". Join me on Throng and we'll be able to give and receive help with career moves, and professional introductions and learn more about what our friends enjoy. How will you use Throng? http://apps.facebook.com/ncthrong"}var p=new Array(1);p[0]={};p[0].name=u[0]+"'s Throng map";p[0].link=r;this.showFeedDialog(o,r,v,NC.SiteRoot+"imagesv2/throng_75x75_1.png",t,p)},logout:function(o){if(h!=null){FB.logout(function(p){window.location=o})}else{window.location=o}}}}()})();(function(){NC.util.LinkedIn=function(){var b=false;var a=false;var e=null;var d=null;var c="";return{setConnected:function(f){b=f},isConnected:function(){return b},isAppAuthorized:function(){return IN.User.isAuthorized()},authorizeApp:function(f,g){if(!this.isAppAuthorized()){IN.User.authorize(function(){a=true;b=true;NC.util.LinkedIn.getProfile(f,g)},this)}else{a=true;b=true;NC.util.LinkedIn.getProfile(f,g)}},getProfile:function(g,f){id="me";if(b){IN.API.Profile(id).fields("id","firstName","lastName","publicProfileUrl","pictureUrl","positions","educations").result(function(h){d=h.values[0].id;if(g!=null){g(h)}}).error(function(h){if(f!=null){f(h)}})}},getConnections:function(g,f){IN.API.Connections("me").fields("firstName","lastName","id","publicProfileUrl","pictureUrl","positions","educations").result(function(h){if(g!=null){g(h)}}).error(function(h){if(f!=null){f(h)}})},makeLinkedInStatus:function(){var f=null;if(!NC.lang.isUndefined(NC.widget.NetworkManager)){f=NC.widget.NetworkManager.makeThrongLabel()}var g="";if(f==null){g="I mapped my social networks with Throng. Now I can quickly identify new connections based on their profession, where they work or where they studied. http://apps.facebook.com/ncthrong"}else{g="This shows people in my networks who "+f;g+=". Now I can quickly identify new connections based on their profession, where they work or where they studied. http://apps.facebook.com/ncthrong"}return g},postStatus:function(g,m,i,l){var j=this.makeLinkedInStatus();var n={};n.comment=m;var k={};k.title="I mapped my social networks with Throng";k.description=j;k.submittedUrl=g;k.submittedImageUrl="http://www.nimblecat.com/imagesv2/throng_75x75_1.png";n.content=k;var h={};h.code="connections-only";n.visibility=h;var f=JSON.stringify(n);IN.API.Raw("/people/~/shares").method("POST").body(f).result(function(o){NC.util.Status.showThrongMessage("<p>Your LinkedIn status was updated successfully!</p>","NetworkContent");if(i!=null){i(o)}}).error(function(o){if(l!=null){l(o)}NC.util.Status.showThrongMessage("<p>Oops! Something bad happened and we could not update your LinkedIn status.</p>","NetworkContent")})},authorizeAndPostStatus:function(f,i,h,g){if(!this.isAppAuthorized()){IN.User.authorize(function(){a=true;b=true;this.postStatus(f,i,h,g)},this)}else{a=true;b=true;this.postStatus(f,i,h,g)}},showShareContent:function(f){var h=document.getElementById(NC.widget.MessageBox.makeContentDivName());var g='<div class="dialog">';g+="<h2>Share on LinkedIn</h2>";g+='<div style="padding-left:20px">';g+='<div style="margin:5px 5px 2px 5px"><img border="0" alt="Share on LinkedIn" src="../imagesv2/ext/LinkedIn_Logo16px.png">&nbsp;Add a comment</div>';g+='<div><textarea id="CommentText" rows="2" style="width:95%;margin:5px;"></textarea> </div>';g+='<div style="margin:5px;">';g+='<div style="float:left;width:85px;margin-left:-2px;"><img src="http://www.nimblecat.com/imagesv2/throng_75x75_1.png"></div>';g+='<div style="float:left;width:380px"><b>I mapped my social networks with Throng</b><br>'+this.makeLinkedInStatus()+"</div>";g+='<div style="clear:both"></div>';g+="</div>";g+="</div>";g+="</div>";g+="</div>";h.innerHTML=g},authorizeShare:function(f){var g={ok:function(){var i=document.getElementById("CommentText");var h=i.value;NC.util.LinkedIn.authorizeAndPostStatus(f,h,null,null)},cancel:function(){}};NC.widget.MessageManager.showDialog("ncfunc:showLinkedInPost",NC.util.AjaxDialogDisplay.DialogWrapper,g,true,500,-1,-1,true,-1,false)},authorizeAndUpload:function(f,h,i,g){c=f;if(!this.isAppAuthorized()){IN.User.authorize(function(){a=true;b=true;NC.util.LinkedIn.uploadProfile(f,h,i,g)},this)}else{a=true;b=true;NC.util.LinkedIn.uploadProfile(f,h,i,g)}},uploadProfile:function(f,h,i,g){this.getProfile(function(j){d=j.values[0].id;var k=NC.lang.JSON.stringify(j);NC.util.LinkedIn.uploadConnections(f,h,i,g,k)},function(j){})},uploadConnections:function(f,i,j,h,g){this.getConnections(function(k){var l=NC.lang.JSON.stringify(k);NC.widget.StateManager.clearLinkedInUpdatedFlag(function(){var p={success:function(q){NC.widget.StateManager.setUploadedLinkedInFlag();if(j!=null){j()}NC.widget.StateManager.waitTillFlagSet(NC.widget.StateManager.UPDATEDLINKEDIN,NC.util.LinkedIn.onUpdateComplete)},failure:function(q){},scope:this};var o="./connectLinkedInGraph.php";var m="linkedinid="+d+"&flags=2&del="+i+"&professional="+encodeURIComponent(l)+"&personal=none&profile="+encodeURIComponent(g);var n=new NC.util.AjaxConnection("POST",o,m);n.executeMethod(p)},function(){alert("Oops! Something bad happened(1004)")})},function(k){alert("connections broke "+k)})},onUpdateComplete:function(){NC.widget.StateManager.clearLinkedInUpdatedFlag();NC.util.LinkedIn.showUploadCompleteButton()},showUploadCompleteButton:function(){if(NC.widget.NetworkManager.isFirstTimeUser){NC.widget.NetworkManager.showFirstTimeButton()}},askUploadLinkedIn:function(){if(NC.widget.StateManager.hasUploadedLinkedIn()==false){var f={ok:function(){NC.util.LinkedIn.authorizeAndUpload("NetProgressDiv",false,null,false)},cancel:function(){NC.util.LinkedIn.showUploadCompleteButton()}};NC.util.Status.hideThrongMessageImmediate();setTimeout(function(){NC.widget.NetworkManager.showMessage("connectLinkedIn.php",500,true,f)},1000)}}}}()})();if(typeof NC=="undefined"){alert("edithint.js requires the NC JavaScript framework")}if(typeof NC.widget=="undefined"){alert("edithint.js requires the NC JavaScript framework")}NC.widget.EditHint=function(d,b,c){var a=NC.widget.EditHint.superclass.constructor;a.call(this,d);this.el=document.getElementById(d);if(c==null||c.length==0){c="Click the buttons to compose a query, or type a query here."}if(b==null||b.length==0){this.el.hint=c;this.el.value=c;this.el.hintShown=true}else{this.el.hint=c;this.el.value=b;this.el.hintShown=false}};NC.lang.extend(NC.widget.EditHint,NC.widget.Element,{_blur:function(a){var c=NC.core.Event.getEventTarget(a);var b=NC.util.Dom.getValue(c);if(b.length==0){c.value=c.hint;c.hintShown=true;NC.util.Dom.replaceClass(c,c.className,c.className+"-blur")}},_focus:function(c){var d=NC.core.Event.getEventTarget(c);if(d.hintShown){d.value="";d.hintShown=false}var b=d.className.indexOf("-blur");if(b!=-1){var a=d.className.substring(0,b);NC.util.Dom.replaceClass(d,d.className,a)}},init:function(){NC.widget.EditHint.superclass.init.call(this);this.addDomEvent(NC.core.EventType.Blur,this._blur,false);this.addDomEvent(NC.core.EventType.Focus,this._focus,false);return"init EditHint function"},render:function(){return"render"},setHintShown:function(c){this.el.hintShown=c;if(c==false){var b=this.el.className.indexOf("-blur");if(b!=-1){var a=this.el.className.substring(0,b);NC.util.Dom.replaceClass(this.el,this.el.className,a)}}},isHintShown:function(a){return this.el.hintShown}});(function(){NC.widget.SloganManager=function(){return{writeSlogan:function(d,b){var a=parseInt(b);var c=document.getElementById(d);slogan='<h2 class="orange">'+slogans[a]+"</h2>";c.innerHTML=slogan}}}()})();NC.widget.Share=function(a){this.resumeId=parseInt(a)};NC.widget.Share.SmallImage=1;NC.widget.Share.LargeImage=2;NC.widget.Share.prototype={};NC.widget.ShareScore=function(a,f,e,d,c){var b=NC.widget.ShareScore.superclass.constructor;b.call(this,a);this.managerScore=f;this.stars=Math.round(this.managerScore/20);this.ncScore=e;this.categoryId=d;this.storyBase=c;this.storyUrl=c+"alerts/scoreStory.php"};NC.lang.extend(NC.widget.ShareScore,NC.widget.Share,{makeShareUrl:function(){return""},makeShareImage:function(a){return""}});NC.widget.ShareScoreOnFacebook=function(a,f,e,d,c){var b=NC.widget.ShareScoreOnFacebook.superclass.constructor;b.call(this,a,f,e,d,c);this.fbTitle="I graded my social profile"};NC.lang.extend(NC.widget.ShareScoreOnFacebook,NC.widget.ShareScore,{makeShareUrl:function(){var a=this.storyUrl+"?score="+this.ncScore+"&source=Facebook";a+="&cid="+this.categoryId+"&stars="+this.stars+"&resumeid="+this.resumeId;return a},makeShareImage:function(b){var a=this.makeShareUrl();a=encodeURI(a);var d=encodeURI(this.fbTitle);var c="../imagesv2/ext/f_logo_30.png";if(b==NC.widget.Share.SmallImage){c="../imagesv2/ext/f_logo_16.png"}return'<a href="http://www.facebook.com/sharer.php?u='+a+"&t="+d+'" target="_blank"> <img src="'+c+'" border="0" alt="Share on Facebook"></a> '}});NC.widget.ShareScoreOnTwitter=function(a,f,e,d,c){var b=NC.widget.ShareScoreOnTwitter.superclass.constructor;b.call(this,a,f,e,d,c);this.fbTitle="I graded my social profile"};NC.lang.extend(NC.widget.ShareScoreOnTwitter,NC.widget.ShareScore,{makeShareUrl:function(){var a="";if(this.stars>0){if(this.stars>1){a="I got a score of "+this.ncScore+" with "+this.stars+" management stars at NimbleCat just now. "}else{a="I got a score of "+this.ncScore+" with "+this.stars+" management star at NimbleCat just now. "}}else{a="I got a score of "+this.ncScore+" at NimbleCat just now. "}a+=" Get yours at www.nimblecat.com. ";a=encodeURI(a);tweetLink="http://twitter.com/home?source=NimbleCat&status="+a;return tweetLink},makeShareImage:function(b){var a=this.makeShareUrl();var c="../imagesv2/ext/twitter_logo-30.png";if(b==NC.widget.Share.SmallImage){c="../imagesv2/ext/twitter_logo-16.png"}return'<a href="'+a+'" target="_blank"><img src="'+c+'" border="0" alt= "Share on Twitter"></a> '}});NC.widget.ShareScoreOnLinkedIn=function(a,f,e,d,c){var b=NC.widget.ShareScoreOnLinkedIn.superclass.constructor;b.call(this,a,f,e,d,c);this.fbTitle="I graded my social profile"};NC.lang.extend(NC.widget.ShareScoreOnLinkedIn,NC.widget.ShareScore,{makeShareUrl:function(){var a=this.storyUrl+"?score="+this.ncScore+"&source=LinkedIn";a+="&cid="+this.categoryId+"&stars="+this.stars+"&resumeid="+this.resumeId;var b="I graded my LinkedIn profile at NimbleCat";var c="I just got a score of "+this.ncScore+" on my LinkedIn profile at NimbleCat. ";a=encodeURI(a);b=encodeURI(b);c=encodeURI(c);return"http://www.linkedin.com/shareArticle?mini=true&url="+a+"&title="+b+"&summary="+c+"&source=nimblecat.com"},makeShareImage:function(b){var a=this.makeShareUrl();var c="../imagesv2/ext/LinkedIn_Logo30px.png";if(b==NC.widget.Share.SmallImage){c="../imagesv2/ext/LinkedIn_Logo16px.png"}return'<a target="_blank" href="'+a+'"><img src="'+c+'" border="0" alt="Share on LinkedIn"></a> '}});NC.widget.ShareMap=function(b,a,e,f,c){var d=NC.widget.ShareMap.superclass.constructor;d.call(this,b);this.md5Id=a;this.storyBase=e;this.storyUrl=e+"alerts/js_main_v3_navshare.php";this.shareDivId=f;this.parms=c};NC.lang.extend(NC.widget.ShareMap,NC.widget.Share,{makeShareUrl:function(){return""},makeShareImage:function(a){return""}});NC.widget.ShareMapOnTwitter=function(b,a,e,f,c){var d=NC.widget.ShareMapOnTwitter.superclass.constructor;d.call(this,b,a,e,f,c)};NC.lang.extend(NC.widget.ShareMapOnTwitter,NC.widget.ShareMap,{makeShareUrl:function(){var a=this.storyUrl+"?md5id="+this.md5Id+"&source=Facebook"+this.parms;return encodeURI(a)},makeTweetLink:function(b){var a="";a="I mapped my Facebook network with Throng. See it here: "+b+". What will you use Throng for? http://apps.facebook.com/ncthrong";a=encodeURI(a);tweetLink="http://twitter.com/home?source=NimbleCat&status="+a;return tweetLink},makeShareImage:function(c){var b=this;function a(f){var e=b.makeTweetLink(f);var h="../imagesv2/ext/twitter_logo-30.png";if(c==NC.widget.Share.SmallImage){h="../imagesv2/ext/twitter_logo-16.png"}var g='<a href="'+e+'" target="_blank"><img src="'+h+'" border="0" alt= "Share on Twitter"></a> ';var d=document.getElementById(b.shareDivId);if(d!=null){d.innerHTML=g}}NC.widget.GoogleShortener.shorten(this.makeShareUrl(),a)}});NC.widget.ShareMapOnLinkedIn=function(b,a,e,f,c){var d=NC.widget.ShareMapOnLinkedIn.superclass.constructor;d.call(this,b,a,e,f,c)};NC.lang.extend(NC.widget.ShareMapOnLinkedIn,NC.widget.ShareMap,{makeShareUrl:function(){var a=this.storyUrl+"?md5id="+this.md5Id+"&source=LinkedIn"+this.parms;return a},makeShareImage:function(d){var c=this.makeShareUrl();var e="../imagesv2/ext/LinkedIn_Logo30px.png";if(d==NC.widget.Share.SmallImage){e="../imagesv2/ext/LinkedIn_Logo16px.png"}var b='<a href="#" onclick="NC.util.LinkedIn.authorizeShare( \''+c+'\', null, null)"> <img src="'+e+'" border="0" alt="Share on LinkedIn"></a> ';var a=document.getElementById(this.shareDivId);if(a!=null){a.innerHTML=b}}});NC.widget.ShareMapOnFacebook=function(b,a,e,f,c){var d=NC.widget.ShareMapOnFacebook.superclass.constructor;d.call(this,b,a,e,f,c)};NC.lang.extend(NC.widget.ShareMapOnFacebook,NC.widget.ShareMap,{makeShareUrl:function(){var a=this.storyUrl+"?md5id="+this.md5Id+"&source=Facebook"+this.parms;return a},makeShareImage:function(d){this.fbTitle="I just mapped my Facebook network";var c=this.makeShareUrl();var f=encodeURI(this.fbTitle);var e="../imagesv2/ext/f_logo_30.png";if(d==NC.widget.Share.SmallImage){e="../imagesv2/ext/f_logo_16.png"}var b="<a href=\"#\" onclick=\"NC.util.Facebook.showShareMapDialog('', '"+c+'\')"> <img src="'+e+'" border="0" alt="Share on Facebook"></a> ';var a=document.getElementById(this.shareDivId);if(a!=null){a.innerHTML=b}}});(function(){NC.widget.QueryManager=function(){var j=null;var h=null;var l=null;var k=null;var g=null;var b=null;var c=null;var a=null;var f=null;var d=null;var e=null;return{StrManager:"mgr",StrNear:"near",StrScore:"score",StrCategory:"category",StrUnknown:"unknown",StrSince:"since",StrUntil:"until",StrDateCode:"date",StrDistance:"distance",StrSchools:"schools",StrCompanies:"companies",StrMinYearsWorked:"minyears",StrMaxYearsWorked:"maxyears",StrDegree:"degree",StrTag:"tag",StrFullTextQuery:"keywords",StrAssociates:"associates",StrBachelors:"bachelors",StrMasters:"masters",StrDoctorate:"doctor",StrDateToday:"today",StrDateThisWeek:"thisweek",StrDateLastWeek:"lastweek",StrDateThisMonth:"thismonth",StrDateLastMonth:"lastmonth",StrDateThisYear:"thisyear",StrDateThisCalendarYear:"thiscalendaryear",StrDateLastThirtyDays:"lastthirtydays",StrMgrYes:"yes",StrMgrNo:"no",StrMgrJunior:"junior",StrMgrMidlevel:"midlevel",StrMgrSenior:"senior",StrScoreAverage:"average",StrScoreMedium:"medium",StrScoreHigh:"high",setQueryObject:function(m){h=m;j=document.getElementById(h.domId);l=document.getElementById("QueryHint")},getQueryText:function(){return j.value},isEditHintShown:function(){return h.isHintShown()},setHintShown:function(m){h.setHintShown(m)},setQueryText:function(m){j.value=m;h.setHintShown(false)},showHint:function(m){if(l!=null){l.innerHTML=m}setHintShown=true},clearHint:function(){if(l!=null){l.innerHTML=""}setHintShown=false},setHintShown:function(m){h.setHintShown(m)},tokenize:function(t){var p=[];var n="";for(var r=0;r<t.length;r++){var s=t.charAt(r);if(s=="("&&n.length==0){r+=1;n+="(";while((s=t.charAt(r))!=")"&&r<t.length){n+=s;r++}n+=")";p.push(n);n=""}else{if(s=="'"||s=='"'){var q=s;var o=false;var m=false;if(n.length!=0){n+=s;m=true}else{o=true}r+=1;while((s=t.charAt(r))!=q&&r<t.length){n+=s;r++}if(m){n+=q}if(o){p.push(n);n=""}}else{if(s==" "){if(n.length>0){p.push(n);n=""}}else{n+=s}}}}if(n.length>0){p.push(n)}return p},parse:function(){var r=NC.util.Dom.getValue(j);var q=this.tokenize(r);var m=[];for(i in q){var o=q[i];var n=o.split(":");if(n.length==1){if(m[NC.widget.QueryManager.StrCategory]!=null){m[NC.widget.QueryManager.StrCategory]=m[NC.widget.QueryManager.StrCategory]+" "+o}else{m[NC.widget.QueryManager.StrCategory]=o}}else{if(NC.widget.QueryManager.StrManager==n[0]){m[NC.widget.QueryManager.StrManager]=n[1]}else{if(NC.widget.QueryManager.StrScore==n[0]){m[NC.widget.QueryManager.StrScore]=n[1]}else{if(NC.widget.QueryManager.StrNear==n[0]){m[NC.widget.QueryManager.StrNear]=n[1]}else{if(NC.widget.QueryManager.StrDistance==n[0]){m[NC.widget.QueryManager.StrDistance]=n[1]}else{if(NC.widget.QueryManager.StrDateCode==n[0]){m[NC.widget.QueryManager.StrDateCode]=n[1]}else{if(NC.widget.QueryManager.StrSchools==n[0]){m[NC.widget.QueryManager.StrSchools]=n[1]}else{if(NC.widget.QueryManager.StrCompanies==n[0]){m[NC.widget.QueryManager.StrCompanies]=n[1]}else{if(NC.widget.QueryManager.StrMinYearsWorked==n[0]){m[NC.widget.QueryManager.StrMinYearsWorked]=n[1]}else{if(NC.widget.QueryManager.StrMaxYearsWorked==n[0]){m[NC.widget.QueryManager.StrMaxYearsWorked]=n[1]}else{if(NC.widget.QueryManager.StrDegree==n[0]){m[NC.widget.QueryManager.StrDegree]=n[1]}else{if(NC.widget.QueryManager.StrTag==n[0]){m[NC.widget.QueryManager.StrTag]=n[1]}else{m[NC.widget.QueryManager.StrUnknown]=n[1]}}}}}}}}}}}}}return m},compose:function(m){var n="";if(m[NC.widget.QueryManager.StrCategory]!=null&&m[NC.widget.QueryManager.StrCategory].length>0){n+=m[NC.widget.QueryManager.StrCategory]}if(m[NC.widget.QueryManager.StrDateCode]!=null){n+=" "+NC.widget.QueryManager.StrDateCode+":"+m[NC.widget.QueryManager.StrDateCode]}if(m[NC.widget.QueryManager.StrNear]!=null){n+=" "+NC.widget.QueryManager.StrNear+":"+m[NC.widget.QueryManager.StrNear]}if(m[NC.widget.QueryManager.StrDistance]!=null){n+=" "+NC.widget.QueryManager.StrDistance+":"+m[NC.widget.QueryManager.StrDistance]}if(m[NC.widget.QueryManager.StrManager]!=null){n+=" "+NC.widget.QueryManager.StrManager+":"+m[NC.widget.QueryManager.StrManager]}if(m[NC.widget.QueryManager.StrScore]!=null){n+=" "+NC.widget.QueryManager.StrScore+":"+m[NC.widget.QueryManager.StrScore]}if(m[NC.widget.QueryManager.StrSchools]!=null){n+=" "+NC.widget.QueryManager.StrSchools+":"+m[NC.widget.QueryManager.StrSchools]}if(m[NC.widget.QueryManager.StrCompanies]!=null){n+=" "+NC.widget.QueryManager.StrCompanies+":"+m[NC.widget.QueryManager.StrCompanies]}if(m[NC.widget.QueryManager.StrMinYearsWorked]!=null){n+=" "+NC.widget.QueryManager.StrMinYearsWorked+":"+m[NC.widget.QueryManager.StrMinYearsWorked]}if(m[NC.widget.QueryManager.StrMaxYearsWorked]!=null){n+=" "+NC.widget.QueryManager.StrMaxYearsWorked+":"+m[NC.widget.QueryManager.StrMaxYearsWorked]}if(m[NC.widget.QueryManager.StrDegree]!=null){n+=" "+NC.widget.QueryManager.StrDegree+":"+m[NC.widget.QueryManager.StrDegree]}if(m[NC.widget.QueryManager.StrTag]!=null){n+=" "+NC.widget.QueryManager.StrTag+":"+m[NC.widget.QueryManager.StrTag]}return n},showSelectLocationPopup:function(q){this.hidePromoAnimation();var p=null;if(!NC.widget.QueryManager.isEditHintShown()){p=NC.widget.QueryManager.parse()}else{p=[]}var o="&rand="+new Date().getTime();if(p[NC.widget.QueryManager.StrNear]!=undefined){o+="&ZipCode="+p[NC.widget.QueryManager.StrNear]}var s="50";if(p[NC.widget.QueryManager.StrDistance]!=undefined){s="&Distance="+p[NC.widget.QueryManager.StrDistance]}o+="&Distance="+s;o=encodeURI(o);this.dialog=new NC.widget.ValidatedModalDialog("search_selectLocation.php?",o,NC.util.AjaxDialogDisplay.DialogWrapper,"JsSelectLocation",function(y,A,x){var z="";var w="";var u=A.split("&");for(var t=0;t<u.length;t++){var v=u[t].split("=");if(v[0]=="Distance"){z=v[1]}if(v[0]=="ZipCode"){w=v[1]}}if(w.length>0&&z!=-1){p[NC.widget.QueryManager.StrDistance]=z;p[NC.widget.QueryManager.StrNear]=w;NC.widget.QueryManager.setQueryText(NC.widget.QueryManager.compose(p))}else{p[NC.widget.QueryManager.StrDistance]=null;p[NC.widget.QueryManager.StrNear]=null;NC.widget.QueryManager.setQueryText(NC.widget.QueryManager.compose(p))}},"","",function(t,u){return true},"JsSelectLocationError",true);k=this.dialog;var n=document.getElementById(q);var r=NC.util.Region.getRegion(n);leftX=r.left+3;topY=r.bottom;var m=300;leftX=this.adjustForVisibility(leftX,m);this.dialog.show(leftX,topY,m)},getSelectLocationDialog:function(){return k},normalizeString:function(o){var p=o.split(",");var m="";for(var n=0;n<p.length;n++){p[n]=NC.lang.trim(p[n]);if(p[n].indexOf(" ")!=-1){if(p[n].charAt(0)!="'"){p[n]="'"+p[n]+"'"}}if(n>0){m+=","}m+=p[n]}return m},showSelectCompanyPopup:function(q){this.hidePromoAnimation();var p=null;if(!NC.widget.QueryManager.isEditHintShown()){p=NC.widget.QueryManager.parse()}else{p=[]}var o="rand="+new Date().getTime();if(p[NC.widget.QueryManager.StrCompanies]!=undefined){o+="&Company="+p[NC.widget.QueryManager.StrCompanies]}o=encodeURI(o);this.dialog=new NC.widget.ValidatedModalDialog("search_selectCompanies.php?",o,NC.util.AjaxDialogDisplay.DialogWrapper,"JsSelectCompany",function(x,y,w){var v="";var t=y.split("&");for(var s=0;s<t.length;s++){var u=t[s].split("=");if(u[0]=="Company"){value=unescape(u[1]);value=NC.widget.QueryManager.normalizeString(value)}}if(value.length>0){p[NC.widget.QueryManager.StrCompanies]=value;NC.widget.QueryManager.setQueryText(NC.widget.QueryManager.compose(p))}else{p[NC.widget.QueryManager.StrCompanies]=null;NC.widget.QueryManager.setQueryText(NC.widget.QueryManager.compose(p))}},"","",function(s,t){return true},"",true);g=this.dialog;var n=document.getElementById(q);var r=NC.util.Region.getRegion(n);leftX=r.left+3;topY=r.bottom;var m=295;leftX=this.adjustForVisibility(leftX,m);this.dialog.show(leftX,topY,m)},getSelectCompanyDialog:function(){return g},showSelectSchoolPopup:function(q){this.hidePromoAnimation();var p=null;if(!NC.widget.QueryManager.isEditHintShown()){p=NC.widget.QueryManager.parse()}else{p=[]}var o="rand="+new Date().getTime();if(p[NC.widget.QueryManager.StrSchools]!=undefined){o+="&School="+p[NC.widget.QueryManager.StrSchools]}o=encodeURI(o);this.dialog=new NC.widget.ValidatedModalDialog("search_selectSchools.php?",o,NC.util.AjaxDialogDisplay.DialogWrapper,"JsSelectSchool",function(w,y,v){var x="";var t=y.split("&");for(var s=0;s<t.length;s++){var u=t[s].split("=");if(u[0]=="School"){value=unescape(u[1]);value=NC.widget.QueryManager.normalizeString(value)}}if(value.length>0){p[NC.widget.QueryManager.StrSchools]=value;NC.widget.QueryManager.setQueryText(NC.widget.QueryManager.compose(p))}else{p[NC.widget.QueryManager.StrSchools]=null;NC.widget.QueryManager.setQueryText(NC.widget.QueryManager.compose(p))}},"","",function(s,t){return true},"",true);b=this.dialog;var n=document.getElementById(q);var r=NC.util.Region.getRegion(n);leftX=r.left+3;topY=r.bottom;var m=295;leftX=this.adjustForVisibility(leftX,m);this.dialog.show(leftX,topY,m)},getSelectSchoolDialog:function(){return b},showSelectExperiencePopup:function(q){this.hidePromoAnimation();var p=null;if(!NC.widget.QueryManager.isEditHintShown()){p=NC.widget.QueryManager.parse()}else{p=[]}var o="rand="+new Date().getTime();if(p[NC.widget.QueryManager.StrMinYearsWorked]!=undefined){o+="&MinYears="+p[NC.widget.QueryManager.StrMinYearsWorked]}if(p[NC.widget.QueryManager.StrMaxYearsWorked]!=undefined){o+="&MaxYears="+p[NC.widget.QueryManager.StrMaxYearsWorked]}o=encodeURI(o);this.dialog=new NC.widget.ValidatedModalDialog("search_selectExperience.php?",o,NC.util.AjaxDialogDisplay.DialogWrapper,"JsSelectExperience",function(x,z,w){var t="";var y="";var u=z.split("&");for(var s=0;s<u.length;s++){var v=u[s].split("=");if(v[0]=="MinYears"){t=unescape(v[1])}if(v[0]=="MaxYears"){maxYears=unescape(v[1])}}if(t.length>0){p[NC.widget.QueryManager.StrMinYearsWorked]=t;NC.widget.QueryManager.setQueryText(NC.widget.QueryManager.compose(p))}else{p[NC.widget.QueryManager.StrMinYearsWorked]=null;NC.widget.QueryManager.setQueryText(NC.widget.QueryManager.compose(p))}if(maxYears.length>0){p[NC.widget.QueryManager.StrMaxYearsWorked]=maxYears;NC.widget.QueryManager.setQueryText(NC.widget.QueryManager.compose(p))}else{p[NC.widget.QueryManager.StrMaxYearsWorked]=null;NC.widget.QueryManager.setQueryText(NC.widget.QueryManager.compose(p))}},"","",function(s,t){return true},"",true);c=this.dialog;var n=document.getElementById(q);var r=NC.util.Region.getRegion(n);leftX=r.left+3;topY=r.bottom;var m=295;leftX=this.adjustForVisibility(leftX,m);this.dialog.show(leftX,topY,m)},getSelectExperienceDialog:function(){return c},adjustForVisibility:function(n,m){var o=n+m-NC.util.Dom.getViewportWidth();if(o>0){n-=o+3}return n},showPromoPopup:function(r,q){this.hidePromoAnimation();var p=NC.widget.QueryManager.parse();var o="rand="+new Date().getTime();o=encodeURI(o);this.dialog=new NC.widget.ValidatedModalDialog(q+"?",o,NC.util.AjaxDialogDisplay.DialogWrapper,"JsSelectExperience",function(u,v,t){},"","",function(t,u){return true},"",true);a=this.dialog;var n=document.getElementById(r);var s=NC.util.Region.getRegion(n);leftX=s.left+3;topY=s.bottom;var m=295;leftX=this.adjustForVisibility(leftX,m);this.dialog.show(leftX,topY,m)},onSelectSearchCategory:function(o,n){var m=null;if(!NC.widget.QueryManager.isEditHintShown()){m=NC.widget.QueryManager.parse()}else{m=[]}if(n==-1){o=""}m[NC.widget.QueryManager.StrCategory]=o.toLowerCase();NC.widget.QueryManager.setQueryText(NC.widget.QueryManager.compose(m))},onSelectSearchDate:function(m){var n=null;if(!NC.widget.QueryManager.isEditHintShown()){n=NC.widget.QueryManager.parse()}else{n=[]}if(m.length>0){n[NC.widget.QueryManager.StrDateCode]=m}else{n[NC.widget.QueryManager.StrDateCode]=null}NC.widget.QueryManager.setQueryText(NC.widget.QueryManager.compose(n))},onSelectManager:function(m){var n=null;if(!NC.widget.QueryManager.isEditHintShown()){n=NC.widget.QueryManager.parse()}else{n=[]}if(m.length>0){n[NC.widget.QueryManager.StrManager]=m}else{n[NC.widget.QueryManager.StrManager]=null}NC.widget.QueryManager.setQueryText(NC.widget.QueryManager.compose(n))},onSelectScore:function(m){var n=null;if(!NC.widget.QueryManager.isEditHintShown()){n=NC.widget.QueryManager.parse()}else{n=[]}if(m.length>0){n[NC.widget.QueryManager.StrScore]=m}else{n[NC.widget.QueryManager.StrScore]=null}NC.widget.QueryManager.setQueryText(NC.widget.QueryManager.compose(n))},onSelectSearchDegree:function(m){var n=null;if(!NC.widget.QueryManager.isEditHintShown()){n=NC.widget.QueryManager.parse()}else{n=[]}if(m.length>0){n[NC.widget.QueryManager.StrDegree]=m}else{n[NC.widget.QueryManager.StrDegree]=null}NC.widget.QueryManager.setQueryText(NC.widget.QueryManager.compose(n))},onSelectSearchTag:function(m){var n=null;if(!NC.widget.QueryManager.isEditHintShown()){n=NC.widget.QueryManager.parse()}else{n=[]}if(m.length>0){n[NC.widget.QueryManager.StrTag]=m}else{n[NC.widget.QueryManager.StrTag]=null}NC.widget.QueryManager.setQueryText(NC.widget.QueryManager.compose(n))},showEmailContactPopup:function(t,p,r){var s="ResumeId="+p+"&ToName="+r;s=encodeURI(s);this.dialog=new NC.widget.ValidatedModalDialog("search_emailContact.php",s,NC.util.AjaxDialogDisplay.DialogWrapper,"JsEmailContactForm",function(w,y,v){var x={success:function(z){},failure:function(z){},scope:this};var u=new NC.util.AjaxConnection("POST",w,y);u.addUnprecedentedParameter();u.executeMethod(x)},"do_emailContact.php","",function(y,z){var w=true;var x=null;var u=y.elements;for(var v=0;v<u.length;v++){if(u[v].name=="Message"){if(NC.util.Dom.getValue(u[v]).length==0){w=false;x="Please enter a message"}}}if(x!=null&&x.length>0){var z=document.getElementById(this.errorDiv);z.innerHTML=x;z.style.display="block";return false}return w},"NCError",true);f=this.dialog;var n=400;var m=300;var q=(NC.util.Dom.getViewportWidth()-n)/2;var o=(NC.util.Dom.getViewportHeight()-m)/2;this.dialog.show(q,o,n)},getEmailContactDialog:function(){return f},setupPromoAnimation:function(n,m){e=n;d=m},hidePromoAnimation:function(){if(d!=null){clearTimeout(d)}if(e!=null&&e.isAnimated()){e.stop()}var n={color:{to:"#ffffff"}};var m=new NC.util.ColorAnim("SearchPromo",n);m.animate()},GUESS_CATEGORY:1,GUESS_PLACE:2,GUESS_STATE:3,GUESS_FIRSTNAME:4,GUESS_LASTNAME:5,GUESS_ZIP:6,GUESS_NOISE:7,GUESS_TAG:8,GUESS_KEYWORD:9,GUESS_MANAGER:10,GUESS_DATE:11,GUESS_NEAR:12,GUESS_COMPANIES:13,GUESS_SCHOOLS:14,GUESS_DISTANCE:15,GUESS_SCORE:16,GUESS_MINYEARS:17,GUESS_MAXYEARS:18,GUESS_DEGREE:19,GUESS_USERTAG:20,hint:function(p){if(NC.util.Event.getCharCode(p)==8){this.clearHint()}this.hidePromoAnimation();var o=document.getElementById("QueryHint");var t=this.getQueryText();if(NC.util.Event.getCharCode(p)==32){var r=this.parse();var q=r[NC.widget.QueryManager.StrCategory];var s={success:function(z){var y=false;var w=false;var x=NC.lang.JSON.parse(z.responseText);var v="";for(var u=0;u<x.length;u++){switch(parseInt(x[u].guess)){case NC.widget.QueryManager.GUESS_CATEGORY:break;case NC.widget.QueryManager.GUESS_PLACE:break;case NC.widget.QueryManager.GUESS_STATE:break;case NC.widget.QueryManager.GUESS_FIRSTNAME:case NC.widget.QueryManager.GUESS_LASTNAME:y=true;break;case NC.widget.QueryManager.GUESS_ZIP:break;case NC.widget.QueryManager.GUESS_NOISE:break;case NC.widget.QueryManager.GUESS_TAG:case NC.widget.QueryManager.GUESS_MANAGER:case NC.widget.QueryManager.GUESS_DATE:case NC.widget.QueryManager.GUESS_NEAR:case NC.widget.QueryManager.GUESS_COMPANIES:case NC.widget.QueryManager.GUESS_SCHOOLS:case NC.widget.QueryManager.GUESS_DISTANCE:case NC.widget.QueryManager.GUESS_SCORE:case NC.widget.QueryManager.GUESS_MINYEARS:case NC.widget.QueryManager.GUESS_MAXYEARS:case NC.widget.QueryManager.GUESS_DEGREE:case NC.widget.QueryManager.GUESS_USERTAG:break;case NC.widget.QueryManager.GUESS_KEYWORD:default:break}}if(y&&w){v="It appears you are trying to search by name or keyword. NimbleCat does not support either of these searches."}else{if(y){v="It appears you are trying to search by name. NimbleCat does not support this currently."}else{if(w){v="It appears you are trying to search by keyword. NimbleCat does not support this currently."}}}this.showHint(v)},failure:function(u){},scope:this};var n="checkWord.php?q="+q;var m=new NC.util.AjaxConnection("GET",n,null);m.addUnprecedentedParameter();m.executeMethod(s)}}}}()})();if(typeof NC=="undefined"){alert("button.js requires the NC JavaScript framework")}if(typeof NC.widget=="undefined"){alert("button.js requires the NC JavaScript framework")}NC.widget.OfferPane=function(c,a){var b=NC.widget.OfferPane.superclass.constructor;b.call(this,c);this.targetEl=document.getElementById(c);this.targetEl.expanded=false;this.options=a;this.targetEl.pane=this};NC.widget.OfferPane.WEB_SEARCH=1;NC.widget.OfferPane.FB_SEARCH=2;NC.widget.OfferPane.FB_NAVIGATOR=3;NC.widget.OfferPane.FB_GRADER=4;NC.widget.OfferPane.FB_JOBS=5;NC.widget.OfferPane.NAVSHARE=6;NC.lang.extend(NC.widget.OfferPane,NC.widget.Element,{setFocus:function(){var a=document.getElementById(this.domId);a.className=a.pane.className+"-focus"},clearFocus:function(){var a=document.getElementById(this.domId);a.className=a.pane.className},_mouseOver:function(a){var b=NC.core.Event.getEventTarget(a);if(typeof b.pane!="undefined"){b.pane.setFocus(b)}},_mouseOut:function(c){var d=NC.core.Event.getEventTarget(c);if(typeof d.pane!="undefined"){var b=NC.util.Region.getRegion(d.pane.targetEl);var a=NC.util.Event.getPageX(c);var e=NC.util.Event.getPageY(c);if(a<b.left||a>b.right||e<b.top||e>b.bottom){d.pane.clearFocus();if(d.expanded){d.pane.contract()}}}},_click:function(a){var b=NC.core.Event.getEventTarget(a);if(typeof b.pane!="undefined"){if(!b.expanded){b.pane.expand(false)}}},populateOffer:function(a){if(a){this.targetEl.innerHTML='<div id="ShortOffer" class="offercontainer-short">'+this.offer.shortText+'</div><div class="action-short"><a href="#" onclick="NC.widget.OfferPaneManager.getOfferPane().expand(false);">See more...</a></div><div style="clear:both:></div>'}else{this.targetEl.innerHTML='<div id="LongOffer" class="offercontainer-long">'+this.offer.longText+'</div><div class="action"><a href="#" onclick="NC.widget.OfferPaneManager.getOfferPane().contract();">Hide</a></div>'}},refresh:function(c,a,e){var g={success:function(i){this.offer=NC.lang.JSON.parse(i.responseText);this.offer.shortText=this.offer.shortText.replace(/-q-/g,'"');this.offer.longText=this.offer.longText.replace(/-q-/g,'"');this.populateOffer(true);if(c){var h=this;NC.util.Event.onContentReady(this.domId,function(){var j=NC.util.Region.getRegion(h.targetEl);h.height=(j.bottom-j.top)-12;h.width=(j.right-j.left);if(h.offer.longText.length>0){h.expand(a,e)}})}},failure:function(h){},scope:this};var f=NC.util.Facebook.isConnected()?1:0;var d="getOffer.php?app="+this.options.appId+"&fb="+f;var b=new NC.util.AjaxConnection("GET",d,null);b.executeMethod(g)},init:function(a,b){NC.widget.OfferPane.superclass.init.call(this);this.className="ncofferpane";if(typeof this.options.className!="undefined"){this.className=this.options.className}this.targetEl.className=this.className;this.refresh(true,a,b);NC.widget.OfferPaneManager.setOfferPane(this)},expand:function(a,e){var d=NC.util.Region.getRegion(document.getElementById(this.domId));if(!this.targetEl.expanded){this.targetEl.expanded=true;if(this.offer!=null){this.populateOffer(false)}var c=this;var b="LongOffer";NC.util.Event.onContentReady(b,function(){var i=NC.util.Region.getRegion(document.getElementById(b));var g={};g.height={};if(typeof c.options.yExpand=="undefined"){g.height.to=i.bottom-i.top+20}else{g.height.to=c.height+c.options.yExpand}if(typeof c.options.xExpand!="undefined"){g.width={};g.width.to=c.width+c.options.xExpand}var f=new NC.util.Anim(c.domId,g,0.5,NC.util.Easing.bounceOut);f.duration=0.5;function h(){c.setFocus();setTimeout(function(){c.contract();if(e!=null){e()}},5000)}if(a){f.onComplete.subscribe(h)}f.animate()})}},contract:function(){if(this.targetEl.expanded){this.targetEl.expanded=false;var b={};b.height={};b.height.to=this.height;if(typeof this.options.xExpand!="undefined"){b.width={};b.width.to=this.width}var a=new NC.util.Anim(this.domId,b);a.duration=0.2;if(this.offer!=null){this.populateOffer(true)}this.clearFocus();a.animate()}},shrink:function(){if(this.targetEl.expanded){this.targetEl.expanded=false;this.populateOffer(true);if(typeof this.options.yExpand!="undefined"){this.targetEl.style.height=this.height+"px"}if(typeof this.options.xExpand!="undefined"){this.targetEl.style.width=this.width+"px"}this.clearFocus()}},render:function(){}});(function(){NC.widget.OfferPaneManager=function(){var a=null;return{setOfferPane:function(b){a=b},getOfferPane:function(){return a},refresh:function(){if(a!=null){a.shrink();a.refresh(false)}}}}()})();(function(){NC.widget.InfovisManager=function(){var e;var d=null;var b=null;var c=false;var a=2;return{setLabelState:function(f){labelState=f},getLabelState:function(){return labelState},rotate:function(f){e.rotate(f)},translate:function(f,g){e.translate(f,g)},translateIncremental:function(g,f){e.translate(g,f)},scale:function(f,g){e.scale(f,g)},scaleProportional:function(f){e.scaleProportional(f)},setRepositionFlag:function(f){c=f},getRepositionFlag:function(){return c},writeMessage:function(f){},writeMessageEx:function(f,g){},showBlankNetwork:function(g,f){},drawRGraph:function(i,k,j){var h,f,m,g;if(j.length>0){d=document.getElementById(j)}b=k;(function(){var o=navigator.userAgent,r=o.match(/iPhone/i)||o.match(/iPad/i),p=typeof HTMLCanvasElement,q=(p=="object"||p=="function"),n=q&&(typeof document.createElement("canvas").getContext("2d").fillText=="function");h=(!q||(n&&!r))?"Native":"HTML";m=h=="Native";f=q;g=!(r||!q)})();$jit.RGraph.Plot.NodeTypes.implement({fixedWidthCircle:{render:function(o,n){var q=o.pos.getc(true),p=o.getData("dim");if(n.scaleOffsetX>1){p=Math.floor(p/n.scaleOffsetX);if(p<6){p=6}}this.nodeHelper.circle.render("fill",q,p,n)},contains:function(n,q){var p=n.pos.getc(true),o=n.getData("dim");return this.nodeHelper.circle.contains(p,q,o)}}});function l(p){var o=200;var n=o;if(p.length<100){n=200}else{if(p.length<200){n=400}else{if(p.length<300){n=600}else{n=1000}}}NC.widget.InfovisManager.setRepositionFlag(true);var q=document.getElementById(b);e=new $jit.RGraph({injectInto:b,background:{CanvasStyles:{strokeStyle:"#1FB13E"}},levelDistance:n,Navigation:{enable:true,panning:true,zooming:50},Node:{color:"#0b3d91",type:"fixedWidthCircle",overridable:true},Edge:{color:"#999",lineWidth:3,overridable:true},onBeforeCompute:function(r){},onAfterCompute:function(){if(NC.widget.InfovisManager.getRepositionFlag()){NC.widget.InfovisManager.setRepositionFlag(false);var v=Number.MAX_VALUE;var r=Number.MIN_VALUE;var t=Number.MAX_VALUE;var y=Number.MIN_VALUE;var u=0;e.graph.eachNode(function(C){var B=C.pos.getc(true);t=B.x<=t?B.x:t;v=B.y<=v?B.y:v;r=B.y>r?B.y:r;y=B.x>y?B.x:y});var s=y-t+200;var z=r-v+200;var A=e.canvas.getSize();var x=A.width/s;var w=A.height/z;if(x<w){w=x}else{x=w}if(x<1){NC.widget.InfovisManager.scale(x,w)}}NC.widget.NetworkManager.clearInfoVisBusyFlag()},onCreateLabel:function(s,r){s.innerHTML=r.data.name;s.onclick=function(){e.onClick(r.id)};s.onmouseover=function(){var u=NC.util.Region.getRegion(s);var t=new NC.widget.Popup("NCSocialGraphDisplay");t.show(u.left,u.bottom+0,300,-1,function(v){var y={};y.fbUid=r.id;y.fbName=r.data.name;y.fbProfile=r.data.fbProfile;y.fbPictureUrl=r.data.fbPictureUrl;y.lnProfile=r.data.lnProfile;y.lnPictureUrl=r.data.lnPictureUrl;y.nodetype=r.data.nodetype;y.networktype=r.data.networktype;y.subscriber=r.data.subscriber;y.esteemscore=r.data.esteemscore;var w=new NC.widget.ShareMapOnFacebook(-1,NC.widget.StateManager.getMd5Id(),NC.SiteRoot,null,NC.widget.NetworkManager.makeCurrentParmString());var A=NC.widget.PeopleManager.formatConnectionData(y,true,w.makeShareUrl());v.innerHTML=A.content;var x=y.fbName.indexOf(" ");var z=y.fbName;if(x!=-1){z=z.substr(0,x)}NC.util.Event.onContentReady(A.profileDivId,function(){var D={success:function(H){var F=NC.lang.JSON.parse(H.responseText);var G=document.getElementById(A.profileDivId);if(G!=null){G.innerHTML=F.profile;if(F.refCode.length>0){var E=document.getElementById("ProfileEmail")}}},failure:function(E){},scope:this};var C="./getFbProfileData.php?fbuid="+y.fbUid;var B=new NC.util.AjaxConnection("GET",C,null);B.executeMethod(D);gaPageTracker._trackEvent(NC.promo.PromoManager.getCpid(),"Click","ThrongShowMapProfile")})})}},onPlaceLabel:function(v,t){var s=v.style;s.display="";s.cursor="pointer";s.fontSize=0.8*(1+((e.canvas.scaleOffsetX-1)/16))+"em";if(e.canvas.scaleOffsetX<0.1){s.fontSize=0.8*(1+((e.canvas.scaleOffsetX-1)/16))+"em";s.color="#000";NC.widget.InfovisManager.setLabelState(1)}else{if(e.canvas.scaleOffsetX<0.3){s.fontSize=0.8*(1+((e.canvas.scaleOffsetX-1)/16))+"em";s.color="#000";NC.widget.InfovisManager.setLabelState(1)}else{s.color="#000";NC.widget.InfovisManager.setLabelState(2)}}var u=parseInt(s.left);var r=v.offsetWidth;s.left=(u-r/2)+"px"}});e.loadJSON(p);e.graph.eachNode(function(s){var r=s.getPos();r.setc(-200,-200)});e.compute("end");e.fx.animate({modes:["polar"],duration:2000})}l(i)}}}()})();(function(){NC.widget.NetworkManager=function(){var C=null;var o=null;var E=null;var A=null;var w=false;var s=null;var r=null;var f=null;var v=false;var c=true;var J="NetProgressDiv";var l=null;var z="";var d=false;var e=null;var L=null;var I=null;var n=10;var O=null;var B=false;var t=null;var x=null;var p=NC.widget.PeopleManager.NetworkFacebook+NC.widget.PeopleManager.NetworkLinkedIn;var k=null;var D=null;var u=750;var j=500;var M=[];var H=false;var N=-1;var a=false;var m="<p>Sorry, but nobody in your network matches this description.</p> <p>To broaden your search, please go to the bar at the top of the page and click the blue close boxes, or use the Clear button.<p>";var h="<p>No throngs are displayed. To display a throng, type something in the search box, or check a box to your left.</p>";var b="<p>This graph is too large for your browser to display. Throng switched to list view.</p>";var K=200;function F(R){var P=R.split(NC.widget.NetworkManager.ListSeparator);for(var Q=0;Q<P.length;Q++){P[Q]=i(P[Q])}return P.join(NC.widget.NetworkManager.ListSeparator)}function i(P){var Q=P.indexOf("(");if(Q==-1){return P}else{return NC.lang.trim(P.substr(0,Q))}}function y(Q){var R=Q.indexOf("<");var P=Q.indexOf("&nbsp;");R=Math.min(R,P);if(R==-1){return Q}else{return NC.lang.trim(Q.substr(0,R))}}function q(P){return P.replace(/\+/g," ")}function G(){L={};var R=false;var U=NC.util.UrlUtil.parameterExists(window.location.search,"cmp");if(U!=null){L.cmp=F(decodeURIComponent(q(U[1])));R=true}var T=NC.util.UrlUtil.parameterExists(window.location.search,"uni");if(T!=null){L.uni=F(decodeURIComponent(q(T[1])));R=true}var X=NC.util.UrlUtil.parameterExists(window.location.search,"ac");if(X!=null){L.ac=F(decodeURIComponent(q(X[1])));R=true}var Q=NC.util.UrlUtil.parameterExists(window.location.search,"in");if(Q!=null){L._in=F(decodeURIComponent(q(Q[1])));R=true}var V=NC.util.UrlUtil.parameterExists(window.location.search,"pro");if(V!=null){L.pro=F(decodeURIComponent(q(V[1])));R=true}var S=NC.util.UrlUtil.parameterExists(window.location.search,"loc");if(S!=null){L.loc=F(decodeURIComponent(q(S[1])));R=true}var P=NC.util.UrlUtil.parameterExists(window.location.search,"alpha");if(P!=null){L.alpha=F(decodeURIComponent(q(P[1])));R=true}var W=NC.util.UrlUtil.parameterExists(window.location.search,"fri");if(W!=null){L.fri=F(decodeURIComponent(q(W[1])));s=L.fri.split(NC.widget.NetworkManager.ListSeparator);R=true}if(!R){L=null}}function g(Q,Y,S,P,R,W,V,T,X,U){if(Y!=null&&Y.length>0){Q+="&cmp="+encodeURIComponent(Y)}if(S!=null&&S.length>0){Q+="&uni="+encodeURIComponent(S)}if(R!=null&&R.length>0){Q+="&ac="+encodeURIComponent(R)}if(P!=null&&P.length>0){Q+="&in="+encodeURIComponent(P)}if(W!=null&&W.length>0){Q+="&pro="+encodeURIComponent(W)}if(V!=null&&V.length>0){Q+="&loc="+encodeURIComponent(V)}if(T!=null&&T.length>0){Q+="&alpha="+encodeURIComponent(T)}if(X!=null&&X.length>0){Q+="&fri="+encodeURIComponent(X)+"&fof="+U}return Q}return{ShowList:1,ShowRGraph:2,setListShown:function(){w=true},getNoResultsMessage:function(){return m},getSwitchToListMessage:function(){return b},getNoSelectionsMessage:function(){return h},clearInfoVisBusyFlag:function(){H=false;NC.util.Status.hideProgress("NetProgressDiv")},setInfoVisBusyFlag:function(){H=true;NC.util.Status.showProgress("NetProgressDiv","")},isInfoVisBusy:function(){return H},onHideBrowser:function(){},showNetworkBrowser:function(W,T,S,V,aa,Z,R){l=NC.widget.StateManager.getMd5Id();popup=T;if(typeof R!="undefined"&&R!=null){e=R}G();if(typeof V!="undefined"&&V!=null&&V.length>0){s=V.split(",")}if(typeof Z!="undefined"){d=Z}r=W;var Q=-1;var P=-1;if(typeof S!="undefined"&&S!=null){var X=document.getElementById(S);var U=NC.util.Region.getRegion(X);Q=U.left+3;P=U.bottom}else{Q=-1;P=90}var Y={};if(popup){u=750}else{u=-1}j=-1;if(typeof aa!="undefined"&&aa!=null&&aa.length>0){z=aa}NC.widget.MessageManager.showDialog("ncfunc:shownetworkbrowser",W,Y,popup,u,Q,P,true,j)},newPage:function(){var P="./js_main_v3_navigator.php?"+this.makeCurrentParmString();window.open(P)},zoom:function(){var U=document.getElementById("ButtonFullScreen");if(v){var S=855;var P=550;if(NC.util.Facebook.isAppConnected()){S=720;P=500}var T=(NC.util.Dom.getViewportWidth()-S)/2;var Q=90;var V=T+S;var R=Q+P;this.resize(T,Q,V,R);v=false;U.value="Zoom"}else{var T=0;var Q=0;var V=NC.util.Dom.getViewportWidth();var R=NC.util.Dom.getViewportHeight();this.resize(T,Q,V,R);v=true;U.value="Shrink"}},resize:function(R,V,U,Q){var T=Q-V-10;var W=U-R-10;var P={left:{to:R},top:{to:V},width:{to:W},height:{to:T}};this.anim1=new NC.util.Anim(r,P,2);this.anim1.duration=0.2;var X=X;function S(){NC.widget.NetworkManager.configureGraph();NC.widget.NetworkManager.refreshGraph()}this.anim1.onComplete.subscribe(S);this.anim1.animate()},refreshGraph:function(){this.showContent("")},setMaximize:function(P){B=P},configureGraph:function(){},configureGraphold:function(){var R=document.getElementById(r);var ag=NC.util.Region.getRegion(R);var aa=0;var X=((ag.right-ag.left)-aa);var af=((ag.bottom-ag.top)-aa);af-=1;var W=document.getElementById("NetworkManager");var V=document.getElementById("NetworkManagerBanner");var P=NC.util.Region.getRegion(V);var ai=P.bottom-P.top;var ak=document.getElementById("NetManRightColumn");var ah=document.getElementById("NetManLeftColumn");var ae=NC.util.Region.getRegion(document.getElementById("NetManLeftColumn"));var Z=X-(ae.right-ae.left);var ad=NC.util.Region.getRegion(document.getElementById("NavControlBar"));var T=NC.util.Region.getRegion(document.getElementById("NetworkStatsDiv"));var ab=NC.util.Region.getRegion(document.getElementById("NetworkSelector"));var U=NC.util.Region.getRegion(document.getElementById("NavTitle"));var Y=af-ai-40;ah.style.height=Y+"px";var S=document.getElementById("NetworkNav");netNavHeight=(Y-(ad.bottom-ad.top)-(U.bottom-U.top)-(T.bottom-T.top)-(ab.bottom-ab.top)-10);S.style.height=netNavHeight+"px";ak.style.width=Z+"px";ak.style.height=Y+"px";var aj=document.getElementById("NetworkContent");aj.style.width=Z+"px";var ac=document.getElementById("infovis");if(ac!=null){ac.style.width=(Z-2)+"px";ac.style.height=(Y)+"px"}var Q=document.getElementById("FriendContainer");if(Q!=null){Q.style.height=Y+"px"}},setGraphJson:function(P){f=P},showThrongScore:function(){if(!w){var Q=document.getElementById("infovis");var P=NC.util.Region.getRegion(Q);k=new NC.game.Sprite(Q,"score","../imagesv2/score_back.png","<h1>"+f.scores.throngScore+"</h1>",false,{width:74,height:72},1000,0,null,{x:(P.right-P.left-74),y:0},null,null,null);k.create();k.show()}},showFirstTimeUserContent:function(P){NC.util.Status.hideThrongMessageImmediate();a=false;var R=document.getElementById(P);var Q='<div id="NetworkContentWrapper"><div class="centeredimage"><img src="../imagesv2/100x100_spinner_2.gif" border="0"></div><p class="throngMessageText">Welcome to Throng! Right now, an army of virtual throng makers is indexing your networks. This may take a few minutes, so highly-networked users might want to grab a cup of coffee.</p><p class="throngMessageText">Every time Throng launches, we will select an interesting highlight from your network and display it. To see other throngs, use the search box to your left, and check boxes, or open categories to browse and discover. </p><p  class="throngMessageText">When the launch button appears below, you are ready to start exploring. </p><div id="FirstTimeButton" class="centeredimage" style="display:none"><a href="#" onclick="NC.widget.NetworkManager.refreshNetwork()"><img src="../imagesv2/launch.png" border="0"></a></div></div>';R.innerHTML=Q},showFirstTimeButton:function(){var P=document.getElementById("FirstTimeButton");if(P!=null){P.style.display="block"}},showFriendGraph:function(ab,T,ad,S,P,R,Z,Y,ac,X,W){var U=document.getElementById("ShowAllEdges");var aa="";if(U!=null&&U.checked){aa="checked"}w=false;var Q=document.getElementById(ab);var V='<div id="NetworkContentWrapper"><div id="infovis"><div id="jitmessage" class="status"><div class="maptools">&nbsp;&nbsp;<a href="#" onclick="NC.widget.InfovisManager.rotate(-0.3);"><img class="button" border="0" src="../imagesv2/rotate_ccw_bk.png"></a>&nbsp;&nbsp;<a href="#" onclick="NC.widget.InfovisManager.rotate(0.3);"> <img class="button" border="0" src="../imagesv2/rotate_cw_bk.png"></a>&nbsp;&nbsp;<a href="#" onclick="NC.widget.InfovisManager.scaleProportional(-1);"> <img class="button" border="0" src="../imagesv2/zoom_out_bk.png"></a>&nbsp;&nbsp;<a href="#" onclick="NC.widget.InfovisManager.scaleProportional(1);"> <img class="button" border="0" src="../imagesv2/zoom_in_bk.png"></a>&nbsp;&nbsp;<a href="#" onclick="NC.widget.InfovisManager.translateIncremental(-10,  0);"> <img class="button" border="0" src="../imagesv2/move_left_bk.png"></a>&nbsp;&nbsp;<a href="#" onclick="NC.widget.InfovisManager.translateIncremental( 10,  0);"> <img class="button" border="0" src="../imagesv2/move_right_bk.png"></a>&nbsp;&nbsp;<a href="#" onclick="NC.widget.InfovisManager.translateIncremental( 0, -10);"> <img class="button" border="0" src="../imagesv2/move_up_bk.png"></a>&nbsp;&nbsp;<a href="#" onclick="NC.widget.InfovisManager.translateIncremental( 0,  10);"> <img class="button" border="0" src="../imagesv2/move_down_bk.png"></a></div><div class="viewtools"><a href="#" onclick="NC.widget.NetworkManager.switchView( true);"><img src="../imagesv2/view_as_list.png" border="0"></a> ';if(NC.util.Facebook.isAppConnected()){V+='<a href="#" onclick="NC.widget.NetworkManager.newPage()"><img border="0" src="../imagesv2/view_fullscreen_20x20.png"></a>'}else{}V+='</div><div style="clear:both"></div></div></div></div>';Q.innerHTML=V;NC.util.Event.onContentReady("infovis",function(){if(!W){var aj={success:function(al){var ak=NC.lang.JSON.parse(al.responseText);NC.widget.NetworkManager.setGraphJson(ak);if(ak.graph.length>K){NC.widget.NetworkManager.clearInfoVisBusyFlag();NC.widget.NetworkManager.setListShown();NC.widget.NetworkManager.showContent("");NC.util.Status.showThrongMessage(NC.widget.NetworkManager.getSwitchToListMessage(),"NetworkContent")}else{if(ak.graph.length>0){NC.widget.InfovisManager.drawRGraph(ak.graph,"infovis","jitmessage");NC.widget.NetworkManager.showThrongScore()}else{NC.widget.NetworkManager.clearInfoVisBusyFlag();NC.util.Status.showThrongMessage(NC.widget.NetworkManager.getNoResultsMessage(),"NetworkContent")}}},failure:function(ak){NC.widget.NetworkManager.clearInfoVisBusyFlag()},scope:this};var ah=document.getElementById("ShowAllEdges");var ae=0;if(ah!=null){ae=(ah.checked?0:1)}else{ae=1}NC.widget.NetworkManager.configureGraph();var ag="./getRGraphData.php?ss="+ae+"&networkMask="+p;if(l!=null&&l.length>0){ag+="&md5Id="+l}var ai="";if(T!=null&&T.length>0){ag+=T}else{ag=g(ag,ad,S,P,R,Z,Y,ai,ac,X)}var af=new NC.util.AjaxConnection("GET",ag,null);af.executeMethod(aj)}else{NC.widget.NetworkManager.clearInfoVisBusyFlag();NC.widget.NetworkManager.configureGraph();NC.util.Status.showThrongMessage(NC.widget.NetworkManager.getNoSelectionsMessage(),"NetworkContent")}})},addAlphaJumpLink:function(Q){var P="NC.widget.NetworkManager.alphaJump('"+Q+"')";return'<div class="alphaJump"><a href="#" onclick="'+P+'">'+Q+"</a></div>"},alphaJump:function(P){this.showContent(P)},MaxFriends:20,showFriendList:function(ab,T,ad,S,P,R,aa,Y,V,ac,X){w=true;var Q=document.getElementById(ab);var U='<div id="NetworkContentWrapper">';U+="<div>";U+='<div id="JumpBar" class="jumpbar">';var Z="A";for(var W=0;W<26;W++){U+=this.addAlphaJumpLink(String.fromCharCode(Z.charCodeAt(0)+W))}U+='<div style="clear:both"></div>';U+="</div>";U+='<div class="viewtoolsList">';U+='<a href="#" onclick="NC.widget.NetworkManager.switchView( false);"><img src="../imagesv2/view_as_map.png" border="0"></a> ';if(NC.util.Facebook.isAppConnected()){U+='<a href="./js_main_v3_navigator.php" target="_blank"><img border="0" src="../imagesv2/view_fullscreen_20x20.png"></a>'}else{}U+="</div>";U+='<div style="clear:both"></div>';U+="</div>";U+='<div id="FriendContainer" class="friendcontainer"></div>';U+="</div>";Q.innerHTML=U;NC.util.Event.onContentReady("FriendContainer",function(){var ag={success:function(al){var ax=NC.lang.JSON.parse(al.responseText);var av="";var ak=NC.util.Facebook.getFbUid();for(var at=0;at<ax.length;at++){var ap=ax[at];var ah=parseInt(ap.networktype);var an=parseInt(ap.subscriber);var ar=parseInt(ap.esteemScore);if(ak==null||ak!=ap.id){av+='<div class="friend">';av+='<div class="friendimage">';var aq="";var ao="";if(ah&NC.widget.PeopleManager.NetworkFacebook){aq="http://graph.facebook.com/"+ap.id+"/picture";ao=ap.fbProfile}else{if(ah&NC.widget.PeopleManager.NetworkLinkedIn){aq=ap.lnPictureUrl;if(aq==null||aq.length==0){aq="../imagesv2/nullpic.gif"}ao=ap.lnProfile}}av+='<img border="0"  width="50" height="50" src="'+aq+'">';av+="</div>";av+='<div class="friendinfo">';av+='<div class="friendname">';if(ao!=null&&ao.length>2){av+='<a target="_blank" href="'+ao+'">'+ap.name+"</a>"}else{av+=ap.name}if(ah&NC.widget.PeopleManager.NetworkFacebook){av+='&nbsp;<a target="_blank" href="'+ap.fbProfile+'"><img border="0" width="12" src="../imagesv2/ext/f_logo_16.png"></a>'}if(ah&NC.widget.PeopleManager.NetworkLinkedIn){av+='&nbsp;<a target="_blank" href="'+ap.lnProfile+'"><img border="0" width="12" src="../imagesv2/ext/LinkedIn_Logo16px.png"></a>'}av+="</div>";av+='<div class="friendprofile">'+ap.profile+"</div>";av+="</div>";av+='<div class="friendactioncontainer">';var aw=new NC.widget.ShareMapOnFacebook(-1,NC.widget.StateManager.getMd5Id(),NC.SiteRoot,null,NC.widget.NetworkManager.makeCurrentParmString());var au=ap.name;var ai=au.indexOf(" ");if(ai!=-1){au=au.substr(0,ai)}if(ah&NC.widget.PeopleManager.NetworkFacebook){av+='<div class="friendaction"><a href="#" onclick="NC.util.Facebook.showShareMapDialog(\''+ap.id+"', '"+aw.makeShareUrl()+"')\">Share with "+au+"</a></div> ";if(an==0){av+='<div class="friendaction"><a href="#" onclick="NC.util.Facebook.showInviteThrongDialog(\''+ap.id+"', '"+aw.makeShareUrl()+"')\">Invite to Throng</a></div> "}}av+="</div>";av+='<div style="clear:both"></div>';av+="</div>"}}if(ax.length>=NC.widget.NetworkManager.MaxFriends){av+='<div class="friend">';var aj="NC.widget.NetworkManager.alphaJump('"+ax[ax.length-1].name+"')";av+='<a href="#" onclick="'+aj+'">More...</a>';av+="</div>"}var am=document.getElementById("FriendContainer");am.innerHTML=av;if(ax.length==0){NC.util.Status.showThrongMessage(NC.widget.NetworkManager.getNoResultsMessage(),"NetworkContent")}},failure:function(ah){},scope:this};if(M.length>0){var af="./getFriendListData.php?ss=0&networkMask="+p;if(l!=null&&l.length>0){af+="&md5Id="+l}if(T!=null&&T.length>0){af+=T;af+="&alpha="+encodeURIComponent(V)}else{af=g(af,ad,S,P,R,aa,Y,V,ac,X)}NC.widget.NetworkManager.configureGraph();var ae=new NC.util.AjaxConnection("GET",af,null);ae.executeMethod(ag)}else{NC.util.Status.showThrongMessage(NC.widget.NetworkManager.getNoSelectionsMessage(),"NetworkContent")}})},NodeCompany:1,NodeUniversity:2,NodeProfession:3,NodeInterest:4,NodeActivity:5,NodeLocation:6,NodeName:7,NodeFriend:8,NodeFavorite:9,ListSeparator:"|",LocationSeparator:",",makeCurrentParmString:function(){var ae=M;var T="";var aj="";var ad="";var U="";var R="";var P="";var ai="";var ag="";var Q=null;var X=1;if(ae!=null&&ae.length>0){var ab=true;var S=true;var Z=true;var ac=true;var W=true;var Y=true;var aa=true;for(var ah=0;ah<ae.length;ah++){var af=ae[ah];switch(af.nctype){case this.NodeFavorite:Q=af.searchString;break;case this.NodeCompany:if(!ab){aj+=this.ListSeparator}aj+=af.label;ab=false;break;case this.NodeUniversity:if(!S){ad+=this.ListSeparator}ad+=af.label;S=false;break;case this.NodeProfession:if(!W){P+=this.ListSeparator}P+=af.searchString;W=false;break;case this.NodeActivity:if(!ac){R+=this.ListSeparator}R+=af.label;ac=false;break;case this.NodeInterest:if(!Z){U+=this.ListSeparator}U+=af.label;Z=false;break;case this.NodeLocation:if(!Y){ai+=this.ListSeparator}ai+=af.searchString;Y=false;break;case this.NodeFriend:if(!aa){ag+=this.ListSeparator}ag+=af.searchString;aa=false;break}}}if(s!=null){ag=s.join(NC.widget.NetworkManager.ListSeparator);X=0}var V="";if(Q!=null){V=Q}V=g(V,aj,ad,U,R,P,ai,T,ag,X);return V},hideMergeButtons:function(){var Q=document.getElementById("MergeButton");if(Q!=null){Q.style.display="none"}var P=document.getElementById("UnMergeButton");if(P!=null){P.style.display="none"}},checkMerge:function(){var Q=this.getCheckedNodes();var W=false;var X=false;if(Q!=null&&Q.length==2){for(var T=0;T<Q.length;T++){var R=Q[T];if(R.nctype==this.NodeFriend){W=true}else{W=false;break}}if(W){var V=parseInt(Q[0].networks);var U=parseInt(Q[1].networks);if((V&U)!=0){W=false}if(W){t=[];t[0]=Q[0];t[1]=Q[1]}}}if(Q!=null&&Q.length==1){if(Q[0].nctype==this.NodeFriend&&Q[0].merged=="1"){X=true;x=Q[0]}}var P=document.getElementById("MergeButton");if(P!=null){if(W==true&&X==false){P.style.display="inline"}else{P.style.display="none"}}var S=document.getElementById("UnMergeButton");if(S!=null){if(X){S.style.display="inline"}else{S.style.display="none"}}},nodePrefix:function(P){switch(P.nctype){case this.NodeFavorite:return" are in the throng ";case this.NodeCompany:return" work or worked at";case this.NodeUniversity:return" studied at";case this.NodeProfession:return" are";case this.NodeActivity:case this.NodeInterest:return" are interested in";case this.NodeLocation:return" live in";case this.NodeFriend:return" are connected to";default:return" no prefix"}},nodeDisplayed:function(T,Q,P){for(var R=0;R<M.length;R++){var S=M[R];if(S.nctype==T&&S.label==Q&&(P=="undefined"||S.searchString==P)){return true}}return false},removeDisplayedNode:function(T,Q,P){for(var R=0;R<M.length;R++){var S=M[R];if(S.nctype==T&&S.label.indexOf(Q)==0&&(P=="undefined"||S.searchString==P)){M.splice(R,1);return true}}return false},removeAllDisplayedNodes:function(){M=[]},removeFirstDisplayedAggregateNode:function(){for(var P=0;P<M.length;P++){var Q=M[P];if(Q.aggregate>0){M.splice(P,1);return true}}return false},removeAllDisplayedAggregates:function(){while(this.removeFirstDisplayedAggregateNode()){}},removeFirstDisplayedSimpleNode:function(){for(var P=0;P<M.length;P++){var Q=M[P];if(Q.aggregate==0){M.splice(P,1);return true}}return false},removeAllDisplayedSimpleNodes:function(){while(this.removeFirstDisplayedSimpleNode()){}},removeNodeAndDisplay:function(R,Q,P){if(this.removeDisplayedNode(R,Q,P)){this.uncheckNodeInNavTree(R,Q,P,null);this.refreshGraph()}},setParms:function(Q,V){var aa={};aa.favorites="";aa.companies="";aa.universities="";aa.interests="";aa.activities="";aa.professions="";aa.locations="";aa.friends="";aa.searchLabel="";Q.sort(function(ae,ad){if(ae.nctype<ad.nctype){return -1}else{if(ae.nctype>ad.nctype){return 1}else{return 0}}});if(Q!=null&&Q.length>0){var S=true;var X=true;var ac=true;var U=true;var Y=true;var Z=true;var P=true;var R=-1;for(var W=0;W<Q.length;W++){var T=Q[W];if(R>0){if(R==T.nctype){aa.searchLabel+=" <b>or</b>"}else{aa.searchLabel+=" <b>and</b>";aa.searchLabel+=this.nodePrefix(T)}}else{aa.searchLabel=this.nodePrefix(T)}switch(T.nctype){case this.NodeFavorite:aa.favorites=T.searchString;aa.searchLabel+=" "+T.label;break;case this.NodeCompany:if(!S){aa.companies+=this.ListSeparator}aa.companies+=T.label;aa.searchLabel+=" "+i(T.label);S=false;break;case this.NodeUniversity:if(!X){aa.universities+=this.ListSeparator}aa.universities+=T.label;aa.searchLabel+=" "+i(T.label);X=false;break;case this.NodeProfession:if(!Y){aa.professions+=this.ListSeparator}aa.professions+=T.searchString;aa.searchLabel+=" "+i(T.label)+" professionals";Y=false;break;case this.NodeActivity:if(!U){aa.activities+=this.ListSeparator}aa.activities+=T.label;aa.searchLabel+=" "+i(T.label);U=false;break;case this.NodeInterest:if(!ac){aa.interests+=this.ListSeparator}aa.searchLabel+=" "+i(T.label);aa.interests+=T.label;ac=false;break;case this.NodeLocation:if(!Z){aa.locations+=this.ListSeparator}aa.searchLabel+=" "+i(T.label);aa.locations+=T.searchString;Z=false;break;case this.NodeFriend:if(!P){aa.friends+=this.ListSeparator}aa.searchLabel+=" "+y(T.label);aa.friends+=T.searchString;P=false;break;default:break}var ab="NC.widget.NetworkManager.removeNodeAndDisplay("+T.nctype+",'"+i(y(T.label))+"','"+T.searchString+"')";aa.searchLabel+=' <a href="#" onclick="'+ab+'"><img src="../imagesv2/blue_close_9x9.png" border="0"></a>';R=T.nctype}}if(aa.searchLabel.length==0){aa.searchLabel="No throngs are displayed. To display a throng, type something in the search box"}return aa},makeThrongLabel:function(){var R="";var Q=M;Q.sort(function(V,U){if(V.nctype<U.nctype){return -1}else{if(V.nctype>U.nctype){return 1}else{return 0}}});if(Q!=null&&Q.length>0){var P=-1;for(var S=0;S<Q.length;S++){var T=Q[S];if(P>0){if(P==T.nctype){R+=" or"}else{R+=" and";R+=this.nodePrefix(T)}}else{R=this.nodePrefix(T)}switch(T.nctype){case this.NodeFavorite:R+=" "+T.label;break;case this.NodeCompany:R+=" "+i(T.label);break;case this.NodeUniversity:R+=" "+i(T.label);break;case this.NodeProfession:R+=" "+i(T.label)+" professionals";break;case this.NodeActivity:case this.NodeInterest:R+=" "+i(T.label);break;case this.NodeLocation:R+=" "+i(T.label);break;case this.NodeFriend:R+=" "+y(T.label);break;default:break}P=T.nctype}}if(R.length==0){R="No throngs are displayed. To display a throng, type something in the search box"}return R},showCurrentFriendGraph:function(){if(this.isInfoVisBusy()){if(N==-1){N=setInterval(function(){if(!NC.widget.NetworkManager.isInfoVisBusy()){clearInterval(N);N=-1;NC.widget.NetworkManager.setInfoVisBusyFlag();NC.widget.NetworkManager._showCurrentFriendGraph()}},500)}else{}}else{if(N!=-1){clearInterval(N);N=-1}this.setInfoVisBusyFlag();this._showCurrentFriendGraph()}},_showCurrentFriendGraph:function(){var P=M;var S=1;var R=this.setParms(P,"");if(s!=null){R.friends=s.join(NC.widget.NetworkManager.ListSeparator);S=0}var Q=(P==null||(P.length==0))&&(s==null||s.length==0);this.showFriendGraph("NetworkContent",R.favorites,R.companies,R.universities,R.interests,R.activities,R.professions,R.locations,R.friends,S,Q)},showCurrentFriendList:function(S){var P=M;var R=1;var Q=this.setParms(P,S);if(s!=null){Q.friends=s.join(NC.widget.NetworkManager.ListSeparator);R=0}this.showFriendList("NetworkContent",Q.favorites,Q.companies,Q.universities,Q.interests,Q.activities,Q.professions,Q.locations,S,Q.friends,R)},showContent:function(R){NC.util.Status.hideThrongMessageImmediate();var Q=M;var V=1;var Z=this.setParms(Q,R);var U=document.getElementById("QueryBanner");if(U!=null){U.innerHTML="<div > "+Z.searchLabel+"</div>"}if(w){this.showCurrentFriendList(R)}else{this.showCurrentFriendGraph()}D=this.makeCurrentParmString();var S="TwitterShareTop";var T=new NC.widget.ShareMapOnTwitter(-1,l,NC.SiteRoot,S,D);T.makeShareImage(NC.widget.Share.SmallImage);var X=new NC.widget.ShareMapOnFacebook(-1,l,NC.SiteRoot,"LinkedinShareTop",D);X.makeShareImage(NC.widget.Share.SmallImage);var W=new NC.widget.ShareMapOnLinkedIn(-1,l,NC.SiteRoot,"FacebookShareTop",D);W.makeShareImage(NC.widget.Share.SmallImage);var P='<a href="./js_main_v3_navigator.php?'+D+'" target="_blank">Display full-screen</a> ';var Y=document.getElementById("EnlargeTop");if(Y!=null){Y.innerHTML=P}},getCheckedNodes:function(Q){Q=Q||o.getRoot().children;checkedNodes=[];for(var R=0,P=Q.length;R<P;R=R+1){var S=Q[R];if(S.checkState===2){checkedNodes.push(S)}else{if(S.hasChildren()){checkedNodes=checkedNodes.concat(NC.widget.NetworkManager.getCheckedNodes(S.children))}}}return checkedNodes},uncheckAll:function(Q){Q=Q||o.getRoot().children;for(var R=0,P=Q.length;R<P;R=R+1){var S=Q[R];if(S.checkState===1||S.checkState===2){S.uncheck()}if(S.hasChildren()){NC.widget.NetworkManager.uncheckAll(S.children)}}},uncheckAllSimpleNodes:function(Q){Q=Q||o.getRoot().children;for(var R=0,P=Q.length;R<P;R=R+1){var S=Q[R];if(S.checkState===1||S.checkState===2){if(S.aggregate==0){S.uncheck()}}if(S.hasChildren()){NC.widget.NetworkManager.uncheckAllSimpleNodes(S.children)}}},equals:function(Q,P){if(Q.nctype==P.nctype&&Q.label.indexOf(P.label)==0&&(Q.searchString=="undefined"||Q.searchString==P.searchString)){return true}else{return false}},uncheckNodeInNavTree:function(U,S,R,Q){Q=Q||o.getRoot().children;for(var T=0,P=Q.length;T<P;T=T+1){var V=Q[T];if(V.nctype==U&&V.label.indexOf(S)==0&&(R=="undefined"||V.searchString==R)){if(V.checkState===1||V.checkState===2){V.uncheck()}}if(V.hasChildren()){NC.widget.NetworkManager.uncheckNodeInNavTree(U,S,R,V.children)}}},uncheckTree:function(T,Q){var R=T.children;for(var S=0,P=R.length;S<P;S=S+1){var U=R[S];if(U!=Q){if(U.checkState===1||U.checkState===2){U.uncheck()}if(U.children.length>0){this.uncheckTree(U,Q)}}}},adjustNodes:function(P){this.uncheckAggregates(P);if(P.aggregate>0){this.uncheckAllSimpleNodes(null);this.removeAllDisplayedSimpleNodes()}},uncheckAggregates:function(P){if(P.aggregate!=1){P=null}if(I!=null){this.uncheckTree(I,P)}if(O!=null){this.uncheckTree(O,P)}this.removeAllDisplayedAggregates()},appendNodesToDisplay:function(P){for(var R=0;R<P.length;R++){var S=P[R];if(!this.nodeDisplayed(S.nctype,S.label,S.searchString)){var Q=NC.util.lang.copy(S);M.push(Q)}}},showDefaultView:function(){this.uncheckAll(null);s=null;this.hideMergeButtons();M=[];var P=document.getElementById("SearchBox");P.value="";this.filterNavigation(false,false);this.showContent("")},makeAlphaTree:function(ak,ag,U,ah,ai,P,V,Z){var X=null;var Q="A";var ab=Q.charAt(0);var ae=ab;var R=0;var W=false;for(var af=0;af<ag.length;af++){var ad=ag[af];if(ah!=null){ad=ag[af][ah]}var aa=ad.toUpperCase().indexOf(Z);if(aa==0){var am=null;if(ai!=null){am=ag[af][ai]}var Y=ad.toUpperCase().charAt(0);if(X==null&&Y<ae){Y=ae}if(X==null||(ab<Y&&R>10)){X=new NC.widget.AlphaNode("tmp",ak,false);if(Z!=null&&Z.length>0){X.multiExpand=true}X.setUpLabel(Y);X.labelStyle="navsecondlevellabel";ae=Y;R=0}else{if(ae!=Y){X.setUpLabel(ae+"-"+Y)}}var ac=new NC.widget.TaskNode("tmp",X,false,false,true);var al=-1;var S="";if(U==NC.widget.NetworkManager.NodeFriend){S=ag[af]["networks"];var aj=ag[af]["merged"];if(typeof aj!="undefined"){ac.merged=aj}}al=parseInt(S);if(al&NC.widget.PeopleManager.NetworkLinkedIn){ad+='&nbsp;<img border="0" width="12" src="../imagesv2/ext/LinkedIn_Logo16px.png">'}if(al&NC.widget.PeopleManager.NetworkFacebook){ad+='&nbsp;<img border="0" width="12" src="../imagesv2/ext/f_logo_16.png">'}ac.setUpLabel(ad);ac.nctype=U;ac.networks=S;if(typeof V!="undefined"&&V==1){ac.aggregate=1}else{ac.aggregate=0}if(am!=null){ac.searchString=am;if(P!=null&&P.length>0){if(P.indexOf(am)!=-1){ac.check();X.expand();W=true}}}else{if(P!=null&&P.length>0){var T=i(ad);if(P.indexOf(T)!=-1){ac.check();X.expand();W=true}}}R+=1;Q=ad;ab=Y}}return W},MaxListSize:50,HintNone:0,HintLocation:1,HintWork:2,HintEducation:3,HintParameters:4,HintHighlight:5,HintFavorite:6,switchView:function(P){w=P;this.showContent("")},setTitle:function(R){var Q=document.getElementById(R);if(d==false){Q.innerHTML="<h2>Your Network</h2>"}else{var S={success:function(U){var T=NC.lang.JSON.parse(U.responseText);if(T.name!=null&&T.name.length>0){Q.innerHTML="<h2>"+NC.lang.trim(T.name)+"'s network</h2>"}},failure:function(T){},scope:this};var P=new NC.util.AjaxConnection("GET","./getUserInfo.php?md5Id="+l,null);P.executeMethod(S)}},LabelText:"text",LabelType:"type",LabelCount:"count",LabelKey:"key",filterNavigation:function(af,aA){o=new NC.widget.TreeView("NetworkNav");var V=document.getElementById("SearchBox");var aq=V.value;aq=aq.toUpperCase();var Y=NC.widget.NetworkManager.HintNone;if(L!=null){Y=NC.widget.NetworkManager.HintParameters}var av=null;if(aA){if(s==null&&Y==NC.widget.NetworkManager.HintNone){if(C.favorites!="undefined"&&C.favorites.length>0){Y=NC.widget.NetworkManager.HintFavorite;av=C.hints.favorites}else{if(typeof C.highlights!="undefined"&&C.highlights.length>0){Y=NC.widget.NetworkManager.HintHighlight}else{if(typeof C.hints.city!="undefined"&&typeof C.hints.state!="undefined"&&typeof C.hints.country!="undefined"){Y=NC.widget.NetworkManager.HintLocation}else{if(typeof C.hints.lastEmployment!="undefined"){Y=NC.widget.NetworkManager.HintWork}else{if(typeof C.hints.lastEducation!="undefined"){Y=NC.widget.NetworkManager.HintEducation}}}}}}}if(typeof C.favorites!="undefined"){O=new NC.widget.MenuNode("tmp",o.getRoot(),false);if(aq!=null&&aq.length>0){O.multiExpand=true}O.setUpLabel("Throngs");O.labelStyle="navtoplevellabel-highlight";var ak=-1;var U=null;if(av==null&&C.favorites.length>0){ak=Math.floor(Math.random()*C.favorites.length);av=C.favorites[ak].name;U=C.favorites[ak].key}var ae=false;if(C.favorites.length>50){ae=NC.widget.NetworkManager.makeAlphaTree(O,C.favorites,NC.widget.NetworkManager.NodeFavorite,"name","key",U,1,aq)}else{for(var au=0;au<C.favorites.length;au++){var ad=C.favorites[au].name.toUpperCase().indexOf(aq);if(ad==0){var al=new NC.widget.TaskNode("tmp",O,false,false,true);al.setUpLabel(C.favorites[au].name);al.nctype=NC.widget.NetworkManager.NodeFavorite;al.aggregate=1;if(typeof C.favorites[au].key!="undefined"){al.searchString=C.favorites[au].key}if(Y==NC.widget.NetworkManager.HintFavorite){if((av!=null&&av==C.favorites[au].name)){al.check();ae=true}}}}}if(ae){O.expand()}if(!O.hasChildren()){o.removeNode(O)}}if(typeof C.highlights!="undefined"){I=new NC.widget.MenuNode("tmp",o.getRoot(),false);if(aq!=null&&aq.length>0){I.multiExpand=true}I.setUpLabel("Highlights");I.labelStyle="navtoplevellabel-highlight";var ak=Math.floor(Math.random()*Math.min(n,C.highlights.length));for(var au=0;au<C.highlights.length&&au<n;au++){var ad=C.highlights[au].text.toUpperCase().indexOf(aq);if(ad==0){var al=new NC.widget.TaskNode("tmp",I,false,false,true);al.setUpLabel(C.highlights[au].text+"("+C.highlights[au].count+")");al.nctype=parseInt(C.highlights[au].type);al.aggregate=1;if(typeof C.highlights[au].key!="undefined"){al.searchString=C.highlights[au].key}if(Y==NC.widget.NetworkManager.HintHighlight&&au==ak){al.check();I.expand()}}}if(!I.hasChildren()){o.removeNode(I)}}if(typeof C.companies!="undefined"){var aB=new NC.widget.MenuNode("tmp",o.getRoot(),false);if(aq!=null&&aq.length>0){aB.multiExpand=true}aB.setUpLabel("Companies");aB.labelStyle="navtoplevellabel";var Q=null;if(L!=null&&typeof L.cmp!="undefined"){Q=L.cmp}ae=false;if(C.companies.length>50&&(aq==null||aq.length==0)){ae=NC.widget.NetworkManager.makeAlphaTree(aB,C.companies,NC.widget.NetworkManager.NodeCompany,null,null,Q,0,aq)}else{for(var aw=0;aw<C.companies.length;aw++){var ad=C.companies[aw].toUpperCase().indexOf(aq);if(ad==0){var al=new NC.widget.TaskNode("tmp",aB,false,false,true);al.setUpLabel(C.companies[aw]);al.nctype=NC.widget.NetworkManager.NodeCompany;al.aggregate=0;if(Q!=null&&Q.indexOf(C.companies[aw])!=-1){al.check();ae=true}}}}if(ae){aB.expand()}if(aB.hasChildren()!=true){o.removeNode(aB)}}if(typeof C.universities!="undefined"){var ao=new NC.widget.MenuNode("tmp",o.getRoot(),false);if(aq!=null&&aq.length>0){ao.multiExpand=true}ao.setUpLabel("Education");ao.labelStyle="navtoplevellabel";var aj=null;if(L!=null&&typeof L.uni!="undefined"){aj=L.uni}ae=false;if(C.universities.length>50&&(aq==null||aq.length==0)){ae=NC.widget.NetworkManager.makeAlphaTree(ao,C.universities,NC.widget.NetworkManager.NodeUniversity,null,null,aj,0,aq)}else{for(var au=0;au<C.universities.length;au++){var ad=C.universities[au].toUpperCase().indexOf(aq);if(ad==0){var al=new NC.widget.TaskNode("tmp",ao,false,false,true);al.setUpLabel(C.universities[au]);al.nctype=NC.widget.NetworkManager.NodeUniversity;al.aggregate=0;if(aj!=null&&aj.indexOf(C.universities[au])!=-1){al.check();ae=true}}}}if(ae){ao.expand()}if(ao.hasChildren()!=true){o.removeNode(ao)}}if(typeof C.friends!="undefined"){var S=new NC.widget.MenuNode("tmp",o.getRoot(),false);if(aq!=null&&aq.length>0){S.multiExpand=true}S.setUpLabel("Friends");S.labelStyle="navtoplevellabel";var at=null;if(L!=null&&typeof L.fri!="undefined"){at=L.fri}ae=false;var R=null;if(s!=null){R=s.join(NC.widget.NetworkManager.ListSeparator)}if(C.friends.length>50&&(aq==null||aq.length==0)){ae=NC.widget.NetworkManager.makeAlphaTree(S,C.friends,NC.widget.NetworkManager.NodeFriend,"name","uid",R,0,aq)}else{for(var ap=0;ap<C.friends.length;ap++){var ad=C.friends[ap].name.toUpperCase().indexOf(aq);if(ad==0){var al=new NC.widget.TaskNode("tmp",S,false,false,true);var Z=-1;var W="";W=C.friends[ap]["networks"];var ac=C.friends[ap]["merged"];if(typeof ac!="undefined"){al.merged=ac}Z=parseInt(W);var an=C.friends[ap].name;if(Z&NC.widget.PeopleManager.NetworkLinkedIn){an+='&nbsp;<img border="0" width="12" src="../imagesv2/ext/LinkedIn_Logo16px.png">'}if(Z&NC.widget.PeopleManager.NetworkFacebook){an+='&nbsp;<img border="0" width="12" src="../imagesv2/ext/f_logo_16.png">'}al.setUpLabel(an);al.nctype=NC.widget.NetworkManager.NodeFriend;al.networks=W;al.aggregate=0;al.searchString=C.friends[ap].uid;if(R!=null&&R.length>0){if(R.indexOf(al.searchString)!=-1){al.check();ae=true}}}}}if(ae){S.expand()}if(S.hasChildren()!=true){o.removeNode(S)}}if(typeof C.interests!="undefined"){var aC=new NC.widget.MenuNode("tmp",o.getRoot(),false);if(aq!=null&&aq.length>0){aC.multiExpand=true}aC.setUpLabel("Interests & Activities");aC.labelStyle="navtoplevellabel";var aa=null;if(L!=null&&typeof L._in!="undefined"){aa=L._in}ae=false;if(C.interests.length>50&&(aq==null||aq.length==0)){ae=NC.widget.NetworkManager.makeAlphaTree(aC,C.interests,NC.widget.NetworkManager.NodeInterest,null,null,aa,0,aq)}else{for(var au=0;au<C.interests.length;au++){var ad=C.interests[au].toUpperCase().indexOf(aq);if(ad==0){var al=new NC.widget.TaskNode("tmp",aC,false,false,true);al.setUpLabel(C.interests[au]);al.nctype=NC.widget.NetworkManager.NodeInterest;al.aggregate=0;if(aa!=null&&aa.indexOf(C.interests[au])!=-1){al.check();ae=true}}}}if(ae){aC.expand()}if(aC.hasChildren()!=true){o.removeNode(aC)}}if(typeof C.location!="undefined"){var ag=new NC.widget.MenuNode("tmp",o.getRoot(),false);if(aq!=null&&aq.length>0){ag.multiExpand=true}ag.setUpLabel("Locations");ag.labelStyle="navtoplevellabel";var X=null;if(L!=null&&typeof L.loc!="undefined"){X=L.loc}ae=false;for(var ay in C.location){var ah=i(ay);var T=new NC.widget.TaskNode(ay,ag,false,false,true);if(aq!=null&&aq.length>0){T.multiExpand=true}T.labelStyle="navsecondlevellabel";T.searchString=ah;T.nctype=NC.widget.NetworkManager.NodeLocation;T.aggregate=0;for(var aD in C.location[ay]){pstate=i(aD);var P=new NC.widget.TaskNode(aD,T,false,false,true);if(aq!=null&&aq.length>0){P.multiExpand=true}P.labelStyle="navsecondlevellabel";P.searchString=ah+NC.widget.NetworkManager.LocationSeparator+pstate;P.nctype=NC.widget.NetworkManager.NodeLocation;P.aggregate=0;var ar=C.location[ay][aD];for(var aw=0;aw<ar.length;aw++){var ax=i(ar[aw]);var ad=ar[aw].toUpperCase().indexOf(aq);if(ad==0){var al=new NC.widget.TaskNode("tmp",P,false,false,true);al.setUpLabel(ar[aw]);al.searchString=ah+NC.widget.NetworkManager.LocationSeparator+pstate+NC.widget.NetworkManager.LocationSeparator+ax;al.nctype=NC.widget.NetworkManager.NodeLocation;al.aggregate=0;if((Y==NC.widget.NetworkManager.HintLocation&&ax==C.hints.city)||(X!=null&&X.indexOf(ax)!=-1)){al.check();ae=true}}}if((Y==NC.widget.NetworkManager.HintLocation&&pstate==C.hints.state)||(X!=null&&X.indexOf(pstate)!=-1)){if(!ae){P.check();P.expand();ae=true}else{P.expand()}}if(!P.hasChildren()){o.removeNode(P)}}if((Y==NC.widget.NetworkManager.HintLocation&&ah==C.hints.country)||(X!=null&&X.indexOf(ah)!=-1)){if(!ae){T.expand();T.check();ae=true}else{T.expand()}}if(!T.hasChildren()){o.removeNode(T)}}if(ae){ag.expand()}if(!ag.hasChildren()){o.removeNode(ag)}}if(typeof C.professions!="undefined"){var az=new NC.widget.MenuNode("tmp",o.getRoot(),false);if(aq!=null&&aq.length>0){az.multiExpand=true}az.setUpLabel("Professions");az.labelStyle="navtoplevellabel";var ab=null;if(L!=null&&typeof L.pro!="undefined"){ab=L.pro}ae=false;if(C.professions.length>50&&(aq==null||aq.length==0)){NC.widget.NetworkManager.makeAlphaTree(az,C.professions,NC.widget.NetworkManager.NodeProfession,null,null,ab,0,aq)}else{for(var ai=0;ai<C.professions.length;ai++){var ad=C.professions[ai].categoryname.toUpperCase().indexOf(aq);if(ad==0){var al=new NC.widget.TaskNode("tmp",az,false,false,true);al.setUpLabel(C.professions[ai].categoryname);al.searchString=C.professions[ai].categoryid;al.nctype=NC.widget.NetworkManager.NodeProfession;al.aggregate=0;if(ab!=null&&ab.indexOf(C.professions[ai].categoryid)!=-1){al.check();ae=true}}}}if(ae){az.expand()}if(az.hasChildren()!=true){o.removeNode(az)}}if(aq!=null&&aq.length>0){o.getRoot().expandAll()}else{o.getRoot().expand()}o.draw();o.subscribe("labelClick",function(aF){if(!aF.hasChildren()){if(aF.checkState===0){aF.check();NC.widget.NetworkManager.adjustNodes(aF)}else{aF.uncheck();NC.widget.NetworkManager.removeDisplayedNode(aF.nctype,aF.label,aF.searchString)}}else{if(aF.childrenRendered&&aF.categoryId!=-2){aF.check();NC.widget.NetworkManager.adjustNodes(aF)}}var aE=NC.widget.NetworkManager.getCheckedNodes();NC.widget.NetworkManager.appendNodesToDisplay(aE);NC.widget.NetworkManager.showContent("");NC.widget.NetworkManager.checkMerge()});o.subscribe("checkClick",function(aF){if(aF.checkState===1||aF.checkState===2){NC.widget.NetworkManager.adjustNodes(aF)}else{NC.widget.NetworkManager.removeDisplayedNode(aF.nctype,aF.label,aF.searchString)}var aE=NC.widget.NetworkManager.getCheckedNodes();NC.widget.NetworkManager.appendNodesToDisplay(aE);NC.widget.NetworkManager.showContent("");NC.widget.NetworkManager.checkMerge()});if(aq!=null&&aq.length>0){o.getRoot().expandAll()}L=null;if(af){if(NC.widget.NetworkManager.isFirstTimeUser()){NC.widget.NetworkManager.showFirstTimeUserContent("NetworkContent")}else{var am=NC.widget.NetworkManager.getCheckedNodes();NC.widget.NetworkManager.appendNodesToDisplay(am);NC.widget.NetworkManager.showContent("")}}},isFirstTimeUser:function(){return a},refreshNavigation:function(R,T){C=R;if(C.stats.friendCount==0){a=true}var Q="<p>"+C.stats.fofCount+" total connections; "+C.stats.friendCount+" friends; "+C.stats.companyCount+" companies; "+C.stats.educationCount+" universities; "+C.stats.professionCount+" professions.</p>";var P=document.getElementById("NetworkStats");P.innerHTML=Q;this.filterNavigation(T,true);NC.widget.NetworkManager.setTitle("NetworkTitle");NC.util.Status.hideThrongProgress();var S=e;e=null;if(S!=null){S()}},refreshNetwork:function(){var T={success:function(V){var U=NC.lang.JSON.parse(V.responseText);this.refreshNavigation(U,true)},failure:function(U){},scope:this};var S="Throng is creating your throngs from your Facebook and LinkedIn networks";NC.util.Status.showThrongProgress(S,"NetworkContent");var P=NC.widget.PeopleManager.NetworkFacebook+NC.widget.PeopleManager.NetworkLinkedIn;var R="./getGraphNavigation.php?networkMask="+P;if(l!=null&&l.length>0){R+="&md5Id="+l}this.removeAllDisplayedNodes();var Q=new NC.util.AjaxConnection("GET",R,null);Q.executeMethod(T)},refreshNetworkAfterUpdate:function(P,Q){if(typeof P!="undefined"){d=P}if(typeof Q!="undefined"&&Q!=null){e=Q}this.refreshNetwork()},showMergeDialog:function(){var R={ok:function(){var X={success:function(Y){NC.widget.NetworkManager.hideMergeButtons();NC.widget.NetworkManager.refreshNetwork()},failure:function(Y){},scope:this};var W="";var V="";for(var U=0;U<2;U++){if(t[U].networks==NC.widget.PeopleManager.NetworkFacebook){W=t[U].searchString}else{if(t[U].networks==NC.widget.PeopleManager.NetworkLinkedIn){V=t[U].searchString}}}var T="./addSynonym.php?fbUid="+W+"&lnUid="+V;var S=new NC.util.AjaxConnection("GET",T,"");S.executeMethod(X)},cancel:function(){}};var Q=document.getElementById("MergeButton");var P=NC.util.Region.getRegion(Q);NC.widget.MessageManager.showDialog("ncfunc:showNetworkMergeDialog",NC.util.AjaxDialogDisplay.DialogWrapper,R,true,-1,P.right,P.bottom,true,-1,false)},showUnmergeDialog:function(){var R={ok:function(){var U={success:function(V){NC.widget.NetworkManager.hideMergeButtons();NC.widget.NetworkManager.refreshNetwork()},failure:function(V){},scope:this};fbUid=x.searchString;var T="./deleteSynonym.php?fbUid="+fbUid;var S=new NC.util.AjaxConnection("GET",T,"");S.executeMethod(U)},cancel:function(){}};var Q=document.getElementById("UnMergeButton");var P=NC.util.Region.getRegion(Q);NC.widget.MessageManager.showDialog("ncfunc:showNetworkUnmergeDialog",NC.util.AjaxDialogDisplay.DialogWrapper,R,true,-1,P.right,P.bottom,true,-1,false)},showMergeDialogContent:function(P){var R=document.getElementById(NC.widget.MessageBox.makeContentDivName());var Q='<div class="dialog"><h2>Link these two friends?</h2><p>Link ';Q+=t[0].label+" and "+t[1].label+" ?</p></div>";R.innerHTML=Q},showUnmergeDialogContent:function(P){var R=document.getElementById(NC.widget.MessageBox.makeContentDivName());var Q='<div class="dialog"><h2>Unlink this friend?</h2><p> ';Q+="Unlink "+x.label+" ?</p></div>";R.innerHTML=Q},modifyNetworkMask:function(P){var Q=document.getElementById(P);if(Q.checked){p|=Q.value}else{p&=~Q.value}NC.widget.NetworkManager.showContent("")},showDashboard:function(P){var R='<div class="infobox"> <div class="title"> 	<div style="float:left"> 		<h2 class="querytitle"> 			Displaying people who 		</h2> 	</div> 	<div id="ClearButton"> 		<a target="_blank" href="http://www.thronginc.com/throng_hints.php"><img alt="Help" src="../imagesv2/question.png" border="0"></a>&nbsp;		<a href="#" onclick="NC.widget.NetworkManager.showDefaultView();"><img alt="Clear selections" src="../imagesv2/clear_2.png" border="0"></a> 	</div> 	<div class="progressdiv" id="NetProgressDiv"></div> 	<div style="clear:both"></div> </div> <div class="content"> 	<div id="QueryBanner">are in the throngs you select.</div> </div> </div> ';var Q=document.getElementById(P);if(Q!=null){Q.innerHTML=R}},showNetwork:function(Q){var P=document.getElementById(Q);var R="";if(popup){R+='<div id="PageContainerThrongLogo"> <div class="throngbanner"><div class="thronglogo"><img src="../imagesv2/throng_logo_name_1.png" border="0" /></div><div class="throngdashboard"><div class="infobox"><div class="title"><div style="float:left"><h2 class="querytitle">Displaying people who</h2></div><div style="float:right"><a href="#"  onclick="NC.widget.MessageManager.hideDialog()"><img border="0" src="../imagesv2/close_blue.png"></a></div><div style="float:right;padding-right:3px;"><a href="target="_blank" href="http://www.thronginc.com/throng_hints.php"><img alt="Help" src="../imagesv2/question.png" border="0"></a>&nbsp;<a href="#" onclick="NC.widget.NetworkManager.showDefaultView();"><img alt="Clear selections" src="../imagesv2/clear_2.png" border="0"></a></div><div style="clear:both"></div></div><div class="content"><div id="QueryBanner"></div></div></div></div><div style="clear:both"></div></div>	'}R+='<div id="NetworkManager" class="netmanager"> <div id="NetManLeftColumn" class="leftcolumn">';R+='<div id="NetworkStatsDiv" class="infobox">';R+='<div id="NetworkTitle" class="title">...</div>';R+='<div class="content"><div id="NetworkSelector" class="netcontrol"><input type="checkbox" name="FacebookSelector" id="FacebookSelector" value="1"';if(p&NC.widget.PeopleManager.NetworkFacebook>0){R+=" checked "}R+=' onclick="NC.widget.NetworkManager.modifyNetworkMask(\'FacebookSelector\');">&nbsp;<img border="0" width="12" src="../imagesv2/ext/f_logo_16.png">&nbsp;&nbsp;&nbsp;<input type="checkbox" name="LinkedInSelector" id="LinkedInSelector" value="2"';if(p&NC.widget.PeopleManager.NetworkLinkedIn>0){R+=" checked "}R+=' onclick="NC.widget.NetworkManager.modifyNetworkMask(\'LinkedInSelector\');">&nbsp;<img border="0" width="12" src="../imagesv2/ext/LinkedIn_Logo16px.png">&nbsp;<div id="NetworkStats">Stats</div></div></div></div>';R+='<div class="infobox"><div id="NavTitle" class="title"><h2>Search</h2></div><div class="content"><div id="SearchBar"><input type="text" class="searchbox" id="SearchBox" onkeyup="NC.widget.NetworkManager.filterNavigation(false, false);"></div><div id="NavControlBar" class="navControlBar">&nbsp;<span id="MergeButton" style="display:none"><a href="#" onclick="NC.widget.NetworkManager.showMergeDialog();"><img alt="Link friends" src="../imagesv2/link.png" border="0"></a></span>&nbsp;<span id="UnMergeButton" style="display:none"><a href="#" onclick="NC.widget.NetworkManager.showUnmergeDialog();"><img alt="Unlink friends" src="../imagesv2/unlink.png" border="0"></a></span></div><div id="NetworkNav" class="netnav"></div> <div>&nbsp;</div></div></div></div><div  id="NetManRightColumn" class="rightcolumn"><div class="infobox" style=""><div class="title">';R+='<div class="titleleft" id="FavoriteButton"><a href="#" onclick="NC.widget.NetworkManager.favoriteThrong()"><img border="0" src="../imagesv2/save.png"></a></div>';R+='<div class="titleright"  id="TwitterShareTop"> </div><div class="titleright"  id="LinkedinShareTop"> </div><div class="titleright" id="FacebookShareTop"> </div>';R+='<div style="clear:both"></div></div>';R+='<div id="NetworkContent" class="netcontent"></div> </div> </div></div>';if(popup){R+="</div>"}P.innerHTML=R;this.showDashboard("ThrongDashboard");NC.util.Event.onContentReady(Q,function(){NC.widget.NetworkManager.refreshNetwork();document.getElementById("SearchBox").focus()})},favoriteThrong:function(){if(D.length>0){var R={ok:function(){var S={success:function(Y){var X=NC.lang.JSON.parse(Y.responseText);NC.widget.NetworkManager.refreshNavigation(X,false)},failure:function(X){},scope:this};var V=document.getElementById("ThrongName");var U=V.value;var T="./addFavoriteThrong.php?name="+U+"&networkMask="+p+D;var W=new NC.util.AjaxConnection("GET",T,"");W.executeMethod(S)},cancel:function(){}};var Q=document.getElementById("FavoriteButton");var P=NC.util.Region.getRegion(Q);NC.widget.MessageManager.showDialog("./askAddFavorite.php",NC.util.AjaxDialogDisplay.DialogWrapper,R,true,-1,P.left+45,P.bottom,false,-1,false)}},showMessage:function(S,P,Q,U){var R=document.getElementById("NetManRightColumn");var T=NC.util.Region.getRegion(R);NC.widget.MessageManager.showDialog(S,NC.util.AjaxDialogDisplay.DialogWrapper,U,Q,T.right-T.left-6,T.left+5,T.top+5,true,P,true)}}}()})();(function(){NC.widget.GoogleShortener=function(){return{shorten:function(d,e){var f={success:function(h){var g=NC.lang.JSON.parse(h.responseText);if(e!=null){e(g.id)}},failure:function(g){},scope:this};var c="./googl.php";var a='key="AIzaSyDJEEo9uO1_RkACLVKvuw9GfKmrwYMPdPg"&u='+d;var b=new NC.util.AjaxConnection("POST",c,a);b.executeMethod(f)}}}()})();(function(){NC.game.SpriteManager=function(){var a={};return{register:function(c,b){registeredElements[c]=b},unregister:function(b){delete registeredElements[b]},lookup:function(b){return registeredElements[b]}}}()})();NC.game.Sprite=function(l,c,k,i,e,n,j,h,d,g,f,m,b){var a=NC.game.Sprite.superclass.constructor;a.call(this,-1);this.parent=l;this.name=c;this.backgroundImage=k;this.content=i;this.isImage=e;this.size=n;this.zIndex=j;this.opacity=h;this.start=d;this.end=g;this.duration=f;this.animationSound=m;this.finalSound=b};NC.lang.extend(NC.game.Sprite,NC.widget.Element,{create:function(){var b="sprite_"+this.name;if(document.getElementById(b)==null){var a=document.createElement("div");a.style.display="none";a.id=b;this.domId=a.id;if(this.start!=null){}else{}a.style.zIndex=this.zIndex;a.style.position="absolute";this.parent.appendChild(a)}},show:function(){var a=document.getElementById(this.domId);if(a!=null){if(this.isImage){}else{a.innerHTML=this.content}if(this.start==null){NC.util.Dom.setClassName(a,"sprite");a.style.display="block";a.style.left=this.end.x+"px";a.style.top=this.end.y+"px";a.style.width=this.size.width+"px";a.style.height=this.size.height+"px";a.style.zIndex=this.zIndex;a.style.background="url('"+this.backgroundImage+"')"}else{}}},hide:function(){var a=document.getElementById(this.domId);if(a!=null){a.style.display="none"}},destroy:function(){}});NC.widget.ResumeScorePage=function(b){var a=NC.widget.ResumeScorePage.superclass.constructor;a.call(this,1,NC.widget.ResumeWizard.StrNCWizScorePage);this.domDocument=b;this.info=b.getDocumentElement()};NC.lang.extend(NC.widget.ResumeScorePage,NC.widget.WizardPage,{render:function(h){var e=document.getElementById(h);var m=NC.util.Dom.extractEncodedField(this.info,NC.widget.ResumeWizard.StrFirstname);var n=NC.util.Dom.extractEncodedField(this.info,NC.widget.ResumeWizard.StrLastname);var f=NC.util.Dom.extractEncodedField(this.info,NC.widget.ResumeWizard.StrMiddleinitial);var o=NC.util.Dom.extractField(this.info,NC.widget.ResumeWizard.StrNCScore);var d=NC.util.Dom.extractField(this.info,NC.widget.ResumeWizard.StrManagerCategory);var a=NC.util.Dom.extractField(this.info,NC.widget.ResumeWizard.StrExplanation);var k="";var i=this.info.getElementsByTagName("category");if(i.getLength()>0){k+="<h1>NC";k+=o;k+="</h1><p>";if(d==NC.widget.ResumeWizard.ManagerCategory_Manager){k+="You are a manager.</p><p>"}else{if(d==NC.widget.ResumeWizard.ManagerCategory_Exec){k+="You are an executive.</p><p>"}}if(i.getLength()>0){k+="Your resume indicates skills and experience in:<br>"}for(ci=0;ci<i.getLength();ci++){if(ci>0){k+="<br>"}var c=i.item(ci);var g=c.getElementsByTagName("categoryname").item(0);var j=g.getFirstChild().getNodeValue();var l=c.getElementsByTagName("categoryweight").item(0);var b=l.getFirstChild().getNodeValue();k+=j}k+="</p>";k+="<h2>More info</h2>";k+="<p>";k+=a;k+="</p>"}e.innerHTML=k},save:function(){},serialize:function(){}});NC.widget.ContactInfoPage=function(b){var a=NC.widget.ContactInfoPage.superclass.constructor;a.call(this,1,NC.widget.ResumeWizard.StrNCWizContactPage);this.domDocument=b;this.info=b.getDocumentElement()};NC.lang.extend(NC.widget.ContactInfoPage,NC.widget.WizardPage,{render:function(E){var j=document.getElementById(E);var e=NC.util.Dom.extractEncodedField(this.info,NC.widget.ResumeWizard.StrNameprefix);var q=NC.util.Dom.extractEncodedField(this.info,NC.widget.ResumeWizard.StrNamesuffix);var a=NC.util.StringUtil.capitalizeWord(NC.util.Dom.extractEncodedField(this.info,NC.widget.ResumeWizard.StrFirstname));var o=NC.util.StringUtil.capitalizeWord(NC.util.Dom.extractEncodedField(this.info,NC.widget.ResumeWizard.StrLastname));var B=NC.util.Dom.extractEncodedField(this.info,NC.widget.ResumeWizard.StrMiddleinitial);if(B==NC.widget.ResumeWizard.StrNoContent){B=""}var r=NC.util.Dom.extractEncodedField(this.info,NC.widget.ResumeWizard.StrEmail);var m=NC.util.Dom.extractEncodedField(this.info,NC.widget.ResumeWizard.StrStreet);var y=NC.util.Dom.extractEncodedField(this.info,NC.widget.ResumeWizard.StrAddress2);var x=NC.util.Dom.extractEncodedField(this.info,NC.widget.ResumeWizard.StrAddress3);var v=NC.util.Dom.extractEncodedField(this.info,NC.widget.ResumeWizard.StrCity);var d=NC.util.Dom.extractEncodedField(this.info,NC.widget.ResumeWizard.StrState);var t=NC.util.Dom.extractEncodedField(this.info,NC.widget.ResumeWizard.StrCountry);var g=NC.util.Dom.extractEncodedField(this.info,NC.widget.ResumeWizard.StrZipcode);var r=NC.util.Dom.extractEncodedField(this.info,NC.widget.ResumeWizard.StrEmail);var f=NC.util.Dom.extractField(this.info,NC.widget.ResumeWizard.StrHomephone);var z=NC.util.Dom.extractField(this.info,NC.widget.ResumeWizard.StrMobilephone);var l=NC.util.Dom.extractField(this.info,NC.widget.ResumeWizard.StrWorkphone);var u="<h1>Contact Information</h1>";var i=new Array(6);var p=new Array(6);var k=new Array(6);i[0]="-";p[0]="";k[0]=false;i[1]="Mr";p[1]="Mr";k[1]=false;i[2]="Ms";p[2]="Ms";k[2]=false;i[3]="Mrs";p[3]="Mrs";k[3]=false;i[4]="Dr";p[4]="Dr";k[4]=false;i[5]="Miss";p[5]="Miss";k[5]=false;for(var h=0;h<6;h++){if(e==p[h]){k[h]=true;break}}var C=new Array(6);var b=new Array(6);var s=new Array(6);C[0]="-";b[0]="";s[0]=false;C[1]="II";b[1]="II";s[1]=false;C[2]="III";b[2]="III";s[2]=false;C[3]="IV";b[3]="IV";s[3]=false;C[4]="Jr";b[4]="Jr";s[4]=false;C[5]="Sr";b[5]="Sr";s[5]=false;for(var A=0;A<6;A++){if(q==b[A]){s[A]=true;break}}u+=this.startFieldContainer();u+=this.startFieldLabel();u+="Name";u+=this.endFieldLabel();u+=this.createSelectBox("",NC.widget.ResumeWizard.makeResumeEditFieldName(NC.widget.ResumeWizard.StrNameprefix),i,p,k);u+=this.createTextEditField("",NC.widget.ResumeWizard.makeResumeEditFieldName(NC.widget.ResumeWizard.StrFirstname),a,15,30,1);u+=this.createTextEditField("",NC.widget.ResumeWizard.makeResumeEditFieldName(NC.widget.ResumeWizard.StrMiddleinitial),B,4,30);u+=this.createTextEditField("",NC.widget.ResumeWizard.makeResumeEditFieldName(NC.widget.ResumeWizard.StrLastname),o,15,30,1);u+=this.createSelectBox("",NC.widget.ResumeWizard.makeResumeEditFieldName(NC.widget.ResumeWizard.StrNamesuffix),C,b,s);u+=this.endFieldContainer();u+=this.startFieldContainer();u+=this.startFieldLabel();u+="Address";u+=this.endFieldLabel();u+=this.createTextEditField("",NC.widget.ResumeWizard.makeResumeEditFieldName(NC.widget.ResumeWizard.StrStreet),m,30,55);u+=this.endFieldContainer();u+=this.startFieldContainer();u+=this.startFieldLabel();u+="Line 2";u+=this.endFieldLabel();u+=this.createTextEditField("",NC.widget.ResumeWizard.makeResumeEditFieldName(NC.widget.ResumeWizard.StrAddress2),y,30,55);u+=this.endFieldContainer();u+=this.startFieldContainer();u+=this.startFieldLabel();u+="Line 3";u+=this.endFieldLabel();u+=this.createTextEditField("",NC.widget.ResumeWizard.makeResumeEditFieldName(NC.widget.ResumeWizard.StrAddress3),x,30,55);u+=this.endFieldContainer();u+=this.startFieldContainer();u+=this.startFieldLabel();u+="City";u+=this.endFieldLabel();u+=this.createTextEditField("",NC.widget.ResumeWizard.makeResumeEditFieldName(NC.widget.ResumeWizard.StrCity),v,15,30);u+=this.createTextField("&nbsp;Postal code&nbsp;");u+=this.createTextEditField("",NC.widget.ResumeWizard.makeResumeEditFieldName(NC.widget.ResumeWizard.StrZipcode),g,12,12);u+=this.endFieldContainer();u+=this.startFieldContainer();var D=new Array(63);var n=new Array(63);var c=new Array(63);n[0]="-";n[1]="$UAS";n[2]="$UGU";n[3]="$UPR";n[4]="$UVI";n[5]="AA";n[6]="AE";n[7]="AK";n[8]="AL";n[9]="AP";n[10]="AR";n[11]="AS";n[12]="AZ";n[13]="CA";n[14]="CO";n[15]="CT";n[16]="DC";n[17]="DE";n[18]="FL";n[19]="GA";n[20]="GU";n[21]="HI";n[22]="IA";n[23]="ID";n[24]="IL";n[25]="IN";n[26]="KS";n[27]="KY";n[28]="LA";n[29]="MA";n[30]="MD";n[31]="ME";n[32]="MI";n[33]="MN";n[34]="MO";n[35]="MS";n[36]="MT";n[37]="NC";n[38]="ND";n[39]="NE";n[40]="NH";n[41]="NJ";n[42]="NM";n[43]="NV";n[44]="NY";n[45]="OH";n[46]="OK";n[47]="OR";n[48]="PA";n[49]="PR";n[50]="RI";n[51]="SC";n[52]="SD";n[53]="TN";n[54]="TX";n[55]="UT";n[56]="VA";n[57]="VI";n[58]="VT";n[59]="WA";n[60]="WI";n[61]="WV";n[62]="WY";D[0]="-";D[1]="American Samoa Federal";D[2]="Guam Federal";D[3]="Puerto Rico Federal";D[4]="Virgin Islands Federal";D[5]="Armed Forces Americas";D[6]="Armed Forces Europe";D[7]="Alaska";D[8]="Alabama";D[9]="Armed Forces Pacific";D[10]="Arkansas";D[11]="American Samoa";D[12]="Arizona";D[13]="California";D[14]="Colorado";D[15]="Connecticut";D[16]="District of Columbia";D[17]="Delaware";D[18]="Florida";D[19]="Georgia";D[20]="Guam";D[21]="Hawaii";D[22]="Iowa";D[23]="Idaho";D[24]="Illinois";D[25]="Indiana";D[26]="Kansas";D[27]="Kentucky";D[28]="Louisiana";D[29]="Massachusetts";D[30]="Maryland";D[31]="Maine";D[32]="Michigan";D[33]="Minnesota";D[34]="Missouri";D[35]="Mississippi";D[36]="Montana";D[37]="North Carolina";D[38]="North Dakota";D[39]="Nebraska";D[40]="New Hampshire";D[41]="New Jersey";D[42]="New Mexico";D[43]="Nevada";D[44]="New York";D[45]="Ohio";D[46]="Oklahoma";D[47]="Oregon";D[48]="Pennsylvania";D[49]="Puerto Rico";D[50]="Rhode Island";D[51]="South Carolina";D[52]="South Dakota";D[53]="Tennessee";D[54]="Texas";D[55]="Utah";D[56]="Virginia";D[57]="Virgin Islands";D[58]="Vermont";D[59]="Washington";D[60]="Wisconsin";D[61]="West Virginia";D[62]="Wyoming";c[0]=false;c[1]=false;c[2]=false;c[3]=false;c[4]=false;c[5]=false;c[6]=false;c[7]=false;c[8]=false;c[9]=false;c[10]=false;c[11]=false;c[12]=false;c[13]=false;c[14]=false;c[15]=false;c[16]=false;c[17]=false;c[18]=false;c[19]=false;c[20]=false;c[21]=false;c[22]=false;c[23]=false;c[24]=false;c[25]=false;c[26]=false;c[27]=false;c[28]=false;c[29]=false;c[30]=false;c[31]=false;c[32]=false;c[33]=false;c[34]=false;c[35]=false;c[36]=false;c[37]=false;c[38]=false;c[39]=false;c[40]=false;c[41]=false;c[42]=false;c[43]=false;c[44]=false;c[45]=false;c[46]=false;c[47]=false;c[48]=false;c[49]=false;c[50]=false;c[51]=false;c[52]=false;c[53]=false;c[54]=false;c[55]=false;c[56]=false;c[57]=false;c[58]=false;c[59]=false;c[60]=false;c[61]=false;c[62]=false;for(var w=0;w<63;w++){if(d==n[w]){c[w]=true;break}}u+=this.startFieldLabel();u+="State/province";u+=this.endFieldLabel();u+=this.createSelectBox("",NC.widget.ResumeWizard.makeResumeEditFieldName(NC.widget.ResumeWizard.StrState),D,n,c);u+="&nbsp;Country&nbsp;";u+=this.createTextEditField("",NC.widget.ResumeWizard.makeResumeEditFieldName(NC.widget.ResumeWizard.StrCountry),t,15,30);u+=this.endFieldContainer();u+=this.startFieldContainer();u+=this.startFieldLabel();u+="Email";u+=this.endFieldLabel();u+=this.createTextEditField("",NC.widget.ResumeWizard.makeResumeEditFieldName(NC.widget.ResumeWizard.StrEmail),r,20,70,1);u+=this.endFieldContainer();u+=this.startFieldContainer();u+=this.startFieldLabel();u+="Home";u+=this.endFieldLabel();u+=this.createTextEditField("",NC.widget.ResumeWizard.makeResumeEditFieldName(NC.widget.ResumeWizard.StrHomephone),f,24,24);u+=this.endFieldContainer();u+=this.startFieldContainer();u+=this.startFieldLabel();u+="Mobile";u+=this.endFieldLabel();u+=this.createTextEditField("",NC.widget.ResumeWizard.makeResumeEditFieldName(NC.widget.ResumeWizard.StrMobilephone),z,24,24);u+=this.endFieldContainer();u+=this.startFieldContainer();u+=this.startFieldLabel();u+="Work";u+=this.endFieldLabel();u+=this.createTextEditField("",NC.widget.ResumeWizard.makeResumeEditFieldName(NC.widget.ResumeWizard.StrWorkphone),l,24,24);u+=this.endFieldContainer();j.innerHTML=u},validate:function(g){var f="";var d=NC.widget.ResumeWizard.getFieldValue(NC.widget.ResumeWizard.StrEmail);var c=NC.widget.ResumeWizard.getFieldValue(NC.widget.ResumeWizard.StrHomephone);var h=NC.widget.ResumeWizard.getFieldValue(NC.widget.ResumeWizard.StrMobilephone);var a=NC.widget.ResumeWizard.getFieldValue(NC.widget.ResumeWizard.StrWorkphone);var e=NC.widget.ResumeWizard.getFieldValue(NC.widget.ResumeWizard.StrFirstname);var b=NC.widget.ResumeWizard.getFieldValue(NC.widget.ResumeWizard.StrLastname);if(e.length==0||b.length==0){if(f.length>0){f+="<br/>"}f+="Enter your name."}if(d==null||d.length==0){if(f.length>0){f+="<br/>"}f+="Enter your email address."}if(c.length>0&&NC.widget.ResumeWizard.validatePhoneNumber(c)==false){f+="Enter phone numbers as '1 123 456 7890' or leave blank."}if(a.length>0&&NC.widget.ResumeWizard.validatePhoneNumber(a)==false){f+="Enter phone numbers as '1 123 456 7890' or leave blank."}if(h.length>0&&NC.widget.ResumeWizard.validatePhoneNumber(h)==false){f+="Enter phone numbers as '1 123 456 7890' or leave blank."}if(f.length>0){g.showError(f);return false}else{return true}},save:function(){NC.widget.ResumeWizard.updateEncodedFieldValue(NC.widget.ResumeWizard.StrNameprefix);NC.widget.ResumeWizard.updateEncodedFieldValue(NC.widget.ResumeWizard.StrFirstname);NC.widget.ResumeWizard.updateEncodedFieldValue(NC.widget.ResumeWizard.StrMiddleinitial);NC.widget.ResumeWizard.updateEncodedFieldValue(NC.widget.ResumeWizard.StrLastname);NC.widget.ResumeWizard.updateEncodedFieldValue(NC.widget.ResumeWizard.StrNamesuffix);NC.widget.ResumeWizard.updateEncodedFieldValue(NC.widget.ResumeWizard.StrStreet);NC.widget.ResumeWizard.updateEncodedFieldValue(NC.widget.ResumeWizard.StrAddress2);NC.widget.ResumeWizard.updateEncodedFieldValue(NC.widget.ResumeWizard.StrAddress3);NC.widget.ResumeWizard.updateEncodedFieldValue(NC.widget.ResumeWizard.StrCity);NC.widget.ResumeWizard.updateEncodedFieldValue(NC.widget.ResumeWizard.StrState);NC.widget.ResumeWizard.updateEncodedFieldValue(NC.widget.ResumeWizard.StrCountry);NC.widget.ResumeWizard.updateEncodedFieldValue(NC.widget.ResumeWizard.StrZipcode);NC.widget.ResumeWizard.updateEncodedFieldValue(NC.widget.ResumeWizard.StrEmail);NC.widget.ResumeWizard.updateFieldValue(NC.widget.ResumeWizard.StrHomephone);NC.widget.ResumeWizard.updateFieldValue(NC.widget.ResumeWizard.StrMobilephone);NC.widget.ResumeWizard.updateFieldValue(NC.widget.ResumeWizard.StrWorkphone)},serialize:function(){}});NC.widget.WorkHistoryPage=function(b){var a=NC.widget.WorkHistoryPage.superclass.constructor;a.call(this,2,NC.widget.ResumeWizard.StrNCWizWorkHistoryPage);this.domDocument=b;this.info=b.getDocumentElement()};NC.lang.extend(NC.widget.WorkHistoryPage,NC.widget.WizardPage,{render:function(t){var d=document.getElementById(t);var a=this.info.getElementsByTagName(NC.widget.ResumeWizard.StrWorkexperience);var l="<h1>Work History</h1>";var o="Start";var m="End";var q="Employer and Title";l+=this.startFieldContainer();l+=this.createFieldHeader(o,7);l+=this.createFieldHeader(m,7);l+=this.createFieldHeader(q,45);l+=this.endFieldContainer();if(a.getLength()==0){this.addRowAtEnd();a=this.info.getElementsByTagName(NC.widget.ResumeWizard.StrWorkexperience)}for(var n=0;n<a.getLength();n++){var b=a.item(n).getChildNodes();var r=true;var s="";var j="";var c="";for(var f=0;f<b.getLength();f++){var p=b.item(f);if(p.getFirstChild()!=null){var k=p.getFirstChild().getNodeValue();switch(p.getNodeName()){case NC.widget.ResumeWizard.StrStartdate:s=k;break;case NC.widget.ResumeWizard.StrEnddate:j=k;break;case NC.widget.ResumeWizard.StrCompanyandtitle:c=k;break;case NC.widget.ResumeWizard.StrFlags:if(k==NC.widget.ResumeWizard.DeletedRow){r=false}break}}}if(r){l+=this.startFieldContainer();l+=this.createTextEditField("",NC.widget.ResumeWizard.makeResumeEditFieldName(NC.widget.ResumeWizard.StrStartdate+n),s,7,10,1);l+=this.createTextEditField("",NC.widget.ResumeWizard.makeResumeEditFieldName(NC.widget.ResumeWizard.StrEnddate+n),j,7,10,1);l+=this.createTextEditField("",NC.widget.ResumeWizard.makeResumeEditFieldName(NC.widget.ResumeWizard.StrCompanyandtitle+n),c,45,80,1);var g="NC.widget.ResumeWizard.addWorkExperienceRow("+n+")";var e="NC.widget.ResumeWizard.deleteWorkExperienceRow("+n+")";l+=this.createButton(NC.widget.ResumeWizard.makeResumeEditFieldName(NC.widget.ResumeWizard.StrAddButton+n),g,"../imagesv2/addaction.gif");l+=this.createButton(NC.widget.ResumeWizard.makeResumeEditFieldName(NC.widget.ResumeWizard.StrDeleteButton+n),e,"../images/deleteaction.gif");l+=this.endFieldContainer()}}var h="NC.widget.ResumeWizard.addWorkExperienceRowAtEnd()";l+='<a href="javascript:'+h+'">Add another row here</a>';l+="<br>Enter dates as mm/yyyy.";d.innerHTML=l},validate:function(h){var o="";var e=NC.widget.ResumeWizard.getDomDocument().getElementsByTagName(NC.widget.ResumeWizard.StrWorkexperience);for(var g=0;g<e.getLength();g++){var b=e.item(g).getChildNodes();var k=null;var c=null;var a=null;var d=null;for(var n=0;n<b.getLength();n++){var m=b.item(n);var l=null;switch(m.getNodeName()){case NC.widget.ResumeWizard.StrStartdate:l=NC.widget.ResumeWizard.StrStartdate+g;k=NC.widget.ResumeWizard.getFieldValueNull(l);break;case NC.widget.ResumeWizard.StrEnddate:l=NC.widget.ResumeWizard.StrEnddate+g;c=NC.widget.ResumeWizard.getFieldValueNull(l);break;case NC.widget.ResumeWizard.StrCompanyandtitle:l=NC.widget.ResumeWizard.StrCompanyandtitle+g;a=NC.widget.ResumeWizard.getFieldValueNull(l);break;case NC.widget.ResumeWizard.StrFlags:d=m.getFirstChild().getNodeValue();break}}if(d!=null&&d!=NC.widget.ResumeWizard.DeletedRow){var j=false;var f=false;if(k.length>0){j=NC.widget.ResumeWizard.validateDate(k)}if(c.length>0){f=NC.widget.ResumeWizard.validateDate(c)}if(j==false||f==false){if(o.length>0){o+="<br/>"}o+="Enter a valid date (mm/yyyy)."}if(NC.widget.ResumeWizard.validateDateRange(k,c)==false){if(o.length>0){o+="<br/>"}o+="The start date cannot be later than the end date."}if((k.length>0||c.length>0)&&a.length==0){if(o.length>0){o+="<br/>"}o="Enter company and title for all rows."}if(k.length==0&&c.length==0&&a.length==0){if(o.length>0){o+="<br/>"}o="Fill in or delete blank rows."}}if(o.length>0){break}}if(o.length>0){h.showError(o);return false}else{return true}},save:function(){var d=this.info.getElementsByTagName(NC.widget.ResumeWizard.StrWorkexperience);for(var e=0;e<d.getLength();e++){var b=d.item(e).getChildNodes();var h="";var c="";var a="";for(var l=0;l<b.getLength();l++){var k=b.item(l);var j=null;var f=true;switch(k.getNodeName()){case NC.widget.ResumeWizard.StrStartdate:j=NC.widget.ResumeWizard.StrStartdate+e;break;case NC.widget.ResumeWizard.StrEnddate:j=NC.widget.ResumeWizard.StrEnddate+e;break;case NC.widget.ResumeWizard.StrCompanyandtitle:j=NC.widget.ResumeWizard.StrCompanyandtitle+e;break;case NC.widget.ResumeWizard.StrFlags:j=NC.widget.ResumeWizard.StrFlags+e;f=false;break;case NC.widget.ResumeWizard.StrPrivacy:j=NC.widget.ResumeWizard.StrPrivacy+e;f=false;break}if(j!=null&&f==true){value=NC.widget.ResumeWizard.getFieldValue(j);if(k.getFirstChild()!=null){k.getFirstChild().setNodeValue(value)}else{var g=this.domDocument.createTextNode(value);k.appendChild(g)}}}}},serialize:function(){},listExperience:function(d){for(var e=0;e<d.getLength();e++){var b=d.item(e).getChildNodes();var g="";var c="";var a="";for(var j=0;j<b.getLength();j++){var h=b.item(j);if(h.getFirstChild()!=null){var f=h.getFirstChild().getNodeValue();switch(h.getNodeName()){case NC.widget.ResumeWizard.StrStartdate:g=f;break;case NC.widget.ResumeWizard.StrEnddate:c=f;break;case NC.widget.ResumeWizard.StrCompanyandtitle:a=f;alert(f);break}}}}},deleteRow:function(f){this.save();var m=this.info.getElementsByTagName(NC.widget.ResumeWizard.StrWorklist);if(m!=null){var d=m.item(0);var b=d.getChildNodes();var i=b.item(f);var n=i.getChildNodes();var g=false;for(var o=0;o<n.getLength();o++){var l=n.item(o);if(l.getFirstChild()!=null){var j=l.getNodeName();if(j==NC.widget.ResumeWizard.StrFlags){g=true;var e=l.getFirstChild();e.nodeValue=NC.widget.ResumeWizard.DeletedRow}}}if(g==false){var a=this.domDocument.createElement(NC.widget.ResumeWizard.StrPrivacy);var h=this.domDocument.createTextNode(NC.widget.ResumeWizard.PrivacyDefault);a.appendChild(h);var c=this.domDocument.createElement(NC.widget.ResumeWizard.StrFlags);var k=this.domDocument.createTextNode(NC.widget.ResumeWizard.DeletedRow);c.appendChild(k);i.appendChild(a);i.appendChild(c)}}else{}},makeNewRow:function(){var b=this.domDocument.createElement(NC.widget.ResumeWizard.StrCompanyandtitle);var i=this.domDocument.createTextNode("");b.appendChild(i);var d=this.domDocument.createElement(NC.widget.ResumeWizard.StrStartdate);var g=this.domDocument.createTextNode("");d.appendChild(g);var j=this.domDocument.createElement(NC.widget.ResumeWizard.StrEnddate);var c=this.domDocument.createTextNode("");j.appendChild(c);var k=this.domDocument.createElement(NC.widget.ResumeWizard.StrWorkexperience);var f=this.domDocument.createTextNode("");k.appendChild(f);var a=this.domDocument.createElement(NC.widget.ResumeWizard.StrPrivacy);var h=this.domDocument.createTextNode(NC.widget.ResumeWizard.PrivacyDefault);a.appendChild(h);var e=this.domDocument.createElement(NC.widget.ResumeWizard.StrFlags);var l=this.domDocument.createTextNode(NC.widget.ResumeWizard.NewRow);e.appendChild(l);k.appendChild(b);k.appendChild(d);k.appendChild(j);k.appendChild(a);k.appendChild(e);return k},addRowBefore:function(e){this.save();var b=this.makeNewRow();var f=this.info.getElementsByTagName(NC.widget.ResumeWizard.StrWorklist);if(f!=null){var d=f.item(0);var a=d.getChildNodes();if(e<a.getLength()){var c=a.item(e);d.insertBefore(b,c)}}else{}},addRowAtEnd:function(){this.save();var a=this.makeNewRow();var c=this.info.getElementsByTagName(NC.widget.ResumeWizard.StrWorklist);if(c!=null){var b=c.item(0);b.appendChild(a)}else{}}});NC.widget.EducationHistoryPage=function(b){var a=NC.widget.EducationHistoryPage.superclass.constructor;a.call(this,3,NC.widget.ResumeWizard.StrNCWizEducationPage);this.domDocument=b;this.info=b.getDocumentElement()};NC.lang.extend(NC.widget.EducationHistoryPage,NC.widget.WizardPage,{render:function(u){var h=document.getElementById(u);var f=this.info.getElementsByTagName(NC.widget.ResumeWizard.StrEducationexperience);var q="<h1>Education Credentials</h1>";var o="Date";var g="School";var d="Degree";q+=this.startFieldContainer();q+=this.createFieldHeader(o,7);q+=this.createFieldHeader(g,35);q+=this.createFieldHeader(d,10);q+=this.endFieldContainer();if(f.getLength()==0){this.addRowAtEnd();f=this.info.getElementsByTagName(NC.widget.ResumeWizard.StrEducationexperience)}for(var r=0;r<f.getLength();r++){var c=f.item(r).getChildNodes();var b="";var n="";var e="";var t=true;for(var k=0;k<c.getLength();k++){var s=c.item(k);var a=null;if(s.getFirstChild()!=null){var p=s.getFirstChild().getNodeValue();switch(s.getNodeName()){case NC.widget.ResumeWizard.StrSchool:n=p;break;case NC.widget.ResumeWizard.StrDegreecode:b=(p.charAt(0).toUpperCase()+p.substr(1).toLowerCase());break;case NC.widget.ResumeWizard.StrDegreeDate:if(p==NC.widget.ResumeWizard.StrNoContent){p=""}e=p;break;case NC.widget.ResumeWizard.StrFlags:if(p==NC.widget.ResumeWizard.DeletedRow){t=false}break}}}if(t){q+=this.startFieldContainer();q+=this.createTextEditField("",NC.widget.ResumeWizard.makeResumeEditFieldName(NC.widget.ResumeWizard.StrDegreeDate+r),e,7,10,1);q+=this.createTextEditField("",NC.widget.ResumeWizard.makeResumeEditFieldName(NC.widget.ResumeWizard.StrSchool+r),n,35,50,1);q+=this.createTextEditField("",NC.widget.ResumeWizard.makeResumeEditFieldName(NC.widget.ResumeWizard.StrDegreecode+r),b,10,10,1);var l="NC.widget.ResumeWizard.addEducationRow("+r+")";var j="NC.widget.ResumeWizard.deleteEducationRow("+r+")";q+=this.createButton(NC.widget.ResumeWizard.makeResumeEditFieldName(NC.widget.ResumeWizard.StrAddButton+r),l,"../imagesv2/addaction.gif");q+=this.createButton(NC.widget.ResumeWizard.makeResumeEditFieldName(NC.widget.ResumeWizard.StrDeleteButton+r),j,"../images/deleteaction.gif");q+=this.endFieldContainer()}}var m="NC.widget.ResumeWizard.addEducationRowAtEnd()";q+='<a href="javascript:'+m+'">Add another row here</a>';q+="<br>Enter dates as mm/yyyy.";h.innerHTML=q},save:function(){var f=this.info.getElementsByTagName(NC.widget.ResumeWizard.StrEducationexperience);for(var d=0;d<f.getLength();d++){var a=f.item(d).getChildNodes();var b="";var c="";for(var k=0;k<a.getLength();k++){var j=a.item(k);if(j.getFirstChild()!=null){var h=j.getFirstChild().getNodeValue();var e=true;switch(j.getNodeName()){case NC.widget.ResumeWizard.StrSchool:fieldName=NC.widget.ResumeWizard.StrSchool+d;break;case NC.widget.ResumeWizard.StrDegreecode:fieldName=NC.widget.ResumeWizard.StrDegreecode+d;break;case NC.widget.ResumeWizard.StrDegreeDate:fieldName=NC.widget.ResumeWizard.StrDegreeDate+d;break;case NC.widget.ResumeWizard.StrSchoolType:fieldName=NC.widget.ResumeWizard.StrSchoolType+d;e=false;break;case NC.widget.ResumeWizard.StrSchoolGpa:fieldName=NC.widget.ResumeWizard.StrSchoolGpa+d;e=false;break;case NC.widget.ResumeWizard.StrFlags:fieldName=NC.widget.ResumeWizard.StrFlags+d;e=false;break;case NC.widget.ResumeWizard.StrPrivacy:fieldName=NC.widget.ResumeWizard.StrPrivacy+d;e=false;break}if(fieldName!=null&&e==true){h=NC.widget.ResumeWizard.getFieldValue(fieldName);if(j.getFirstChild()!=null){j.getFirstChild().setNodeValue(h)}else{var g=this.domDocument.createTextNode(h);j.appendChild(g)}}}}}},validate:function(f){var o="";var h=this.info.getElementsByTagName(NC.widget.ResumeWizard.StrEducationexperience);for(var e=0;e<h.getLength();e++){var a=h.item(e).getChildNodes();var c=null;var d=null;var k=null;var l=false;var b=null;for(var n=0;n<a.getLength();n++){var m=a.item(n);if(m.getFirstChild()!=null){var j=m.getFirstChild().getNodeValue();var g=true;switch(m.getNodeName()){case NC.widget.ResumeWizard.StrSchool:fieldName=NC.widget.ResumeWizard.StrSchool+e;d=NC.widget.ResumeWizard.getFieldValueNull(fieldName);break;case NC.widget.ResumeWizard.StrDegreecode:fieldName=NC.widget.ResumeWizard.StrDegreecode+e;c=NC.widget.ResumeWizard.getFieldValueNull(fieldName);break;case NC.widget.ResumeWizard.StrDegreeDate:fieldName=NC.widget.ResumeWizard.StrDegreeDate+e;k=NC.widget.ResumeWizard.getFieldValueNull(fieldName);if(k==null||k=="-"){k=""}var l=NC.widget.ResumeWizard.validateDate(k);break;case NC.widget.ResumeWizard.StrFlags:b=m.getFirstChild().getNodeValue();break}}}if(b!=null&&b!=NC.widget.ResumeWizard.DeletedRow){if(d.length==0&&c.length==0&&k.length==0){o="Fill in or delete blank rows.";break}if(k.length>0&&l==false){o="Enter a valid date (mm/yyyy)"}}}if(o.length>0){f.showError(o);return false}else{return true}},serialize:function(){},deleteRow:function(e){this.save();var h=this.info.getElementsByTagName(NC.widget.ResumeWizard.StrEducationlist);if(h!=null){var k=h.item(0);var b=k.getChildNodes();var i=b.item(e);var n=i.getChildNodes();var f=false;for(var o=0;o<n.getLength();o++){var m=n.item(o);if(m.getFirstChild()!=null){var j=m.getNodeName();if(j==NC.widget.ResumeWizard.StrFlags){f=true;var d=m.getFirstChild();d.nodeValue=NC.widget.ResumeWizard.DeletedRow}}}if(f==false){var a=this.domDocument.createElement(NC.widget.ResumeWizard.StrPrivacy);var g=this.domDocument.createTextNode(NC.widget.ResumeWizard.PrivacyDefault);a.appendChild(g);var c=this.domDocument.createElement(NC.widget.ResumeWizard.StrFlags);var l=this.domDocument.createTextNode(NC.widget.ResumeWizard.DeletedRow);c.appendChild(l);i.appendChild(a);i.appendChild(c)}}else{alert("edlist is null")}},createNewRow:function(){var c=this.domDocument.createElement(NC.widget.ResumeWizard.StrSchool);var e=this.domDocument.createTextNode("");c.appendChild(e);var f=this.domDocument.createElement(NC.widget.ResumeWizard.StrDegreecode);var i=this.domDocument.createTextNode("");f.appendChild(i);var h=this.domDocument.createElement(NC.widget.ResumeWizard.StrDegreeDate);var g=this.domDocument.createTextNode("");h.appendChild(g);var k=this.domDocument.createElement(NC.widget.ResumeWizard.StrEducationexperience);var a=this.domDocument.createElement(NC.widget.ResumeWizard.StrPrivacy);var d=this.domDocument.createTextNode(NC.widget.ResumeWizard.PrivacyDefault);a.appendChild(d);var b=this.domDocument.createElement(NC.widget.ResumeWizard.StrFlags);var j=this.domDocument.createTextNode(NC.widget.ResumeWizard.NewRow);b.appendChild(j);k.appendChild(c);k.appendChild(f);k.appendChild(h);k.appendChild(a);k.appendChild(b);return k},addRowBefore:function(e){this.save();var c=this.createNewRow();var a=this.info.getElementsByTagName(NC.widget.ResumeWizard.StrEducationlist);if(a!=null){var b=a.item(0);var f=b.getChildNodes();if(e<f.getLength()){var d=f.item(e);b.insertBefore(c,d)}}else{}},addRowAtEnd:function(){this.save();var c=this.createNewRow();var a=this.info.getElementsByTagName(NC.widget.ResumeWizard.StrEducationlist);if(a!=null){var b=a.item(0);b.appendChild(c)}else{}}});(function(){NC.widget.ResumeWizard=function(){var b=null;var d=null;var c=null;var a=function a(){alert("test")};return{StrWizardFieldPrefix:"NCWizardField_",PrivacyDefault:"0",NewRow:"1",DeletedRow:"2",StrNoContent:"-",StrErrorcode:"errorcode",StrErrormessage:"errormessage",StrResumeinfo:"resumeinfo",StrResumeid:"resumeid",StrMd5id:"md5id",StrEmail:"email",StrZipcode:"zipcode",StrRandomzipcode:"randomzipcode",StrRandomcity:"randomcity",StrRandomstate:"randomstate",StrRecommendation:"recommendation",StrFirstname:"firstname",StrFullname:"fullname",StrJobinfo:"jobinfo",StrCategory:"category",StrCategoryid:"categoryid",StrCategoryweight:"categoryweight",StrCategoryname:"categoryname",StrTotaljobs:"totaljobs",StrTotaljobsforcategory:"totaljobsforcategory",StrTopcategorylabel:"topcategorylabel",StrStartdate:"startdate",StrEnddate:"enddate",StrCompanyandtitle:"companyandtitle",StrPrivacy:"privacy",StrFlags:"flags",StrWorkexperience:"workexperience",StrEducationexperience:"educationexperience",StrSchool:"school",StrSchoolType:"schooltype",StrSchoolGpa:"gpa",StrDegreecode:"degreecode",StrDegreeDate:"degreedate",StrModified:"modified",StrHomephone:"homephone",StrWorkphone:"workphone",StrMobilephone:"mobilephone",StrStreet:"street",StrCity:"city",StrState:"state",StrCountry:"country",StrAddress:"address",StrAddress2:"address2",StrAddress3:"address3",StrPhonenumbers:"phonenumbers",StrCategoryList:"categoryList",StrTopjobs:"topjobs",StrTotalJobAlerts:"totalJobAlerts",StrWorklist:"worklist",StrEducationlist:"educationlist",StrLastname:"lastname",StrMiddleinitial:"middleinitial",StrNamesuffix:"namesuffix",StrNameprefix:"nameprefix",StrNCScore:"ncscore",StrTopCategoryName:"topcategoryname",StrTopCategoryId:"topcategoryid",StrTopCategoryScore:"topcategoryscore",StrManagerCategory:"managercategory",StrManagerScore:"managerscore",StrPublicProfile:"publicprofile",MangerCategory_Other:1,ManagerCategory_Manager:2,ManagerCategory_Exec:4,StrExplanation:"explanation",StrEmploymentCount:"employmentCount",StrAverageEmpDescLength:"averageEmpDescLength",StrEducationCount:"educationCount",StrResumeLength:"resumeLength",StrResumeTextLength:"resumeTextLength",StrAddButton:"add",StrDeleteButton:"delete",StrNCWizScorePage:"NCWizScorePage",StrNCWizWorkHistoryPage:"NCWizWorkHistoryPage",StrNCWizContactPage:"NCWizContactPage",StrNCWizEducationPage:"NCWizExperiencePage",create:function(j,f,h,g,i,k){d=f;c=d.getDocumentElement();var e=new Array(3);e[0]=new NC.widget.ContactInfoPage(d);e[1]=new NC.widget.WorkHistoryPage(d);e[2]=new NC.widget.EducationHistoryPage(d);if(g==null){g=this.updateResumeInfo}b=new NC.widget.Wizard("Review Resume Information",j,e,0,g,i,null,h,k);b.compose();return b},display:function(){b.init()},addPageToBeginning:function(e){b.addPageToBeginning(e)},addPageToEnd:function(e){b.addPageToEnd(e)},addValidationToPage:function(e,g){var f=b.getPageByLabel(e);f.setValidateFn(g)},updateResumeInfo:function(h){var g=encode64(c.toString());var g=encodeURIComponent(g);var e="EncodedResumeInfo="+g;var i={success:function(k){if(h!=null){h()}else{var j=document.getElementById(b.targetDivId);j.innerHTML=k.responseText}},failure:function(j){},scope:this};var f=new NC.util.AjaxConnection("POST",b.updateUrl,e);f.addUnprecedentedParameter();f.executeMethod(i)},addWorkExperienceRow:function(f){var e=b.getPageByLabel(this.StrNCWizWorkHistoryPage);e.addRowBefore(f);b.renderCurrentPage()},addWorkExperienceRowAtEnd:function(){var e=b.getPageByLabel(this.StrNCWizWorkHistoryPage);e.addRowAtEnd();b.renderCurrentPage()},deleteWorkExperienceRow:function(f){var e=b.getPageByLabel(this.StrNCWizWorkHistoryPage);e.deleteRow(f);b.renderCurrentPage()},addEducationRow:function(f){var e=b.getPageByLabel(this.StrNCWizEducationPage);e.addRowBefore(f);b.renderCurrentPage()},addEducationRowAtEnd:function(f){var e=b.getPageByLabel(this.StrNCWizEducationPage);e.addRowAtEnd();b.renderCurrentPage()},deleteEducationRow:function(f){var e=b.getPageByLabel(this.StrNCWizEducationPage);e.deleteRow(f);b.renderCurrentPage()},makeResumeEditFieldName:function(e){return NC.widget.ResumeWizard.StrWizardFieldPrefix+e},getFieldValue:function(e){var h=this.makeResumeEditFieldName(e);var f=document.getElementById(h);var g="";if(f!=null){g=NC.util.Dom.getValue(f)}else{}return g},getFieldValueNull:function(e){var h=this.makeResumeEditFieldName(e);var f=document.getElementById(h);var g=null;if(f!=null){g=NC.util.Dom.getValue(f)}else{}return g},updateEncodedFieldValue:function(e){var f=this.getFieldValue(e);if(f==null){f=""}NC.util.Dom.updateEncodedField(d,e,f)},updateFieldValue:function(e){var f=this.getFieldValue(e);if(f==null){f=""}NC.util.Dom.updateField(d,e,f)},getDomDocument:function(){return d},validateDate:function(f){if(f.length>0){var e=f.split("/");if(e.length==2){if(e[0]>0&&e[0]<13&&e[1]>1900){return true}}}return false},getDateMonths:function(f){if(f.length>0){var e=f.split("/");if(e.length==2){if(e[0]>0&&e[0]<13&&e[1]>1900){return(e[1]-1900)*12+(e[0]-1)}}}return 0},validateDateRange:function(e,g){var h=this.getDateMonths(e);var f=this.getDateMonths(g);if(h>0&&f>0&&f>h){return true}else{return false}},validatePhoneNumber:function(e){var f=new RegExp("^[+]*[0-9]*[- ]*[\\(]?(\\d{3})[\\)]?[- ]?(\\d{3})[- ]?(\\d{4})$");if(e.search(f)==-1){return false}else{return true}}}}()})();function copyDiv(c,b){var d=document.getElementById(c);var a=document.getElementById(b);if(d!=null&&a!=null){a.innerHTML=d.innerHTML}else{if(d==null){}if(a==null){}}}function copyDivToIFrame(c,b){var a=document.getElementById(c);a.innerHTML='<iframe src="'+b+'" width= "100%" height="400" id="center1" name="center1"></iframe>'}function copyToDiv(b,c){var a=document.getElementById(b);a.innerHTML=c}function showDiv(b){var a=document.getElementById(b);a.style.display="block"}function hideDiv(b){var a=document.getElementById(b);a.style.display="none"}function layoutPanel(c,g,e,j){var l=e+j;if(j==-1){l=32767}var b=false;if(c!=null&&e<g.length){c.innerHTML="";for(var h=e;h<l&&h<g.length;h++){b=document.getElementById(g[h][0]);var d="";var f=g[h][1];var a=g[h][2];var m=g[h][3];if(a>0){d=" style='border: "+f+" "+a+"px solid;'"}var k="<div id="+g[h][0]+"_l"+d+">"+b.innerHTML+"</div>";c.innerHTML+=k;if(m>0){c.innerHTML+="<div id="+g[h][0]+"_sp style='height:"+m+"px;font-size:0;'></div>"}}return l}else{return -1}}function layout(g,a,i,e){var c=0;var b=document.getElementById(a);var f=document.getElementById(i);var h=document.getElementById(e);var d=6;if(b!=null&&f!=null){d=Math.floor((g.length+1)/2)}if(f==null&&h==null){d=g.length}c=layoutPanel(b,g,c,d);if(c!=-1){c=layoutPanel(f,g,c,-1);if(c!=-1){c=layoutPanel(h,g,c,-1)}}}function setStatus(a){copyToDiv("Status",a)}function showJobAlertWindow(c,d,a,b){style="";if(a!=-1&&b!=-1){var f=(screen.width-a)/2;var e=(screen.height-b)/2;style="width="+a+",height="+b+",top="+e+",left="+f}if(style.length>0){style+=","}style+="toolbar=yes,menubar=yes,status=yes,resizable=yes,scrollbars=yes";awindow=window.open(d);awindow.focus()}function replacePage(a){window.location=a}function test(){alert("test")};if(typeof NC.util=="undefined"){alert("ajaxv2.js requires the NC JavaScript framework")}(function(){NC.util.AjaxManager=function(){var g=new Array;var R=-1;var q="historyFrame";var I="historyForm";var O="historyIndex";var d=0;var m="MainFrame";var i="Location: ";var a="Draft";var s="NewJob";var C="JobId";var P="JobTitle";var A="JobReqNumber";var G="ResponseEmail";var v="PreviousResponseEmail";var S="PrimaryCategory";var N="PrimaryCategoryScore";var L="SecondaryCategory";var w="SecondaryCategoryScore";var Q="ManagerScoreCode";var E="Location";var n="ZipCode";var o="CityState";var r="MinExperience";var u="MaxExperience";var h="SpecificCompanies";var k="RequiredDegree";var x="SchoolRank";var z="SpecificSchools";var H="Distance";var t="RestrictToState";var l="AcceptScore";var M="UseMatch";var D="Broadcast";var f="EmailSelected";var b="Active";var e="SearchKeyWords";var c="SearchType";var F="SearchIndustry";var K="SearchDaysBack";var J=false;var y="MainFrame";var p="ncfunc:";var B="This invite code is invalid or no longer available. To request an invite code, please click Don't have one? below.";return{_xmlHttpGet:function(Y,T,W){var X=new NC.util.AjaxUpdate("GET",Y,T,T,null);if(W){this.addMainFrameHistory(Y)}X.doUpdate();var U=NC.util.AjaxManager.findContentType(Y);if(U>-2&&window.oContentTabContainer!=null){var V=window.oContentTabContainer.getTabForContentType(U);if(V!=null){NC.widget.TabView.selectTab("ContentTabList",V)}}},_postDraft:function(U,T,V){baseFormName="JobEditForm";NC.util.Dom.setElementValue(baseFormName,a,1);draftValue=NC.util.Dom.getElementValue(baseFormName,a);this._postUpdatedJob(U,T,V)},_postSearch:function(V,T,Y){var Z="JobEditForm";var X=document.forms[Z];var W=NC.util.Dom.getFormElement(X,P);var U=NC.util.Dom.getFormElement(X,n);if(W.value.length==0){W.value="$"}if(U.value.length==0){U.value="94539"}this._postJob(V,T,Y)},_postJob:function(V,U,W){var X="JobEditForm";NC.util.Dom.setElementValue(X,a,0);var T=NC.util.Dom.getElementValue(X,a);this._postUpdatedJob(V,U,true,W)},_postUpdatedJob:function(U,ae,Z,Y){var ah="JobEditForm";var af=NC.util.Dom.getElementValue(ah,P);var ad=NC.util.Dom.getElementValue(ah,G);var ac=NC.util.Dom.getElementValue(ah,n);var V=NC.util.Dom.getElementValue(ah,S);var W=NC.util.Dom.getElementValue(ah,e);var T=NC.util.Dom.getElementValue(ah,Q);var ab=false;if(af.length==0||ad.length==0||ac.length==0){this.showError("Please enter all the information requested in red.");ab=true}else{if(V==0&&W.length==0&&T<0){if(Y==false){this.showError("Please select a primary category, management experience or select search key words.")}else{this.showError("Please select a professional experience category.")}ab=true}else{this.setDivModifiedFlag(false);NC.util.RefreshManager.setSearchPending(0);this._postRequest("JobEditForm",U,ae)}}if(ab){Z=false}if(Z){var aa=false;this.clearError();if(ae.length==0){ae=NC.util.AjaxDialogDisplay.ProgressDialog;aa=true}var ag=null;var X=null;if(ae=="NCPromo"){ag={};X="./promoProgress.php"}else{X="./searchInProgress.php";ag={ok:this.goToPreviousPage}}NC.widget.MessageManager.showDialog(X,ae,ag,aa,300)}else{if(ab==false){this.showPreviousMainFrameContent()}else{}}},goToPreviousPage:function(U,T){showPreviousMainFrameContent()},onDeleteJobSuccess:function(T){this.showCurrentMainFrameContent()},onDeleteJobFailure:function(T){alert("Job deletion failed. Please contact NimbleCat Customer Support")},_deleteJob:function(V,U){var W={success:this.onDeleteJobSuccess,failure:this.onDeleteJobFailure,scope:this};var T=new NC.util.AjaxConnection("GET",V,null);T.executeMethod(W)},_postRequest:function(ab,V,aa){var T=document.forms[ab];if(T!=null){var U="";for(var W=0;W<T.elements.length;W++){var X=T.elements[W];if(!X.disabled){if(U.length>0&&U.charAt(U.length-1)!="&"){U+="&"}switch(X.type){case"hidden":case"text":case"textarea":var Z=escape(X.value);U+=X.name+"="+Z;break;case"checkbox":if(X.checked){U+=X.name+"="+X.value}break;case"radio":if(X.checked){U+=X.name+"="+X.value}break;case"select-one":U+=X.name+"="+X.value;break;case"select-multiple":for(j=0;j<X.length;j++){if(X.options[j].selected){if(U.length>0&&U.charAt(U.length-1)!="&"){U+="&"}U+=X.name+"[]="+X.options[j].value}}break;default:}}}var Y;if(aa.length>0){Y=this._xmlHttpPostUpdatePage(V,U,aa)}else{Y=this._xmlHttpPostUpdateMain(V,U)}}else{alert("form not invoked")}},updatepage:function(U,T){div=document.getElementById(T);div.innerHTML=U},replacePage:function(T){window.location=T},_xmlHttpPostUpdateMain:function(W,T){var V={success:function(Z){var X=i;var Y=Z.responseText.indexOf(X);if(Y==0){url=Z.responseText.substring(Y+X.length);this._xmlHttpGet(url,m,true)}else{if(Z.responseText.length>0){this.updatepage(Z.responseText,m)}}},failure:function(X){},scope:this};var U=new NC.util.AjaxConnection("POST",W,T);U.executeMethod(V)},_xmlHttpPostUpdatePage:function(X,U,T){var W={success:function(aa){var Y=i;var Z=aa.responseText.indexOf(Y);if(Z==0){url=aa.responseText.substring(Z+Y.length);this.replacePage(url)}else{if(aa.responseText.length>0){this.updatepage(aa.responseText,T)}}},failure:function(Z){var Y="<li>Transaction id: "+Z.tId+"</li>";Y+="<li>HTTP status: "+Z.status+"</li>";Y+="<li>Status code message: "+Z.statusText+"</li>";Y+="<li>HTTP headers: <ul>"+Z.getAllResponseHeaders+"</ul></li>";Y+="<li>Server response: "+Z.responseText+"</li>"},scope:this};var V=new NC.util.AjaxConnection("POST",X,U);V.executeMethod(W)},getDivModifiedFlag:function(){return J},setDivModifiedFlag:function(T){J=T},getDivModifiedName:function(){return y},setDivModifiedName:function(T){y=T},addUnprecedentedParameter:function(T,U){if(U.indexOf("?")==-1){U+="?"+T+"="+new Date().getTime()}else{U+="&"+T+"="+new Date().getTime()}return U},findContentType:function(X){var V=X.split("?");if(V.length==2){var U=V[1].split("&");for(var T=0;T<U.length;T++){var W=U[T].split("=");if(W.length>0&&W[0]=="ct"){return W[1]}}}return -1},showHistoryUrl:function(X){var W=X.indexOf(p);var T=-2;if(W>-1){var V=X.substring(W+p.length);if(V.indexOf("showscore")>=0){NC.widget.ResumeUploadManager.showResumeInfo("MainFrame");T=7}else{if(V.indexOf("showjshome")>=0){NC.widget.MemberManager.showMemberHome();T=-1}else{if(V.indexOf("showemphome")>=0){NC.widget.MemberManager.showEmployerHome();T=-1}else{if(V.indexOf("showjsquickstart")>=0){NC.widget.MemberManager.showMemberQuickStart();T=-1}else{if(V.indexOf("invitemember")>=0){NC.widget.CandidateManager.showInvitePopup("inviteMemberForm.php","JsInviteForm","do_invite.php","",null,2,-1);T=-1}else{if(V.indexOf("showgetbadge")>=0){NC.widget.MemberManager.showGetBadge();T=7}else{if(V.indexOf("uploadresume")>=0){showUploadPane("centercontent");T=7}else{if(V.indexOf("updateprivacy")>=0){NC.widget.DashboardManager.showJsSelectPrivacyPopup(null,-1,false);T=7}else{if(V.indexOf("updateprofile")>=0){NC.widget.ResumeUploadManager.editResumeInfo(null,"./getResumeInfo.php","centercontent");T=7}else{if(V.indexOf("showjobalertmap")>=0){NC.widget.GmapManager.showJobAlertMap();T=1}else{}}}}}}}}}}}else{this._xmlHttpGet(X,m,false)}if(T==-2){T=this.findContentType(X)}if(T>-2&&window.oContentTabContainer!=null){var U=window.oContentTabContainer.getTabForContentType(T);NC.widget.TabView.selectTab("ContentTabList",U)}},addMainFrameHistory:function(V){R+=1;g[R]=V;g.length=R+1;var T=document.forms[I];var U=NC.util.Dom.getFormElement(T,O);U.value=R;T.submit();d+=1;this.showNavigationBar()},showCurrentMainFrameContent:function(){if(R>=0){strURL=this.addUnprecedentedParameter("ms1",g[R]);this.showHistoryUrl(strURL)}else{window.location.reload()}},showNextMainFrameContent:function(){if(R<g.length-1){R+=1;this.showHistoryUrl(g[R]);this.showNavigationBar()}},popHistoryPointer:function(){if(R>0){R-=1}},showPreviousMainFrameContent:function(){if(R>0){R-=1;this.showHistoryUrl(g[R]);this.showNavigationBar()}else{this.showCurrentMainFrameContent()}},historyIframeLoaded:function(){if(d>1){d-=1}},createNavigationBar:function(){navBar='<ul  class="nextprev">';prevWritten=false;nextWritten=false;if(R>0){navBar+='<li>| <a href="#" onclick="showPreviousMainFrameContent()">&lt;Previous</a></li>';prevWritten=true}if(R<g.length-1){if(prevWritten){navBar+="&nbsp;"}navBar+="<li>";if(!prevWritten){navBar+="| "}navBar+='<a href="#" onclick="showNextMainFrameContent()">Next&gt;</a></li>';nextWritten=true}navBar+="</ul>";return navBar},showNavigationBar:function(){navigationDiv=document.getElementById("Navigation");if(navigationDiv!=null){document.getElementById("Navigation").innerHTML=this.createNavigationBar()}},hideNavigationBar:function(){navigationDiv=document.getElementById("Navigation");if(navigationDiv!=null){navigationDiv.style.display="none"}},displayNavigationBar:function(){navigationDiv=document.getElementById("Navigation");if(navigationDiv!=null){navigationDiv.style.display="block"}},displaySearchResults:function(V,T,W){var U=new NC.util.AjaxConnection("GET",V,"");var X={success:function(Z){var af=Z.responseText.substring(0,5);if(af=="<?xml"){var ab=Z.responseXML;var ad="";if(ab!=null){try{var ae=ab.getElementsByTagName("success").item(0).firstChild.data;if(ae==1){ad=ab.getElementsByTagName("content").item(0).firstChild.data;var aa=ab.getElementsByTagName("selectionid").item(0).firstChild.data;NC.promo.PromoManager.setSelectionId(aa)}}catch(ac){alert("Exception")}}else{ad=Z.responseText}}else{ad=Z.responseText}var ag=U.substituteTags(ad);U.refreshDivs();var Y=document.getElementById(T);Y.innerHTML=ag;if(W){this.addMainFrameHistory(V)}},failure:function(Y){},scope:this};U.executeMethod(X)},getNcFuncFlag:function(){return p},clearError:function(){var T=document.getElementById("NCError");T.style.display="none";T.innerHTML=""},showError:function(T){var U=document.getElementById("NCError");U.style.display="block";U.innerHTML=T},doCandidateSearchCheckInvite:function(){var X=document.getElementById("InviteCode");var W=NC.util.Dom.getValue(X);var V={success:function(ab){if(ab.responseText.substr(0,1)=="1"){var aa={success:function(ac){},failure:function(ac){},scope:this};var Z="./incrementInviteCode.php?InviteCode="+W;var Y=new NC.util.AjaxConnection("GET",Z,"");Y.executeMethod(aa);NC.util.AjaxManager._postSearch("do_updatejob_ajax.php","NCPromo",true)}else{NC.util.AjaxManager.showError(B)}},failure:function(Y){},scope:this};var U="./checkInviteCode.php?InviteCode="+W;var T=new NC.util.AjaxConnection("GET",U,"");T.executeMethod(V)}}}()})();xmlHttpGet=function(b,a){NC.util.AjaxManager._xmlHttpGet(b,"MainFrame",a)};xmlHttpPostUpdateMain=function(b,a){NC.util.AjaxManager._xmlHttpPostUpdateMain(b,a)};xmlHttpPostUpdatePage=function(c,b,a){NC.util.AjaxManager._xmlHttpPostUpdatePage(c,b,a)};postRequest=function(b,c,a){NC.util.AjaxManager._postRequest(b,c,a)};postDraft=function(b,a,c){NC.util.AjaxManager._postDraft(b,a,c)};postSearch=function(b,a,c){NC.util.AjaxManager._postSearch(b,a,c)};postJob=function(b,a,c){NC.util.AjaxManager._postJob(b,a,c)};showPreviousMainFrameContent=function(){NC.util.AjaxManager.showPreviousMainFrameContent()};showNextMainFrameContent=function(){NC.util.AjaxManager.showNextMainFrameContent()};popHistoryPointer=function(){NC.util.AjaxManager.popHistoryPointer()};hideSearchDivs=function(){var c=document.getElementById("SearchJobCompany");var a=document.getElementById("SearchJobCategory");var b=document.getElementById("SearchJobDistance");if(c!=null){c.style.display="none"}if(a!=null){a.style.display="none"}if(b!=null){b.style.display="none"}};function showSearchDivs(){var c=document.getElementById("SearchJobCompany");var a=document.getElementById("SearchJobCategory");var b=document.getElementById("SearchJobDistance");if(c!=null){c.style.display=""}if(a!=null){a.style.display=""}if(b!=null){b.style.display=""}}function showJsNlSignupForm(a,g){hideSearchDivs();var h=document.getElementById("jslogin");var c=document.getElementById("jssignup");c.style.left=g.clientX+"px";c.style.top=g.clientY+"px";c.style.width="450px";c.style.display="block";h.style.display="none";var f=document.getElementById("refcode");if(f!=null){var e=f.innerHTML;a+="?refcode="+e;var d=document.getElementById("refname");if(d!=null){var b=d.innerHTML;if(b.length>0){a+="&refname="+b;a=encodeURI(a)}}}NC.util.AjaxManager._xmlHttpGet(a,"jssignup",false)}function hideJsSignupForm(){hideDiv("jssignup");var a=document.getElementById("jssignup");a.innerHTML="";showSearchDivs()}function showJsNlLoginForm(g,f){var e="";this.dialog=new NC.widget.ValidatedModalDialog(g,e,NC.util.AjaxDialogDisplay.DialogWrapper,"JsLogin",function(j,l,i){var k={success:function(m){alert("Success")},failure:function(m){alert("Failure")},scope:this};j+="?"+l;var h=new NC.util.AjaxConnection("GET",j,null);h.executeMethod(k)},"validate_employer_ajax.php4","",function(h,i){alert("validate");return true},"LoginError",true);var b=400;var a=350;var d=(NC.util.Dom.getViewportWidth()-a)/2;var c=300;this.dialog.show(d,c,a)}function hideLoginForm(){hideDiv("jslogin");var a=document.getElementById("jslogin");a.innerHTML="";showSearchDivs()}function postJsLoginRequest(i,h){var a=document.forms.JsLogin;var b="";var g=a.Email;var j=a.Password;var d=a.Employer;b+="Email="+g.value+"&";b+="Password="+j.value;var e;if(d.value==1||d.checked){var c="./alerts/validate_employer_ajax.php4";if(h==false){c="./validate_employer_ajax.php4"}e=xmlHttpPostUpdatePage(c,b,i)}else{var f="./alerts/validate_user_ajax.php4";if(h==false){f="./validate_user_ajax.php4"}e=xmlHttpPostUpdatePage(f,b,i)}}function postJsSignupRequest(k){var c=document.forms.JsSignup;var d="";var b=c.NewName;var i=c.NewEmail;var l=c.Password;var e=c.Password1;var f=c.Question;var m=c.Answer;var j=c.ScreenName;var a=c.refcode;var h=c.Cid;d+="NewName="+b.value+"&";d+="NewEmail="+i.value+"&";d+="ScreenName="+j.value+"&";d+="Password="+l.value+"&";d+="Password1="+e.value+"&";d+="Question="+f.value+"&";d+="Answer="+m.value+"&";d+="Cid="+h.value+"&";d+="refcode="+a.value;var g=xmlHttpPostUpdatePage("./alerts/js_dosignup_ajax.php",d,k)}function applyForJob(a){popHistoryPointer();showPreviousMainFrameContent();window.open("./ah2.php?jid="+a,"ApplicationWindow")}function postInvitationRequest(){var c=document.forms.JsInviteForm;var b="";var d=c.EmailAddress;var f=c.Subject;var a=c.Body;b+="EmailAddress="+d.value+"&";b+="Subject="+f.value+"&";b+="Body="+a.value;var e=xmlHttpPostUpdatePage("./do_send_mail_form_actions.php",b,"centercontent")}function postSendInvitation(){var c=document.forms.JsPreviewFormSend;var b="";var d=c.EmailAddress;var g=c.Subject;var a=c.Body;var f=c.Command;b+="EmailAddress="+d.value+"&";b+="Subject="+g.value+"&";b+="Body="+a.value+"&";b+="Command="+f.value;var e=xmlHttpPostUpdatePage("./do_inv_form_actions.php",b,"centercontent")}function postBackToPreview(){var c=document.forms.JsPreviewFormPreview;var b="";var d=c.EmailAddress;var g=c.Subject;var a=c.Body;var f=c.Command;b+="EmailAddress="+d.value+"&";b+="Subject="+g.value+"&";b+="Body="+a.value+"&";b+="Command="+f.value;var e=xmlHttpPostUpdatePage("./do_inv_form_actions.php",b,"centercontent")}function postUpdateResumeRequest(){var c=document.forms.JsResumeUpdateForm;var a="";var b=c.Resume;a="Resume="+escape(b.value);var d=xmlHttpPostUpdateMain("./js_do_changeresume.php4",a)};(function(){NC.widget.Gmap=function(e,r,p,c,j){this.xml=c;this.map;this.lat=e;this.lng=r;this.options=p;this.otherOptions=j;this.userLoc;this.markerSize;this.markers=[];this.listeners=[];this.markerCluster;this.debug=false;this.logInfoWindow=false;this.logExtInfoWindow=false;this.urlBase64Encoded=false;var i;var d;this.setMarkerIconType("Default");this.setMarkerZoomLevel(12);this.setClusterGridSize(60);this.setClusterMaxZoom(8);this.setClusterIcon("Default");var q;var g;var a;var m;var s;var h=[];var b=[];var l;var f;var n;var k;var o;this.isTraffic=false;this.isSearch=false;if(p.showTraffic!=undefined){this.isTraffic=p.showTraffic}if(p.showSearch!=undefined){this.isSearch=p.showSearch}};NC.widget.Gmap.DefaultIcon="G_DEFAULT_ICON";NC.widget.Gmap.prototype={initialize:function(h){if(GBrowserIsCompatible()){var e={client:"pub-0839323522009213",adsafe:"high",language:"en"};var a={style:"new",adsOptions:e,showOnLoad:true,resultList:G_GOOGLEBAR_RESULT_LIST_SUPPRESS,suppressInitialResultSelection:true};this.map=new google.maps.Map(h,{googleBarOptions:a});var f=this.getLat();var c=this.getLng();var b=this.options;this.map.setUIToDefault();this.directions=null;if(b.zoom!==undefined){var g=b.zoom}this.userLoc=google.loader.ClientLocation?new google.maps.LatLng(google.loader.ClientLocation.latitude,google.loader.ClientLocation.longitude):null;this.map.setCenter(new google.maps.LatLng(f,c),g);var d={incidents:true,hide:true};trafficInfo=new GTrafficOverlay(d);this.map.addOverlay(trafficInfo);if(this.isTraffic){trafficInfo.show()}if(this.isSearch){this.map.enableGoogleBar()}}this.showMessage("Preparing jobs alerts for display");this.parseXml(this.xml)},drawJobMap:function(a,e){jobs=NC.lang.JSON.parse(e);if(GBrowserIsCompatible()){var f={client:"pub-0839323522009213",adsafe:"high",language:"en"};var b={style:"new",adsOptions:f,showOnLoad:true,resultList:G_GOOGLEBAR_RESULT_LIST_SUPPRESS,suppressInitialResultSelection:true};this.map=new google.maps.Map(a,{googleBarOptions:b});var g=this.getLat();var h=this.getLng();var i=this.options;this.map.setUIToDefault();this.directions=null;if(i.zoom!==undefined){var c=i.zoom}this.userLoc=google.loader.ClientLocation?new google.maps.LatLng(google.loader.ClientLocation.latitude,google.loader.ClientLocation.longitude):null;this.map.setCenter(new google.maps.LatLng(g,h),c);var d={incidents:true,hide:true}}this.showMessage("Preparing jobs for display");this.addJobMarkers(jobs);GEvent.addListener(this.map,"zoomend",function(j,k){var l=NC.widget.GmapManager.getJobMap();l.showMarkers(k)})},showJobMarkers:function(b,a){this.deleteMarkers();this.markers=[];jobs=NC.lang.JSON.parse(a);this.addJobMarkers(jobs)},showMarkers:function(c){for(var b=0;b<this.markers.length;b++){var a=this.markers[b];if(c<4){if(a.color>=2){a.show()}else{a.hide()}}else{if(c<5){if(a.color>=1){a.show()}else{a.hide()}}else{a.show()}}}},deleteMarkers:function(c){for(var b=0;b<this.markers.length;b++){var a=this.markers[b];this.map.removeOverlay(a)}},addJobMarkers:function(a){try{for(var b=0;b<a.length;b++){this.addJobMarker(a[b]);this.showMessage(b+" job markers added.")}this.showMarkers(this.map.getZoom())}catch(c){this.showMessage("There was a system problem. Please contact NimbleCat Customer Support  :  "+c.name+":"+c.message+":"+c.description)}},addJobMarker:function(b){var h=new GIcon(G_DEFAULT_ICON);var d;if(b.color>=3){h.image="../gmap/images/green.png";d=2}else{if(b.color==2){h.image="../gmap/images/blue.png";d=1}else{h.image="../gmap/images/gray.png";d=0}}try{var i=new GLatLng(b.latitude,b.longitude);var j="";if(b.jobcount==1){j="1 job"}else{j=b.jobcount+" jobs"}var e=new GMarker(i,{icon:h,title:j+" near "+b.label,hide:true});var f="";f+='<div class="nc_jobwrapper">';f+='<div class="jobdetail">';var c=NC.widget.CategoryManager.getSelectedCategoryName();if(c.length<=0){c="all professions"}c=" for "+c+" near "+b.label;f+='<span class="jobtitle">'+j+c+".</span> ";f+="To get daily alerts for jobs like this, create your NimbleCat account. Start by clicking a Grade Profile or Grade Resume button.";f+="</div>";f+="</div";var a=this.getMap();GEvent.addListener(e,"click",function(){var k="width:250px;";e.openInfoWindowHtml("<div style='"+k+"'> "+f+"</div>")});e.color=d;this.addMarker(e);a.addOverlay(e)}catch(g){alert(g.name+":"+g.message);throw new Error("ERROR: in addJobMarker : "+g.description)}},checkWeatherButton:function(){if((this.otherOptions==undefined)||(this.otherOptions==null)||(this.otherOptions.weather==null)||(this.otherOptions.weather==undefined)){return}else{var a=document.getElementById("wid");a.style.display="inline"}},checkRouteButton:function(){if((this.otherOptions!=null)&&(this.otherOptions!=undefined)&&(this.otherOptions.route!=null)&&(this.otherOptions.route!=undefined)){var a=document.getElementById("rid");a.style.display="inline"}},getLat:function(){return this.lat},getLng:function(){return this.lng},getOptions:function(a){return this.options},parseXml:function(a){this.parseDocument(a)},parseDocument:function(b){try{this.showMessage("Ready to add job markers");var d=this.xml;var h=d.getElementsByTagName("marker");this.markerSize=h.length;for(var c=0;c<this.markerSize;c++){var a=h.item(c);if(a.hasChildNodes()){this.resetMarker();var f=this.parseMarker(a);this.initMarkers(f)}this.showMessage(c+" job markers added.")}this.initMarkerCluster(this.map)}catch(g){this.showMessage("There was a system problem. Please contact NimbleCat Customer Support  :  "+g.name+":"+g.message+":"+g.description);docRoot=null;domDocument=null}},parseMarker:function(d){var b=d.getElementsByTagName("position");this.extractPosition(b);var c=d.getElementsByTagName("location");this.extractLocation(c);var a=d.getElementsByTagName("job");var g=this.extractJob(a);this.setJoblist(g);var f=d.getElementsByTagName("jobdesc");this.extractJobDesc(f);var e=d.getElementsByTagName("markertip");this.extractMarkerTip(e)},extractPosition:function(a){try{var d=a.item(0);var g=d.getElementsByTagName("lat");var b=d.getElementsByTagName("lng");var h=g.item(0).firstChild.data;this.setMarkerLat(parseFloat(h));var c=b.item(0).firstChild.data;this.setMarkerLng(parseFloat(c));if(this.debug){alert("lat == "+this.getLat()+" lng == "+this.getLng())}}catch(f){alert(f.name+":"+f.message);alert("error : extractPosition == "+f.description)}},extractLocation:function(b){var d=b.item(0);var h=d.getElementsByTagName("city");var c=h.item(0).firstChild;if((c===null)||(c===undefined)){this.setMarkerCity("unknown")}else{this.setMarkerCity(c.data)}var g=d.getElementsByTagName("state");var f=g.item(0).firstChild;if((f===null)||(f===undefined)){this.setMarkerState("unknown")}else{this.setMarkerState(f.data)}var e=d.getElementsByTagName("zip");var a=e.item(0).firstChild;if((a===null)||(a===undefined)){this.setMarkerZip("unknown")}else{this.setMarkerZip(a.data)}if(this.debug){alert("location  == "+this.getMarkerCity()+" :  "+this.getMarkerState()+" : "+this.getMarkerZip())}},extractJob:function(h){var i=new Array();for(var d=0;d<h.length;d++){var c=h.item(d);var b=c.getElementsByTagName("jobtitle");this.extractJobtitle(b);var g=c.getElementsByTagName("joburl");this.extractJoburl(g);var f=c.getElementsByTagName("score");this.extractScore(f);var a=c.getElementsByTagName("source");this.extractSource(a);var e=c.getElementsByTagName("date");this.extractDate(e);var j=new Object();j.title=this.getJobtitle();j.url=this.getJoburl();j.score=this.getJobscore();j.source=this.getJobsource();j.date=this.getJobdate();i.push(j)}return i},extractJobDesc:function(a){this.setMarkerDesc(a.item(0).firstChild.data)},extractMarkerTip:function(a){this.setMarkerTip(a.item(0).firstChild.data)},extractJobtitle:function(a){this.setJobtitle(decode64(a.item(0).firstChild.data))},extractJoburl:function(b){var a=decode64(b.item(0).firstChild.data);this.setJoburl(a)},extractScore:function(a){this.setJobscore(a.item(0).firstChild.data)},extractSource:function(a){this.setJobsource(a.item(0).firstChild.data)},extractDate:function(a){this.setJobdate(a.item(0).firstChild.data)},initMarkers:function(g){var h=NC.env.ua.ie;var s=0;var a=this.getJoblist();for(var i=0;i<a.length;i++){var d=a[i];var l=(((d.score==null)||(d.score==undefined))?"":d.score);l=String(l);s=(l>s)?l:s}var p=new GIcon(G_DEFAULT_ICON);if(s>=72){p.image="../gmap/images/green.png"}else{if(s>=66){p.image="../gmap/images/blue.png"}else{p.image="../gmap/images/gray.png"}}try{var k=new GLatLng(this.markerLat,this.markerLng);var a=this.getJoblist();var m=((a.length>1)?"jobs":"job");var c=new GMarker(k,{icon:p,title:" "+a.length+" "+m});a=a.sort(function(v,u){var n=(((v.score==null)||(v.score==undefined))?"":v.score);var w=(((u.score==null)||(u.score==undefined))?"":u.score);n=parseInt(n);w=parseInt(w);return(w-n)});var f="";for(var i=0;i<a.length;i++){var d=a[i];var b=(((d.url==null)||(d.url==undefined))?"":d.url);var e=new String((d.title==null||d.title==undefined)?"":d.title);if(e.length>20){e=e.substr(0,20)+"..."}var t=(((d.title==null)||(d.title==undefined))?"":'<a href="'+b+'" target="_blank">'+e+"</a>");var l=(((d.score==null)||(d.score==undefined))?"":d.score);var j="From "+(((d.source==null)||(d.source==undefined))?"":d.source);var q=(((d.date==null)||(d.date==undefined))?"":d.date);if(i>0){f+='<div class="nc_job_separator">&nbsp;</div>'}if(h>0){f+='<span class="score_ie">'+l+'</span><span class="jobtitle_ie">&nbsp;'+t+'</span><br><span class=jobcontent_ie" style="color:#000000; font-size:11px;line-height:13px;font-weight:normal;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'+j+'</span><br> <span class=jobcontent_ie" style="color:#000000; font-size:11px;line-height:13px;font-weight:normal;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'+q+"</span>";f+="<br />"}else{f+='<div class="nc_jobwrapper">';f+="<h1>"+l+"</h1>";f+="<p>";f+='<span class="jobtitle">'+t+"</span>";f+="<br>";f+=j+"<br>";f+=q;f+="</p>";f+="</div"}}var r=this.getMap();GEvent.addListener(c,"click",function(){var v="width:250px;";var u="width:250px;height:100px; overflow:auto";if(h>0){u="width:250px;height:100px; overflow:visible; overflow-x:hidden; overflow-y:auto;padding"}var n=a.length>1?u:v;c.openInfoWindowHtml("<div style='"+n+"' "+f+"</div>")});this.addMarker(c)}catch(o){alert(o.name+":"+o.message);throw new Error("ERROR: in initMarkers : "+o.description)}},initMarkerCluster:function(d){this.initLog();var c=this.getClusterGridSize();var b=this.getClusterMaxZoom();var f={gridSize:c,maxZoom:b};try{var e=this.getMarkers();this.markerCluster=new MarkerClusterer(this.getMap(),e,f)}catch(a){alert("initMarkerCluster error : "+a.description);alert(a.name+":"+a.message);throw new Error("ERROR: in initMarkerCluster : "+a.description)}},initMarkerManager:function(){var a=this.getMap();var c=this.getMarkers();var b=new GMarkerManager(a);b.addMarkers(c,8);b.refresh()},initLog:function(){var a=this.getMap();if(this.getExtLogInfoWindow()){GLog.write("Tracking Events: extinfowindowopen, extinfowindowclose, extinfowindowbeforeclose, and extinfowindowupdate");GEvent.addListener(a,"extinfowindowupdate",function(){GLog.write("extinfowindowupdate found")});GEvent.addListener(a,"extinfowindowopen",function(){GLog.write("extinfowindowopen found")});GEvent.addListener(a,"extinfowindowbeforeclose",function(){GLog.write("extinfowindowbeforeclose found")});GEvent.addListener(a,"extinfowindowclose",function(){GLog.write("extinfowindowclose found")})}if(this.getLogInfoWindow()){GLog.write("Tracking Events: infowindowopen, infowindowclose, infowindowbeforeclose, and infowindowupdate");GEvent.addListener(a,"infowindowupdate",function(){GLog.write("infowindowupdate found")});GEvent.addListener(a,"infowindowopen",function(){GLog.write("infowindowopen found")});GEvent.addListener(a,"infowindowbeforeclose",function(){GLog.write("infowindowbeforeclose found")});GEvent.addListener(a,"infowindowclose",function(){GLog.write("infowindowclose found")})}},getLogInfoWindow:function(){return this.logInfoWindow},getExtLogInfoWindow:function(){return this.logExtInfoWindow},getMap:function(){return this.map},addMarker:function(a){this.getMarkers().push(a)},getMarkers:function(){return this.markers},setMarkers:function(a){this.markers=a},getListeners:function(){return this.listeners},addListener:function(a){this.getListeners().push(a)},getMarkerLat:function(){return this.markerLat},getMarkerLng:function(){return this.markerLng},getMarkerCity:function(){return this.markerCity},getMarkerState:function(){return this.markerState},getMarkerZip:function(){return this.markerZip},getMarkerTip:function(){return this.markerTip},getMarkerDesc:function(){return this.markerDesc},getMarkerIconType:function(){return this.markerIconType},getMarkerZoomLevel:function(){return this.markerZoomLevel},getClusterGridSize:function(){return this.clusterGridSize},getClusterMaxZoom:function(){return this.clusterMaxZoom},getClusterIcon:function(){return this.clusterIcon},getJobtitle:function(){return this.jobtitle},getJoburl:function(){return this.joburl},getJobscore:function(){return this.score},getJobsource:function(){return this.source},getJobdate:function(){return this.date},setMarkerLat:function(a){this.markerLat=a},setMarkerLng:function(a){this.markerLng=a},setMarkerCity:function(a){this.markerCity=a},setMarkerState:function(a){this.markerState=a},setMarkerZip:function(a){this.markerZip=a},setMarkerTip:function(a){this.markerTip=a},setMarkerDesc:function(a){this.markerDesc=a},setMarkerIconType:function(a){this.markerIconType=a},setMarkerZoomLevel:function(a){this.markerZoomLevel=a},setClusterGridSize:function(a){this.clusterGridSize=a},setClusterMaxZoom:function(a){this.clusterMaxZoom=a},setClusterIcon:function(a){this.clusterIcon=a},getJob:function(a){return this.job[a]},addJob:function(a){this.job.push(a)},getJoblist:function(){return this.joblist},setJoblist:function(a){this.joblist=a},setJobtitle:function(a){this.jobtitle=a},setJoburl:function(a){this.joburl=a},setJobscore:function(a){this.score=a},setJobsource:function(a){this.source=a},setJobdate:function(a){this.date=a},resetMarker:function(){this.markerLat=null;this.markerLng=null;this.markerCity=null;this.markerState=null;this.markerZip=null;this.markerTip=null;this.markerDesc=null},showRouteParams:function(){var a=document.getElementById("routeinput");if((a.style.display=="none")||(a.style.display=="")){a.style.display="block"}else{a.style.display="none"}},showRoute:function(){try{if((this.otherOptions.route!=null)&&(this.otherOptions.route!=undefined)){var d=document.getElementById(this.otherOptions.route);if(d){d.innerHtml=""}var g=document.getElementById("routefrom").value;var f=document.getElementById("routeto").value;g="from: "+g;f="to: "+f;if((this.directions!=null)&&(this.directions!=undefined)){this.directions.clear()}var a=this.otherOptions.route;var e=document.getElementById(a);this.directions=new GDirections(this.getMap(),e);var c=g+" "+f;this.directions.load(c,{locale:"en_US",getSteps:true,getPolyline:true})}else{throw alert("ERROR: showing route value "+b.description)}}catch(b){alert(b.name+":"+b.message);alert("ERROR: showing route value "+b.description)}},clearRoute:function(){var a=this.otherOptions.route;var b=document.getElementById(a);b.innerHTML="";document.getElementById("routefrom").value="";document.getElementById("routeto").value="";if((this.directions!=null)&&(this.directions!=undefined)){this.directions.clear()}},toggleSearch:function(){if(this.isSearch){this.isSearch=false;this.map.disableGoogleBar()}else{this.isSearch=true;this.map.enableGoogleBar()}},toggleTraffic:function(){var a=document.getElementById("TrafficButton");if(this.isTraffic){this.isTraffic=false;trafficInfo.hide();a.value="Show Traffic"}else{this.isTraffic=true;trafficInfo.show();a.value="Hide Traffic"}},getLocation:function(){if(this.userLoc!=null){this.map.setCenter(this.userLoc,13)}},showWeatherParams:function(){var a=document.getElementById("weatherinput");if((a.style.display=="none")||(a.style.display=="")){a.style.display="block"}else{a.style.display="none"}},clearWeather:function(){if((this.otherOptions.weather!=null)&&(this.otherOptions.weather!=undefined)){var a=document.getElementById(this.otherOptions.weather);if(a){a.innerHTML=""}document.getElementById("wcity").value="";document.getElementById("wstate").value=""}},displayWeather:function(){try{if((theMap.otherOptions.weather!=null)&&(theMap.otherOptions.weather!=undefined)){var h=document.getElementById(theMap.otherOptions.weather);h.innerHTML="";var f=document.getElementById("wcity").value;var b=document.getElementById("wstate").value;var a=function(i){var j=document.getElementById(theMap.otherOptions.weather);if(i.responseText!==undefined){j.innerHTML+="<li>Location: "+i.responseText+"</li>"}}}else{throw alert("ERROR: showing weather "+c.description)}var d=function(i){h.innerHTML="<li>HTTP status: "+i.status+"</li>"};var g={success:a,failure:d};var e=NC.util.Connect.asyncRequest("GET","weather.php?city="+f+"&state="+b+"&test=this is the time",g);var g={success:function(i){document.getElementById("weather")}}}catch(c){alert(c.name+":"+c.message);alert("ERROR: showing weather "+c.description)}},showMessage:function(b){if(this.debug){var a=document.getElementById("GmapMessage");a.innerHTML=b}}}})();if(typeof NC=="undefined"){alert("GmapModalDialog.js requires the NC JavaScript framework")}if(typeof NC.widget=="undefined"){alert("GmapModalDialog.js requires the NC JavaScript framework")}NC.widget.GmapModalDialog=function(a,e,d,f,c){var b=NC.widget.GmapModalDialog.superclass.constructor;b.call(this,a,e,d,f,c)};NC.lang.extend(NC.widget.GmapModalDialog,NC.widget.ModalDialog,{test:function(){}});(function(){NC.widget.GmapManager=function(){var a={zoom:3,area:"cover",showTraffic:false,showSearch:true};var c=-1;var b={};return{JOBALERTMAP:"jobalertmap",JOBMAP:"jobmap",register:function(e,d){b[e]=d},unregister:function(d){delete b[d]},lookup:function(d){return b[d]},getJobAlertMap:function(){return this.lookup(this.JOBALERTMAP)},getJobMap:function(){return this.lookup(this.JOBMAP)},showJobAlertMap:function(){var g=(NC.env.ua.ie>0&&NC.env.ua.ie<7);var f={success:function(l){var h=document.getElementById("centercontent");h.innerHTML=l.responseText;var j={success:function(n){if(g==false){var m=document.getElementById("GmapContainer");NC.widget.GmapManager.drawTestMap(m,n.responseXML)}},failure:function(m){alert("A System Error has occurred. Please contact customersupport@nimblecat.com")},scope:this};var k="getjobxmldata.php";var i=new NC.util.AjaxConnection("GET",k,null);i.executeMethod(j)},failure:function(h){alert("A System Error has occurred. Please contact customersupport@nimblecat.com")},scope:this};var e="gmapview1.php";if(g==true){e="gmapnotavailable.php"}var d=new NC.util.AjaxConnection("GET",e,null);d.executeMethod(f)},showJobMap:function(d,i,g,f){this.showProgress();var k=false;var j={success:function(q){var l=document.getElementById(d);l.innerHTML=q.responseText;var n={success:function(s){if(k==false){var r=document.getElementById("GmapContainer");NC.widget.GmapManager.drawJobMap(r,s.responseText);this.hideProgress()}},failure:function(r){this.hideProgress();alert("A System Error has occurred. Please contact customersupport@nimblecat.com")},scope:this};var p="getJobData.php?Category="+i+"&DateCode="+g;var m=new NC.util.AjaxConnection("GET",p,null);m.executeMethod(n)},failure:function(l){alert("A System Error has occurred. Please contact customersupport@nimblecat.com")},scope:this};var h=f;if(k==true){h="gmapnotavailable.php"}var e=new NC.util.AjaxConnection("GET",h,null);e.executeMethod(j)},refreshJobMapWithDate:function(d,h){gaPageTracker._trackEvent(NC.promo.PromoManager.getCpid(),"Click","SearchJobsByDate");var e=document.getElementById(h);var f=NC.util.Dom.getValue(e);c=f;var g=NC.widget.CategoryManager.getSelectedCategory();this.refreshJobMap(d,g,f)},refreshJobMap:function(d,i,f){this.showProgress();if(f==-1){f=c}var g={success:function(k){var j=document.getElementById("GmapContainer");NC.widget.GmapManager.showJobMarkers(j,k.responseText);this.hideProgress()},failure:function(j){this.hideProgress();alert("A System Error has occurred. Please contact customersupport@nimblecat.com")},scope:this};var h="getJobData.php?Category="+i+"&DateCode="+f;var e=new NC.util.AjaxConnection("GET",h,null);e.executeMethod(g)},drawTestMap:function(f,i){var g=NC.util.Region.getRegion(f);var e=g.right-g.left;var d=g.bottom-g.top;if(d<500){d=500}if(e>0){f.style.width=e+"px"}if(d>0){f.style.height=d+"px"}var h=new NC.widget.Gmap(38.8215,-92.735514,a,i);h.initialize(f);this.register(this.JOBALERTMAP,h)},drawJobMap:function(f,g){var h=NC.util.Region.getRegion(f);var e=h.right-h.left;var d=h.bottom-h.top;if(d<380){d=380}if(e>0){f.style.width=e+"px"}if(d>0){f.style.height=d+"px"}var i=new NC.widget.Gmap(38.8215,-92.735514,a,null);i.drawJobMap(f,g);this.register(this.JOBMAP,i)},showJobMarkers:function(d,e){var f=this.getJobMap();f.showJobMarkers(d,e)},showProgress:function(){var d=document.getElementById("GmapProgress");d.innerHTML='<img src="../imagesv2/circle-ball-dark-antialiased.gif" border="0">'},hideProgress:function(){var d=document.getElementById("GmapProgress");d.innerHTML=""}}}()})();if(typeof NC=="undefined"){alert("gmap.js requires the NC JavaScript framework")}(function(){NC.GaussAppManager=function(){var o=null;var h=null;var e=null;var d=null;var i=12;var k=365;var c=30;var l=new Array(12);var j=0;var b;var n=true;var a=-1;var g=false;var f=5;var m=new Array("",'<img src="../imagesv2/badges/one_star_2.png">','<img src="../imagesv2/badges/two_stars_2.png">','<img src="../imagesv2/badges/three_stars_2.png">','<img src="../imagesv2/badges/four_stars_2.png">','<img src="../imagesv2/badges/five_stars_2.png">');return{init:function(t,q,v,p,s,u,r){o=q;h=document.getElementById(o);e=document.getElementById(v);k=p;c=s;g=r;f=u;b=NC.util.Region.getRegion(h);if(d==null){}this.initBars();this.getScores()},initBars:function(){var q=k;var p=0;for(p=0;p<i;p++){l[p]={top:b.bottom-b.top-35,left:q};q+=c}},getScores:function(){var r={success:function(t){d=NC.lang.JSON.parse(t.responseText);for(var s=0;s<d.length;s++){d[s].classname="gaussbox"}this.animate()},failure:function(s){return null},scope:this};var q="getCandidateData.php";var p=new NC.util.AjaxConnection("GET",q,null);p.executeMethod(r)},insertScore:function(z,u,q,r,w,t,A,x,v){var s=document.getElementById("MyNotes");if(s!=null&&d!=null){var p={};p.categoryname=z;p.date=u;p.highestdegree=q;p.mgrcategory=r;p.mgrstars=w;p.ncscore=t;p.resumeid=A;p.yearsexperience=x;p.classname=v;p.location="Fremont, CA";d.splice(j+1,0,p);var y=this.formatNote(p);y="<h1>Your score</h1>"+y;s.innerHTML=y}},animate:function(){j=0;n=true;this.floatAScore(d[j],"score"+j)},onComplete:function(){j+=1;if(j<d.length){var p=Math.floor(Math.random()*1000);window.setTimeout(function(){NC.GaussAppManager.floatAScore(d[j],"score"+j)},p)}else{window.setTimeout(function(){while(h.childNodes.length>=1){h.removeChild(h.firstChild)}e.innerHTML="Initializing...";NC.GaussAppManager.initBars();NC.GaussAppManager.getScores()},10000)}},formatNote:function(p){var q;if(g){q='<p><img src="../imagesv2/paw_14px.png">&nbsp;<span style="font-size:16px;font-weight:bold;font-family: Arial, Helvetica, sans-serif;">'+p.ncscore+"</span> "+p.categoryname+", ";if(p.mgrcategory>1&&p.mgrstars>=1){q+="Management "+m[p.mgrstars]}q+="<br>";if(p.location.length>1){q+=p.location+", "}q+="since "+p.date+"</p>"}else{q='<h2><img src="../imagesv2/paw_14px.png">&nbsp;'+p.ncscore+"</h2><h3>"+p.categoryname;if(p.mgrcategory>1&&p.mgrstars>=1){q+="<br>Management "+m[p.mgrstars]}q+="</h3>";q+="<p>";if(p.location.length>1){q+=p.location+"<br>"}if(p.yearsexperience>0&&p.yearsexperience<=25){q+=p.yearsexperience+" years in workforce<br>"}if(p.highestdegree.length>0){q+="Earned "+p.highestdegree+" degree<br>"}q+="Since "+p.date+"</p>"}return q},setAutoNote:function(p){n=p},getNoteTimeoutId:function(){return a},setNoteTimeoutId:function(p){a=p},floatAScore:function(t,r){var u=Math.floor((t.ncscore-70)/10);u=Math.max(u,0);u=Math.min(u,i-1);var q=document.createElement("div");q.id=r;var s=l[u].left;NC.util.Dom.addClass(q,t.classname);h.appendChild(q);q.style.left=s+"px";q.attr=t;if(n){e.innerHTML=this.formatNote(q.attr)}NC.util.Event.addListener(q,"click",function(x){n=false;e.innerHTML=NC.GaussAppManager.formatNote(q.attr);var w=NC.GaussAppManager.getNoteTimeoutId();if(w!=-1){window.clearTimeout(w)}w=window.setTimeout(function(){NC.GaussAppManager.setAutoNote(true)},5000);NC.GaussAppManager.setNoteTimeoutId(w)});var p={top:{by:l[u].top}};var v=new NC.util.Anim(r,p,1,NC.util.Easing.bounceOut);v.onComplete.subscribe(function(){NC.GaussAppManager.onComplete()});v.animate();l[u].top-=f}}}()})();(function(){window.$jit=function(x){x=x||window;for(var y in $jit){if($jit[y].$extend){x[y]=$jit[y]}}};$jit.version="2.0.0b";var c=function(w){return document.getElementById(w)};c.empty=function(){};c.extend=function(y,w){for(var x in (w||{})){y[x]=w[x]}return y};c.lambda=function(w){return(typeof w=="function")?w:function(){return w}};c.time=Date.now||function(){return +new Date};c.splat=function(x){var w=c.type(x);return w?((w!="array")?[x]:x):[]};c.type=function(x){var w=c.type.s.call(x).match(/^\[object\s(.*)\]$/)[1].toLowerCase();if(w!="object"){return w}if(x&&x.$$family){return x.$$family}return(x&&x.nodeName&&x.nodeType==1)?"element":w};c.type.s=Object.prototype.toString;c.each=function(B,A){var z=c.type(B);if(z=="object"){for(var y in B){A(B[y],y)}}else{for(var x=0,w=B.length;x<w;x++){A(B[x],x)}}};c.indexOf=function(z,y){if(Array.indexOf){return z.indexOf(y)}for(var x=0,w=z.length;x<w;x++){if(z[x]===y){return x}}return -1};c.map=function(y,x){var w=[];c.each(y,function(A,z){w.push(x(A,z))});return w};c.reduce=function(A,y,x){var w=A.length;if(w==0){return x}var z=arguments.length==3?x:A[--w];while(w--){z=y(z,A[w])}return z};c.merge=function(){var A={};for(var z=0,w=arguments.length;z<w;z++){var x=arguments[z];if(c.type(x)!="object"){continue}for(var y in x){var C=x[y],B=A[y];A[y]=(B&&c.type(C)=="object"&&c.type(B)=="object")?c.merge(B,C):c.unlink(C)}}return A};c.unlink=function(y){var x;switch(c.type(y)){case"object":x={};for(var A in y){x[A]=c.unlink(y[A])}break;case"array":x=[];for(var z=0,w=y.length;z<w;z++){x[z]=c.unlink(y[z])}break;default:return y}return x};c.zip=function(){if(arguments.length===0){return[]}for(var y=0,x=[],w=arguments.length,B=arguments[0].length;y<B;y++){for(var z=0,A=[];z<w;z++){A.push(arguments[z][y])}x.push(A)}return x};c.rgbToHex=function(A,z){if(A.length<3){return null}if(A.length==4&&A[3]==0&&!z){return"transparent"}var x=[];for(var w=0;w<3;w++){var y=(A[w]-0).toString(16);x.push(y.length==1?"0"+y:y)}return z?x:"#"+x.join("")};c.hexToRgb=function(y){if(y.length!=7){y=y.match(/^#?(\w{1,2})(\w{1,2})(\w{1,2})$/);y.shift();if(y.length!=3){return null}var w=[];for(var x=0;x<3;x++){var z=y[x];if(z.length==1){z+=z}w.push(parseInt(z,16))}return w}else{y=parseInt(y.slice(1),16);return[y>>16,y>>8&255,y&255]}};c.destroy=function(w){c.clean(w);if(w.parentNode){w.parentNode.removeChild(w)}if(w.clearAttributes){w.clearAttributes()}};c.clean=function(z){for(var y=z.childNodes,x=0,w=y.length;x<w;x++){c.destroy(y[x])}};c.addEvent=function(y,x,w){if(y.addEventListener){y.addEventListener(x,w,false)}else{y.attachEvent("on"+x,w)}};c.addEvents=function(x,y){for(var w in y){c.addEvent(x,w,y[w])}};c.hasClass=function(x,w){return(" "+x.className+" ").indexOf(" "+w+" ")>-1};c.addClass=function(x,w){if(!c.hasClass(x,w)){x.className=(x.className+" "+w)}};c.removeClass=function(x,w){x.className=x.className.replace(new RegExp("(^|\\s)"+w+"(?:\\s|$)"),"$1")};c.getPos=function(y){var B=A(y);var w=z(y);return{x:B.x-w.x,y:B.y-w.y};function A(D){var C={x:0,y:0};while(D&&!x(D)){C.x+=D.offsetLeft;C.y+=D.offsetTop;D=D.offsetParent}return C}function z(D){var C={x:0,y:0};while(D&&!x(D)){C.x+=D.scrollLeft;C.y+=D.scrollTop;D=D.parentNode}return C}function x(C){return(/^(?:body|html)$/i).test(C.tagName)}};c.event={get:function(x,w){w=w||window;return x||w.event},getWheel:function(w){return w.wheelDelta?w.wheelDelta/120:-(w.detail||0)/3},isRightClick:function(w){return(w.which==3||w.button==2)},getPos:function(z,y){y=y||window;z=z||y.event;var x=y.document;x=x.documentElement||x.body;if(z.touches&&z.touches.length){z=z.touches[0]}var w={x:z.pageX||(z.clientX+x.scrollLeft),y:z.pageY||(z.clientY+x.scrollTop)};return w},stop:function(w){if(w.stopPropagation){w.stopPropagation()}w.cancelBubble=true;if(w.preventDefault){w.preventDefault()}else{w.returnValue=false}}};$jit.util=$jit.id=c;var q=function(x){x=x||{};var w=function(){for(var A in this){if(typeof this[A]!="function"){this[A]=c.unlink(this[A])}}this.constructor=w;if(q.prototyping){return this}var z=this.initialize?this.initialize.apply(this,arguments):this;this.$$family="class";return z};for(var y in q.Mutators){if(!x[y]){continue}x=q.Mutators[y](x,x[y]);delete x[y]}c.extend(w,this);w.constructor=q;w.prototype=x;return w};q.Mutators={Implements:function(w,x){c.each(c.splat(x),function(z){q.prototyping=z;var y=(typeof z=="function")?new z:z;for(var A in y){if(!(A in w)){w[A]=y[A]}}delete q.prototyping});return w}};c.extend(q,{inherit:function(w,z){for(var y in z){var x=z[y];var B=w[y];var A=c.type(x);if(B&&A=="funct
