
var isOpera=(navigator.userAgent.toLowerCase().indexOf('opera')>-1);var isIE=(!isOpera&&navigator.userAgent.toLowerCase().indexOf('msie')>-1);var isSafari=(navigator.userAgent.indexOf('AppleWebKit')!=-1);var isKonqueror=(navigator.userAgent.toLowerCase().indexOf('khtml')>-1);var isMoz=(document.implementation&&document.implementation.createDocument&&!isKonqueror&&!isSafari?true:false);var isFF=(isMoz&&navigator.userAgent.toLowerCase().indexOf('firefox')!=-1);if(isIE){var verIE=parseInt(navigator.appVersion.split('MSIE')[1]);}
if(isOpera){var verOpera=parseFloat(navigator.userAgent.split('Opera ')[1]);if(isNaN(verOpera)){verOpera=parseFloat(navigator.userAgent.split('Opera/')[1]);}}
String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"");}
var defaultCornerRadius=8;var smallCornerRadius=6;var df=new DOMfunc();function doRoundCorners(){df.registerClass('roundedTop',RoundedTop,defaultCornerRadius);df.registerClass('roundedBottom',RoundedBottom,defaultCornerRadius);df.registerClass('roundedLeft',RoundedLeft,defaultCornerRadius);df.registerClass('roundedRight',RoundedRight,defaultCornerRadius);df.registerClass('infoBoxContent',RoundedTop,defaultCornerRadius);df.registerClass('infoBoxTitle',RoundedBottom,defaultCornerRadius);df.registerClass('roundedRBox',RoundedBoxRecursive,defaultCornerRadius);df.registerClass('roundedBox',RoundedBox,defaultCornerRadius);df.registerClass('roundedBoxSmall',RoundedBox,smallCornerRadius);df.registerClass('roundedTopSmall',RoundedTop,smallCornerRadius);df.registerClass('roundedBottomSmall',RoundedBottom,smallCornerRadius);df.registerClass('roundedLeftSmall',RoundedLeft,smallCornerRadius);df.registerClass('roundedRightSmall',RoundedRight,smallCornerRadius);df.apply();cCorners.applyToRegistered();}
function DOMfunc(){this.map={'ids':{},'classes':{}};this.elemMap={};}
DOMfunc.prototype.registerClass=function(className,func){var args=[];if(arguments.length>2){for(var i=2;i<arguments.length;i++){args.push(arguments[i]);}}
if(!this.map.classes[className]){this.map.classes[className]=[];}
if(!this.elemMap[className]){this.elemMap[className]=[];}
this.map.classes[className].push({'func':func,'args':args});}
DOMfunc.prototype.registerId=function(id,func){var args=[];if(arguments.length>2){for(var i=2;i<arguments.length;i++){args.push(arguments[i]);}}
if(!this.map.ids[id]){this.map.ids[id]=[];}
this.map.ids[id].push({'func':func,'args':args});}
DOMfunc.prototype.apply=function(){var strTag='*';var objContElm=document;var objColl=(strTag=='*'&&document.all&&!window.opera)?document.all:objContElm.getElementsByTagName(strTag);var arr=new Array();for(var i=0,j=objColl.length;i<j;i++){var arrObjClass=objColl[i].className.split(' ');if(!arrObjClass.length)continue;for(var k=0,l=arrObjClass.length;k<l;k++){if(this.map.classes[arrObjClass[k]]){if(!objColl[i].id){objColl[i].id=getTempId();}
this.elemMap[arrObjClass[k]].push(objColl[i].id);}}}
this._runMap();}
DOMfunc.prototype._runMap=function(){for(var i in this.elemMap){for(var j=0;j<this.elemMap[i].length;j++){var elem=document.getElementById(this.elemMap[i][j]);for(var k=0;k<this.map.classes[i].length;k++){this.map.classes[i][k].func.apply(null,[elem].concat(this.map.classes[i][k].args));}}}
for(var i in this.map.ids){var elem=document.getElementById(i);if(elem){for(var j=0;j<this.map.ids[i].length;j++){this.map.ids[i][j].func.apply(null,[elem].concat(this.map.ids[i][j].args));}}}}
var tmpCount=0;function getTempId(){return'tmpId_'+(tmpCount++);}
function debugLog(msg){if(typeof(console)!=='undefined'){console.log(msg);}else{document.body.appendChild(document.createTextNode(msg));document.body.appendChild(document.createElement('BR'));}}
function elemAttachedToBody(el){var node=el;while(node&&node.offsetParent){node=node.offsetParent;}
return(node.tagName==='BODY');}
function stripSuffix(str,suffix){if(str.substring(str.length-suffix.length)==suffix){return str.substr(0,str.length-suffix.length);}else{return str;}}
function convertToPT(dim,obj){try{dim=dim.toString();if(dim.indexOf('pt')!=-1){return stripSuffix(dim,'pt');}else{return(convertToPX(dim,obj)/1.3333);}}catch(e){alert('Failed to convert "'+dim+'" to points\n'+e.message);}}
function convertToPX(dim,obj){try{dim=dim.toString();if(dim.indexOf('em')!=-1){var fontSize=convertToPX(getFontSize(obj));return parseFloat(stripSuffix(dim,'em')*fontSize);}else if(dim.indexOf('pt')!=-1){return parseFloat(stripSuffix(dim,'pt')*1.3333);}else if(dim.indexOf('px')!=-1){return parseFloat(stripSuffix(dim,'px'));}else{return parseFloat(dim);}}catch(e){alert('Failed to convert "'+dim+'" to pixels\n'+e.message);}}
function convertToEM(dim,obj){try{dim=dim.toString();if(dim.indexOf('em')!=-1){return stripSuffix(dim,'em');}else{var fontSize=convertToPX(getFontSize(obj));return(convertToPX(dim)/fontSize);}}catch(e){alert('Failed to convert "'+dim+'" to EMs\n'+e.message);}}
function getFontSize(obj){var fontSize=get_style(obj,'fontSize','font-size');if(fontSize.indexOf('em')!=-1){var stack=[fontSize];var node=obj.parentNode;var nodeFontSize=get_style(node,'fontSize','font-size');while(node&&nodeFontSize.indexOf('em')!=-1){stack.unshift(nodeFontSize);node=node.parentNode;if(node){nodeFontSize=get_style(node,'fontSize','font-size');}}
if(node){fontSize=convertToPX(nodeFontSize,node);for(var i=0;i<stack.length;i++){fontSize=fontSize*stripSuffix(stack[i],'em');}
fontSize+='px';}}
return fontSize;}
function IntToHex(strNum){base=strNum/16;rem=strNum%16;base=base-(rem/16);baseS=MakeHex(base);remS=MakeHex(rem);return baseS+''+remS;}
function MakeHex(x){if((x>=0)&&(x<=9)){return x;}else{switch(x){case 10:return"A";case 11:return"B";case 12:return"C";case 13:return"D";case 14:return"E";case 15:return"F";}}}
function rgb2Hex(rgbColor){try{var rgbArray=rgb2Array(rgbColor);if(rgbArray.length==3){var red=parseInt(rgbArray[0]);var green=parseInt(rgbArray[1]);var blue=parseInt(rgbArray[2]);var hexColor='#'+IntToHex(red)+IntToHex(green)+IntToHex(blue);}}catch(e){alert('There was an error converting the RGB value to Hexadecimal in function rgb2Hex');}
return hexColor;}
function rgb2Array(rgbColor){var parenthesis1=rgbColor.indexOf('(');var parenthesis2=rgbColor.indexOf(')');var rgbType=rgbColor.substr(0,parenthesis1).toLowerCase();var rgbValues=rgbColor.substring((parenthesis1+1),parenthesis2);var rgbArray=rgbValues.split(',');for(var i=0;i<rgbArray.length;i++){rgbArray[i]=parseInt(rgbArray[i]);}
if((rgbType=='rgb'&&rgbArray.length!=3)||(rgbType=='rgba'&&rgbArray.length!=4)){throw new Error('failed to extract array from rgb: error parsing rgb values');}
return rgbArray;}
function setOpacity(obj,opacity){opacity=(opacity==100)?99.999:opacity;if(typeof(obj.style.opacity)!='undefined'){obj.style.opacity=opacity/100;}else if(typeof(obj.style.MozOpacity)!='undefined'){obj.style.MozOpacity=opacity/100;}else if(typeof(obj.style.filter)!='undefined'){obj.style.filter='alpha(opacity:'+opacity+')';}else if(typeof(obj.style.KHTMLOpacity)!='undefined'){obj.style.KHTMLOpacity=opacity/100;}}
function inArray(array,value){for(var i=0;i<array.length;i++){if(array[i]===value)return i;}
return false;}
function inArrayKey(array,value){for(key in array){if(key===value)return true;}
return false;}
function format_color(color){if(color!=''&&color!='transparent'){if(color.substr(0,3)=='rgb'){if(color.substr(0,4)=='rgba'){var rgbArray=rgb2Array(color);if(rgbArray.length==4&&rgbArray[3]==0){return'transparent';}else{return rgb2Hex(color);}}else{return rgb2Hex(color);}}else if(color.length==4){return'#'+color.charAt(1)+color.charAt(1)+color.charAt(2)+color.charAt(2)+color.charAt(3)+color.charAt(3);}else{return color;}}
return'#ffffff';}
function get_style(obj,property,propertyNS){var returnVal;try{if(obj.currentStyle&&!isOpera){var returnVal=obj.currentStyle[property];}else{if(isSafari&&obj.style.display=='none'){obj.style.display='';var wasHidden=true;}
var returnVal=document.defaultView.getComputedStyle(obj,'').getPropertyValue(propertyNS);if(isSafari&&wasHidden){obj.style.display='none';}}}catch(e){}
if(typeof(returnVal)=='undefined'){returnVal='';}
return returnVal;}
function insertAfter(parentNode,node,referenceNode)
{try{if(referenceNode.nextSibling){return parentNode.insertBefore(node,referenceNode.nextSibling);}else{return parentNode.appendChild(node);}}catch(e){}}
function getElementsByClassName(strClass,aTags,objContElm){if(!aTags){aTags=['*'];}else if(!(aTags instanceof Array)){aTags=[aTags];}
objContElm=objContElm||document;if(inArray(aTags,'*')&&document.all&&!window.opera){var objColl=document.all;}else{var objColl=[];for(var i=0;i<aTags.length;i++){var hc=objContElm.getElementsByTagName(aTags[i]);for(var j=0;j<hc.length;j++){objColl.push(hc[j]);}}}
var arr=new Array();var delim=strClass.indexOf('|')!=-1?'|':' ';var arrClass=strClass.split(delim);for(var i=0,j=objColl.length;i<j;i++){var arrObjClass=objColl[i].className.split(' ');if(delim==' '&&arrClass.length>arrObjClass.length)continue;var c=0;comparisonLoop:for(var k=0,l=arrObjClass.length;k<l;k++){for(var m=0,n=arrClass.length;m<n;m++){if(arrClass[m]==arrObjClass[k])c++;if((delim=='|'&&c==1)||(delim==' '&&c==arrClass.length)){arr.push(objColl[i]);break comparisonLoop;}}}}
return arr;}
function addClass(obj,className){var classes=getClasses(obj);for(var i=0;i<classes.length;i++){if(classes[i].toLowerCase()==className.toLowerCase()){classes[i]='';}}
classes.push(className);obj.className=classes.join(' ');}
function removeClass(obj,className){var classes=getClasses(obj);for(var i=0;i<classes.length;i++){if(classes[i].toLowerCase()==className.toLowerCase()){classes[i]='';}}
obj.className=classes.join(' ');}
function hasClass(obj,className){var classes=getClasses(obj);if(!(className instanceof Array)){className=new Array(className.toString());}
var matchAll=(className.length>0);for(var i=0;i<className.length;i++)
{var matchAll=(matchAll&&inArray(classes,className[i])!==false);}
return matchAll;}
function showInfo(targetId)
{document.getElementById(targetId).style.display='block';}
function hideInfo(targetId)
{document.getElementById(targetId).style.display='none';}
function getClasses(obj){return(obj&&obj.className?obj.className.split(/\s+/):[]);}
function addEvent(obj,evType,fn,useCapture){if(window.opera&&obj.addEventListener){useCapture=false;}
if(obj.addEventListener){obj.addEventListener(evType,fn,useCapture);return true;}else if(obj.attachEvent){var r=obj.attachEvent('on'+evType,fn);return r;}else{return false;}}
function removeEvent(obj,evType,fn,useCapture){if(window.opera&&obj.addEventListener){useCapture=false;}
if(obj.removeEventListener){obj.removeEventListener(evType,fn,useCapture);return true;}else if(obj.detachEvent){var r=obj.detachEvent('on'+evType,fn);return r;}else{return false;}}
function fireEvent(obj,evType,isCustom){try{if(document.createEvent){if(!isCustom){var eventModuleMap={'abort':'HTMLEvents','blur':'HTMLEvents','change':'HTMLEvents','error':'HTMLEvents','focus':'HTMLEvents','load':'HTMLEvents','reset':'HTMLEvents','resize':'HTMLEvents','scroll':'HTMLEvents','select':'HTMLEvents','submit':'HTMLEvents','unload':'HTMLEvents','click':'MouseEvents','mousedown':'MouseEvents','mousemove':'MouseEvents','mouseout':'MouseEvents','mouseover':'MouseEvents','mouseup':'MouseEvents','DOMAttrModified':'MutationEvents','DOMNodeInserted':'MutationEvents','DOMNodeRemoved':'MutationEvents','DOMCharacterDataModified':'MutationEvents','DOMNodeInsertedIntoDocument':'MutationEvents','DOMNodeRemovedFromDocument':'MutationEvents','DOMSubtreeModified':'MutationEvents','DOMActivate':'UIEvents','DOMFocusIn':'UIEvents','DOMFocusOut':'UIEvents'}
if(isMoz){eventModuleMap['keydown']='KeyEvents';eventModuleMap['keypress']='KeyEvents';eventModuleMap['keyup']='KeyEvents';}else{eventModuleMap['keydown']='UIEvents';eventModuleMap['keypress']='UIEvents';eventModuleMap['keyup']='UIEvents';}
var eventModule=eventModuleMap[evType];}else{var eventModule='Events';}
var evObj=document.createEvent(eventModule);evObj.initEvent(evType,true,false);var ret=obj.dispatchEvent(evObj);}else if(document.createEventObject){var ret=obj.fireEvent('on'+evType);}else{var ret=false;alert('fireEvent() unsupported on this browser');}}catch(e){alert('An error occured in fireEvent()\n'+e.message);}
return ret;}
function getCookie(name){var arg=name+"=";var alen=arg.length;var clen=document.cookie.length;var i=0;while(i<clen){var j=i+alen;if(document.cookie.substring(i,j)==arg){var endstr=document.cookie.indexOf(";",j);if(endstr==-1)endstr=document.cookie.length;return unescape(document.cookie.substring(j,endstr));}
i=document.cookie.indexOf(" ",i)+1;if(i==0)break;}
return null;}
function setCookie(name,value,expires,path,domain,secure){document.cookie=name+"="+escape(value)+(expires?("; expires="+expires.toGMTString()):"")+(path?("; path="+path):"")+(domain?("; domain="+domain):"")+(secure?"; secure":"");}
function clearCookie(name){date=new Date;date.setFullYear(date.getFullYear()-1);setCookie(name,null,date);}
function cloneObject(what){var result;var cut=(String(Object).indexOf('(')!=16)?9:10;var oname=String(what.constructor);oname=oname.substr(cut,(oname.indexOf('(')-cut));switch(oname){case'String':case'Number':case'Boolean':case'Function':result=what;break;case'Array':result=new Array();for(var i=0;i<what.length;i++){if(parseInt(i)!=Number.NaN){result[i]=cloneObject(what[i]);}}
break;default:eval('result = new '+oname+'();');for(var a in what)
result[a]=cloneObject(what[a]);break;}
return result;}
function mergeObjects(){var newObj;try{newObj=cloneObject(arguments[0]);if(arguments.length>1){for(var i=1;i<arguments.length;i++){for(var prop in arguments[i]){newObj[prop]=arguments[i][prop];}}}}catch(e){}
return newObj;}
function getObjectType(obj){var sConstructor=obj.constructor.toString();return sConstructor.substring(9,sConstructor.indexOf('(')).replace(/\s/,'');}
function instanceOf(obj,objConstructor){return(obj&&objConstructor&&typeof(obj)=='object'&&typeof(objConstructor)=='function'&&obj instanceof objConstructor);}
function CW(callDef,aArguments){this.mId='CW_'+(CW.mCounter++);this.callDef=callDef;this.mTimerId=null;this.mIntervalId=null;this.aArguments=aArguments;CW.mPendingCalls[this.mId]=this;}
CW.prototype.execute=function(keepAfter,aArguments){if(aArguments&&aArguments.length){var tArgs=aArguments;}else if(this.aArguments){var tArgs=this.aArguments;}else{var tArgs=new Array();}
if(typeof(this.callDef)=='object'&&typeof(this.callDef[0][this.callDef[1]])=='function'){this.callDef[0][this.callDef[1]].apply(this.callDef[0],tArgs);}else if(typeof(this.callDef)=='function'){this.callDef.apply(null,tArgs);}else if(typeof(this.callDef)=='string'){eval(this.callDef);}else{alert('Invalid call:\n'+(this.callDef.toSource?this.callDef.toSource():this.callDef.toString()));}
if(!keepAfter){delete(CW.mPendingCalls[this.mId]);}}
CW.prototype.clear=function(){delete(CW.mPendingCalls[this.mId]);}
CW.clearInterval=function(callwrapper){if(instanceOf(callwrapper,CW)&&CW.mPendingCalls[callwrapper.mId]){clearInterval(CW.mPendingCalls[callwrapper.mId].mIntervalId);}}
CW.setInterval=function(callwrapper,mInterval){if(instanceOf(callwrapper,CW)&&CW.mPendingCalls[callwrapper.mId]){CW.mPendingCalls[callwrapper.mId].mIntervalId=setInterval('CW.mPendingCalls["'+callwrapper.mId+'"].execute(true)',mInterval);}}
CW.clearTimeout=function(callwrapper){if(instanceOf(callwrapper,CW)&&CW.mPendingCalls[callwrapper.mId]){clearTimeout(CW.mPendingCalls[callwrapper.mId].mTimerId);}}
CW.setTimeout=function(callwrapper,mDelay){if(instanceOf(callwrapper,CW)&&CW.mPendingCalls[callwrapper.mId]){CW.mPendingCalls[callwrapper.mId].mTimerId=setTimeout('CW.mPendingCalls["'+callwrapper.mId+'"].execute()',mDelay);}}
CW.mCounter=0;CW.mPendingCalls={};var iweb_JSON=new Object();iweb_JSON.parse=function(x){if(x==null||typeof(x)=='undefined'){return iweb_JSON.s['null'](x);}
if(typeof(x)=='function'){x=String(x);}
var type=getObjectType(x).toLowerCase();if(iweb_JSON.s[type]){return iweb_JSON.s[type](x);}
return iweb_JSON.s['object'](x);}
iweb_JSON.m={'\b':'\\b','\t':'\\t','\n':'\\n','\f':'\\f','\r':'\\r','"':'\\"','\\':'\\\\'};iweb_JSON.s={'array':function(x){var a=['['],b,f,i,l=x.length,v;for(i=0;i<l;i+=1){v=iweb_JSON.parse(x[i]);if(b){a[a.length]=',';}
a[a.length]=v;b=true;}
a[a.length]=']';return a.join('');},'boolean':function(x){return String(x);},'null':function(x){return"null";},'number':function(x){return isFinite(x)?String(x):'null';},'object':function(x){var a=['{'],b,f,i,v;for(i in x){if(typeof(x[i])!='function'){v=iweb_JSON.parse(x[i]);if(v){if(b){a[a.length]=',';}
a.push(iweb_JSON.parse(i),':',v);b=true;}}}
a[a.length]='}';return a.join('');},'string':function(x){if(/["\\\x00-\x1f]/.test(x)){x=x.replace(/([\x00-\x1f\\"])/g,function(a,b){var c=iweb_JSON.m[b];if(c){return c;}
c=b.charCodeAt();return'\\u00'+Math.floor(c/16).toString(16)+(c%16).toString(16);});}
return'"'+x+'"';}};iweb_toJSONString=function(obj){return iweb_JSON.parse(obj);};String.prototype.iweb_parseJSON=function(){try{return!(/[^,:{}\[\]0-9.\-+Eaeflnr-u \n\r\t]/.test(this.replace(/"(\\.|[^"\\])*"/g,'')))&&eval('('+this+')');}catch(e){return false;}};String.prototype.ucFirst=function(){return this.substr(0,1).toUpperCase()+this.substr(1,this.length);}
Number.prototype.isOdd=function(){return(parseInt(this.valueOf())==this.valueOf()&&(this.valueOf()%2)!=0);}
function _out(msg,elemType,className){try{if(!elemType){elemType='DIV';}
var el=document.createElement(elemType.toUpperCase());el.className=className;el.appendChild(document.createTextNode(msg));document.body.appendChild(el);}catch(e){alert('Failed _out("'+msg+'", "'+elemType+'", "'+className+'")');}}
function loadStyleSheet(styleSheetSrc){var linkObj=document.createElement('LINK');linkObj.rel='stylesheet';linkObj.type='text/css';linkObj.href=styleSheetSrc;document.getElementsByTagName('head')[0].appendChild(linkObj);}
_hitch=function(thisObject,method){if(method instanceof String||typeof method=='string'){var fcn=thisObject[method];}else{var fcn=method;}
return function(){return fcn.apply(thisObject,arguments);}}
function SplashDiv(contentNode,bgOpacity,bgColor,speed,toHideNode){if(typeof(bgOpacity)=='undefined'){bgOpacity=0.8;}
if(typeof(bgColor)=='undefined'){bgColor='#ffffff';}
if(typeof(speed)=='undefined'){speed=1;}
this.bgDiv=null;this.topDiv=null;this.table=null;this.visibleDivs=0;this.contentNode=contentNode;this.bgOpacity=bgOpacity;this.bgColor=bgColor;this.speed=speed;this.state='closed';this.scrollTop=null;this.showAfterFinish=null;this.hideAfterFinish=null;this.toHideNode=toHideNode;}
SplashDiv.prototype.show=function(afterFinish){if(this.state=='closed'){this._create();this.showAfterFinish=afterFinish;if(typeof(this.toHideNode)=='undefined'){document.body.appendChild(this.bgDiv);document.body.appendChild(this.topDiv);}
else{this.toHideNode.appendChild(this.bgDiv);this.toHideNode.appendChild(this.topDiv);}
this.state='opening';if(this.speed){var t1=new OpacityTween(this.bgDiv,null,0,(this.bgOpacity*100),this.speed);var t2=new OpacityTween(this.topDiv,null,0,100,this.speed);var t=this;var listener={'onMotionFinished':function(){t._showComplete();}};t1.addListener(listener);t2.addListener(listener);t1.start();t2.start();}else{setOpacity(this.bgDiv,(this.bgOpacity*100));setOpacity(this.topDiv,100);this._showComplete();this._showComplete();}}}
SplashDiv.prototype.hide=function(afterFinish){if(this.state=='opened'){this.hideAfterFinish=afterFinish;this.state='hiding';if(this.speed){var t1=new OpacityTween(this.bgDiv,null,(this.bgOpacity*100),0,this.speed);var t2=new OpacityTween(this.topDiv,null,100,0,this.speed);var t=this;var listener={'onMotionFinished':function(){t._hideComplete();}};t1.addListener(listener);t2.addListener(listener);t1.start();t2.start();}else{setOpacity(this.bgDiv,0);setOpacity(this.topDiv,0);this._hideComplete();this._hideComplete();}}}
SplashDiv.prototype.destroy=function(){if(this.state=='opened'){this.hideAfterFinish=null;this.state='closed';this._hideComplete();this._hideComplete();}}
SplashDiv.prototype._create=function(){this.bgDiv=document.createElement('DIV');this.bgDiv.id='splashDiv';if(isIE){this.bgDiv.style.position='absolute';this.bgDiv.style.zoom='1';}else if(typeof(this.toHideNode)=='undefined'){this.bgDiv.style.position='fixed';}
else{this.bgDiv.style.position='absolute';}
this.bgDiv.style.left=(isIE?get_style(document.body,'paddingLeft','padding-left'):'0');this.bgDiv.style.top='0';this.bgDiv.style.width='100%';this.bgDiv.style.height=(isIE?document.body.scrollHeight+'px':'100%');this.bgDiv.style.backgroundColor=this.bgColor;this.bgDiv.style.zIndex='60001';setOpacity(this.bgDiv,0);this.topDiv=document.createElement('DIV');if(isIE){this.topDiv.style.position='absolute';this.topDiv.style.zoom='1';}else{this.topDiv.style.position='fixed';}
this.topDiv.style.left=(isIE?get_style(document.body,'paddingLeft','padding-left'):'0');this.topDiv.style.top='0';this.topDiv.style.width='100%';this.topDiv.style.height=(isIE?document.body.scrollHeight+'px':'100%');this.topDiv.style.backgroundColor='transparent';this.topDiv.style.zIndex='60002';setOpacity(this.topDiv,0);this.table=document.createElement('TABLE');if(!isIE){this.table.style.position='fixed';}else{this.table.style.position='absolute';this._place();addEvent(window,'scroll',_hitch(this,'_place'));}
this.table.style.left='0';this.table.style.width='100%';this._resize();var splashTableTBody=document.createElement('TBODY');var splashTableRow=document.createElement('TR');var splashTableCol=document.createElement('TD');splashTableCol.style.verticalAlign='middle';splashTableCol.style.textAlign='center';var splashMsgDiv=document.createElement('DIV');splashMsgDiv.className='splashMsg';if(isIE)
{var selects=document.getElementsByTagName('SELECT');for(var i=0;i<selects.length;i++)
{label=selects[i].options[selects[i].selectedIndex].text;labelDiv=document.createElement('DIV');labelDiv.className='selectReplaceLabelDiv';labelDiv.style.display='inline';labelDiv.style.zoom='1';labelDiv.style.margin=get_style(selects[i],'margin','margin');labelDiv.style.width=selects[i].offsetWidth+'px';labelDiv.style.height=selects[i].offsetHeight+'px';labelDiv.appendChild(document.createTextNode(label));selects[i].parentNode.insertBefore(labelDiv,selects[i]);selects[i].style.display='none';}}
if(this.contentNode){splashMsgDiv.appendChild(this.contentNode);}
splashTableCol.appendChild(splashMsgDiv);splashTableRow.appendChild(splashTableCol);splashTableTBody.appendChild(splashTableRow);this.table.appendChild(splashTableTBody);this.topDiv.appendChild(this.table);addEvent(window,'resize',_hitch(this,'_resize'));}
SplashDiv.prototype._place=function(){this.table.style.top=getScrollTop()+'px';}
SplashDiv.prototype._resize=function(){this.table.style.height=getViewportHeight()+'px';}
SplashDiv.prototype._hideComplete=function(){this.visibleDivs--;if(this.visibleDivs==0){this.topDiv.parentNode.removeChild(this.topDiv);this.bgDiv.parentNode.removeChild(this.bgDiv);this.state='closed';if(typeof(this.hideAfterFinish)=='function'){this.hideAfterFinish();}}}
SplashDiv.prototype._showComplete=function(){this.visibleDivs++;if(this.visibleDivs==2){this.state='opened';if(typeof(this.showAfterFinish)=='function'){this.showAfterFinish();}}}
function Dialog(id,contentNode,bgOpacity,bgColor,speed){this.id=id;this.contentNode=contentNode;this.bgOpacity=bgOpacity;this.bgColor=bgColor;this.speed=speed;this.state='closed';this.dialogDiv=null;this.innerDialogDiv=null;}
Dialog.prototype._create=function(){this.dialogDiv=document.createElement('DIV');this.dialogDiv.id=this.id+'Dialog';this.dialogDiv.className='roundedBox dialog';this.innerDialogDiv=document.createElement('DIV');this.innerDialogDiv.className='dialogInner';closeImg=document.createElement('IMG');closeImg.className='dialogCloseImg';closeImg.style.cursor='pointer';closeImg.src=baseMediaUrl+'/images/windowCloseWhite.png';addEvent(closeImg,'click',_hitch(this,'hide'));this.dialogDiv.appendChild(closeImg);this.dialogDiv.appendChild(this.innerDialogDiv);if(this.contentNode){this.innerDialogDiv.appendChild(this.contentNode);}
this.splashDiv=new SplashDiv(this.dialogDiv,this.bgOpacity,this.bgColor,this.speed);}
Dialog.prototype.setSpeed=function(speed){this.speed=speed;if(this.splashDiv){this.splashDiv.speed=speed;}}
Dialog.prototype.show=function(){if(this.state=='closed'){this._create();this.state='opening';this.splashDiv.show(_hitch(this,'_showComplete'));var settings={'tl':{'radius':defaultCornerRadius},'tr':{'radius':defaultCornerRadius},'bl':{'radius':defaultCornerRadius},'br':{'radius':defaultCornerRadius},'doTopMargin':false,'doBottomMargin':false,'cornerScriptUrl':cornerScriptUrl}
cCorners.apply(this.dialogDiv,settings);}}
Dialog.prototype.hide=function(){if(this.state=='opened'){this.state='hiding';this.splashDiv.hide(_hitch(this,'_hideComplete'));}}
Dialog.prototype.destroy=function(){if(this.state=='opened'){this.state='closed';this.splashDiv.destroy();}}
Dialog.prototype._showComplete=function(){this.state='opened';}
Dialog.prototype._hideComplete=function(){this.state='closed';}
function exists(obj,name){var p=name.split('.');for(var i=0;i<p.length;i++){if(!(obj[p[i]])){return false;}
obj=obj[p[i]];}
return true;}
function getViewportHeight(){if(window.innerHeight){return window.innerHeight;}
if(exists(document,'documentElement.clientHeight')){return document.documentElement.clientHeight;}
if(document.body){return document.body.clientHeight;}
return 0;}
function getScrollTop(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;}
lang={texts:{}};lang.set=function(id,text){lang.texts[id]=text;}
lang.get=function(id,replacements,throwExceptions){if(typeof(lang.texts[id])!=='undefined'){var ret=lang.texts[id],regex,replace;if(typeof(replacements)==='object'){for(var i in replacements){regex=new RegExp('\{'+i+'\}','g');if(ret.match(regex)){if(typeof(replacements[i])==='string'||typeof(replacements[i])==='number'){replace=replacements[i];}else if(typeof(throwExceptions)!=='undefined'&&throwExceptions){throw new Error('attempting to replace a placeholder with an invalid value (placeholder: '+i+', value: '+replacements[i]+' ['+typeof(replacements[i])+'])');}else{replace='';}
ret=ret.replace(regex,replace);}}}
return ret;}
if(throwExceptions){throw new Error('unable to find lang text for id '+id);}
return'';}
function enforceWidth(obj,fillerText){if(typeof(fillerText)=='undefined'){fillerText='[...]';}
try{var styleWidth=get_style(obj,'width','width');if(styleWidth=='auto'||styleWidth==''){return;}
if(obj.tagName=='TH'||obj.tagName=='TD'){var maxWidth=obj.offsetWidth;var entireText=obj.innerHTML;var truncatedText;var testDiv=document.createElement('DIV');testDiv.style.visibility='hidden';testDiv.style.position='absolute';testDiv.style.whiteSpace='nowrap';testDiv.innerHTML=entireText;obj.appendChild(testDiv);maxWidth-=1;if(testDiv.offsetWidth>maxWidth){testDiv.innerHTML+=fillerText;while(testDiv.offsetWidth>maxWidth){testDiv.innerHTML=testDiv.innerHTML.substr(0,(testDiv.innerHTML.length-(fillerText.length+1)))+fillerText;}
truncatedText=testDiv.innerHTML;}
obj.removeChild(testDiv);if(truncatedText){obj.setAttribute('title',entireText);obj.innerHTML=truncatedText;}}else{if(styleWidth.indexOf('em')>=0){obj.style.width='auto';var testDiv=document.createElement('DIV');testDiv.style.visibility='hidden';testDiv.style.position='absolute';testDiv.style.left='1em';testDiv.style.top='1em';obj.appendChild(testDiv);width=(testDiv.offsetLeft*parseFloat(styleWidth));obj.removeChild(testDiv);}else if(styleWidth.indexOf('px')){width=parseFloat(styleWidth);}else{throw new Error('enforceWidth cannot handle this type of unit');}
if(obj.offsetWidth>width){var textNode=obj.childNodes[obj.childNodes.length-1];var entireText=textNode.nodeValue;textNode.nodeValue+=fillerText;while(obj.offsetWidth>width&&textNode.nodeValue!=fillerText){var textNode=obj.childNodes[obj.childNodes.length-1];textNode.nodeValue=textNode.nodeValue.substr(0,(textNode.nodeValue.length-(fillerText.length+1)))+fillerText;}
obj.setAttribute('title',entireText);}
if(obj.style.width=='auto'){obj.style.width=styleWidth;}}}catch(e){alert(e);}}
startList=function(nodeName,className){if(document.all&&document.getElementById){navRoot=document.getElementById(nodeName);for(i=0;i<navRoot.childNodes.length;i++){node=navRoot.childNodes[i];if(node.nodeName=="LI"){node.onmouseover=function(){addClass(this,className);if(isIE&&verIE<=6&&this.id=='mainMenuItemColo'){var ul=document.getElementById('mainMenuItemSubColo');if(ul){ul.style.display='block';}}
else if(isIE&&verIE<=6&&this.id=='mainMenuItemShared'){var ul=document.getElementById('mainMenuItemSubShared');if(ul){ul.style.display='block';}}
else if(isIE&&verIE<=6&&this.id=='mainMenuItemDedicated'){var ul=document.getElementById('mainMenuItemSubDedicated');if(ul){ul.style.display='block';}}
else if(isIE&&verIE<=6&&this.id=='mainMenuItemManaged'){var ul=document.getElementById('mainMenuItemSubManaged');if(ul){ul.style.display='block';}}}
node.onmouseout=function(){removeClass(this,className);if(isIE&&verIE<=6&&this.id=='mainMenuItemColo'){var ul=document.getElementById('mainMenuItemSubColo');if(ul){ul.style.display='none';}}
else if(isIE&&verIE<=6&&this.id=='mainMenuItemShared'){var ul=document.getElementById('mainMenuItemSubShared');if(ul){ul.style.display='none';}}
else if(isIE&&verIE<=6&&this.id=='mainMenuItemDedicated'){var ul=document.getElementById('mainMenuItemSubDedicated');if(ul){ul.style.display='none';}}
else if(isIE&&verIE<=6&&this.id=='mainMenuItemManaged'){var ul=document.getElementById('mainMenuItemSubManaged');if(ul){ul.style.display='none';}}}}}}}
var _onLoadFunctionsList=[];var _onLoadRegistered=false;function _initOnLoad()
{for(var i=0;i<_onLoadFunctionsList.length;i++)
{_onLoadFunctionsList[i]();}}
function addOnLoadFunction(fn)
{_onLoadFunctionsList.push(fn);if(!_onLoadRegistered)
{if(isIE)
{function statechange(){if(document.readyState=="interactive")
_initOnLoad();}}
else if(isMoz)
{if(document.addEventListener){document.addEventListener("DOMContentLoaded",_initOnLoad,false);}}
else if(isSafari||isKonqueror)
{var _timer=setInterval(function(){if(/loaded|complete/.test(document.readyState)){clearInterval(_timer);_initOnLoad();}},10);}
_onLoadRegistered=true;}}
var iCrossFader={backgroundIndex:10,foregroundIndex:20,waitingIndex:5,imageDisplayDuration:8000,opacityIncrement:10,crossFadeInterval:30,imagesToLoad:null,_currentImage:0,_previousImage:0,_stopped:false,_opacity:0,_images:null,_imageTimeoutHandle:null,_opacityIntervalHandle:null,_imagesLoaded:0,_container:null,_hasLink:false,featureSelect:'featureSelect',_onFadeFunction:null,init:function(){iCrossFader._images=new Array();iCrossFader._images[0]=document.getElementById('imgStart');iCrossFader._container=iCrossFader._images[0].parentNode;if(iCrossFader._container.tagName=='A')
{iCrossFader._hasLink=true;iCrossFader._images[0].url=iCrossFader._container.href;}
iCrossFader._images[0].style.zIndex=iCrossFader.foregroundIndex;for(i=0;i<iCrossFader.imagesToLoad.length;i++)
{var img=new Image();img.onLoad=new function(){iCrossFader._imagesLoaded++;iCrossFader._loadCheck();}
img.src=iCrossFader.imagesToLoad[i].src;iCrossFader._images[i+1]=document.createElement('img');iCrossFader._images[i+1].src=img.src;iCrossFader._images[i+1].alt=iCrossFader.imagesToLoad[i].alt;iCrossFader._images[i+1].url=iCrossFader.imagesToLoad[i].url;iCrossFader._images[i+1].style.zIndex=iCrossFader.waitingIndex;iCrossFader._container.appendChild(iCrossFader._images[i+1]);}
removeClass(document.getElementById(iCrossFader.featureSelect),'noScript');addClass(document.getElementById('n'+iCrossFader._currentImage),'selected');},_loadCheck:function(){if(iCrossFader._imagesLoaded==iCrossFader.imagesToLoad.length)
{iCrossFader.start();}},_crossFade:function(fromImage,toImage){setOpacity(iCrossFader._images[toImage],0);iCrossFader._images[toImage].style.zIndex=iCrossFader.foregroundIndex;iCrossFader._images[fromImage].style.zIndex=iCrossFader.backgroundIndex;iCrossFader._currentImage=toImage;iCrossFader._previousImage=fromImage;iCrossFader._opacityIntervalHandle=window.setInterval("new function() {iCrossFader._fade();}",iCrossFader.crossFadeInterval);},_fade:function(){if(iCrossFader._opacity==0){try{iCrossFader._onFadeFunction.apply();}
catch(e){}
try{removeClass(document.getElementById('n'+iCrossFader._previousImage),'selected');addClass(document.getElementById('n'+iCrossFader._currentImage),'selected');}catch(e){}}
setOpacity(iCrossFader._images[iCrossFader._currentImage],iCrossFader._opacity);iCrossFader._opacity+=iCrossFader.opacityIncrement;if(iCrossFader._hasLink&&50<=iCrossFader._opacity&&iCrossFader._container.href!=iCrossFader._images[iCrossFader._currentImage].url)
{iCrossFader._container.href=iCrossFader._images[iCrossFader._currentImage].url;}
if(iCrossFader._opacity>100){iCrossFader._opacity=100;iCrossFader._images[iCrossFader._currentImage].style.opacity=1;iCrossFader.stop();iCrossFader._onFade();}},start:function(){if(!iCrossFader._stopped){iCrossFader._opacity=0;from=iCrossFader._currentImage;to=from+1;if(to>=iCrossFader._images.length&&iCrossFader._images.length>1){to=0;}
iCrossFader._imageTimeoutHandle=window.setTimeout("new function() {iCrossFader._crossFade("+from+","+to+");}",iCrossFader.imageDisplayDuration);}},stop:function(){window.clearInterval(iCrossFader._opacityIntervalHandle);window.clearTimeout(iCrossFader._imageTimeoutHandle);},selectImage:function(id){iCrossFader._stopped=true;iCrossFader.stop();try
{if(iCrossFader._hasLink)
{iCrossFader._container.href=iCrossFader._images[id].url;}
setOpacity(iCrossFader._images[iCrossFader._currentImage],100);setOpacity(iCrossFader._images[iCrossFader._previous],0);}
catch(e){}
if(id!=iCrossFader._currentImage){iCrossFader._opacity=0;iCrossFader._crossFade(iCrossFader._currentImage,id);}},_onFade:function(){try{setOpacity(iCrossFader._images[iCrossFader._previousImage],0);}catch(e){}
iCrossFader.start();}};function Delegate(){}
Delegate.create=function(o,f){var a=new Array();var l=arguments.length;for(var i=2;i<l;i++)a[i-2]=arguments[i];return function(){var aP=[].concat(arguments,a);f.apply(o,aP);}}
Tween=function(obj,prop,func,begin,finish,duration,suffixe){this.init(obj,prop,func,begin,finish,duration,suffixe)}
var t=Tween.prototype;t.obj=new Object();t.prop='';t.func=function(t,b,c,d){return c*t/d+b;};t.begin=0;t.change=0;t.prevTime=0;t.prevPos=0;t.looping=false;t._duration=0;t._time=0;t._pos=0;t._position=0;t._startTime=0;t._finish=0;t.name='';t.suffixe='';t._listeners=new Array();t.setTime=function(t){this.prevTime=this._time;if(t>this.getDuration()){if(this.looping){this.rewind(t-this._duration);this.update();this.broadcastMessage('onMotionLooped',{target:this,type:'onMotionLooped'});}else{this._time=this._duration;this.update();this.stop();this.broadcastMessage('onMotionFinished',{target:this,type:'onMotionFinished'});}}else if(t<0){this.rewind();this.update();}else{this._time=t;this.update();}}
t.getTime=function(){return this._time;}
t.setDuration=function(d){this._duration=(d==null||d<=0)?100000:d;}
t.getDuration=function(){return this._duration;}
t.setPosition=function(p){this.prevPos=this._pos;var a=this.suffixe!=''?this.suffixe:'';this.obj[this.prop]=Math.round(p)+a;this._pos=p;this.broadcastMessage('onMotionChanged',{target:this,type:'onMotionChanged'});}
t.getPosition=function(t){if(t==undefined)t=this._time;return this.func(t,this.begin,this.change,this._duration);};t.setFinish=function(f){this.change=f-this.begin;};t.geFinish=function(){return this.begin+this.change;};t.init=function(obj,prop,func,begin,finish,duration,suffixe){if(!arguments.length)return;this._listeners=new Array();this.addListener(this);if(suffixe)this.suffixe=suffixe;this.obj=obj;this.prop=prop;this.begin=begin;this._pos=begin;this.setDuration(duration);if(func!=null&&func!=''){this.func=func;}
this.setFinish(finish);}
t.start=function(){this.rewind();this.startEnterFrame();this.broadcastMessage('onMotionStarted',{target:this,type:'onMotionStarted'});}
t.rewind=function(t){this.stop();this._time=(t==undefined)?0:t;this.fixTime();this.update();}
t.fforward=function(){this._time=this._duration;this.fixTime();this.update();}
t.update=function(){this.setPosition(this.getPosition(this._time));}
t.startEnterFrame=function(){this.stopEnterFrame();this.isPlaying=true;this.onEnterFrame();}
t.onEnterFrame=function(){if(this.isPlaying){this.nextFrame();setTimeout(Delegate.create(this,this.onEnterFrame),0);}}
t.nextFrame=function(){this.setTime((this.getTimer()-this._startTime)/1000);}
t.stop=function(){this.stopEnterFrame();this.broadcastMessage('onMotionStopped',{target:this,type:'onMotionStopped'});}
t.stopEnterFrame=function(){this.isPlaying=false;}
t.continueTo=function(finish,duration){this.begin=this._pos;this.setFinish(finish);if(this._duration!=undefined)
this.setDuration(duration);this.start();}
t.resume=function(){this.fixTime();this.startEnterFrame();this.broadcastMessage('onMotionResumed',{target:this,type:'onMotionResumed'});}
t.yoyo=function(){this.continueTo(this.begin,this._time);}
t.addListener=function(o){this.removeListener(o);return this._listeners.push(o);}
t.removeListener=function(o){var a=this._listeners;var i=a.length;while(i--){if(a[i]==o){a.splice(i,1);return true;}}
return false;}
t.broadcastMessage=function(){var arr=new Array();for(var i=0;i<arguments.length;i++){arr.push(arguments[i])}
var e=arr.shift();var a=this._listeners;var l=a.length;for(var i=0;i<l;i++){if(a[i][e])
a[i][e].apply(a[i],arr);}}
t.fixTime=function(){this._startTime=this.getTimer()-this._time*1000;}
t.getTimer=function(){return new Date().getTime()-this._time;}
Tween.backEaseIn=function(t,b,c,d,a,p){if(s==undefined)var s=1.70158;return c*(t/=d)*t*((s+1)*t-s)+b;}
Tween.backEaseOut=function(t,b,c,d,a,p){if(s==undefined)var s=1.70158;return c*((t=t/d-1)*t*((s+1)*t+s)+1)+b;}
Tween.backEaseInOut=function(t,b,c,d,a,p){if(s==undefined)var s=1.70158;if((t/=d/2)<1)return c/2*(t*t*(((s*=(1.525))+1)*t-s))+b;return c/2*((t-=2)*t*(((s*=(1.525))+1)*t+s)+2)+b;}
Tween.elasticEaseIn=function(t,b,c,d,a,p){if(t==0)return b;if((t/=d)==1)return b+c;if(!p)p=d*.3;if(!a||a<Math.abs(c)){a=c;var s=p/4;}
else
var s=p/(2*Math.PI)*Math.asin(c/a);return-(a*Math.pow(2,10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p))+b;}
Tween.elasticEaseOut=function(t,b,c,d,a,p){if(t==0)return b;if((t/=d)==1)return b+c;if(!p)p=d*.3;if(!a||a<Math.abs(c)){a=c;var s=p/4;}
else var s=p/(2*Math.PI)*Math.asin(c/a);return(a*Math.pow(2,-10*t)*Math.sin((t*d-s)*(2*Math.PI)/p)+c+b);}
Tween.elasticEaseInOut=function(t,b,c,d,a,p){if(t==0)return b;if((t/=d/2)==2)return b+c;if(!p)var p=d*(.3*1.5);if(!a||a<Math.abs(c)){var a=c;var s=p/4;}
else var s=p/(2*Math.PI)*Math.asin(c/a);if(t<1)return-.5*(a*Math.pow(2,10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p))+b;return a*Math.pow(2,-10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p)*.5+c+b;}
Tween.bounceEaseOut=function(t,b,c,d){if((t/=d)<(1/2.75)){return c*(7.5625*t*t)+b;}else if(t<(2/2.75)){return c*(7.5625*(t-=(1.5/2.75))*t+.75)+b;}else if(t<(2.5/2.75)){return c*(7.5625*(t-=(2.25/2.75))*t+.9375)+b;}else{return c*(7.5625*(t-=(2.625/2.75))*t+.984375)+b;}}
Tween.bounceEaseIn=function(t,b,c,d){return c-Tween.bounceEaseOut(d-t,0,c,d)+b;}
Tween.bounceEaseInOut=function(t,b,c,d){if(t<d/2)return Tween.bounceEaseIn(t*2,0,c,d)*.5+b;else return Tween.bounceEaseOut(t*2-d,0,c,d)*.5+c*.5+b;}
Tween.strongEaseInOut=function(t,b,c,d){return c*(t/=d)*t*t*t*t+b;}
Tween.regularEaseIn=function(t,b,c,d){return c*(t/=d)*t+b;}
Tween.regularEaseOut=function(t,b,c,d){return-c*(t/=d)*(t-2)+b;}
Tween.regularEaseInOut=function(t,b,c,d){if((t/=d/2)<1)return c/2*t*t+b;return-c/2*((--t)*(t-2)-1)+b;}
Tween.strongEaseIn=function(t,b,c,d){return c*(t/=d)*t*t*t*t+b;}
Tween.strongEaseOut=function(t,b,c,d){return c*((t=t/d-1)*t*t*t*t+1)+b;}
Tween.strongEaseInOut=function(t,b,c,d){if((t/=d/2)<1)return c/2*t*t*t*t*t+b;return c/2*((t-=2)*t*t*t*t+2)+b;}
OpacityTween.prototype=new Tween();OpacityTween.prototype.constructor=Tween;OpacityTween.superclass=Tween.prototype;function OpacityTween(obj,func,fromOpacity,toOpacity,duration){this.targetObject=obj;this.init(new Object(),'x',func,fromOpacity,toOpacity,duration);}
var o=OpacityTween.prototype;o.targetObject={};o.onMotionChanged=function(evt){var v=evt.target._pos;var t=this.targetObject;setOpacity(t,v);}
function Sequence(){this.children=new Array();this.currentChildIndex=0;this._listeners=new Array();this.nextObject=new Object();this.addListener(this);}
var s=Sequence.prototype;s.addChild=function(tween){this.children.push(tween)}
s.removeChild=function(tween){var a=this.children;var i=a.length;while(i--){if(a[i]==tween){a.splice(i,1);return true;}}
return false;}
s.start=function(){this.rewind();this.play();this.broadcastMessage('onMotionStarted',{target:this,type:'onMotionStarted'});}
s.next=function(){this.children[this.currentChildIndex].removeListener(this.nextObject);if(this.currentChildIndex<this.children.length-1){this.currentChildIndex++;this.play();}
else{this.stop();this.broadcastMessage('onMotionFinished',{target:this,type:'onMotionFinished'});}}
s.play=function(){this.nextObject=new Object();this.nextObject.onMotionFinished=Delegate.create(this,this.next);this.children[this.currentChildIndex].addListener(this.nextObject);this.children[this.currentChildIndex].start();}
s.stop=function(){this.children[this.currentChildIndex].stop();this.broadcastMessage('onMotionStopped',{target:this,type:'onMotionStopped'});}
s.rewind=function(){this.children[this.currentChildIndex].removeListener(this.nextObject);this.currentChildIndex=0;for(var i=0;i<this.children.length;i++){this.children[i].rewind();}}
s.fforward=function(){this.children[this.currentChildIndex].removeListener(this.nextObject);for(var i=0;i<this.children.length;i++){this.children[i].fforward();}
this.currentChildIndex=this.children.length-1;}
s.resume=function(){this.children[this.currentChildIndex].resume();this.broadcastMessage('onMotionResumed',{target:this,type:'onMotionStopped'});}
s.addListener=function(o){this.removeListener(o);return this._listeners.push(o);}
s.removeListener=function(o){var a=this._listeners;var i=a.length;while(i--){if(a[i]==o){a.splice(i,1);return true;}}
return false;}
s.broadcastMessage=function(){var arr=new Array();for(var i=0;i<arguments.length;i++){arr.push(arguments[i])}
var e=arr.shift();var a=this._listeners;var l=a.length;for(var i=0;i<l;i++){if(a[i][e])
a[i][e].apply(a[i],arr);}}
function Parallel(){this.children=new Array();this.numChildren=0;this._listeners=new Array();this.addListener(this);}
var s=Parallel.prototype;s.endObject=new Object();s.addChild=function(tween){this.children.push(tween)
this.numChildren++;}
s.start=function(){this.play();this.broadcastMessage('onMotionStarted',{target:this,type:'onMotionStarted'});}
s.play=function(){for(var u=0;u<this.numChildren;u++){if(u==(this.numChildren-1)){this.endObject=new Object();this.endObject.onMotionFinished=Delegate.create(this,this.end);this.children[u].addListener(this.endObject);}
this.children[u].start();}}
s.end=function(){this.children[this.numChildren-1].removeListener(this.endObject);this.broadcastMessage('onMotionFinished',{target:this,type:'onMotionFinished'});}
s.stop=function(){this.enumAction('stop');this.broadcastMessage('onMotionStopped',{target:this,type:'onMotionStopped'});}
s.rewind=function(){this.enumAction('rewind');}
s.fforward=function(){this.enumAction('fforward');}
s.resume=function(){this.enumAction('resume');this.broadcastMessage('onMotionResumed',{target:this,type:'onMotionResumed'});}
s.yoyo=function(){this.enumAction('yoyo');}
s.enumAction=function(action){for(var u=0;u<this.numChildren;u++){this.children[u][action]();}}
s.addListener=function(o){this.removeListener(o);return this._listeners.push(o);}
s.removeListener=function(o){var a=this._listeners;var i=a.length;while(i--){if(a[i]==o){a.splice(i,1);return true;}}
return false;}
s.broadcastMessage=function(){var arr=new Array();for(var i=0;i<arguments.length;i++){arr.push(arguments[i])}
var e=arr.shift();var a=this._listeners;var l=a.length;for(var i=0;i<l;i++){if(a[i][e])
a[i][e].apply(a[i],arr);}}
