rtgxSessionID="";function _rtgx_createRtgx(b,a){rtgx=new _rtgxClass(a,b);if(document.location.href.indexOf("rtgxdebug")!=-1){__rtgxDebug_StartDebugMode(document.location.href.substring(document.location.href.indexOf("rtgxdebug")+9))}return rtgx}function _rtgxClass(siteGUID,token){var SERVER_DEFAULT_URL="http://srv.rainbowtgx.com/rtgxsrv";this.rtgxserver=SERVER_DEFAULT_URL;this.reqtimeout=2000;var ctoken=token;var sguid=siteGUID;var referrer=document.referrer;var location=document.location;var rtgxinitialized=false;var n=new Date();this.callsQueue=new Array();this.__pushCallsQueue=function(action,params,callBack){var call=new __rtgxUtils_WaitingCall(action,params,callBack);this.callsQueue.push(call)};this.sessionValues=new Array();this.__sessionValuesGetAndPush=function(){if(__rtgxUtils_CheckCookie()){var rtgxv=__rtgxUtils_GetCookie("__rtgxv");if(rtgxv){var svluesarr=rtgxv.split("@");for(var i=0;svluesarr&&i<svluesarr.length-1;i++){if(i%2==0){var already=false;for(var i=0;i<this.sessionValues.length;i++){if(this.sessionValues[i].key==svluesarr[i]){this.sessionValues[i].value=svluesarr[i+1];already=true}}if(!already){this.sessionValues.push(new __rtgxUtils_SessionValue(svluesarr[i],svluesarr[i+1]))}}}}}};this.__sessionValuesGetAndPush();this._setSessionValue=function(key,value){var already=false;for(var i=0;i<this.sessionValues.length;i++){if(this.sessionValues[i].key==key){this.sessionValues[i].value=value;already=true}}if(!already){this.sessionValues.push(new __rtgxUtils_SessionValue(key,value))}if(__rtgxUtils_CheckCookie()){var rtgxv=__rtgxUtils_GetCookie("__rtgxv");document.cookie="__rtgxv="+this.__sessionValuesStringify()+"; path=/"}};this._getSessionValue=function(key){var res="";if(__rtgxUtils_CheckCookie()){var rtgxv=__rtgxUtils_GetCookie("__rtgxv");if(rtgxv){var svluesarr=rtgxv.split("@");for(var i=0;svluesarr&&i<svluesarr.length-1;i++){if(i%2==0&&svluesarr[i]==key){return svluesarr[i+1]}}}}return res};if(__rtgxUtils_CheckCookie()){var rtgxGUID=__rtgxUtils_GetCookie("__rtgxg");if(!rtgxGUID){rtgxGUID=__rtgxUtils_GetUnique();__rtgxUtils_SetCookie("__rtgxg",rtgxGUID)}rtgxSessionID=__rtgxUtils_GetCookie("__rtgxj")}this.__getAppUrl=function(){try{var parts=document.location.pathname.split("/");var base=document.location.toString().split(document.location.pathname)[0]+"/"+parts[1]}catch(e){base=document.location}return base};this.smartbox_Factory=new Array();this.__smartboxFactoryPush=function(type,name,time,inputs,maskColor,maskOpacity,left,top){var box=new __rtgxSmartbox(type,name,time,inputs);if(maskColor){box.maskColor=maskColor}if(maskOpacity){box.maskOpacity=maskOpacity}if(left){box.left=left}if(top){box.top=top}var l=this.smartbox_Factory.push(box)};this.__smartboxFactoryStringify=function(){var res=new Array;for(var i=0;i<this.smartbox_Factory.length;i++){var smbx=this.smartbox_Factory[i];var arraySmbx=new Array();var ntype=null;if(smbx.type=="smartboxDisplay"){ntype=0}else{if(smbx.type=="smartboxPopover"){ntype=1}else{if(smbx.type=="smartboxDebug"){ntype=2}}}arraySmbx.push(ntype);arraySmbx.push(smbx.name);var inputstring="";var inputs=smbx.inputs;for(var j=0;j<smbx.inputs.length;j++){var input=inputs[j];inputstring+=input.key+"@"+input.value;if(j!=smbx.inputs.length-1){inputstring+="@"}}if(inputstring!=""){arraySmbx.push(inputstring)}res.push(arraySmbx)}return JSON.stringify(res)};this.__sessionValuesStringify=function(){var res="";for(var i=0;i<this.sessionValues.length;i++){var el=this.sessionValues[i];res+=el.key+"@"+el.value;if(i!=this.sessionValues.length-1){res+="@"}}return res};this.__profileStringify=function(){var res="";for(var i=0;i<this.profileCookie.length;i++){var prof=this.profileCookie[i];for(var prop in prof){res+=prop+"@"+prof[prop];if(i<this.profileCookie.length-1){res+="@"}}}return res};this.__behaviourStringify=function(){var res="";for(var i=0;i<this.eventsCookie.length;i++){var prof=this.eventsCookie[i];for(var prop in prof){res+=prop+"@"+prof[prop];if(i<this.eventsCookie.length-1){res+="@"}}}return res};this.__getSmartboxObject=function(name){for(var i=0;i<this.smartbox_Factory.length;i++){if(this.smartbox_Factory[i].name==name){return this.smartbox_Factory[i]}}};this._createSmartbox=function(type,name){var inputs=new Array();var maskColor=null;var maskOpacity=null;var left=null;var top=null;for(var i=2;i<arguments.length;i++){var keyvalue=arguments[i].split("=");if(keyvalue.length!=2){continue}var input=new __rtgxUtils_SmbxInput(keyvalue[0],keyvalue[1]);inputs.push(input);if(type=="smartboxPopover"&&keyvalue[0]=="color"){maskColor=keyvalue[1]}if(type=="smartboxPopover"&&keyvalue[0]=="opacity"){maskOpacity=keyvalue[1]}if(type=="smartboxPopover"&&keyvalue[0]=="left"){left=keyvalue[1]}if(type=="smartboxPopover"&&keyvalue[0]=="top"){top=keyvalue[1]}}document.getElementById(name).style.visibility="hidden";if(document.location.href.indexOf("rtgxdebug")!=-1){__rtgxDebug_AddSmbxRow(name,type)}this.__smartboxFactoryPush(type,name,new Date().getTime(),inputs,maskColor,maskOpacity,left,top)};this.eventsCookie=new Array();this.profileCookie=new Array();this._updateBvh=function(){if(__rtgxUtils_GetCookie("__rtgxe")){this.eventsCookie=new Array();var keyValuePairs=__rtgxUtils_GetCookie("__rtgxe").split("@");for(var i=0;i<keyValuePairs.length;i++){var name=keyValuePairs[i].substring(0,keyValuePairs[i].indexOf("="));var value=keyValuePairs[i].substring(keyValuePairs[i].indexOf("=")+1);if(value){var values=value.split("#");var arrValues=new Array();for(var j=0;j<values.length;j++){arrValues.push(values[j])}value=values}var evcookie={};evcookie[name]=value;this.eventsCookie.push(evcookie)}}};this._updatePro=function(){this.profileCookie=new Array();if(__rtgxUtils_GetCookie("__rtgxp")){var keyValuePairs=__rtgxUtils_GetCookie("__rtgxp").split("@");for(var i=0;i<keyValuePairs.length;i++){var name=keyValuePairs[i].substring(0,keyValuePairs[i].indexOf("="));var value=keyValuePairs[i].substring(keyValuePairs[i].indexOf("=")+1);if(value){var values=value.split("#");var arrValues=new Array();for(var j=0;j<values.length;j++){arrValues.push(values[j])}value=values}var profcookie={};profcookie[name]=value;this.profileCookie.push(profcookie)}}};if(__rtgxUtils_CheckCookie()){this._updateBvh();this._updatePro();var historycookie=null;var datefirstvisit=null;var numvisits=0;if(__rtgxUtils_GetCookie("__rtgxh")){historycookie=__rtgxUtils_GetCookie("__rtgxh");var piecesofhystory=historycookie.split("$");datefirstvisit=piecesofhystory[1];numvisits=piecesofhystory[2]}if(datefirstvisit==null){datefirstvisit=n.getTime()}numvisits++;__rtgxUtils_SetCookie("__rtgxh",n.getTime()+"$"+datefirstvisit+"$"+numvisits)}this._updateAll=function(obj){if(obj.enablefacebook&&!obj.fbme){obj.__getFb();return}obj._updateBvh();obj._updatePro();var params={};if(rtgxinitialized){params.z="1"}params.t=ctoken;params.s=sguid;params.g=rtgxGUID;var dbgnavigator=null;var dbglang=null;var dbgwidth=null;var dbgheight=null;var dbgcolor=null;var dbgos=null;var dbguserag=null;var dbgdevice=null;if(obj.mchdebug){try{var piecesOfMachine=obj.mchdebug.split("$");dbgnavigator=piecesOfMachine[0].length>0?piecesOfMachine[0]:null;dbglang=piecesOfMachine[1].length>0?piecesOfMachine[1]:null;dbgwidth=piecesOfMachine[2].length>0?piecesOfMachine[2]:null;dbgheight=piecesOfMachine[3].length>0?piecesOfMachine[3]:null;dbgcolor=piecesOfMachine[4].length>0?piecesOfMachine[4]:null;dbgos=piecesOfMachine[5].length>0?piecesOfMachine[5]:null;dbguserag=piecesOfMachine[6].length>0?piecesOfMachine[6]:null;dbgdevice=piecesOfMachine[7].length>0?piecesOfMachine[7]:null}catch(err){alert("RTGX debug error. Error in mch (machine) configuration url parameter")}}var machine=(dbgnavigator?dbgnavigator:navigator.appName)+"$"+(dbglang?dbglang:((navigator.language)?navigator.language:navigator.userLanguage))+"$"+(dbgwidth?dbgwidth:screen.width)+"$"+(dbgheight?dbgheight:screen.height);var colour=null;if(navigator.appName!="Netscape"){colour=screen.colorDepth}else{colour=screen.pixelDepth}var OSName="Unknown OS";if(navigator.appVersion.indexOf("Win")!=-1){OSName="Windows"}if(navigator.appVersion.indexOf("Mac")!=-1){OSName="MacOS"}if(navigator.appVersion.indexOf("X11")!=-1){OSName="UNIX"}if(navigator.appVersion.indexOf("Linux")!=-1){OSName="Linux"}machine+="$"+(dbgcolor?dbgcolor:colour)+"$"+(dbgos?dbgos:OSName)+"$"+(dbguserag?dbguserag:navigator.userAgent)+"$"+(dbgdevice?dbgdevice:obj.__detectDevice());params.mch=machine;var svl=obj.__sessionValuesStringify();if(svl&&svl!=""){params.svl=svl}if(__rtgxUtils_CheckCookie()){var bvh=obj.__behaviourStringify();if(bvh&&bvh!=""){params.bhv=bvh}}if(__rtgxUtils_CheckCookie()){var pro=obj.__profileStringify();if(pro&&pro!=""){params.pro=pro}}var time=n.getTimezoneOffset();params.tim=obj.timdebug?obj.timdebug:time;params.cnt=obj.cntdebug?obj.cntdebug:encodeURIComponent(location);var se=obj.__detectSE(referrer);var dbgreferr=null;var dbgdbgsearcheng=null;var dbgsearchquery=null;if(obj.srcdebug){try{var piecesOfSource=obj.srcdebug.split("$");dbgreferr=piecesOfSource[0].length>0?piecesOfSource[0]:null;dbgdbgsearcheng=piecesOfSource[1].length>0?piecesOfSource[1]:null;dbgsearchquery=piecesOfSource[2].length>0?piecesOfSource[2]:null}catch(err){alert("RTGX debug error. Error in src (source) configuration url parameter")}}var source=(dbgreferr?dbgreferr:(referrer?encodeURIComponent(referrer):""))+"$"+(dbgdbgsearcheng?dbgdbgsearcheng:(se[0]&&se[0]!="undefined"?se[0]:""))+"$"+(dbgsearchquery?dbgsearchquery:(se[1]&&se[1]!="undefined"?se[1]:""));params.sbx=encodeURIComponent(obj.__smartboxFactoryStringify());if(this.scoreParams){params.tks=this.scoreParams}params.src=source;var dbglastvis=null;var dbgfirstvi=null;var dbgnumviss=null;if(obj.hstdebug){try{var piecesofhystory=obj.hstdebug.split("$");dbglastvis=piecesofhystory[0].length>0?piecesofhystory[0]:null;dbgfirstvi=piecesofhystory[1].length>0?piecesofhystory[1]:null;dbgnumviss=piecesofhystory[2].length>0?piecesofhystory[2]:null}catch(err){alert("RTGX debug error. Error in hst (history) configuration url parameter")}}var reallastvis=null;var realfirstvis=null;var realnumvis=null;if(historycookie!=null){var piecesofhystory=historycookie.split("$");reallastvis=piecesofhystory[0];realfirstvis=piecesofhystory[1];realnumvis=piecesofhystory[2]}if(dbglastvis||dbgfirstvi||dbgnumviss||historycookie){params.hst=(dbglastvis||reallastvis||"")+"$"+(dbgfirstvi||realfirstvis||"")+"$"+(dbgnumviss||realnumvis||"")}var dbgfbid=null;var dbgfname=null;var dbgfbfirstname=null;var dbgfbmiddlename=null;var dbgfblastname=null;var dbgfbgender=null;var dbgfblocale=null;var dbgfblink=null;var dbgfbusername=null;var dbgfbthirdparty=null;var dbgfbtimezone=null;var dbgfbupdatedtime=null;var dbgfbverified=null;var dbgfbbio=null;var dbgfbbirthday=null;var dbgfbemail=null;var dbgfbpolitical=null;var dbgfbquotes=null;var dbgfbrelationshipstatus=null;var dbgfbreligion=null;var dbgfbwebsite=null;if(obj.fbbdebug){try{var piecesoffacebook=obj.fbbdebug.split("$");dbgfbid=piecesoffacebook[0].length>0?piecesoffacebook[0]:null;dbgfname=piecesoffacebook[1].length>0?piecesoffacebook[1]:null;dbgfbfirstname=piecesoffacebook[2].length>0?piecesoffacebook[2]:null;dbgfbmiddlename=piecesoffacebook[3].length>0?piecesoffacebook[3]:null;dbgfblastname=piecesoffacebook[4].length>0?piecesoffacebook[4]:null;dbgfbgender=piecesoffacebook[5].length>0?piecesoffacebook[5]:null;dbgfblocale=piecesoffacebook[6].length>0?piecesoffacebook[6]:null;dbgfblink=piecesoffacebook[7].length>0?piecesoffacebook[7]:null;dbgfbusername=piecesoffacebook[8].length>0?piecesoffacebook[8]:null;dbgfbthirdparty=piecesoffacebook[9].length>0?piecesoffacebook[9]:null;dbgfbtimezone=piecesoffacebook[10].length>0?piecesoffacebook[10]:null;dbgfbupdatedtime=piecesoffacebook[11].length>0?piecesoffacebook[11]:null;dbgfbverified=piecesoffacebook[12].length>0?piecesoffacebook[12]:null;dbgfbbio=piecesoffacebook[13].length>0?piecesoffacebook[13]:null;dbgfbbirthday=piecesoffacebook[14].length>0?piecesoffacebook[14]:null;dbgfbemail=piecesoffacebook[15].length>0?piecesoffacebook[15]:null;dbgfbpolitical=piecesoffacebook[16].length>0?piecesoffacebook[16]:null;dbgfbquotes=piecesoffacebook[17].length>0?piecesoffacebook[17]:null;dbgfbrelationshipstatus=piecesoffacebook[18].length>0?piecesoffacebook[18]:null;dbgfbreligion=piecesoffacebook[19].length>0?piecesoffacebook[19]:null;dbgfbwebsite=piecesoffacebook[20].length>0?piecesoffacebook[20]:null}catch(err){alert("RTGX debug error. Error in fbb (base facebook) configuration url parameter")}}if(obj.fbme||obj.fbbdebug){var basefb="";basefb+=(dbgfbid!=null?dbgfbid:(obj.fbme.id||""));basefb+="$"+(dbgfname!=null?dbgfname:(obj.fbme.name?obj.fbme.name:""));basefb+="$"+(dbgfbfirstname!=null?dbgfbfirstname:(obj.fbme.first_name?obj.fbme.first_name:""));basefb+="$"+(dbgfbmiddlename!=null?dbgfbmiddlename:(obj.fbme.middle_name?obj.fbme.middle_name:""));basefb+="$"+(dbgfblastname!=null?dbgfblastname:(obj.fbme.last_name?obj.fbme.last_name:""));basefb+="$"+(dbgfbgender!=null?dbgfbgender:(obj.fbme.gender?obj.fbme.gender:""));basefb+="$"+(dbgfblocale!=null?dbgfblocale:(obj.fbme.locale?obj.fbme.locale:""));basefb+="$"+(dbgfblink!=null?dbgfblink:(obj.fbme.link?encodeURIComponent(obj.fbme.link):""));basefb+="$"+(dbgfbusername!=null?dbgfbusername:(obj.fbme.username?obj.fbme.username:""));basefb+="$"+(dbgfbthirdparty!=null?dbgfbthirdparty:(obj.fbme.third_party_id?obj.fbme.third_party_id:""));basefb+="$"+(dbgfbtimezone!=null?dbgfbtimezone:(obj.fbme.timezone?obj.fbme.timezone:""));basefb+="$"+(dbgfbupdatedtime!=null?dbgfbupdatedtime:(obj.fbme.updated_time?obj.fbme.updated_time:""));basefb+="$"+(dbgfbverified!=null?dbgfbverified:(obj.fbme.verified?obj.fbme.verified:""));basefb+="$"+(dbgfbbio!=null?dbgfbbio:(obj.fbme.bio?obj.fbme.bio:""));basefb+="$"+(dbgfbbirthday!=null?dbgfbbirthday:(obj.fbme.birthday?obj.fbme.birthday:""));basefb+="$"+(dbgfbemail!=null?dbgfbemail:(obj.fbme.email?obj.fbme.email:""));basefb+="$"+(dbgfbpolitical!=null?dbgfbpolitical:(obj.fbme.political?obj.fbme.political:""));basefb+="$"+(dbgfbquotes!=null?dbgfbquotes:(obj.fbme.quotes?obj.fbme.quotes:""));basefb+="$"+(dbgfbrelationshipstatus!=null?dbgfbrelationshipstatus:(obj.fbme.relationship_status?obj.fbme.relationship_status:""));basefb+="$"+(dbgfbreligion!=null?dbgfbreligion:(obj.fbme.religion?obj.fbme.religion:""));basefb+="$"+(dbgfbwebsite!=null?dbgfbwebsite:(obj.fbme.website?encodeURIComponent(obj.fbme.website):""));params.fbb=basefb}if(obj.fbldebug){params.fbl=obj.fbldebug}else{if(obj.fbme&&obj.fbme.languages){var languagesarr=obj.fbme.languages;var languagesfb="";for(var i=0;i<languagesarr.length;i++){languagesfb+=languagesarr[i].id+"@"+languagesarr[i].name+(i==languagesarr.length-1?"":"$")}params.fbl=languagesfb}}if(obj.fbedebug){params.fbe=obj.fbedebug}else{if(obj.fbme&&obj.fbme.education){var educationarr=obj.fbme.education;var educationfb="";for(var i=0;i<educationarr.length;i++){educationfb+=educationarr[i].year+"@"+educationarr[i].type+"@"+(educationarr[i].school?educationarr[i].school.id:educationarr[i].school)+"@"+(educationarr[i].school?educationarr[i].school.name:educationarr[i].school)+"@"+(educationarr[i].school?educationarr[i].school.type:educationarr[i].school)+"@"+(educationarr[i].school?educationarr[i].school.year:educationarr[i].school)+"@"+(educationarr[i].school?educationarr[i].school.degree:educationarr[i].school)+(i==educationarr.length-1?"":"$")}params.fbe=educationfb}}if(obj.fbwdebug){params.fbw=obj.fbwdebug}else{if(obj.fbme&&obj.fbme.work){var workarray=obj.fbme.work;var workfb="";for(var i=0;i<workarray.length;i++){workfb+=(workarray[i].employer?workarray[i].employer.id+"@"+workarray[i].employer.name:workarray[i].employer+"@"+workarray[i].employer)+(workarray[i].location?"@"+workarray[i].location.id+"@"+workarray[i].location.name:"@"+workarray[i].location+"@"+workarray[i].location)+(workarray[i].position?"@"+workarray[i].position.id+"@"+workarray[i].position.name:"@"+workarray[i].position+"@"+workarray[i].position)+(i==workarray.length-1?"":"$")}params.fbw=workfb}}if(obj.fbidebug){params.fbi=obj.fbidebug}else{if(obj.fbme&&obj.fbme.interested_in){var interestedinarray=obj.fbme.interested_in;var interestedinfb="";for(var i=0;i<interestedinarray.length;i++){interestedinfb+=interestedinarray[i]+(i==interestedinarray.length-1?"":"$")}params.fbi=interestedinfb}}var dbgfbhometownid=null;var dbgfbhometownname=null;var dbgfblocationid=null;var dbgfblocationname=null;if(obj.fbgdebug){try{var piecesofgeofacebook=obj.fbgdebug.split("$");dbgfbhometownid=piecesofgeofacebook[0].length>0?piecesofgeofacebook[0]:null;dbgfbhometownname=piecesofgeofacebook[1].length>0?piecesofgeofacebook[1]:null;dbgfblocationid=piecesofgeofacebook[2].length>0?piecesofgeofacebook[2]:null;dbgfblocationname=piecesofgeofacebook[3].length>0?piecesofgeofacebook[3]:null}catch(err){alert("RTGX debug error. Error in fbg (geo facebook) configuration url parameter")}}if(obj.fbme||obj.fbgdebug){var geofb="";geofb+=(dbgfbhometownid!=null?dbgfbhometownid:(obj.fbme.hometown?obj.fbme.hometown.id:obj.fbme.hometown));geofb+="$"+(dbgfbhometownname!=null?dbgfbhometownname:(obj.fbme.hometown?obj.fbme.hometown.name:obj.fbme.hometown));geofb+="$"+(dbgfblocationid!=null?dbgfblocationid:(obj.fbme.location?obj.fbme.location.id:obj.fbme.location));geofb+="$"+(dbgfblocationname!=null?dbgfblocationname:(obj.fbme.location?obj.fbme.location.name:obj.fbme.location));params.fbg=geofb}for(var i=0;i<obj.smartbox_Factory.length;i++){obj.smartbox_Factory[i].callTime=new Date().getTime()}obj.upToDate=false;if(obj.bvhdebug){params.bvh=obj.bvhdebug}if(obj.prodebug){params.pro=obj.prodebug}if(obj.svldebug){params.svl=obj.svldebug}if(obj.serdebug){params.ser=obj.serdebug}if(obj.cmpdebug){params.cmp=obj.cmpdebug}if(obj.expdebug){params.exp=obj.expdebug}if(obj.dbg){params.dbg=true}setTimeout("__rtgxUtils_CheckTimeout()",obj.reqtimeout);obj.__callServiceGet("0",params,"__cbUpdateAll")};this.__getFb=function(){var accessToken=window.location.hash.substring(1);if(accessToken){var path="https://graph.facebook.com/me?";var queryParams=[accessToken,"callback=__rtgxUtils_SetFbMe"];var query=queryParams.join("&");var url=path+query;var script=this.__createScriptTag();script.src=url;document.body.appendChild(script)}else{this.fbme="not connected";this._updateAll(this)}};this.__createCSSLink=function(){var link=document.createElement("link");link.setAttribute("rel","stylesheet");link.setAttribute("type","text/css");return link};this.__createScriptTag=function(){var script=document.createElement("script");script.setAttribute("type","text/javascript");script.setAttribute("language","javascript");return script};this.__createLoadingScreen=function(){var div=document.createElement("div");var color=this.maskColor||"#000";var opacity=this.maskOpacity||0.6;div.className="rtgx_pop_mask";div.style.top="0px";div.style.left="0px";div.style.position="absolute";div.style.backgroundColor=color;div.style.opacity=opacity;div.style.MozOpacity=opacity;div.style.KhtmlOpacity=opacity;div.style.filter="alpha(opacity="+opacity*100+")";return div};this.__loadMask=function(){if(!rtgx.preserveflash){var embeds=document.getElementsByTagName("embed");var objects=document.getElementsByTagName("object");for(var i=0;objects&&i<objects.length;i++){objects[i].restoredispl=objects[i].style.display;objects[i].style.display="none"}for(var i=0;embeds&&i<embeds.length;i++){embeds[i].restoredispl=embeds[i].style.display;embeds[i].style.display="none"}}var masks=document.getElementsByClassName("rtgx_pop_mask");var done=false;for(var i=0;masks&&i<masks.length;i++){done=true;masks[i].style.display="block";masks[i].style.visibility="visible"}if(done){return}var theHeight=__rtgxUtils_GetDocHeight();var theWidth=__rtgxUtils_GetDocWidth();var theY=0;while(theHeight>theY){var div=rtgx.__createLoadingScreen();div.style.marginTop=theY+"px";div.style.height=200+"px";div.style.width=theWidth+"px";div.style.zIndex=2147483000;document.body.appendChild(div);theY=theY+200}};this.__unloadMask=function(){var masks=document.getElementsByClassName("rtgx_pop_mask");for(var i=0;masks&&i<masks.length;i++){masks[i].style.display="none"}if(!rtgx.preserveflash){var embeds=document.getElementsByTagName("embed");for(var i=0;embeds&&i<embeds.length;i++){embeds[i].style.display=embeds[i].restoredispl}var objects=document.getElementsByTagName("object");for(var i=0;objects&&i<objects.length;i++){objects[i].style.display=objects[i].restoredispl}}};this.__callServiceGet=function(action,params,callBack){if(params){params.udc=new Date().getTime()}if(action!="0"&&!rtgxSessionID){this.__pushCallsQueue(action,params,callBack);return}var script=this.__createScriptTag();if(callBack){params.cb=callBack}var _par=(rtgxSessionID?"?i="+rtgxSessionID+"&a="+action:"?a="+action);for(var i in params){if(params.hasOwnProperty(i)){if(i=="searchEngQs"){_par+=params[i]}else{var thepar;thepar=params[i];_par+="&"+i+"="+thepar}}}var toServ=this.rtgxserver+"/targettingServlet";if(rtgxSessionID){toServ=toServ+";jsessionid="+rtgxSessionID}if(_par.length>1500){var index=1496;while(_par[index]!="&"&&index>500){index=index-2}this.qsEnd=_par.substring(index,_par.length);_par=_par.substring(0,index);_par+="&k=1"}toServ=toServ+_par;script.src=toServ;var body=document.body;body.appendChild(script)};this.__completeQs=function(rtgxSessionID,action){var script=this.__createScriptTag();var toServ=this.rtgxserver+"/targettingServlet";toServ=toServ+";jsessionid="+rtgxSessionID+"?";var temp=this.qsEnd;if(this.qsEnd.length>1500){var index=1500;while(temp[index]!="&"&index>500){index=index-2}this.qsEnd=temp.substring(index,temp.length);temp=temp.substring(0,index);temp+="&k=1&a="+action}else{temp+="&k=2&a="+action+"&i="+rtgxSessionID}toServ=toServ+temp;script.src=toServ;var body=document.body;body.appendChild(script)};this.__callServicePost=function(action,params,callback){if(params){params.udc=new Date().getTime()}var ifr1=document.createElement("iframe");var id=__rtgxUtils_GetUnique();ifr1.setAttribute("id","frame1_"+id);ifr1.style.position="absolute";ifr1.setAttribute("height",0);ifr1.setAttribute("width",0);ifr1.setAttribute("display","none");ifr1.setAttribute("frameborder","no");ifr1.setAttribute("frame2id","frame2_"+id);ifr1.setAttribute("frame2name","frame2_"+id);ifr1.setAttribute("action",action);ifr1.setAttribute("callback",callback);__rtgxUtils_DomEventPush(ifr1,"load",function(){rtgx.__injectSenderForm(id,params)});document.body.appendChild(ifr1)};this.__injectSenderForm=function(id,params){var ifrm1=document.getElementById("frame1_"+id);var action=ifrm1.getAttribute("action");var callback=ifrm1.getAttribute("callback");var ifr2id=ifrm1.getAttribute("frame2id");var ifr2name=ifrm1.getAttribute("frame2name");var ifr2=document.createElement("iframe");ifr2.setAttribute("id",ifr2id);ifr2.setAttribute("name",ifr2name);ifr2.setAttribute("height",0);ifr2.setAttribute("width",0);ifr2.setAttribute("display","none");ifr2.setAttribute("frameborder","no");ifr2.setAttribute("callback",callback);var oDoc1=(ifrm1.contentWindow||ifrm1.contentDocument);if(oDoc1.document){oDoc1=oDoc1.document}var frm=document.createElement("form");var toServ=this.rtgxserver+"/targettingServlet";if(rtgxSessionID){toServ=toServ+";jsessionid="+rtgxSessionID;params.i=rtgxSessionID}var postkey=__rtgxUtils_GetUnique();postkey=__rtgxUtils_ReplaceAll(postkey,"-","");ifr2.setAttribute("postkey",postkey);frm.setAttribute("action",toServ);frm.setAttribute("method","post");frm.setAttribute("target",ifr2.getAttribute("name"));params.postkey=postkey;params.a=action;params.cb=callback;for(var key in params){var inpt=document.createElement("input");inpt.setAttribute("type","hidden");inpt.setAttribute("name",key);inpt.setAttribute("value",params[key]);frm.appendChild(inpt)}oDoc1.body.appendChild(frm);document.body.appendChild(ifr2);__rtgxUtils_DomEventPush(ifr2,"load",function(){rtgx.__cbPost(ifr2id)});if(self.frames[ifr2id].name!=ifr2id){self.frames[ifr2id].name=ifr2id}try{frm.submit()}catch(e){}};this.__cbPost=function(frame2id){var ifr2=document.getElementById(frame2id);var callback=ifr2.getAttribute("callback");var postkey=ifr2.getAttribute("postkey");if(callback){var param={};param.postkey=postkey;this.__callServiceGet("7",param)}};this.__cbUpdateAll=function(data){rtgxSessionID=data.SessionId;rtgxinitialized=true;document.cookie="__rtgxj="+rtgxSessionID+"; path=/";for(var i=0;i<data.SmartBoxes.length;i++){if(data.SmartBoxes[i].ContentType=="html"){var smbxob=rtgx.__getSmartboxObject(data.SmartBoxes[i].Name);smbxob.__showContent(data.SmartBoxes[i].Content)}else{if(data.SmartBoxes[i].ContentType=="javascript"){var cont=__rtgxUtils_ReplaceAll(data.SmartBoxes[i].Content,"enilwen","\n");eval(cont.replace(/&#39;/g,"'"))}else{if(data.SmartBoxes[i].ContentType=="leadgen"){var smbxob=rtgx.__getSmartboxObject(data.SmartBoxes[i].Name);if(data.SmartBoxes[i].Experience){smbxob.Experience=data.SmartBoxes[i].Experience}if(data.SmartBoxes[i].Campaign){smbxob.Campaign=data.SmartBoxes[i].Campaign}if(data.SmartBoxes[i].FormMapping){smbxob.FormMapping=data.SmartBoxes[i].FormMapping}smbxob.LeadGen=true;smbxob.__showContent(data.SmartBoxes[i].Content)}}}if(document.location.href.indexOf("rtgxdebug")!=-1){__rtgxDebug_AddSmbxServed(data.SmartBoxes[i].Name,data.SmartBoxes[i].Campaign,data.SmartBoxes[i].Experience)}}__rtgxUtils_CheckContentResponse();if(data.Score){rtgx._profile("score",data.Score)}for(var i=0;i<data.Triggers.length;i++){var trigger;if(data.Triggers[i].Type=="MouseOver"){var statement=data.Triggers[i];var triggerCookie=parseInt(__rtgxUtils_GetCookie("__rtgxt_"+statement.Name));var startCount=0;if(statement.SessionAware&&triggerCookie){startCount=triggerCookie}trigger=new __rtgxAction_MouseOver();trigger.__initialize(statement.Name,statement.ElementClass,false,statement.Duration,startCount,statement.Resetonmouseout,statement.SessionAware,statement.Delay)}if(data.Triggers[i].Type=="MouseClick"){var statement=data.Triggers[i];trigger=new __rtgxAction_MouseClick();trigger.__initialize(statement.Name,statement.ElementClass,false,statement.Delay)}if(data.Triggers[i].Type=="PageDuration"){var statement=data.Triggers[i];var triggerCookie=parseInt(__rtgxUtils_GetCookie("__rtgxt_"+statement.Name));var startCount=0;if(statement.SessionAware&&triggerCookie){startCount=triggerCookie}trigger=new __rtgxAction_PageDuration();trigger.__initialize(statement.Name,true,statement.Duration,statement.SessionAware,startCount)}if(data.Triggers[i].Type=="RtgxBehaviour"){var statement=data.Triggers[i];trigger=new __rtgxAction_Behaviour();trigger.__initialize(statement.Name,false,statement.Behaviour,statement.Value,statement.Delay)}if(data.Triggers[i].Type=="SessionDuration"){var durationCookie=__rtgxUtils_GetCookie("__rtgxs");var startCount=0;if(durationCookie){startCount=durationCookie.substring(durationCookie.indexOf("#")+1).replace(/^\s*/,"").replace(/\s*$/,"")}var statement=data.Triggers[i];trigger=new __rtgxAction_SessionDuration();trigger.__initialize(statement.Name,true,statement.Duration,startCount)}if(!__rtgxUtils_contains(rtgxAction_Triggers,trigger)){rtgxAction_Triggers.push(trigger)}}rtgx.upToDate=true;for(var i=0;rtgx.callsQueue&&i<rtgx.callsQueue.length;i++){var call=rtgx.callsQueue.shift();rtgx.__callServiceGet(call.action,call.params,call.callBack)}};this.__cbTriggers=function(data){for(var i=0;i<data.Triggers.length;i++){rtgxAction_TriggersQueue.shift()}for(var i=0;i<data.SmartBoxes.length;i++){if(data.SmartBoxes[i].Content=="default"){var smbxob=rtgx.__getSmartboxObject(data.SmartBoxes[i].Name);smbxob.__showDefault()}else{if(data.SmartBoxes[i].ContentType=="html"){var smbxob=rtgx.__getSmartboxObject(data.SmartBoxes[i].Name);smbxob.__showContent(data.SmartBoxes[i].Content,true)}else{if(data.SmartBoxes[i].ContentType=="javascript"){var cont=__rtgxUtils_ReplaceAll(data.SmartBoxes[i].Content,"enilwen","\n");eval(cont.replace(/&#39;/g,"'"))}else{if(data.SmartBoxes[i].ContentType=="leadgen"){var smbxob=rtgx.__getSmartboxObject(data.SmartBoxes[i].Name);if(data.SmartBoxes[i].Experience){smbxob.Experience=data.SmartBoxes[i].Experience}if(data.SmartBoxes[i].Campaign){smbxob.Campaign=data.SmartBoxes[i].Campaign}if(data.SmartBoxes[i].FormMapping){smbxob.FormMapping=data.SmartBoxes[i].FormMapping}smbxob.LeadGen=true;smbxob.__showContent(data.SmartBoxes[i].Content,true)}}}}}};this.__removeFrame=function(idframe){var frame=document.getElementById(idframe);frame.parentNode.removeChild(frame)};this._captureBehaviour=function(event,param,trackEvent,cb){if("lead"==event){param=__rtgxUtils_Form2XML(param)}rtgxActionManager.__raise(event,param,false);if(trackEvent){var params={};params.e=event;params.v=param;if(__rtgxUtils_CheckCookie()){if("lead"==event){param=param.name||param.id}var evfactory=new Array();var eventsCookie=__rtgxUtils_GetCookie("__rtgxe");if(eventsCookie){var keyValuePairs=eventsCookie.split("@");for(var i=0;i<keyValuePairs.length;i++){var name=keyValuePairs[i].substring(0,keyValuePairs[i].indexOf("="));var value=keyValuePairs[i].substring(keyValuePairs[i].indexOf("=")+1);var evcookie={};evcookie[name]=value;evfactory.push(evcookie)}}eventsCookie="";var index=evfactory.length;while(index--){if(evfactory[index].hasOwnProperty(event)){break}}if(index==-1){var newEvent={};newEvent[event]=param;evfactory.push(newEvent)}else{if(evfactory[index][event]){evfactory[index][event]+="#"+param}else{evfactory[index][event]=param}}var i=evfactory.length;while(i--){if(eventsCookie!=""){eventsCookie+="@"}for(var prop in evfactory[i]){if(evfactory[i].hasOwnProperty(prop)){eventsCookie+=prop+"="+evfactory[i][prop]}}}document.cookie="__rtgxe="+eventsCookie+"; path=/"}this.__callServiceGet("2",params,cb)}};this._money=function(revenue,currency,key,callback){if(!key){key=""}if(!currency){currency=""}this._captureBehaviour("money",revenue+"|"+currency+"|"+key,true,callback)};this._profile=function(key,value,thirdParty){if(thirdParty){__rtgxParty(key,value,true)}else{if(__rtgxUtils_CheckCookie()){var profilefactory=new Array();var profCookie=__rtgxUtils_GetCookie("__rtgxp");if(profCookie){var keyValuePairs=profCookie.split("@");for(var i=0;i<keyValuePairs.length;i++){var thekey=keyValuePairs[i].substring(0,keyValuePairs[i].indexOf("="));var thevalue=keyValuePairs[i].substring(keyValuePairs[i].indexOf("=")+1);var pcookie={};pcookie[thekey]=thevalue;profilefactory.push(pcookie)}}profCookie="";var index=profilefactory.length;while(index--){if(profilefactory[index].hasOwnProperty(key)){break}}if(index==-1){var newProfile={};newProfile[key]=value;profilefactory.push(newProfile)}else{if(profilefactory[index][key]&&profilefactory[index][key].length<40){profilefactory[index][key]+="#"+value}else{profilefactory[index][key]=value}}var i=profilefactory.length;while(i--){if(profCookie!=""){profCookie+="@"}for(var prop in profilefactory[i]){if(profilefactory[i].hasOwnProperty(prop)){profCookie+=prop+"="+profilefactory[i][prop]}}}var exp=new Date();var ts=exp.getTime()+(30*24*60*60*1000);exp.setTime(ts);document.cookie="__rtgxp="+profCookie+"; expires="+exp.toGMTString()+"; path=/"}}};this._getProfile=function(key){var profCookie=__rtgxUtils_GetCookie("__rtgxp");if(profCookie){var keyValuePairs=profCookie.split("@");for(var i=0;i<keyValuePairs.length;i++){var thekey=keyValuePairs[i].substring(0,keyValuePairs[i].indexOf("="));if(thekey!=key){continue}var thevalues=keyValuePairs[i].substring(keyValuePairs[i].indexOf("=")+1);var valuesarray=thevalues.split("#");var value=valuesarray[valuesarray.length-1];return value}}};this._trackScore=function(table,key,doUpdateAll,thirdParty,name){if(!name){name=table}var scoreParams=table+"$"+key+"$"+(thirdParty?1:0)+"$"+name;if(doUpdateAll){this.scoreParams=scoreParams;this._updateAll(this)}else{var params={};params.tks=scoreParams;this.__callServiceGet(8,params,"_profile")}};this._insertMetadata=function(){if(arguments.length<3){return}var params={};params.tableName=arguments[0];var count=1;for(var i=1;i<arguments.length;i++){if(i%2==1){params["col"+count]=arguments[i]}if(i%2==0){params["val"+count]=arguments[i];count++}}this.__callServiceGet("5",params)};this._updateMetadata=function(){if(arguments.length<4){return}var params={};params.tableName=arguments[0];params.where=arguments[1];var count=1;for(var i=2;i<arguments.length;i++){if(i%2==0){params["col"+count]=arguments[i]}if(i%2==1){params["val"+count]=arguments[i];count++}}this.__callServiceGet("6",params)};var DevicesList=["midp","240x320","blackberry","netfront","nokia","panasonic","portalmmm","sharp","sie-","sonyericsson","symbian","windows ce","benq","mda","mot-","opera mini","philips","pocket pc","sagem","samsung","sda","sgh-","vodafone","xda","iphone","android","ipad"];var SEList=new Array();SEList[0]={name:"netscape",query:"query"};SEList[1]={name:"google",query:"q"};SEList[2]={name:"cnn",query:"query"};SEList[3]={name:"aol",query:"encquery"};SEList[4]={name:"lycos",query:"query"};SEList[5]={name:"ask",query:"q"};SEList[6]={name:"altavista",query:"q"};SEList[7]={name:"bing",query:"q"};SEList[8]={name:"aol",query:"query"};SEList[9]={name:"looksmart",query:"qt"};SEList[10]={name:"about",query:"terms"};SEList[11]={name:"yandex",query:"text"};SEList[12]={name:"alltheweb",query:"q"};SEList[13]={name:"gigablast",query:"q"};SEList[14]={name:"voila",query:"rdata"};SEList[15]={name:"virgilio",query:"qs"};SEList[16]={name:"live",query:"q"};SEList[17]={name:"baidu",query:"wd"};SEList[18]={name:"alice",query:"qs"};SEList[19]={name:"mamma",query:"query"};SEList[20]={name:"najdi",query:"q"};SEList[21]={name:"aol",query:"q"};SEList[22]={name:"club-internet",query:"query"};SEList[23]={name:"mama",query:"query"};SEList[24]={name:"seznam",query:"q"};SEList[25]={name:"search.live",query:"q"};SEList[26]={name:"search",query:"q"};SEList[27]={name:"wp",query:"szukaj"};SEList[28]={name:"onet",query:"qt"};SEList[29]={name:"netsprint",query:"q"};SEList[30]={name:"google.interia",query:"q"};SEList[31]={name:"szukacz",query:"q"};SEList[32]={name:"yam",query:"k"};SEList[33]={name:"pchome",query:"q"};SEList[34]={name:"kvasir",query:"searchExpr"};SEList[35]={name:"sesam",query:"q"};SEList[36]={name:"ozu",query:"q"};SEList[37]={name:"terra",query:"query"};SEList[38]={name:"nostrum",query:"query"};SEList[39]={name:"mynet",query:"q"};SEList[40]={name:"ekolay",query:"q"};SEList[41]={name:"search.ilse",query:"search_for"};SEList[42]={name:"msn",query:"q"};SEList[43]={name:"yahoo",query:"p"};this.__detectSE=function(refUrl){var SearchEngine;var SearchQuery;var i;for(i in SEList){var regex=new RegExp("^https?://\\w+\\."+SEList[i].name+"\\.\\w+");regex.ignoreCase=true;if(regex.test(refUrl)){SearchEngine=SEList[i].name;var qs=refUrl.replace(regex,"");var regexQS=new RegExp("[&\\?]"+SEList[i].query+"=[^&]*");var temp=regexQS.exec(qs);regexQS=new RegExp("[&\\?]"+SEList[i].query+"=");SearchQuery=temp.toString().replace(regexQS,"");break}}var res=new Array();res.push(SearchEngine);res.push(SearchQuery);return res};this.__detectDevice=function(){var res="notinlist";userAgent=navigator.userAgent.toLowerCase();for(var i in DevicesList){if(userAgent.indexOf(DevicesList[i])!=-1){res=DevicesList[i]}}return res};function __rtgxParty(name,val,profile,expires){var params={};params.n=name;params.v=val;if(profile){params.p=1}else{if(expires){params.e=expires}}rtgx.__callServiceGet(9,params)}}var rtgxSmartbox_ContentsQueue=new Array();function __rtgxSmartbox(type,name,time,inputs){this.type=type;this.name=name;this.inputs=inputs;this.__showDefault=function(){var element=document.getElementById(this.name);element.style.visibility="visible"};this.__showContent=function(content,istrigger){if(this.shown&&!istrigger){return}var content4regex=__rtgxUtils_ReplaceAll(content,"enilwen"," ");content=__rtgxUtils_ReplaceAll(content,"enilwen","\n");content=content.replace(/&#39;/g,"'");var contentdiv=document.createElement("div");var element=document.getElementById(this.name);var patt=/<head>(.*)<\/head>/gi;var thehead=content4regex.match(patt);if(thehead!=null){patt=/<link[^>]*href="([^>]*)"[^>]*>/gi;var csslinks=patt.exec(thehead[0]);while(csslinks!=null){var contentCss=rtgx.__createCSSLink();contentCss.media="screen";contentCss.href=csslinks[1];document.getElementsByTagName("head")[0].appendChild(contentCss);csslinks=patt.exec(thehead[0])}patt=/<script[^>]*src="([^>]*)"[^>]*>/gi;var jssrcs=patt.exec(thehead[0]);while(jssrcs!=null){var contentScript=rtgx.__createScriptTag();contentScript.src=jssrcs[1];document.getElementsByTagName("head")[0].appendChild(contentScript);jssrcs=patt.exec(thehead[0])}}patt=/<script[^>]*[^>]*>([^>]*)<\/script>/gi;var jssrcs=patt.exec(content);while(jssrcs!=null){eval(jssrcs[1]);jssrcs=patt.exec(content)}contentdiv.id="contentdiv_"+this.name;contentdiv.innerHTML=content;var formMapping=this.FormMapping;var experience=this.Experience;var campaign=this.Campaign;var type=this.type;var theName=this.name;if(this.LeadGen){_rtgxUtils_submitForm=function(passedform,close,cb,value){var contentDiv=document.getElementById("contentdiv_"+theName);var form=passedform||__rtgxUtils_GetForm(contentDiv);if(form){if(value){var hidden0=__rtgxUtils_GetFormField(form,"bhvvalue");if(hidden0){form.removeChild(hidden0)}hidden0=document.createElement("input");hidden0.type="hidden";hidden0.name="bhvvalue";hidden0.value=value;form.appendChild(hidden0)}if(formMapping){var hidden=__rtgxUtils_GetFormField(form,"formMapping");if(hidden){form.removeChild(hidden)}hidden=document.createElement("input");hidden.type="hidden";hidden.name="formMapping";hidden.value=formMapping;form.appendChild(hidden)}if(experience){var hidden2=__rtgxUtils_GetFormField(form,"experience");if(hidden2){form.removeChild(hidden2)}hidden2=document.createElement("input");hidden2.type="hidden";hidden2.name="experience";hidden2.value=experience;form.appendChild(hidden2)}if(campaign){var hidden3=__rtgxUtils_GetFormField(form,"campaign");if(hidden3){form.removeChild(hidden3)}hidden3=document.createElement("input");hidden3.type="hidden";hidden3.name="campaign";hidden3.value=campaign;form.appendChild(hidden3)}if(rtgxSessionID){var hidden4=__rtgxUtils_GetFormField(form,"jsessionid");if(hidden4){form.removeChild(hidden4)}hidden4=document.createElement("input");hidden4.type="hidden";hidden4.name="jsessionid";hidden4.value=rtgxSessionID;form.appendChild(hidden4)}var hidden5=__rtgxUtils_GetFormField(form,"leadvisitordatetime");if(hidden5){form.removeChild(hidden5)}hidden5=document.createElement("input");hidden5.type="hidden";hidden5.name="leadvisitordatetime";hidden5.value=new Date().getTime();form.appendChild(hidden5);if(cb){rtgx._captureBehaviour("lead",form,true,cb)}else{rtgx._captureBehaviour("lead",form,true)}if(!(false==close)){element.removeChild(contentdiv);rtgx.__unloadMask()}}}}if(type=="smartboxDisplay"){element.innerHTML="";contentdiv.style.height="100%";contentdiv.style.width="100%";element.appendChild(contentdiv);element.style.visibility="visible"}if(type=="smartboxPopover"){contentdiv.style.display="none";element.appendChild(contentdiv);element.style.position="absolute";element.style.zIndex=2147483647;element.style.overflowX="visible";element.style.overflowY="visible";var left=200;var top=200;if(this.left){left=this.left}if(this.top){top=this.top}element.style.marginTop=__rtgxUtils_GetScrollXY()[1]-top+"px";element.style.marginLeft=__rtgxUtils_GetScrollXY()[0]-left+"px";element.style.top="50%";element.style.left="50%";_rtgxUtils_closePopover=function(){element.removeChild(contentdiv);rtgx.__unloadMask()};if(this.maskColor){rtgx.maskColor=this.maskColor}if(this.maskOpacity){rtgx.maskOpacity=this.maskOpacity}if(navigator.appName=="Netscape"){__rtgxUtils_CheckImages(this.name)}else{setTimeout("__rtgxUtils_DisplayBlock('"+this.name+"')",250)}}}}var rtgxAction_Triggers=new Array();var rtgxAction_TriggersQueue=new Array();function __rtgxAction_MouseOver(){this.type="mouseOver";this.name="";this.elementClass="";this.isRunning=false;this.resetonmouseout=true;this.sessionAware=false;this.delay=0;this.duration=0;this.delayCounter=0;this.timeCounter=0;this.__initialize=function(b,j,k,d,e,c,h,g){this.name=b;this.elementClass=j;this.isRunning=k;this.duration=d;this.resetonmouseout=c;this.sessionAware=h;this.timeCounter=e;if(g){this.delay=g}var a=document.getElementsByClassName(this.elementClass);for(var f=0;(a!=null&&f<a.length);f++){a[f].onmouseover=function(){__rtgxExec_OnMouseOver(b)};a[f].onmouseout=function(){__rtgxExec_OnMouseOut(b)}}}}function __rtgxAction_MouseClick(){this.type="mouseClick";this.name="";this.elementClass="";this.isRunning=false;this.delay=0;this.delayCounter=0;this.__initialize=function(b,f,d,a){this.name=b;this.elementClass=f;this.isRunning=d;if(a){this.delay=a}var e=document.getElementsByClassName(this.elementClass);for(var c=0;(e!=null&&c<e.length);c++){e[c].onclick=(function(h){var g=e[c].onclick;return function(i){if(g){g()}__rtgxExec_OnMouseClick(b);return true}})()}}}function __rtgxAction_PageDuration(){this.type="pageDuration";this.name="";this.isRunning=false;this.sessionAware=false;this.duration=0;this.timeCounter=0;this.__initialize=function(b,d,e,a,c){this.sessionAware=a;this.name=b;this.isRunning=d;this.duration=e;this.timeCounter=c}}function __rtgxAction_SessionDuration(){this.type="sessionDuration";this.name="";this.isRunning=false;this.duration=0;this.timeCounter=0;this.__initialize=function(a,c,d,b){this.name=a;this.isRunning=c;this.duration=d;this.timeCounter=b}}function __rtgxAction_Behaviour(){this.type="RtgxBehaviour";this.name="";this.isRunning=false;this.behaviour="";this.value="";this.delay=0;this.delayCounter=0;this.__initialize=function(b,c,e,d,a){this.name=b;this.isRunning=c;this.behaviour=e;this.value=d;if(a){this.delay=a}rtgxActionManager.__register(this.behaviour,this,this.__onEvent)};this.__onEvent=function(b,a){if(b.value==a){b.isRunning=true}}}var tim=setInterval("__rtgxUtils_CheckAll()",1000);__rtgxExec_OnMouseOver=function(b){var a=__rtgxUtils_GetTriggerByName(b);__rtgxUtils_RunTriggerAndParents(a)};__rtgxExec_OnMouseOut=function(b){var a=__rtgxUtils_GetTriggerByName(b);if(a.delay>a.delayCounter){a.isOut=true}else{a.isRunning=false}};__rtgxExec_OnMouseClick=function(b){var a=__rtgxUtils_GetTriggerByName(b);a.isRunning=true;a.isOut=false};if(!document.getElementsByClassName){document.getElementsByClassName=function(b){var a=[];var f=new RegExp("\\b"+b+"\\b");var e=this.getElementsByTagName("*");for(var d=0;d<e.length;d++){var c=e[d].className;if(f.test(c)){a.push(e[d])}}return a}}_rtgxUtils_BehaviourAndReturn=function(c,b,a){rtgx._captureBehaviour(c,b,true);if(a){setTimeout('__rtgxUtils_followLink("'+a.href+'","'+a.target+'")',200)}else{return true}};_rtgxUtils_MoneyAndReturn=function(b,a,c,d){rtgx._money(b,a,c);if(d){setTimeout('__rtgxUtils_followLink("'+d.href+'","'+d.target+'")',200)}else{return true}};_rtgxUtils_ProfileAndReturn=function(a,d,c,b){rtgx._profile(a,d,c);if(b){setTimeout('__rtgxUtils_followLink("'+b.href+'","'+b.target+'")',200)}else{return true}};_rtgxUtils_TrackScoreAndReturn=function(e,c,b,f,a,d){rtgx._trackScore(e,c,b,f,a);if(d){setTimeout('__rtgxUtils_followLink("'+d.href+'","'+d.target+'")',200)}else{return true}};__rtgxUtils_followLink=function(a,b){if(b){if(b.toLowerCase()=="_blank"){b="_new"}window.open(a,b)}else{document.location.href=a}};__rtgxUtils_contains=function(b,d){var c=b.length;while(c--){if(b[c]===d){return true}}return false};function __rtgxUtils_WaitingCall(a,b,c){this.action=a;this.params=b;this.callBack=c}function __rtgxUtils_SessionValue(a,b){this.key=a;this.value=b}function __rtgxUtils_SmbxInput(a,b){this.key=a;this.value=b}__rtgxUtils_CheckContentResponse=function(){for(var a=0;a<rtgx.smartbox_Factory.length;a++){var b=rtgx.smartbox_Factory[a];if(b.type=="smartboxDisplay"&&b.shown!=true){b.__showDefault()}}};__rtgxUtils_CheckTimeout=function(){if(!rtgx.upToDate){for(var a=0;a<rtgx.smartbox_Factory.length;a++){var b=rtgx.smartbox_Factory[a];if(b.type=="smartboxDisplay"&&b.shown!=true){b.__showDefault()}}}};__rtgxUtils_GetTriggerByName=function(a){for(var b=0;b<rtgxAction_Triggers.length;b++){if(rtgxAction_Triggers[b].name==a){return rtgxAction_Triggers[b]}}return null};__rtgxUtils_GetTriggersByElementClass=function(c){var a=new Array();for(var b=0;b<rtgxAction_Triggers.length;b++){if(rtgxAction_Triggers[b].elementClass==c&&!__rtgxUtils_contains(a,rtgxAction_Triggers[b])){a.push(rtgxAction_Triggers[b])}}return a};__rtgxUtils_RunTriggerAndParents=function(c){if(c!=null&&c.type=="mouseOver"){c.isRunning=true;var e=document.getElementsByClassName(c.elementClass);for(var d=0;(e!=null&&d<e.length);d++){var a=__rtgxUtils_GetTriggersByElementClass(e[d].parentNode.className);for(var b=0;b<a.length;b++){__rtgxUtils_RunTriggerAndParents(a[b])}}}else{return}};__rtgxUtils_GetForm=function(c){if(c&&c.tagName=="FORM"){return c}else{var b=c.childNodes;for(var a=0;b!=null&&a<b.length;a++){if(__rtgxUtils_GetForm(b[a])){return __rtgxUtils_GetForm(b[a])}}}};__rtgxUtils_GetFormField=function(c,d){for(var a=0;c.elements!=null&&a<c.elements.length;a++){var b=c.elements[a];if(b.name&&b.name==d){return b}}};__rtgxUtils_GetUnique=function(){return new __rtgxUtils_UniqueId()};function __rtgxUtils_UniqueId(){this.unique=this.generateUnique()}__rtgxUtils_UniqueId.prototype.valueOf=function(){return this.unique};__rtgxUtils_UniqueId.prototype.toString=function(){return this.unique};__rtgxUtils_UniqueId.prototype.generateUnique=function(){var b=new Date(1445,10,15,0,0,0,0);var a=new Date();var j=a.getTime()-b.getTime();var d="-";var k=__rtgxUtils_UniqueId.Bit(j,0,31);var i=__rtgxUtils_UniqueId.Bit(j,32,47);var g=__rtgxUtils_UniqueId.Bit(j,48,59)+"1";var e=__rtgxUtils_UniqueId.Bit(__rtgxUtils_UniqueId.Rand(4095),0,7);var f=__rtgxUtils_UniqueId.Bit(__rtgxUtils_UniqueId.Rand(4095),0,7);var c=__rtgxUtils_UniqueId.Bit(__rtgxUtils_UniqueId.Rand(8191),0,7)+__rtgxUtils_UniqueId.Bit(__rtgxUtils_UniqueId.Rand(8191),8,15)+__rtgxUtils_UniqueId.Bit(__rtgxUtils_UniqueId.Rand(8191),0,7)+__rtgxUtils_UniqueId.Bit(__rtgxUtils_UniqueId.Rand(8191),8,15)+__rtgxUtils_UniqueId.Bit(__rtgxUtils_UniqueId.Rand(8191),0,15);return k+d+i+d+g+d+e+f+d+c};__rtgxUtils_UniqueId.Bit=function(f,g,b){var a=__rtgxUtils_UniqueId.Base(f,16);var d=new Array();var e="";var c=0;for(c=0;c<a.length;c++){d.push(a.substring(c,c+1))}for(c=Math.floor(g/4);c<=Math.floor(b/4);c++){if(!d[c]||d[c]==""){e+="0"}else{e+=d[c]}}return e};__rtgxUtils_UniqueId.Base=function(a,b){return(a).toString(b).toUpperCase()};__rtgxUtils_UniqueId.Rand=function(a){return Math.floor(Math.random()*(a+1))};__rtgxUtils_CheckAll=function(){if(rtgxSessionID){if(!__rtgxUtils_GetCookie("__rtgxs")){document.cookie="__rtgxs = "+rtgxSessionID+"#"+0+"; path=/"}else{var a=__rtgxUtils_GetCookie("__rtgxs");var e=a.substring(0,a.indexOf("#")).replace(/^\s*/,"").replace(/\s*$/,"");var d=parseInt(a.substring(a.indexOf("#")+1).replace(/^\s*/,"").replace(/\s*$/,""));if(e==rtgxSessionID){d++}else{d=0}document.cookie="__rtgxs = "+rtgxSessionID+"#"+d+"; path=/"}}var c=new Array();for(var b=0;b<rtgxAction_Triggers.length;b++){if(rtgxAction_Triggers[b].isRunning){if(rtgxAction_Triggers[b].type=="mouseClick"||rtgxAction_Triggers[b].type=="RtgxBehaviour"){if(rtgxAction_Triggers[b].delay<=rtgxAction_Triggers[b].delayCounter){if(!__rtgxUtils_contains(c,rtgxAction_Triggers[b].name)){c.push(rtgxAction_Triggers[b].name)}rtgxAction_Triggers[b].isRunning=false;rtgxAction_Triggers[b].delayCounter=0}else{rtgxAction_Triggers[b].delayCounter++}}else{if(rtgxAction_Triggers[b].type=="pageDuration"||rtgxAction_Triggers[b].type=="sessionDuration"){rtgxAction_Triggers[b].timeCounter++;if(__rtgxUtils_CheckCookie()&&rtgxAction_Triggers[b].sessionAware){document.cookie="__rtgxt_"+rtgxAction_Triggers[b].name+" = "+rtgxAction_Triggers[b].timeCounter+"; path=/"}if(rtgxAction_Triggers[b].timeCounter>=rtgxAction_Triggers[b].duration){if(!__rtgxUtils_contains(c,rtgxAction_Triggers[b].name)){c.push(rtgxAction_Triggers[b].name)}rtgxAction_Triggers[b].isRunning=false;rtgxAction_Triggers[b].timeCounter=0}}else{if(rtgxAction_Triggers[b].type=="mouseOver"){if(!rtgxAction_Triggers[b].isOut){rtgxAction_Triggers[b].timeCounter++}if(__rtgxUtils_CheckCookie()&&rtgxAction_Triggers[b].sessionAware){document.cookie="__rtgxt_"+rtgxAction_Triggers[b].name+" = "+rtgxAction_Triggers[b].timeCounter+"; path=/"}if(rtgxAction_Triggers[b].timeCounter>=rtgxAction_Triggers[b].duration){if(rtgxAction_Triggers[b].delay<=rtgxAction_Triggers[b].delayCounter){if(!__rtgxUtils_contains(c,rtgxAction_Triggers[b].name)){c.push(rtgxAction_Triggers[b].name)}rtgxAction_Triggers[b].isRunning=false;rtgxAction_Triggers[b].timeCounter=0;rtgxAction_Triggers[b].delayCounter=0}else{rtgxAction_Triggers[b].delayCounter++}}}}}}else{if(rtgxAction_Triggers[b].type!="mouseOver"||rtgxAction_Triggers[b].resetonmouseout==true){rtgxAction_Triggers[b].timeCounter=0}}}if(c.length>0){var f={};if(rtgxAction_TriggersQueue.length==0){for(var b=0;b<c.length;b++){if(!__rtgxUtils_contains(rtgxAction_TriggersQueue,c[b])){rtgxAction_TriggersQueue.push(c[b])}}f.t=JSON.stringify(rtgxAction_TriggersQueue);rtgx.__callServiceGet("1",f,"__cbTriggers")}else{for(var b=0;b<c.length;b++){if(!__rtgxUtils_contains(rtgxAction_TriggersQueue,c[b])){rtgxAction_TriggersQueue.push(c[b])}}}}};__rtgxUtils_CheckCookie=function(){document.cookie="__rtgxtest = noval; path=/";if(__rtgxUtils_GetCookie("__rtgxtest")){return true}else{return false}};__rtgxUtils_GetCookie=function(d){var b=d+"=";var g=b.length;var a=document.cookie.length;var f=0;var e=null;while(f<a){var c=f+g;if(document.cookie.substring(f,c)==b){e=__rtgxUtils_GetCookieVal(c);break}else{f=document.cookie.indexOf(" ",f)+1;if(f==0){break}}}return e};__rtgxUtils_GetCookieVal=function(b){var a=document.cookie.indexOf(";",b);if(a==-1){a=document.cookie.length}return document.cookie.substring(b,a)};__rtgxUtils_UpdateALL=function(){rtgx._updateAll(rtgx)};__rtgxUtils_SetCookie=function(a,e){var f=new Date();var d=f.getTime()+(730*30*24*60*60*1000);f.setTime(d);var c=location.host;if(c.substring(0,4).toLowerCase()=="www."){c=c.substring(4)}var b;if(c.toLowerCase()!="localhost:8080"){b=a+"="+e+"; expires="+f.toGMTString()+"; domain="+c+"; path=/"}else{b=a+"="+e+"; expires="+f.toGMTString()+"; path=/"}document.cookie=b};__rtgxUtils_Form2XML=function(d){var a="";for(var b=0;d.elements!=null&&b<d.elements.length;b++){var c=d.elements[b];if(c.name){if(c.type=="checkbox"){a+="<"+c.name+">"+c.checked+"</"+c.name+">"}else{if(c.type=="radio"){if(c.checked){a+="<"+c.name+"> "+c.value+"</"+c.name+">"}}else{a+="<"+c.name+">"+c.value+"</"+c.name+">"}}}}return a};__rtgxUtils_CheckImages=function(b){var a=document.getElementById("contentdiv_"+b);if(__rtgxUtils_ImagesCompleted(b)){setTimeout("__rtgxUtils_DisplayBlock('"+b+"')",250)}else{setTimeout("__rtgxUtils_CheckImages('"+b+"')",100)}};__rtgxUtils_ImagesCompleted=function(d){var c=document.getElementById("contentdiv_"+d);var b=c.childNodes;for(var a=0;b!=null&&a<b.length;a++){if(b[a].tagName=="IMG"&&!b[a].complete){return false}}return true};__rtgxUtils_DisplayBlock=function(b){var a=document.getElementById("contentdiv_"+b);rtgx.__loadMask();document.getElementById(b).style.visibility="visible";a.style.display="block"};__rtgxUtils_GetScrollXY=function(){var b=0,a=0;if(typeof(window.pageYOffset)=="number"){a=window.pageYOffset;b=window.pageXOffset}else{if(document.body&&(document.body.scrollLeft||document.body.scrollTop)){a=document.body.scrollTop;b=document.body.scrollLeft}else{if(document.documentElement&&(document.documentElement.scrollLeft||document.documentElement.scrollTop)){a=document.documentElement.scrollTop;b=document.documentElement.scrollLeft}}}return[b,a]};__rtgxUtils_GetDocHeight=function(){var a=document;return Math.max(Math.max(a.body.scrollHeight,a.documentElement.scrollHeight),Math.max(a.body.offsetHeight,a.documentElement.offsetHeight),Math.max(a.body.clientHeight,a.documentElement.clientHeight))};__rtgxUtils_GetDocWidth=function(){var a=document;return Math.max(Math.max(a.body.scrollWidth,a.documentElement.scrollWidth),Math.max(a.body.offsetWidth,a.documentElement.offsetWidth),Math.max(a.body.clientWidth,a.documentElement.clientWidth))};__rtgxUtils_DomEventPush=function(c,b,a){if(c.addEventListener){c.addEventListener(b,a,false)}else{if(c.attachEvent){c.attachEvent("on"+b,a)}}};__rtgxUtils_ReplaceAll=function(e,c,d){var a=e+"";var b=a.indexOf(c);while(b!=-1){a=a.replace(c,d);b=a.indexOf(c)}return a};__rtgxUtils_SetFbMe=function(a){rtgx.fbme=a;rtgx._updateAll(rtgx)};var rtgxActionManager=new __rtgxActionManager();function __rtgxActionManager(){var a=new Array();this.__register=function(d,e,c){if(!a[d]){a[d]=new Array()}for(var b=0;b<a[d].length;b++){if(a[d][b]===c){return}}a[d].push({handler:c,object:e})};this.__raise=function(c,d,e){if(a[c]){for(var b=0;b<a[c].length;b++){if(a[c][b]){if(typeof a[c][b].handler=="function"){a[c][b].handler(a[c][b].object,d)}}}}}}__rtgxDebug_StartDebugMode=function(t){rtgx.dbg=true;var H=rtgx.__createCSSLink();H.href=rtgx.rtgxserver+"/css/debug.css";document.getElementsByTagName("head")[0].appendChild(H);document.write(__rtgxDebug_CreatePanel());if(t.indexOf("cnf")!=-1){var d=t.substring(t.indexOf("cnf")+4);var J=null;if(d.length>0){if(d.indexOf("&")!=-1){J=d.substring(0,d.indexOf("&"))}else{J=d}if(J.indexOf("border")!=-1){var l=J.substring(J.indexOf("border")+8);var s=null;if(l.length>0){if(l.indexOf("$")!=-1){s=l.substring(0,l.indexOf("$"))}else{s=l}if(s!=null){rtgx.borderdebug=s}}}if(J.indexOf("color")!=-1){var o=J.substring(J.indexOf("color")+7);var w=null;if(o.length>0){if(o.indexOf("$")!=-1){w=o.substring(0,o.indexOf("$"))}else{w=o}if(w!=null){rtgx.colordebug=w}}}}}if(t.indexOf("ser")!=-1){var I=t.substring(t.indexOf("ser")+4);var v=null;if(I.length>0){if(I.indexOf("&")!=-1){v=I.substring(0,I.indexOf("&"))}else{v=I}}if(v!=null){rtgx.serdebug=v}}if(t.indexOf("mch")!=-1){var G=t.substring(t.indexOf("mch")+4);var O=null;if(G.length>0){if(G.indexOf("&")!=-1){O=G.substring(0,G.indexOf("&"))}else{O=G}}if(O!=null){rtgx.mchdebug=O}}if(t.indexOf("tim")!=-1){var E=t.substring(t.indexOf("tim")+4);var h=null;if(E.length>0){if(E.indexOf("&")!=-1){h=E.substring(0,E.indexOf("&"))}else{h=E}}if(h!=null){rtgx.timdebug=h}}if(t.indexOf("cnt")!=-1){var A=t.substring(t.indexOf("cnt")+4);var q=null;if(A.length>0){if(A.indexOf("&")!=-1){q=A.substring(0,A.indexOf("&"))}else{q=A}}if(q!=null){rtgx.cntdebug=q}}if(t.indexOf("src")!=-1){var L=t.substring(t.indexOf("src")+4);var r=null;if(L.length>0){if(L.indexOf("&")!=-1){r=L.substring(0,L.indexOf("&"))}else{r=L}}if(r!=null){rtgx.srcdebug=r}}if(t.indexOf("bvh")!=-1){var y=t.substring(t.indexOf("bvh")+4);var b=null;if(y.length>0){if(y.indexOf("&")!=-1){b=y.substring(0,y.indexOf("&"))}else{b=y}}if(b!=null){rtgx.bvhdebug=b}}if(t.indexOf("pro")!=-1){var m=t.substring(t.indexOf("pro")+4);var B=null;if(m.length>0){if(m.indexOf("&")!=-1){B=m.substring(0,m.indexOf("&"))}else{B=m}}if(B!=null){rtgx.prodebug=B}}if(t.indexOf("svl")!=-1){var u=t.substring(t.indexOf("svl")+4);var a=null;if(u.length>0){if(u.indexOf("&")!=-1){a=u.substring(0,u.indexOf("&"))}else{a=u}}if(a!=null){rtgx.svldebug=a}}if(t.indexOf("hst")!=-1){var n=t.substring(t.indexOf("hst")+4);var k=null;if(n.length>0){if(n.indexOf("&")!=-1){k=n.substring(0,n.indexOf("&"))}else{k=n}}if(k!=null){rtgx.hstdebug=k}}if(t.indexOf("fbb")!=-1){var P=t.substring(t.indexOf("fbb")+4);var j=null;if(P.length>0){if(P.indexOf("&")!=-1){j=P.substring(0,P.indexOf("&"))}else{j=P}}if(j!=null){rtgx.fbbdebug=j}}if(t.indexOf("fbl")!=-1){var K=t.substring(t.indexOf("fbl")+4);var c=null;if(K.length>0){if(K.indexOf("&")!=-1){c=K.substring(0,K.indexOf("&"))}else{c=K}}if(c!=null){rtgx.fbldebug=c}}if(t.indexOf("fbe")!=-1){var z=t.substring(t.indexOf("fbe")+4);var g=null;if(z.length>0){if(z.indexOf("&")!=-1){g=z.substring(0,z.indexOf("&"))}else{g=z}}if(g!=null){rtgx.fbedebug=g}}if(t.indexOf("fbw")!=-1){var x=t.substring(t.indexOf("fbw")+4);var M=null;if(x.length>0){if(x.indexOf("&")!=-1){M=x.substring(0,x.indexOf("&"))}else{M=x}}if(M!=null){rtgx.fbwdebug=M}}if(t.indexOf("fbg")!=-1){var p=t.substring(t.indexOf("fbg")+4);var f=null;if(p.length>0){if(p.indexOf("&")!=-1){f=p.substring(0,p.indexOf("&"))}else{f=p}}if(f!=null){rtgx.fbgdebug=f}}if(t.indexOf("fbi")!=-1){var i=t.substring(t.indexOf("fbi")+4);var e=null;if(i.length>0){if(i.indexOf("&")!=-1){e=i.substring(0,i.indexOf("&"))}else{e=i}}if(e!=null){rtgx.fbidebug=e}}if(t.indexOf("cmp")!=-1){var D=t.substring(t.indexOf("cmp")+4);var F=null;if(D.length>0){if(D.indexOf("&")!=-1){F=D.substring(0,D.indexOf("&"))}else{F=D}}if(F!=null){rtgx.cmpdebug=F}}if(t.indexOf("exp")!=-1){var C=t.substring(t.indexOf("exp")+4);var N=null;if(C.length>0){if(C.indexOf("&")!=-1){N=C.substring(0,C.indexOf("&"))}else{N=C}}if(N!=null){rtgx.expdebug=N}}};__rtgxDebug_CreatePanel=function(){var a="<div id='rtgxdebugpanel'><table class='rtgxdebug' cellspacing='0'><tr><td id='rtgxdebugtable' class='rtgxdebugsmbxdept' colspan='5'><a href='javascript:__rtgxDebug_HidePanel()'><img src='"+rtgx.rtgxserver+"/img/close.gif'/></a> Smartboxes</td></tr></table></div>";return a};__rtgxDebug_AddSmbxRow=function(b,c){var d=document.getElementById("rtgxdebugtable");var e=document.createElement("tr");e.id="rtgxdebugrow_"+b;var a=rtgx.colordebug||"red";e.innerHTML="<td id='rtgxdebugcolor_"+b+"' class='rtgxdebugsmbx' style='background-color:"+a+"; height:1px;' onClick='javascript:__rtgxDebug_ShowColors(\""+b+"\")'></td><td class='rtgxdebugsmbx'><a href='javascript:__rtgxDebug_ShowSbx(\""+b+"\")'>"+b+"</a></td><td class='rtgxdebugsmbx'>"+c+"</td>";d.appendChild(e);if(rtgx.borderdebug=="true"){__rtgxDebug_ShowSbx(b)}};__rtgxDebug_ShowColors=function(c){var b=document.getElementById("rtgxdebugpanel");b.style.visibility="hidden";var a=document.createElement("table");a.id="rtgxdebugcolorcard";a.style.backgroundColor="#99CCCC";a.style.width="100px";a.style.height="100px";a.innerHTML="<tr><td style='width:25%; height:25%; background-color:#FFFF00' onClick='javascript:__rtgxDebug_ChangeColor(\""+c+"\",\"#FFFF00\")'></td><td style='width:25%; height:25%; background-color:#FF0000' onClick='javascript:__rtgxDebug_ChangeColor(\""+c+"\",\"#FF0000\")'></td><td style='width:25%; height:25%; background-color:#66FFCC' onClick='javascript:__rtgxDebug_ChangeColor(\""+c+"\",\"#66FFCC\")'></td><td style='width:25%; height:25%; background-color:#3333CC' onClick='javascript:__rtgxDebug_ChangeColor(\""+c+"\",\"#3333CC\")'></td></tr><tr><td style='width:25%; height:25%; background-color:#33FF33' onClick='javascript:__rtgxDebug_ChangeColor(\""+c+"\",\"#33FF33\")'></td><td style='width:25%; height:25%; background-color:#339966' onClick='javascript:__rtgxDebug_ChangeColor(\""+c+"\",\"#339966\")'></td><td style='width:25%; height:25%; background-color:#339900' onClick='javascript:__rtgxDebug_ChangeColor(\""+c+"\",\"#339900\")'></td><td style='width:25%; height:25%; background-color:#336666' onClick='javascript:__rtgxDebug_ChangeColor(\""+c+"\",\"#336666\")'></td></tr><tr><td style='width:25%; height:25%; background-color:#660066' onClick='javascript:__rtgxDebug_ChangeColor(\""+c+"\",\"#660066\")'></td><td style='width:25%; height:25%; background-color:#FF6600' onClick='javascript:__rtgxDebug_ChangeColor(\""+c+"\",\"#FF6600\")'></td><td style='width:25%; height:25%; background-color:black' onClick='javascript:__rtgxDebug_ChangeColor(\""+c+"\",\"black\")'></td><td style='width:25%; height:25%; background-color:grey' onClick='javascript:__rtgxDebug_ChangeColor(\""+c+"\",\"grey\")'></td></tr><tr><td style='width:25%; height:25%; background-color:#FF0066' onClick='javascript:__rtgxDebug_ChangeColor(\""+c+"\",\"#FF0066\")'></td><td style='width:25%; height:25%; background-color:#FFCC00' onClick='javascript:__rtgxDebug_ChangeColor(\""+c+"\",\"#FFCC00\")'></td><td style='width:25%; height:25%; background-color:white' onClick='javascript:__rtgxDebug_ChangeColor(\""+c+"\",\"white\")'></td><td style='width:25%; height:25%; background-color:#FF00CC' onClick='javascript:__rtgxDebug_ChangeColor(\""+c+'","#FF00CC")\'></td></tr>';a.style.position="absolute";a.style.zIndex=2147483001;document.body.appendChild(a)};__rtgxDebug_ChangeColor=function(e,d){var c=document.getElementById("rtgxdebugcolorcard");c.parentNode.removeChild(c);var f=document.getElementById("rtgxdebugcolor_"+e);f.style.backgroundColor=d;var b=document.getElementById("rtgxdebugpanel");b.style.visibility="visible";var a=document.getElementById(e);a.style.borderColor=d};__rtgxDebug_AddSmbxServed=function(c,b,f){var e=document.getElementById("rtgxdebugrow_"+c);var a=document.createElement("td");a.className="rtgxdebugsmbx";a.innerHTML=b;var d=document.createElement("td");d.className="rtgxdebugsmbx";d.innerHTML=f;e.appendChild(a);e.appendChild(d)};__rtgxDebug_ShowSbx=function(b){var a=document.getElementById(b);if(a.style.borderWidth=="3px"){a.style.borderWidth="0px"}else{a.style.borderWidth="3px";a.style.borderStyle="solid";if(!a.style.borderColor){if(rtgx.colordebug){a.style.borderColor=rtgx.colordebug}else{a.style.borderColor="red"}}}};__rtgxDebug_HidePanel=function(){var a=document.getElementById("rtgxdebugpanel");a.style.visibility="hidden";var b=document.createElement("a");b.id="rtgxdebugbutton";b.innerHTML="rtgx debug";b.style.position="absolute";b.style.zIndex=2147483001;b.href="javascript: __rtgxDebug_ShowPanel()";document.body.appendChild(b)};__rtgxDebug_ShowPanel=function(){var a=document.getElementById("rtgxdebugpanel");a.style.visibility="visible";var b=document.getElementById("rtgxdebugbutton");b.parentNode.removeChild(b)};var JSON=JSON||{};JSON.stringify=JSON.stringify||function(e){var d=typeof(e);if(d!="object"||e===null){if(d=="string"){e='"'+e+'"'}return String(e)}else{var f,b,c=[],a=(e&&e.constructor==Array);for(f in e){b=e[f];d=typeof(b);if(d=="function"){continue}if(d=="string"){b='"'+b+'"'}else{if(d=="object"&&b!==null){b=JSON.stringify(b)}}c.push((a?"":'"'+f+'":')+String(b))}return(a?"[":"{")+String(c)+(a?"]":"}")}};
