function load(fName){document.write('<scr'+'ipt type="text/javascript" src="'+ldir+'/dat/'+fName+'"></scr'+'ipt>');}
function rnd(min,max){return(min>=max)?max:Math.floor(((max+1-min)*Math.random())+min);}
function setAnswer(htmlText){obj=document.getElementById("asks");obj.innerHTML=htmlText;}
function cHead(hText, h2, mPict) { aidx = rnd(0, asks.length - 1); document.write('<h1>' + document.title.substr(7) + '</h1>'); if (typeof (h2) == "string") document.write('<br/><h2>' + h2 + '</h2>'); document.write('<p>' + hText + '</p>' + '<div id="content-pict" style="background:#fff url(' + href + '/common/img/' + mPict + ') no-repeat top left">' + '<p style="background:' + asks[aidx][0] + ' url(' + asks[aidx][1] + ') no-repeat center center"></p>' + '<a id="asks" style="text-align:center" href="' + asks[aidx][2] + '">' + asks[aidx][3] + '</a>' + '</div>'); }
node=location.pathname.split("/");href=location.protocol+"//"+location.host;lang=getCookie("usr_language");aidx=0;if(lang==null)
lang=getLang();if(isRedir)
ldir=href+"/"+location.search.substr(20,2);else
ldir=href+"/"+lang;setLang(lang);load("hdr.dat");load("asks.dat");if(document.getElementById){document.write('<scr'+'ipt type="text/javascript" src="'+href+'/common/inc/menu.js"></scr'+'ipt>');hasHNav=true;hasLNav=true;hasSNav=true;isDOM=true;}
else
isDOM=false;
