
var button_effect=((document.layers&&document[0])||document.all||document.getElementById);var timeout_button_id;var buttonbg="FFFFFF FEFEFE FDFDFD FCFCFC FBFBFB FAFAFA F9F9F9 F8F8F8 F7F7F7 F6F6F6 F5F5F5 F4F4F4 F3F3F3 F2F2F2 F1F1F1 F0F0F0 EFEFEF EEEEEE EDEDED ";var button_maxstep=(buttonbg.length/7)-1;function setbgcolor(id,c)
{if(document.layers&&document[0])
document[id].bgColor=c;else if(document.all)
document.all[id].style.backgroundColor=c;else if(document.getElementById)
document.getElementById(id).style.backgroundColor=c;}
function $_button_step()
{if(this.go==0)
return 0;var n=this.now+this.go;if(n<=0||n>=button_maxstep)
{this.go=0;return 0;}
this.now=n;setbgcolor(this.id,'#'+buttonbg.substring(this.now*7,this.now*7+6));return 1;}
function $_button(id)
{this.id=id;this.now=0;this.go=0;this.step=$_button_step;}
var b1=new $_button('b1');var b2=new $_button('b2');var b3=new $_button('b3');function timeout_button_fn()
{if(b1.step()+b2.step()+b3.step()>0)
timeout_button_id=setTimeout('timeout_button_fn()',15);}
function button_go(id,dir)
{if(button_effect)
{if(b1.go!=0||b2.go!=0||b3.go!=0)
clearTimeout(timeout_button_id);eval(id+'.go='+dir);timeout_button_fn();}}
var wx_effect=(document.all||document.getElementById);var timeout_wx_id;var wx_minstep=30;var wx_speed=1;var wx_timing=0;var wx_t=0;var wx_n=0;function $_setopacity(id,perc)
{if(document.all)
document.all[id].filters.alpha.opacity=perc;else if(document.getElementById)
document.getElementById(id).style.MozOpacity=Math.min(perc/100,0.99);}
function $_wx_step()
{if(this.go==0)
return 0;var n=this.now+wx_speed*this.go;if(n<=wx_minstep||n>=100)
{this.go=0;n=Math.max(Math.min(n,100),wx_minstep);}
this.now=n;$_setopacity(this.id,this.now);return Math.abs(this.go);}
function $_wx(id)
{this.id=id;this.now=100;this.go=0;this.step=$_wx_step;}
var w1=new $_wx('w1');var w2=new $_wx('w2');var w3=new $_wx('w3');function timeout_wx_fn()
{var d,t,n;if(wx_timing==0)
{d=new Date();t=d.getTime();if(wx_t==0)
wx_t=t;else if(wx_t<t)
{wx_t=t;wx_timing=1;}}
n=w1.step()+w2.step()+w3.step();if(wx_timing==1)
{wx_n+=n;d=new Date();t=d.getTime();if(wx_t+15<t&&wx_n>=5)
{t=(t-wx_t)/wx_n;if(t>=12)
wx_speed=100-wx_minstep;else wx_speed=Math.ceil(1+(100-wx_minstep)/(400/(2.5*t+20)));wx_timing=2;}
else wx_t+=20;}
if(n>0)
timeout_wx_id=setTimeout('timeout_wx_fn()',20);}
function wx_go(id1,id2,dir)
{if(wb==1)
{setbgcolor("w1b","#FFFFFF");setbgcolor("w2b","#FFFFFF");setbgcolor("w3b","#FFFFFF");wb=2;}
if(wb==2&&wx_effect)
{if(w1.go!=0||w2.go!=0||w3.go!=0)
{clearTimeout(timeout_wx_id);if(wx_timing!=2)
wx_timing=wx_t=wx_n=0;}
eval(id1+'.go='+dir);eval(id2+'.go='+dir);timeout_wx_fn();}}
function set_cookie(c,val)
{var w=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday");var m=new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec");var d,suffix="";d=new Date();d.setTime(d.getTime()+315569520000+d.getTimezoneOffset()*60000);d=w[d.getDay()]+", "+
(d.getDate()<10?"0":"")+d.getDate()+"-"+m[d.getMonth()]+"-"+(d.getYear()%100)+" "+
(d.getHours()<10?"0":"")+d.getHours()+":"+
(d.getMinutes()<10?"0":"")+d.getMinutes()+":"+
(d.getSeconds()<10?"0":"")+d.getSeconds()+" GMT";if(document.URL.toLowerCase().indexOf("https://fidelis.corebase.biz/")==0)
suffix="; path=/cynergi/; domain=fidelis.corebase.biz; secure";else if(document.URL.toLowerCase().indexOf(".cynergi.com/")>0)
suffix="; path=/; domain=.cynergi.com";document.cookie=c+"="+escape(val)+"; expires="+d+suffix;}
function update_defaults(lang)
{var s,p,p2,cs,cu;if(!window.fetch_cookie)
return;cs=fetch_cookie("defaults");cu=(cs.length<6);if(cu)
cs=lang+" EUR";else if(document.referrer)
{p=document.referrer.toLowerCase().indexOf("cynergi.com/");if(cs.substring(0,2)!=lang&&p>0&&p<12&&(document.referrer.charAt(p-1)=='.'||document.referrer.charAt(p-1)=='/'))
{cs=lang+cs.substring(2,cs.length);cu=true;}}
s=document.URL;p=s.indexOf("?");s=(p<0?"":"&"+s.substring(p+1,s.length).toLowerCase());p=s.indexOf("&country=");if(p>=0)
{p2=s.indexOf("&",p+9);cs=cs.substring(0,3)+unescape(s.substring(p+9,(p2<0?s.length:p2)))+cs.substring(cs.length-4,cs.length);cu=true;}
p=s.indexOf("&currency=");if(p>=0)
{p2=s.indexOf("&",p+10);cu=unescape(s.substring(p+10,(p2<0?s.length:p2))).toUpperCase();cs=cs.substring(0,cs.length-3)+cu;if(window.default_currency_all)
{currency=cu;if(esx_exchg)
esx_exchg_update();default_currency_all();}
cu=true;}
if(cu)
set_cookie("defaults",cs);}
function open_popup(f,target,width,height)
{var is_form=true,href="";var ww,wh,w,wf="toolbar=1,location=1,directories=0,status=1,menubar=1,scrollbars=1,copyhistory=0,resizable=1";if(window.outerWidth)
{ww=Math.round(window.outerWidth*0.9);wh=Math.round(window.outerHeight*0.9);}
else if(document.body.clientWidth)
{ww=Math.round(document.body.clientWidth*0.9);wh=Math.round(document.body.clientHeight*0.9);}
else
{ww=800;wh=494;}
if(target=='cynergitemplates')
wf+=",width="+Math.max(1020,ww)+",height="+wh;else if(target=='cynergiverisign')
wf="toolbar=0,location=1,directories=0,status=1,menubar=0,scrollbars=1,copyhistory=0,resizable=1,width=565,height=500";else if(width!==undefined&&height!==undefined)
wf="toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1,copyhistory=0,resizable=1,width="+width+",height="+height;else
wf+=",width="+ww+",height="+wh;if(typeof(f)=="string")
{is_form=false;href=f;}
else if(f.href)
{is_form=false;href=f.pathname;if(href.indexOf('%')<0)
href=escape(href).replace(/%2F/gi,'/');if(href.length<=0||href.charAt(0)!='/')
href='/'+href;href=f.protocol+"//"+f.hostname+href+f.search+f.hash;}
w=window.open(href,target,wf);if(w)
{if(w.focus)
w.focus();if(is_form)
f.target=target;return is_form;}
return true;}
function toggle_display(obj_id,obj_dtype)
{var closed;if(document.getElementById)
{closed=(document.getElementById(obj_id).style.display=="none");document.getElementById(obj_id).style.display=(closed?obj_dtype:"none");}
else if(document.all)
{closed=(document.all[obj_id].style.display=="none");document.all[obj_id].style.display=(closed?obj_dtype:"none");}
if(bd)
eval("document.img_"+obj_id+".src = "+(closed?"im.src;":"ip.src;"));}
function ga_track()
{var ga_pageTracker=_gat._getTracker("UA-629212-3");ga_pageTracker._trackPageview();}
dd=true;
