/*
 * Copyright (c) 2005-2008 Software Corporation (Softcorp). All rights reserved.
 * This file is provided only for use by end users of our websites.
 * This software may not be copied or redistributed in any form without prior written 
 * authorization of Softcorp.
 */
function scJsConvertRgbToHex(theRgb){var i;var theRedDec,theGreenDec,theBlueDec;var theRedHex,theGreenHex,theBlueHex;var theStart,theLen;if(theRgb.substr(0,4)!='rgb('){return '#000000';}theBeg=4;for(i=theBeg;i<theRgb.length;i++){if(theRgb[i]==','){theLen=i-theBeg;theRedDec=theRgb.substr(theBeg,theLen);theRedHex=scJsDecToHex(theRedDec);theBeg=i+1;break;}}for(i=theBeg;i<theRgb.length;i++){if(theRgb[i]==','){theLen=i-theBeg;theGreenDec=theRgb.substr(theBeg,theLen);theGreenHex=scJsDecToHex(theGreenDec);theBeg=i+1;break;}}for(i=theBeg;i<theRgb.length;i++){if(theRgb[i]==')'){theLen=i-theBeg;theBlueDec=theRgb.substr(theBeg,theLen);theBlueHex=scJsDecToHex(theBlueDec);theBeg=i+1;break;}}return '#'+theRedHex+theGreenHex+theBlueHex;}function scJsGetComputedStyle(theDocument,elem,propName){var theValue;var propNamesIE=new Array();propNamesIE['font-family']='fontFamily';propNamesIE['font-size']='fontSize';propNamesIE['font-weight']='fontWeight';propNamesIE['font-style']='fontStyle';propNamesIE['font-variant']='fontVariant';propNamesIE['text-decoration']='textDecoration';propNamesIE['text-align']='textAlign';propNamesIE['color']='color';propNamesIE['background-color']='backgroundColor';propNamesIE['line-height']='lineHeight';propNamesIE['border-top-color']='borderTopColor';propNamesIE['border-left-color']='borderLeftColor';propNamesIE['border-bottom-color']='borderBottomColor';propNamesIE['border-right-color']='borderRightColor';propNamesIE['border-top-width']='borderTopWidth';propNamesIE['border-left-width']='borderLeftWidth';propNamesIE['border-bottom-width']='borderBottomWidth';propNamesIE['border-right-width']='borderRightWidth';propNamesIE['border-top-style']='borderTopStyle';propNamesIE['border-left-style']='borderLeftStyle';propNamesIE['border-bottom-style']='borderBottomStyle';propNamesIE['border-right-style']='borderRightStyle';propNamesIE['margin-top']='marginTop';propNamesIE['margin-left']='marginLeft';propNamesIE['margin-bottom']='marginBottom';propNamesIE['margin-right']='marginRight';propNamesIE['padding-top']='paddingTop';propNamesIE['padding-left']='paddingLeft';propNamesIE['padding-bottom']='paddingBottom';propNamesIE['padding-right']='paddingRight';if(elem.currentStyle){theValue=elem.currentStyle[propNamesIE[propName]];if((propName=='color')||(propName=='background-color')||(propName=='border-top-color')||(propName=='border-left-color')||(propName=='border-bottom-color')||(propName=='border-right-color')){theValue=theValue.toUpperCase();}return theValue;}else if(theDocument.defaultView.getComputedStyle){theValue=theDocument.defaultView.getComputedStyle(elem,null).getPropertyValue(propName);if((propName=='color')||(propName=='background-color')||(propName=='border-top-color')||(propName=='border-left-color')||(propName=='border-bottom-color')||(propName=='border-right-color')){return scJsCssColor(theValue);}else{return theValue.toUpperCase();}}else{return null;}}function scJsCssColor(theColor){} 
