function openWindow(url,name,params) {
window.open(url,name,params);
return false;
}
function fa_rend_wide(fad, iseven) {
resp = '
' + fad.title + '';
if (fad.images > 0) {
resp += '' + fad.images + ' ' + translated_pic + ' ';
}
resp += '' + fad.desc + ' |
';
return resp;
}
function tl_rend_wide(fad, iseven) {
resp = '';
return resp;
}
function tl_rend_bottom_vip(fad, iseven) {
resp = '';
return resp;
}
function fa_request_done(fa_ads) {
var blocks_html = new Array();
if (fa_ads._blocks) {
for (j = 0; j < fa_ads._blocks.length; j++) {
block = fa_ads._blocks[j];
block_html = '';
var divObj = document.getElementById(block);
if (divObj) {
if (fa_ads[block] && fa_ads[block].length > 0) {
for (var ad=0; ad < fa_ads[block].length; ad++) {
block_html = block_html + fa_adsReg[block].renderer(fa_ads[block][ad], ad % 2 != 0);
}
divObj.innerHTML = block_html;
divObj = document.getElementById('adHere' + block);
divObj.style.display = 'none';
} else {
divObj = document.getElementById('top_' + block);
divObj.style.display = "none";
}
}
}
} else {
for (b in fa_adsReg) {
var divObj = document.getElementById('top_' + b);
if (divObj) divObj.style.display = "none";
}
}
}
function switchToCity(city) {
if (city == "bcn"){
city = "www";
}
var urlAction = document.forms[0].action;
var urlLastPart = urlAction.substr(urlAction.indexOf("."));
urlAction = "http://" + city + urlLastPart;
document.forms[0].action = urlAction + "&dm=1";
document.forms[0].submit();
}
function showAd(txt, what) {
w = what.substr(what.indexOf(':')+1);
obj = document.getElementById('zone_' + w);
if (txt.indexOf('@@rand@@') >= 0) {
rand = new String (Math.random()).substring (2, 11);
txt = txt.replace(/@@rand@@/, rand);
}
obj.innerHTML = txt;
}