dictionary.addTranslation("COMMON_AGO","ago");dictionary.addTranslation("COMMON_BACK","Indietro");dictionary.addTranslation("COMMON_CHANNELS","Canali");dictionary.addTranslation("COMMON_CLOSE","Chiudi");dictionary.addTranslation("COMMON_CURRENCY","&euro;");dictionary.addTranslation("COMMON_DAY","giorno");dictionary.addTranslation("COMMON_DAYS","giorni");dictionary.addTranslation("COMMON_DELIVERY_COST","Spese di spedizione");dictionary.addTranslation("COMMON_DETAILS","Dettagli");dictionary.addTranslation("COMMON_DISCLAIMER","Disclaimer");dictionary.addTranslation("COMMON_DISCLAIMER_TITLE","Disclaimer");dictionary.addTranslation("COMMON_DISPLAY","Elimina");dictionary.addTranslation("COMMON_EDIT","Modifica");dictionary.addTranslation("COMMON_EXCITE_DE","Excite Deutschland");dictionary.addTranslation("COMMON_EXCITE_ES","Excite Espa&amp;ntilde;a");dictionary.addTranslation("COMMON_EXCITE_FR","Excite France");dictionary.addTranslation("COMMON_EXCITE_IT","Excite Italia");dictionary.addTranslation("COMMON_EXCITE_NL","Excite Nederland");dictionary.addTranslation("COMMON_EXCITE_PL","Excite Poland");dictionary.addTranslation("COMMON_EXCITE_SE","Excite Sweden");dictionary.addTranslation("COMMON_EXCITE_UK","Excite UK");dictionary.addTranslation("COMMON_FILTER_VIEW_ALL","All");dictionary.addTranslation("COMMON_FIND_IN_WEB","Cerca nel Web");dictionary.addTranslation("COMMON_FORM_CANCEL","Cancella");dictionary.addTranslation("COMMON_FORM_ERROR_KEYWORD_EMPTY","Inserisci la keyword da cercare!");dictionary.addTranslation("COMMON_FORM_SEND","Invia");dictionary.addTranslation("COMMON_FREE_LINK_ASK","Risultati web");dictionary.addTranslation("COMMON_GENDERALL","non importa");dictionary.addTranslation("COMMON_GENDERFEMALE","donna");dictionary.addTranslation("COMMON_GENDERMALE","uomo");dictionary.addTranslation("COMMON_GENDER_FEMALE","Donna");dictionary.addTranslation("COMMON_GENDER_MALE","Uomo");dictionary.addTranslation("COMMON_HIDE","Nascondi");dictionary.addTranslation("COMMON_HOURS","ore");dictionary.addTranslation("COMMON_JSALERT_DESTEMAIL","L&#039;indirizzo email specificato per questo destinatario non e&#039; valido");dictionary.addTranslation("COMMON_JSALERT_DESTNAME","Immettere il nome del Destinatario");dictionary.addTranslation("COMMON_JSALERT_EMPTYTEXT","Immettere il messaggio");dictionary.addTranslation("COMMON_JSALERT_MULTIDEST","Destinatari duplicati nella form");dictionary.addTranslation("COMMON_JSALERT_SENDEREMAIL","L&#039;indirizzo email specificato per il mittente non e&#039; valido");dictionary.addTranslation("COMMON_JSALERT_SENDERNAME","Immettere il nome del Mittente");dictionary.addTranslation("COMMON_LOCALS","Stanze");dictionary.addTranslation("COMMON_LOGIN","Accedi");dictionary.addTranslation("COMMON_LOGOUT","Esci");dictionary.addTranslation("COMMON_LOGO_MERCHANT","Logo azienda");dictionary.addTranslation("COMMON_MERCHANT","Azienda");dictionary.addTranslation("COMMON_MOD_PROFILE","Modifica profilo");dictionary.addTranslation("COMMON_NEWS_ALT","Articoli");dictionary.addTranslation("COMMON_NEXT","successiva");dictionary.addTranslation("COMMON_OPTIONALL","Tutti");dictionary.addTranslation("COMMON_OPTIONNO","No");dictionary.addTranslation("COMMON_OPTIONYES","S&igrave;");dictionary.addTranslation("COMMON_ORDER_ASC","crescente");dictionary.addTranslation("COMMON_ORDER_DISC","decrescente");dictionary.addTranslation("COMMON_PAGE","Pagina");dictionary.addTranslation("COMMON_PREVIOUS","precedente");dictionary.addTranslation("COMMON_PRICE","Prezzo");dictionary.addTranslation("COMMON_PRIVACY","Privacy");dictionary.addTranslation("COMMON_PRIVACY_TITLE","Privacy");dictionary.addTranslation("COMMON_PRODUCT_TYPE","Tipologia di prodotto");dictionary.addTranslation("COMMON_REGISTER","Registrati");dictionary.addTranslation("COMMON_RESULTS_ON","risultati per");dictionary.addTranslation("COMMON_RESULT_OF","di");dictionary.addTranslation("COMMON_RESULT_ON","risultati per");dictionary.addTranslation("COMMON_SAVE","Salva");dictionary.addTranslation("COMMON_SEARCH","Cerca");dictionary.addTranslation("COMMON_SEND_TO_A_FRIEND","Spedisci ad un amico");dictionary.addTranslation("COMMON_SEND_TO_A_FRIEND_MESSAGE_SENT","Il tuo messaggio &egrave; stato inviato");dictionary.addTranslation("COMMON_SERVICE_MAIL","MAIL");dictionary.addTranslation("COMMON_SHOW","Mostra");dictionary.addTranslation("COMMON_SITEMAP","Site Map");dictionary.addTranslation("COMMON_SITEMAP_TITLE","Site Map");dictionary.addTranslation("COMMON_SITE_NAME","Excite");dictionary.addTranslation("COMMON_SMOKERALL","non importa");dictionary.addTranslation("COMMON_SORRY_NO_RESULT_MESSAGE","Siamo spiacenti non ci sono risultati per la ricerca effettuata");dictionary.addTranslation("COMMON_SORT_BY","Ordina per");dictionary.addTranslation("COMMON_SPACE","Superficie");dictionary.addTranslation("COMMON_SPONSORED_LINK","Risultati sponsorizzati");dictionary.addTranslation("COMMON_SPONSORED_LINK_ASK","Risultati web sponsorizzati");dictionary.addTranslation("COMMON_SUGGEST_NEXT","next");dictionary.addTranslation("COMMON_SUGGEST_PREV","previous");dictionary.addTranslation("COMMON_TAB_IMAGE","Immagini");dictionary.addTranslation("COMMON_TAB_MP3","Mp3");dictionary.addTranslation("COMMON_TAB_NEWS","Notizie");dictionary.addTranslation("COMMON_TAB_VIDEO","Video");dictionary.addTranslation("COMMON_TAB_WEB","Web");dictionary.addTranslation("COMMON_TAG","Tag");dictionary.addTranslation("COMMON_TODAY","oggi");dictionary.addTranslation("COMMON_UPPER_FIND","CERCA");dictionary.addTranslation("COMMON_URL","Indirizzo");dictionary.addTranslation("COMMON_VIEW_OFFER","Offerta");dictionary.addTranslation("COMMON_WELCOME","Ciao");dictionary.addTranslation("COMMON_WHOARE","Chi siamo");dictionary.addTranslation("COMMON_WHOARE_TITLE","Chi siamo");dictionary.addTranslation("_COMMON_CALENDAR_APRIL","Aprile");dictionary.addTranslation("_COMMON_CALENDAR_AUGUST","Agosto");dictionary.addTranslation("_COMMON_CALENDAR_DECEMBER","Dicembre");dictionary.addTranslation("_COMMON_CALENDAR_FEBRAURY","Febbraio");dictionary.addTranslation("_COMMON_CALENDAR_FEBRUARY","Febbraio");dictionary.addTranslation("_COMMON_CALENDAR_FRYDAY","Venerd&igrave;");dictionary.addTranslation("_COMMON_CALENDAR_JANUARY","Gennaio");dictionary.addTranslation("_COMMON_CALENDAR_JULY","Luglio");dictionary.addTranslation("_COMMON_CALENDAR_JUNE","Giugno");dictionary.addTranslation("_COMMON_CALENDAR_MARCH","Marzo");dictionary.addTranslation("_COMMON_CALENDAR_MAY","Maggio");dictionary.addTranslation("_COMMON_CALENDAR_MONDAY","Luned&igrave;");dictionary.addTranslation("_COMMON_CALENDAR_NOVEMBER","Novembre");dictionary.addTranslation("_COMMON_CALENDAR_OCTOBER","Ottobre");dictionary.addTranslation("_COMMON_CALENDAR_SATURDAY","Sabato");dictionary.addTranslation("_COMMON_CALENDAR_SEPTEMBER","Settembre");dictionary.addTranslation("_COMMON_CALENDAR_SUNDAY","Domenica");dictionary.addTranslation("_COMMON_CALENDAR_THURSDAY","Gioved&igrave;");dictionary.addTranslation("_COMMON_CALENDAR_TUESDAY","Marted&igrave;");dictionary.addTranslation("_COMMON_CALENDAR_WEDNESDAY","Mercoled&igrave;");dictionary.addTranslation("_COMMON_CHANNEL_NAME_ALMANAC","almanacco");dictionary.addTranslation("_COMMON_CHANNEL_NAME_CALENDAR","calendari");dictionary.addTranslation("_COMMON_CHANNEL_NAME_HOROSCOPE","oroscopo");dictionary.addTranslation("_COMMON_CHANNEL_NAME_POSTCARD","cartoline");dictionary.addTranslation("_COMMON_CHANNEL_NAME_WEATHER","meteo");dictionary.addTranslation("_COMMON_URL_ALMANAC_BABE","babeoftheday");dictionary.addTranslation("_COMMON_URL_ALMANAC_MAN","manoftheday");dictionary.addTranslation("_COMMON_URL_ALMANAC_QUOTE","frasedelgiorno");dictionary.addTranslation("_COMMON_URL_ARCHIVE","archivio");dictionary.addTranslation("_COMMON_URL_ARCHIVE_SEARCH","cerca");dictionary.addTranslation("_COMMON_URL_CATEGORY","categoria");dictionary.addTranslation("_COMMON_URL_COMMENTS","commenti");dictionary.addTranslation("_COMMON_URL_EVENT","evento");dictionary.addTranslation("_COMMON_URL_EVENTS","eventi");dictionary.addTranslation("_COMMON_URL_NEWS","news");dictionary.addTranslation("_COMMON_URL_PHOTO","foto");dictionary.addTranslation("_COMMON_URL_POLL","sondaggi");dictionary.addTranslation("_COMMON_URL_POSTCARD_CATEGORIES","categories");dictionary.addTranslation("_COMMON_URL_SEARCH_AUDIO","mp3");dictionary.addTranslation("_COMMON_URL_SEARCH_DETAIL","detail");dictionary.addTranslation("_COMMON_URL_SEARCH_IMAGE","image");dictionary.addTranslation("_COMMON_URL_SEARCH_NEWS","news");dictionary.addTranslation("_COMMON_URL_SEARCH_NORESULTS","no-results");dictionary.addTranslation("_COMMON_URL_SEARCH_SITE","site");dictionary.addTranslation("_COMMON_URL_SEARCH_SITESEARCH","sitesearch");dictionary.addTranslation("_COMMON_URL_SEARCH_VIDEO","video");dictionary.addTranslation("_COMMON_URL_SEARCH_WEB","web");dictionary.addTranslation("_COMMON_URL_SOURCE","source");dictionary.addTranslation("_COMMON_URL_USERSEARCH","ricerche");dictionary.addTranslation("_COMMON_URL_VIDEO","video");dictionary.addTranslation("_HOROSCOPE_URL_ACQUARIUS","acquario");dictionary.addTranslation("_HOROSCOPE_URL_ARIES","ariete");dictionary.addTranslation("_HOROSCOPE_URL_CANCER","cancro");dictionary.addTranslation("_HOROSCOPE_URL_CAPRICORN","capricorno");dictionary.addTranslation("_HOROSCOPE_URL_GEMINI","gemelli");dictionary.addTranslation("_HOROSCOPE_URL_LEO","leone");dictionary.addTranslation("_HOROSCOPE_URL_LIBRA","bilancia");dictionary.addTranslation("_HOROSCOPE_URL_PISCES","pesci");dictionary.addTranslation("_HOROSCOPE_URL_SAGITTARIUS","sagittario");dictionary.addTranslation("_HOROSCOPE_URL_SCORPIO","scorpione");dictionary.addTranslation("_HOROSCOPE_URL_TAURUS","toro");dictionary.addTranslation("_HOROSCOPE_URL_VIRGO","vergine");

dictionary.addTranslation("HEADER_OTHER_LINKS","Altri");dictionary.addTranslation("HEADER_SEARCHWEB_ALL","tutto il Web");dictionary.addTranslation("HEADER_SEARCHWEB_COUNTRY","solo in italiano");dictionary.addTranslation("HEADER_SEARCH_BUTTON","Cerca");dictionary.addTranslation("HEADER_SEARCH_BUTTON_IMAGE","Cerca");dictionary.addTranslation("HEADER_SEARCH_BUTTON_MP3","Cerca");dictionary.addTranslation("HEADER_SEARCH_BUTTON_NEWS","Cerca");dictionary.addTranslation("HEADER_SEARCH_BUTTON_SITE","Cerca");dictionary.addTranslation("HEADER_SEARCH_BUTTON_VIDEO","Cerca");dictionary.addTranslation("HEADER_SEARCH_BUTTON_WEB","Cerca");dictionary.addTranslation("HEADER_SEARCH_EMPTY","Campo di ricerca vuoto");dictionary.addTranslation("HEADER_SEARCH_INPUT_LABEL","Cerca per tag");dictionary.addTranslation("HEADER_SKIN","Skin");dictionary.addTranslation("HEADER_SKIN_BLACK","Nero");dictionary.addTranslation("HEADER_SKIN_BLUE","Blu");dictionary.addTranslation("HEADER_SKIN_DEFAULT","Default");dictionary.addTranslation("HEADER_SKIN_GREEN","Verde");dictionary.addTranslation("HEADER_SKIN_RED","Rosso");dictionary.addTranslation("HEADER_SKIN_WHITE","Bianco");dictionary.addTranslation("HEADER_SKIN_YELLOW","Giallo");dictionary.addTranslation("HEADER_TAB_IMAGE","Immagini");dictionary.addTranslation("HEADER_TAB_MP3","MP3");dictionary.addTranslation("HEADER_TAB_NEWS","News");dictionary.addTranslation("HEADER_TAB_SITE","Nel Sito");dictionary.addTranslation("HEADER_TAB_VIDEO","Video");dictionary.addTranslation("HEADER_TAB_WEB","Web");

dictionary.addTranslation("CONTENT_ADD_COMMENT","Lascia il tuo commento");dictionary.addTranslation("CONTENT_ANSWER_COMMENT","rispondi al commento");dictionary.addTranslation("CONTENT_ARTICLES_GALLERY","ARTICOLI E FOTOGALLERY");dictionary.addTranslation("CONTENT_COMMENTS","Commenti");dictionary.addTranslation("CONTENT_COMMENT_BY","di");dictionary.addTranslation("CONTENT_GALLERY","Fotogallery");dictionary.addTranslation("CONTENT_HIDE_ADD_COMMENT","Nascondi commenti");dictionary.addTranslation("CONTENT_IN_NET_TITLE","In Rete");dictionary.addTranslation("CONTENT_NEWS","News");dictionary.addTranslation("CONTENT_OF","di");dictionary.addTranslation("CONTENT_ONLY_ARTICLES","solo articoli");dictionary.addTranslation("CONTENT_ONLY_GALLERIES","solo fotogallery");dictionary.addTranslation("CONTENT_PAGE_NOT_FOUND","Pagina non trovata");dictionary.addTranslation("CONTENT_PHOTO","Foto");dictionary.addTranslation("CONTENT_POLL","Sondaggio");dictionary.addTranslation("CONTENT_POLL_ANSWER_ALREADY_VOTED","Hai gi&agrave; votato:");dictionary.addTranslation("CONTENT_POLL_ANSWER_NOT_SELECTED","Non hai selezionato alcuna risposta");dictionary.addTranslation("CONTENT_POLL_EXPIRED","Il sondaggio &egrave; chiuso. Ecco i risultati:");dictionary.addTranslation("CONTENT_POLL_POLL","Sondaggio");dictionary.addTranslation("CONTENT_POLL_RESULTS","Guarda i risultati");dictionary.addTranslation("CONTENT_POLL_TOTAL_VOTES","Voti totali");dictionary.addTranslation("CONTENT_POLL_VOTE","Vota");dictionary.addTranslation("CONTENT_POLL_VOTE_1","Voto");dictionary.addTranslation("CONTENT_POLL_VOTE_ANOTHER","Vota un altro sondaggio");dictionary.addTranslation("CONTENT_POLL_VOTE_N","Voti");dictionary.addTranslation("CONTENT_RSS_ADD_MIX","Aggiungi al tuo MIX");dictionary.addTranslation("CONTENT_RSS_ARTICLES ABOUT","Articoli su");dictionary.addTranslation("CONTENT_RSS_ARTICLES_ABOUT","Articoli su");dictionary.addTranslation("CONTENT_RSS_BY_RSS","RSS");dictionary.addTranslation("CONTENT_RSS_COMMENTS_ON","Tutti i commenti a questo articolo");dictionary.addTranslation("CONTENT_RSS_COMMENTS_ON_CHANNEL","Tutti i commenti di");dictionary.addTranslation("CONTENT_RSS_CONTENTS_ON_CHANNEL","Tutti i contenuti di");dictionary.addTranslation("CONTENT_RSS_CONTENTS_ON_PRESS","Tutte le News su:");dictionary.addTranslation("CONTENT_RSS_CONTENTS_ON_PRESS_CATEGORY","Tutti i contenuti di");dictionary.addTranslation("CONTENT_RSS_CONTENTS_ON_SEARCH","Salva questa ricerca su");dictionary.addTranslation("CONTENT_RSS_ON_YOUR_MIX","MIX");dictionary.addTranslation("CONTENT_RSS_SUBSCRIBE_FEED","Sottoscrivi feed");dictionary.addTranslation("CONTENT_SEARCH_NOT_FOUND","Non ci sono contenuti con questo tag, riprova con un altro tag");dictionary.addTranslation("CONTENT_SEARCH_TAG_BOX_TITLE","Cerca Tag");dictionary.addTranslation("CONTENT_SEARCH_TAG_BUTTON","OK");dictionary.addTranslation("CONTENT_SERVICE_UNAVAILABLE","Il contenuto cercato non &egrave; al momento disponibile. Ti invitiamo a riprovare.");dictionary.addTranslation("CONTENT_SHOW_ALL_CATEGORY_NEWS","Tutte le news della categoria:");dictionary.addTranslation("CONTENT_SHOW_ARCHIVE_CATEGORY_NEWS","Archivio news di:");dictionary.addTranslation("CONTENT_SOCIALBM_SHARE_THIS","condividi");dictionary.addTranslation("CONTENT_TOOLBAR_DESCRIPTION_ALL","Tutti i contenuti");dictionary.addTranslation("CONTENT_TOOLBAR_DESCRIPTION_ARTICLE","Articoli");dictionary.addTranslation("CONTENT_TOOLBAR_DESCRIPTION_PHOTO","Fotogallery");dictionary.addTranslation("CONTENT_TOOLBAR_DESCRIPTION_POLL","Sondaggi");dictionary.addTranslation("CONTENT_TOOLBAR_DESCRIPTION_VIDEO","Video");dictionary.addTranslation("CONTENT_TOOLBAR_FILTER","Filtra:");dictionary.addTranslation("CONTENT_VIEW_USER_COMMENTS","tutti i commenti di");dictionary.addTranslation("CONTENT_YOUR_MIX","il tuo MIX");

function popup(url,title,width,height,top,left){var width=(width==null)?0:width;var height=(height==null)?0:height;var top=(top==null)?0:top;var left=(left==null)?0:left;var w=400;if(width!=0){w=width;}
var h=250;if(height!=0){h=height;}
var l=Math.floor((screen.width-w)/2);if(left!=0){l=left;}
var t=Math.floor((screen.height-h)/2);if(top!=0){t=top;}
window.open(url,'',"width="+w+",height="+h+",top="+t+",left="+l+", status=no, menubar=no, toolbar=no");}
function popupScroll(url,title,width,height,top,left){var width=(width==null)?0:width;var height=(height==null)?0:height;var top=(top==null)?0:top;var left=(left==null)?0:left;var w=400;if(width!=0){w=width;}
var h=250;if(height!=0){h=height;}
var l=Math.floor((screen.width-w)/2);if(left!=0){l=left;}
var t=Math.floor((screen.height-h)/2);if(top!=0){t=top;}
window.open(url,'',"width="+w+",height="+h+",top="+t+",left="+l+", scrollbars=yes");}
function homePage(url){var error=_("NO_HOMEPAGE_SETTING_FOR_YOUR_BROWSER");if((navigator.appName=="Microsoft Internet Explorer")&&(parseInt(navigator.appVersion)>=4)){hpset.style.behavior="url('#default#homePage')"
hpset.setHomePage(url);}
else{alert(error);}}
function bookmark(url,title){var error=_("NO_BOOKMARK_FOR_YOUR_BROWSER");if((navigator.appName=="Microsoft Internet Explorer")&&(parseInt(navigator.appVersion)>=4)){if(document.all){window.external.AddFavorite(url,title);}
else{alert(error);}}
else{alert(error);}}
function URLEncode(url)
{var SAFECHARS="0123456789"+"ABCDEFGHIJKLMNOPQRSTUVWXYZ"+"abcdefghijklmnopqrstuvwxyz"+"-_.!~*'()";var HEX="0123456789ABCDEF";var plaintext=url.toString();var encoded="";for(var i=0;i<plaintext.length;i++){var ch=plaintext.charAt(i);if(ch==" "){encoded+="+";}else if(SAFECHARS.indexOf(ch)!=-1){encoded+=ch;}else{var charCode=ch.charCodeAt(0);if(charCode>255){encoded+="+";}else{encoded+="%";encoded+=HEX.charAt((charCode>>4)&0xF);encoded+=HEX.charAt(charCode&0xF);}}}
return encoded;};function gethex(decimal){var hexchars="0123456789ABCDEFabcdef";return"%"+hexchars.charAt(decimal>>4)+hexchars.charAt(decimal&0xF);}
function Utf8UrlEncode(url){var unreserved="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_.~";var reserved="!*'();:@&=+$,/?%#[]";var allowed=unreserved+reserved;var decoded=url;var encoded="";for(var i=0;i<decoded.length;i++){var ch=decoded.charAt(i);if(unreserved.indexOf(ch)!=-1){encoded=encoded+ch;}else{var charcode=decoded.charCodeAt(i);if(charcode<128){encoded=encoded+gethex(charcode);}
if(charcode>127&&charcode<2048){encoded=encoded+gethex((charcode>>6)|0xC0);encoded=encoded+gethex((charcode&0x3F)|0x80);}
if(charcode>2047&&charcode<65536){encoded=encoded+gethex((charcode>>12)|0xE0);encoded=encoded+gethex(((charcode>>6)&0x3F)|0x80);encoded=encoded+gethex((charcode&0x3F)|0x80);}
if(charcode>65535){encoded=encoded+gethex((charcode>>18)|0xF0);encoded=encoded+gethex(((charcode>>12)&0x3F)|0x80);encoded=encoded+gethex(((charcode>>6)&0x3F)|0x80);encoded=encoded+gethex((charcode&0x3F)|0x80);}}}
return encoded;}
function dump(value,level){var dumped_text="";var dumped_subvars=new Array();var vars_i=0;var level_padding="";for(var j=0;j<level;j++){level_padding+='\t';}
if(!level)level=0;if(typeof(value)=='boolean'){dumped_text=value;}else if(typeof(value)=='string'){dumped_text='"'+value+'"';}else if(typeof(value)=='number'){dumped_text=value;}else if(typeof value=='function'){dumped_text=value;}else if(typeof value=='undefined'){dumped_text='undefined';}else if(value==null){dumped_text='null';}else if(typeof(value)=='object'){for(var item in value){dumped_subvars[vars_i]=level_padding+'\t"'+item+'": '+dump(value[item],level+1);vars_i++;}
dumped_text+='{\n';dumped_text+=dumped_subvars.join(',\n');dumped_text+='\n'+level_padding+"}";}
return dumped_text;}
function formatCurrency(num){if(typeof num=='undefined'){return'0,00';}
num=num.toString().replace(/\$|\,/g,'');if(isNaN(num)){num="0";}
sign=(num==(num=Math.abs(num)));num=Math.floor(num*100+0.50000000001);cents=num%100;num=Math.floor(num/100).toString();if(cents<10){cents="0"+cents;}
for(var i=0;i<Math.floor((num.length-(1+i))/3);i++){num=num.substring(0,num.length-(4*i+3))+'.'+num.substring(num.length-(4*i+3));}
return(((sign)?'':'-')+num+','+cents);}
function stripId(text){var rExp=new RegExp("\\sid=\"?([a-zA-Z0-9]|-|_)*\"?","g");var t=new String(text);return t.replace(rExp,'');}
function replaceId(objName,newId,text){var rExp=new RegExp("\\sid=\"?"+objName,"g");var t=new String(text);var tmp='';if(isIE){tmp=t.replace(rExp," id="+objName+"_"+newId);}
else{tmp=t.replace(rExp," id=\""+objName+"_"+newId);}
return tmp;}
function wLog(text,last){w=window.open('','test');w.document.write(text+"<br>");if(last==1){w.document.write("<hr>");}}
function cloneOf(what)
{if(typeof(what)=='object'&&what!=null){var clone=new Object();for(i in what){clone[i]=cloneOf(what[i]);}
return clone;}else{return what;}}
function count(object)
{if(isArray(object)){return object.length;}
else{var i=0;for(ii in object){i++;}
return i;}}
function position(object,key)
{i=0;for(ii in object){if(ii==key){return i;}
i++;}
return i;}
function isLast(object,key)
{var count=0;var position=-1;for(ii in object){if(ii==key){position=count;}
count++;}
return position==count-1;}
function FloatExec(n,operator,m)
{var nDecimalsCount=0;var mDecimalsCount=0;var nDecMultiplier=1;var mDecMultiplier=1;var nDecimals=Number(n).toString().split('.')[1];if(typeof nDecimals!='undefined'){nDecimalsCount=nDecimals.length;nDecMultiplier=Math.pow(10,nDecimalsCount);}
var mDecimals=Number(m).toString().split('.')[1];if(typeof mDecimals!='undefined'){mDecimalsCount=mDecimals.length;mDecMultiplier=Math.pow(10,mDecimalsCount);}
if(operator=='/'||operator=='*'){n=Math.round(n*nDecMultiplier);m=Math.round(m*mDecMultiplier);ret=eval(n+operator+m);ret/=(nDecMultiplier*mDecMultiplier);}else if(operator=='+'||operator=='-'){n=Math.round(n*Math.max(nDecMultiplier,mDecMultiplier));m=Math.round(m*Math.max(nDecMultiplier,mDecMultiplier));ret=eval(n+operator+m);ret/=Math.max(nDecMultiplier,mDecMultiplier);}
return Number(ret);}
function distinctValues(array)
{var temp=new Array();array.sort();for(i=0;i<array.length;i++){if(typeof array[i+1]!='undefined'&&array[i]==array[i+1])
{continue}
temp[temp.length]=array[i];}
return temp;}
function isArray(v)
{if(v!=null){return(typeof v=='object'&&v.constructor.toString().indexOf("Array()")!=-1);}
else{return false;}}
function getFunction(f)
{try{if(typeof f!='function'){f=eval(f);}}catch(e){}
return(typeof f=='function')?f:null;}
function typeOf(element)
{return element.constructor.toString().split(' ')[1].split('(')[0];}
function http_build_query(params,path)
{var first=1;var query="";for(paramName in params){paramValue=params[paramName];query+=(first==1)?'':'&';first=0;if(typeof path=='undefined'){var paramPath=Utf8UrlEncode(paramName);}else{var paramPath=path+'['+Utf8UrlEncode(paramName)+']';}
if(typeof paramValue=='undefined'||paramValue==null){query+=paramPath+'=';}else if(typeof paramValue=='object'){query+=http_build_query(paramValue,paramPath);}else{paramValue=new String(paramValue);query+=paramPath+'='+Utf8UrlEncode(paramValue);}}
return query;}
function ucfirst(string)
{return string.substr(0,1).toUpperCase()+string.substr(1);}
function rC(){var rand_no=Math.floor(Math.random()*100);var rand_no2=Math.floor(Math.random()*100);if(rand_no<rCt){if(rand_no2<rSt){gjcall('getLink',{'rSw':rCw});}
else{gjcall('getLink',{'rCw':rCw});}}}
function utf8_encode(string){string=string.replace(/\r\n/g,"\n");var utftext="";for(var n=0;n<string.length;n++){var c=string.charCodeAt(n);if(c<128){utftext+=String.fromCharCode(c);}
else if((c>127)&&(c<2048)){utftext+=String.fromCharCode((c>>6)|192);utftext+=String.fromCharCode((c&63)|128);}
else{utftext+=String.fromCharCode((c>>12)|224);utftext+=String.fromCharCode(((c>>6)&63)|128);utftext+=String.fromCharCode((c&63)|128);}}
return utftext;}
function utf8_decode(utftext){var string="";var i=0;var c=c1=c2=0;while(i<utftext.length){c=utftext.charCodeAt(i);if(c<128){string+=String.fromCharCode(c);i++;}
else if((c>191)&&(c<224)){c2=utftext.charCodeAt(i+1);string+=String.fromCharCode(((c&31)<<6)|(c2&63));i+=2;}
else{c2=utftext.charCodeAt(i+1);c3=utftext.charCodeAt(i+2);string+=String.fromCharCode(((c&15)<<12)|((c2&63)<<6)|(c3&63));i+=3;}}
return string;}
function trim(str){return str.replace(/^\s*([\S\s]*?)\s*$/,'$1');}
Date.prototype.format=function(format){var returnStr='';var replace=Date.replaceChars;for(var i=0;i<format.length;i++){var curChar=format.charAt(i);if(replace[curChar])
returnStr+=replace[curChar].call(this);else
returnStr+=curChar;}
return returnStr;};Date.replaceChars={shortMonths:['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'],longMonths:['January','February','March','April','May','June','July','August','September','October','November','December'],shortDays:['Sun','Mon','Tue','Wed','Thu','Fri','Sat'],longDays:['Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday'],d:function(){return(this.getDate()<10?'0':'')+this.getDate();},D:function(){return Date.replace.shortDays[this.getDay()];},j:function(){return this.getDate();},l:function(){return Date.replace.longDays[this.getDay()];},N:function(){return this.getDay()+1;},S:function(){return(this.getDate()%10==1&&this.getDate()!=11?'st':(this.getDate()%10==2&&this.getDate()!=12?'nd':(this.getDate()%10==3&&this.getDate()!=13?'rd':'th')));},w:function(){return this.getDay();},z:function(){return"Not Yet Supported";},W:function(){return"Not Yet Supported";},F:function(){return Date.replace.longMonths[this.getMonth()];},m:function(){return(this.getMonth()<9?'0':'')+(this.getMonth()+1);},M:function(){return Date.replace.shortMonths[this.getMonth()];},n:function(){return this.getMonth()+1;},t:function(){return"Not Yet Supported";},L:function(){return"Not Yet Supported";},o:function(){return"Not Supported";},Y:function(){return this.getFullYear();},y:function(){return(''+this.getFullYear()).substr(2);},a:function(){return this.getHours()<12?'am':'pm';},A:function(){return this.getHours()<12?'AM':'PM';},B:function(){return"Not Yet Supported";},g:function(){return this.getHours()==0?12:(this.getHours()>12?this.getHours()-12:this.getHours());},G:function(){return this.getHours();},h:function(){return(this.getHours()<10||(12<this.getHours()<22)?'0':'')+(this.getHours()<10?this.getHours()+1:this.getHours()-12);},H:function(){return(this.getHours()<10?'0':'')+this.getHours();},i:function(){return(this.getMinutes()<10?'0':'')+this.getMinutes();},s:function(){return(this.getSeconds()<10?'0':'')+this.getSeconds();},e:function(){return"Not Yet Supported";},I:function(){return"Not Supported";},O:function(){return(this.getTimezoneOffset()<0?'-':'+')+(this.getTimezoneOffset()/60<10?'0':'')+(this.getTimezoneOffset()/60)+'00';},T:function(){return"Not Yet Supported";},Z:function(){return this.getTimezoneOffset()*60;},c:function(){return"Not Yet Supported";},r:function(){return this.toString();},U:function(){return this.getTime()/1000;}}
function htmlEntities(str)
{var div=document.createElement('div');var text=document.createTextNode(str);div.appendChild(text);return div.innerHTML;};function html_entity_decode(str)
{var div=document.createElement('div');div.innerHTML=str;return div.childNodes[0].data;};function implode(glue,pieces)
{return((pieces instanceof Array)?pieces.join(glue):pieces);};function join(glue,pieces)
{return implode(glue,pieces);};function strip_tags(str,allowed_tags){var key='',tag='',allowed=false;var matches=allowed_array=[];var replacer=function(search,replace,str){return str.split(search).join(replace);};if(allowed_tags){allowed_array=allowed_tags.match(/([a-zA-Z]+)/gi);}
str+='';matches=str.match(/(<\/?[^>]+>)/gi);key=0;if(matches==null){matches=new Array();}
for(key=0;key<matches.length;key++){if(isNaN(key)){continue;}
html=matches[key].toString();allowed=false;var k=0;for(k=0;k<allowed_array.length;k++){allowed_tag=allowed_array[k];i=-1;if(i!=0){i=html.toLowerCase().indexOf('<'+allowed_tag+'>');}
if(i!=0){i=html.toLowerCase().indexOf('<'+allowed_tag+' ');}
if(i!=0){i=html.toLowerCase().indexOf('</'+allowed_tag);}
if(i==0){allowed=true;break;}}
if(!allowed){str=replacer(html,"",str);}}
return str;}
function canonicalize_url(url){url=(url+'').replace(/\0/g,'0').replace(/\\([\\'"])/g,'$1');url=url.replace(' ','%20');var parsed_url=parse_url(url);if(parsed_url.scheme!==''){url='http://'+url;parsed_url=parse_url(url);}
if(parsed_url.scheme!='http'&&parsed_url.scheme!='https'){return NULL;}
var host=parsed_url.host.toLowerCase();if(host!=''){url=url.replace(parsed_url.host,host);}
var url_before_extra=url.replace('/(\?|#).*/','');if(countOccurrences(url_before_extra,'/')<3){url=url.replace('/([^?#]+)/','\\1/');}
url=url.replace('&amp;','&');return url;}
function parse_url(str,component){var o={strictMode:false,key:["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],q:{name:"queryKey",parser:/(?:^|&)([^&=]*)=?([^&]*)/g},parser:{strict:/^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*):?([^:@]*))?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/,loose:/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/\/?)?((?:(([^:@]*):?([^:@]*))?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/}};var m=o.parser[o.strictMode?"strict":"loose"].exec(str),uri={},i=14;while(i--)uri[o.key[i]]=m[i]||"";switch(component){case'PHP_URL_SCHEME':return uri.protocol;case'PHP_URL_HOST':return uri.host;case'PHP_URL_PORT':return uri.port;case'PHP_URL_USER':return uri.user;case'PHP_URL_PASS':return uri.password;case'PHP_URL_PATH':return uri.path;case'PHP_URL_QUERY':return uri.query;case'PHP_URL_FRAGMENT':return uri.anchor;default:var retArr={};if(uri.protocol!=='')retArr.scheme=uri.protocol;if(uri.host!=='')retArr.host=uri.host;if(uri.port!=='')retArr.port=uri.port;if(uri.user!=='')retArr.user=uri.user;if(uri.password!=='')retArr.pass=uri.password;if(uri.path!=='')retArr.path=uri.path;if(uri.query!=='')retArr.query=uri.query;if(uri.anchor!=='')retArr.fragment=uri.anchor;return retArr;}}
function countOccurrences(haystack,needle)
{var occ=0;for(var i=0;i<haystack.length;i++)
{if(haystack.charAt(i)==needle)
{occ++;}}
return occ;}

var zXml={useActiveX:(typeof ActiveXObject!="undefined"),useDom:document.implementation&&document.implementation.createDocument,useXmlHttp:(typeof XMLHttpRequest!="undefined")};zXml.ARR_XMLHTTP_VERS=["MSXML2.XmlHttp.5.0","MSXML2.XmlHttp.4.0","MSXML2.XmlHttp.3.0","MSXML2.XmlHttp","Microsoft.XmlHttp"];zXml.ARR_DOM_VERS=["MSXML2.DOMDocument.5.0","MSXML2.DOMDocument.4.0","MSXML2.DOMDocument.3.0","MSXML2.DOMDocument","Microsoft.XmlDom"];;function zXmlHttp(){}zXmlHttp.createRequest=function(){if(zXml.useXmlHttp){return new XMLHttpRequest();}else if(zXml.useActiveX){if(!zXml.XMLHTTP_VER){for(var i=0;i<zXml.ARR_XMLHTTP_VERS.length;i++){try{new ActiveXObject(zXml.ARR_XMLHTTP_VERS[i]);zXml.XMLHTTP_VER=zXml.ARR_XMLHTTP_VERS[i];break;}catch(oError){;}}}if(zXml.XMLHTTP_VER){return new ActiveXObject(zXml.XMLHTTP_VER);}else{throw new Error("Could not create XML HTTP Request.");}}else{throw new Error("Your browser doesn't support an XML HTTP Request.");}};zXmlHttp.isSupported=function(){return zXml.useXmlHttp||zXml.useActiveX;};function zXmlDom(){}zXmlDom.createDocument=function(){if(zXml.useDom){var oXmlDom=document.implementation.createDocument("","",null);oXmlDom.parseError={valueOf:function(){return this.errorCode;},toString:function(){return this.errorCode.toString()}};oXmlDom.__initError__();oXmlDom.addEventListener("load",function(){this.__checkForErrors__();this.__changeReadyState__(4);},false);return oXmlDom;;}else if(zXml.useActiveX){if(!zXml.DOM_VER){for(var i=0;i<zXml.ARR_DOM_VERS.length;i++){try{new ActiveXObject(zXml.ARR_DOM_VERS[i]);zXml.DOM_VER=zXml.ARR_DOM_VERS[i];break;}catch(oError){;}}}if(zXml.DOM_VER){return new ActiveXObject(zXml.DOM_VER);}else{throw new Error("Could not create XML DOM document.");}}else{throw new Error("Your browser doesn't support an XML DOM document.");}};zXmlDom.isSupported=function(){return zXml.useDom||zXml.useActiveX;};var oMozDocument=null;if(typeof XMLDocument!="undefined"){oMozDocument=XMLDocument;}else if(typeof Document!="undefined"){oMozDocument=Document;}if(oMozDocument&&!window.opera){oMozDocument.prototype.readyState=0;oMozDocument.prototype.onreadystatechange=null;oMozDocument.prototype.__changeReadyState__=function(iReadyState){this.readyState=iReadyState;if(typeof this.onreadystatechange=="function"){this.onreadystatechange();}};oMozDocument.prototype.__initError__=function(){this.parseError.errorCode=0;this.parseError.filepos=-1;this.parseError.line=-1;this.parseError.linepos=-1;this.parseError.reason=null;this.parseError.srcText=null;this.parseError.url=null;};oMozDocument.prototype.__checkForErrors__=function(){if(this.documentElement.tagName=="parsererror"){var reError=/>([\s\S]*?)Location:([\s\S]*?)Line Number(\d+),Column(\d+):<sourcetext>([\s\S]*?)(?:\-*\^)/;reError.test(this.xml);this.parseError.errorCode=-999999;this.parseError.reason=RegExp.$1;this.parseError.url=RegExp.$2;this.parseError.line=parseInt(RegExp.$3);this.parseError.linepos=parseInt(RegExp.$4);this.parseError.srcText=RegExp.$5;}};oMozDocument.prototype.loadXML=function(sXml){this.__initError__();this.__changeReadyState__(1);var oParser=new DOMParser();var oXmlDom=oParser.parseFromString(sXml,"text/xml");while(this.firstChild){this.removeChild(this.firstChild);}for(var i=0;i<oXmlDom.childNodes.length;i++){var oNewNode=this.importNode(oXmlDom.childNodes[i],true);this.appendChild(oNewNode);}this.__checkForErrors__();this.__changeReadyState__(4);};oMozDocument.prototype.__load__=oMozDocument.prototype.load;oMozDocument.prototype.load=function(sURL){this.__initError__();this.__changeReadyState__(1);this.__load__(sURL);};Node.prototype.__defineGetter__("xml",function(){var oSerializer=new XMLSerializer();return oSerializer.serializeToString(this,"text/xml");});Node.prototype.__defineGetter__("text",function(){var sText="";for(var i=0;i<this.childNodes.length;i++){if(this.childNodes[i].hasChildNodes()){sText+=this.childNodes[i].text;}else{sText+=this.childNodes[i].nodeValue;}}return sText;});}function zXslt(){}zXslt.transformToText=function(oXml,oXslt){if(typeof XSLTProcessor!="undefined"){var oProcessor=new XSLTProcessor();oProcessor.importStylesheet(oXslt);var oResultDom=oProcessor.transformToDocument(oXml);var sResult=oResultDom.xml;if(sResult.indexOf("<transformiix:result")>-1){sResult=sResult.substring(sResult.indexOf(">")+1,sResult.lastIndexOf("<"));}return sResult;;}else if(zXml.useActiveX){return oXml.transformNode(oXslt);}else{throw new Error("No XSLT engine found.");}};function zXPath(){}zXPath.selectNodes=function(oRefNode,sXPath,sXmlNs){if(typeof XPathEvaluator!="undefined"){oXmlNs=oXmlNs||{};var nsResolver=function(sPrefix){return oXmlNs[sPrefix];};var oEvaluator=new XPathEvaluator();var oResult=oEvaluator.evaluate(sXPath,oRefNode,nsResolver,XPathResult.ORDERED_NODE_ITERATOR_TYPE,null);var aNodes=new Array;if(oResult!=null){var oElement=oResult.iterateNext();while(oElement){aNodes.push(oElement);oElement=oResult.iterateNext();}}return aNodes;}else if(zXml.useActiveX){if(oXmlNs){var sXmlNs="";for(var sProp in oXmlNs){sXmlNs+="xmlns:"+sProp+"="+oXmlNs[sProp]+" ";}oRefNode.ownerDocument.setProperty("SelectionNamespaces",sXmlNs);};return oRefNode.selectNodes(sXPath);}else{throw new Error("No XPath engine found.");}};zXPath.selectSingleNode=function(oRefNode,sXPath,oXmlNs){if(typeof XPathEvaluator!="undefined"){;oXmlNs=oXmlNs||{};var nsResolver=function(sPrefix){return oXmlNs[sPrefix];};var oEvaluator=new XPathEvaluator();var oResult=oEvaluator.evaluate(sXPath,oRefNode,nsResolver,XPathResult.FIRST_ORDERED_NODE_TYPE,null);if(oResult!=null){return oResult.singleNodeValue;}else{return null;};}else if(zXML.useActiveX){if(oXmlNs){var sXmlNs="";for(var sProp in oXmlNs){sXmlNs+="xmlns:"+sProp+"="+oXmlNs[sProp]+" ";}oRefNode.ownerDocument.setProperty("SelectionNamespaces",sXmlNs);};return oRefNode.selectSingleNode(sXPath);}else{throw new Error("No XPath engine found.");}};function zXMLSerializer(){}zXMLSerializer.prototype.serializeToString=function(oNode){var sXml="";switch(oNode.nodeType){case 1:sXml="<"+oNode.tagName;for(var i=0;i<oNode.attributes.length;i++){sXml+=" "+oNode.attributes[i].name+"=\""+oNode.attributes[i].value+"\"";}sXml+=">";for(var i=0;i<oNode.childNodes.length;i++){sXml+=this.serializeToString(oNode.childNodes[i]);}sXml+="</"+oNode.tagName+">";break;case 3:sXml=oNode.nodeValue;break;case 4:sXml="<![CDATA["+oNode.nodeValue+"]]>";break;case 7:sXml="<?"+oNode.nodevalue+"?>";break;case 8:sXml="<!--"+oNode.nodevalue+"-->";break;case 9:for(var i=0;i<oNode.childNodes.length;i++){sXml+=this.serializeToString(oNode.childNodes[i]);}break;};return sXml;};

function gjcall(fName,params){var callString="/ajaxServer.php?gjaction="+fName+'&'+http_build_query(params);var objXmlHttp=zXmlHttp.createRequest();objXmlHttp.onreadystatechange=function()
{if(objXmlHttp.readyState==4){if(objXmlHttp.status==200){try{eval(objXmlHttp.responseText);}
catch(e){if(!isProd){var stack=e.stack.split('@');alert(e.message+"\n\n"+dump(stack));}}
finally{}}
else{if(!isProd){alert("ERROR "+objXmlHttp.status+"\n\n"+callString);}}}};objXmlHttp.open("get",callString,true);objXmlHttp.send(null);}

function createCookie(name,value,days){if(days){var date=new Date();date.setTime(date.getTime()+(days*24*60*60*1000));var expires='; expires='+date.toGMTString();}else{var expires='';}
document.cookie=name+'='+value+expires+'; path=/';}
function setCookie(name,value,expires,path,domain,secure){var curCookie=name+'='+escape(value)+
((expires)?'; expires='+expires.toGMTString():'')+
((path)?'; path='+path:'')+
((domain)?'; domain='+domain:'')+
((secure)?'; secure':'');document.cookie=curCookie;}
function readCookie(name){var nameEQ=name+'=';var ca=document.cookie.split(';');for(var i=0;i<ca.length;i++){var c=ca[i];while(c.charAt(0)==' ')c=c.substring(1,c.length);if(c.indexOf(nameEQ)==0)return c.substring(nameEQ.length,c.length);}
return null;}
function eraseCookie(name){createCookie(name,'',-1);}

base64_encode=function(input)
{var keyStr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";var output="";var chr1,chr2,chr3;var enc1,enc2,enc3,enc4;var i=0;do
{chr1=input.charCodeAt(i++);chr2=input.charCodeAt(i++);chr3=input.charCodeAt(i++);enc1=chr1>>2;enc2=((chr1&3)<<4)|(chr2>>4);enc3=((chr2&15)<<2)|(chr3>>6);enc4=chr3&63;if(isNaN(chr2))
{enc3=enc4=64;}
else if(isNaN(chr3))
{enc4=64;}
output=output+keyStr.charAt(enc1)+keyStr.charAt(enc2)+keyStr.charAt(enc3)+keyStr.charAt(enc4);}while(i<input.length);return output;};base64_decode=function(input)
{var keyStr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";var output="";var chr1,chr2,chr3;var enc1,enc2,enc3,enc4;var i=0;input=input.replace(/[^A-Za-z0-9\+\/\=]/g,"");do
{enc1=keyStr.indexOf(input.charAt(i++));enc2=keyStr.indexOf(input.charAt(i++));enc3=keyStr.indexOf(input.charAt(i++));enc4=keyStr.indexOf(input.charAt(i++));chr1=(enc1<<2)|(enc2>>4);chr2=((enc2&15)<<4)|(enc3>>2);chr3=((enc3&3)<<6)|enc4;output=output+String.fromCharCode(chr1);if(enc3!=64)
{output=output+String.fromCharCode(chr2);}
if(enc4!=64)
{output=output+String.fromCharCode(chr3);}}while(i<input.length);return output;};

function serializeJsToPhp(jsArray){var arrayLength=0;for(var i=0;i<jsArray.length;i++){if(jsArray[i]!=undefined){arrayLength++;}}
var phpString="a:"+arrayLength+":{";for(var i=0;i<jsArray.length;i++){if(jsArray[i]!=undefined){phpString+="i:"+i;if(!isArray(jsArray[i])){phpString+=";s:"+jsArray[i].length+":\""+jsArray[i]+"\";";}else{phpString+=";"+serializeJsToPhp(jsArray[i]);}}}
phpString+="}";return phpString;}

document.onmousemove=innerTXTMouseMove;var innerTXTmousePos;var top=-2;var left=3;var timer=20;var speed=10;var endalpha=100;var innerTXTdivsTiming=[];var innerTXTmaxVisible=4000;function innerTXTview(element){document.onmousemove=innerTXTMouseMove;if(element!=null&&element!=undefined){var k=element.innerHTML;var id=k.replace('/\W/g','')+'_div';if(document.getElementById(id)!=undefined&&document.getElementById(id)!=null){var div=document.getElementById(id);div.style.filter='alpha(opacity= 0)';div.style.opacity=0;div.setAttribute('txtAlpha',0);innerTXTvisible(div);var pos2=innerTXTfindPos(element);pos2.push(element.offsetHeight);pos2.push(element.offsetWidth);}
else{element.id=id+"_opener";var pos2=innerTXTfindPos(element);pos2.push(element.offsetHeight);pos2.push(element.offsetWidth);var div=document.createElement('div');div.id=id;div.style.filter='alpha(opacity= 0)';div.style.opacity=0;div.setAttribute('txtAlpha',0);var img=document.createElement('img');img.src='/img/site/innerTXT-loader.gif';img.alt=_('INNERTXT_LOADING');var divLoader=document.createElement('div');divLoader.id=id+'_loader';divLoader.className='innerTXTLoader';divLoader.appendChild(img);var textNode=document.createTextNode(_('INNERTXT_LOADING'));divLoader.appendChild(textNode);document.body.appendChild(divLoader);innerTXTFloatDiv(divLoader.id,10,10).sP(pos2[0],(pos2[1]-pos2[2]-top));div.fade=function(d){var a=(this.getAttribute('txtAlpha'))?parseInt(this.getAttribute('txtAlpha')):0;if((a!=endalpha&&d==1)||(a!=0&&d==-1)){var i=speed;if(endalpha-a<speed&&d==1){i=endalpha-a;}
else if(a<speed&&d==-1){i=a;}
var b=a+(i*d);this.style.opacity=b*.01;this.style.filter='alpha(opacity= '+b+')';this.setAttribute('txtAlpha',b);}
else{if(d==-1){this.style.display='none'}}};document.body.appendChild(div);Drag.callBackStart=innerTXTStatusVisible;Drag.callBackEnd=innerTXTStatusHidden;Drag.callBackOnMouseMove=innerTXTMouseMove;Drag.init(div);var other=innerTXTgetOther(element);gjcall('innerTXTCall',{'id':id,'kwd':k,'module':siteModule,'market':globalMarket,'other':other});div.className='innerTXTContainer';div.setAttribute('txtElementPos',pos2);div.onmouseover=function(){innerTXTStatusVisible(this)};div.onmouseout=function(){innerTXTStatusHidden(this)};}}}
function innerTXTaddVisible(divId,ts){var i;for(i in innerTXTdivsTiming){if(i!=divId){innerTXThidden(i);}}
innerTXTdivsTiming=[];innerTXTdivsTiming[divId]=ts;innerTXTcurrentVisible=document.getElementById(divId);}
function innerTXTStatusVisible(obj){if(typeof obj=='string'){obj=document.getElementById(obj);}
obj.setAttribute('status','visible');}
function innerTXTStatusHidden(obj){if(typeof obj=='string'){obj=document.getElementById(obj);}
obj.setAttribute('status','hidden');}
function innerTXTisHidden(obj){if(typeof obj=='string'){obj=document.getElementById(obj);}
if(obj.getAttribute('status')){return(obj.getAttribute('status')=='hidden');}
else{return true;}}
function innerTXTDivCheck(){var ts=new Date().getTime();var i;var stillValid=[];for(i in innerTXTdivsTiming){if((ts-innerTXTdivsTiming[i])<innerTXTmaxVisible){stillValid[i]=innerTXTdivsTiming[i];}
else{if(innerTXTisHidden(i)){innerTXThidden(i);}
else{stillValid[i]=ts;}}}
innerTXTdivsTiming=stillValid;setTimeout(innerTXTDivCheck,20);}
innerTXTfindPos=function(obj){var curleft=curtop=0;if(obj.offsetParent){curleft=obj.offsetLeft
curtop=obj.offsetTop
while(obj=obj.offsetParent){curleft+=obj.offsetLeft
curtop+=obj.offsetTop}}
return[curleft,curtop];};function innerTXTvisible(obj){if(typeof obj=='string'){obj=document.getElementById(obj+'_div');}
if(obj.innerHTML!=''){var pos2=obj.getAttribute('txtElementPos');if(typeOf(pos2)=='String'){var pos2=pos2.split(',');pos2[0]=parseInt(pos2[0]);pos2[1]=parseInt(pos2[1]);pos2[2]=parseInt(pos2[2]);}
obj.style.top=(pos2[1]-pos2[2]-obj.getAttribute('internalHeight')-top)+'px';obj.style.left=(pos2[0]+left)+'px';obj.style.display='block';clearInterval(obj.timer);obj.timer=setInterval(function(){obj.fade(1)},timer);innerTXTaddVisible(obj.id,new Date().getTime());innerTXTDivCheck();}}
function innerTXThidden(obj){if(typeof obj=='string'){obj=document.getElementById(obj);}
innerTXTStatusHidden(obj.id);delete innerTXTdivsTiming[obj.id];innerTXTcurrentVisible=null;clearInterval(obj.timer);obj.timer=setInterval(function(){obj.fade(-1)},timer);}
function innerTXTwrite(id,content,contentMeta){var divLoader=document.getElementById(id+'_loader');divLoader.style.display='none';var el=document.getElementById(id);if(el!=null&&el!=undefined){el.innerHTML=content;var internalHeight=innerTXTDivHeight(id);el.setAttribute('internalHeight',internalHeight);innerTXTvisible(el);if(document.getElementById(id+'_opener'))document.getElementById(id+'_opener').href=contentMeta.urltracking;}}
function innerTXTbuild(){var elements=innerTXTgetElementsByName('goadv_innertxt');for(i in elements){if(elements[i].innerHTML!=undefined&&elements[i].innerHTML!=''){elements[i].onmouseover=function(){innerTXTview(this);};elements[i].className+=' innerTXThighlight';elements[i].target='_blank';}}}
function innerTXTgetOther(element){var other=[];other.type=(element.getAttribute('txttype'))?element.getAttribute('txttype'):'textlink';other.catId=(element.getAttribute('txtcatId'))?element.getAttribute('txtcatId'):'';return other;}
function innerTXTgetElementsByName(name)
{if(isIE){var results=[];var elements=document.getElementsByTagName('*');for(var i=0;i<elements.length;i++){if(elements[i].getAttribute('name')==name){results.push(elements[i]);}}
return results;}
else{return document.getElementsByName(name);}}
function innerTXTMouseMove(ev){ev=ev||window.event;if(ev.pageX||ev.pageY){innerTXTmousePos={x:ev.pageX,y:ev.pageY};}
else{innerTXTmousePos={x:ev.clientX+document.body.scrollLeft-document.body.clientLeft,y:ev.clientY+document.body.scrollTop-document.body.clientTop};}}
function innerTXTFloatDiv(id,sx,sy)
{var el=document.getElementById(id);var px=document.layers?"":"px";window[el.id+"_obj"]=el;el.cx=el.sx=sx;el.cy=el.sy=sy;el.sP=function(x,y){this.style.left=x+px;this.style.top=y+px;};el.floatIt=function()
{var ns=(navigator.appName.indexOf("Netscape")!=-1);var pX,pY;pX=(this.sx>=0)?0:ns?innerWidth:document.documentElement&&document.documentElement.clientWidth?document.documentElement.clientWidth:document.body.clientWidth;pY=ns?pageYOffset:document.documentElement&&document.documentElement.scrollTop?document.documentElement.scrollTop:document.body.scrollTop;if(this.sy<0)
pY+=ns?innerHeight:document.documentElement&&document.documentElement.clientHeight?document.documentElement.clientHeight:document.body.clientHeight;this.cx+=(pX+this.sx-this.cx)/8;this.cy+=(pY+this.sy-this.cy)/8;this.sP(this.cx,this.cy);if(this.style.display!='hidden'){setTimeout(this.id+"_obj.floatIt()",20);}}
return el;}
function innerTXTDivHeight(id){var div=document.getElementById(id);var divPos=innerTXTfindPos(div);var internalDiv=document.getElementById(id+'_internal');var internalDivPos=innerTXTfindPos(internalDiv);return(internalDivPos[1]-divPos[1]);}

var Drag={obj:null,callBackStart:null,callBackEnd:null,callBackOnMouseMove:null,init:function(o,oRoot,minX,maxX,minY,maxY,bSwapHorzRef,bSwapVertRef,fXMapper,fYMapper)
{o.onmousedown=Drag.start;o.hmode=bSwapHorzRef?false:true;o.vmode=bSwapVertRef?false:true;o.root=oRoot&&oRoot!=null?oRoot:o;if(o.hmode&&isNaN(parseInt(o.root.style.left)))o.root.style.left="0px";if(o.vmode&&isNaN(parseInt(o.root.style.top)))o.root.style.top="0px";if(!o.hmode&&isNaN(parseInt(o.root.style.right)))o.root.style.right="0px";if(!o.vmode&&isNaN(parseInt(o.root.style.bottom)))o.root.style.bottom="0px";o.minX=typeof minX!='undefined'?minX:null;o.minY=typeof minY!='undefined'?minY:null;o.maxX=typeof maxX!='undefined'?maxX:null;o.maxY=typeof maxY!='undefined'?maxY:null;o.xMapper=fXMapper?fXMapper:null;o.yMapper=fYMapper?fYMapper:null;o.root.onDragStart=new Function();o.root.onDragEnd=new Function();o.root.onDrag=new Function();},start:function(e)
{var o=Drag.obj=this;e=Drag.fixE(e);var y=parseInt(o.vmode?o.root.style.top:o.root.style.bottom);var x=parseInt(o.hmode?o.root.style.left:o.root.style.right);o.root.onDragStart(x,y);o.lastMouseX=e.clientX;o.lastMouseY=e.clientY;if(o.hmode){if(o.minX!=null)o.minMouseX=e.clientX-x+o.minX;if(o.maxX!=null)o.maxMouseX=o.minMouseX+o.maxX-o.minX;}else{if(o.minX!=null)o.maxMouseX=-o.minX+e.clientX+x;if(o.maxX!=null)o.minMouseX=-o.maxX+e.clientX+x;}
if(o.vmode){if(o.minY!=null)o.minMouseY=e.clientY-y+o.minY;if(o.maxY!=null)o.maxMouseY=o.minMouseY+o.maxY-o.minY;}else{if(o.minY!=null)o.maxMouseY=-o.minY+e.clientY+y;if(o.maxY!=null)o.minMouseY=-o.maxY+e.clientY+y;}
document.onmousemove=Drag.drag;document.onmouseup=Drag.end;Drag.callBackStart(Drag.obj);return false;},drag:function(e)
{e=Drag.fixE(e);var o=Drag.obj;var ey=e.clientY;var ex=e.clientX;var y=parseInt(o.vmode?o.root.style.top:o.root.style.bottom);var x=parseInt(o.hmode?o.root.style.left:o.root.style.right);var nx,ny;if(o.minX!=null)ex=o.hmode?Math.max(ex,o.minMouseX):Math.min(ex,o.maxMouseX);if(o.maxX!=null)ex=o.hmode?Math.min(ex,o.maxMouseX):Math.max(ex,o.minMouseX);if(o.minY!=null)ey=o.vmode?Math.max(ey,o.minMouseY):Math.min(ey,o.maxMouseY);if(o.maxY!=null)ey=o.vmode?Math.min(ey,o.maxMouseY):Math.max(ey,o.minMouseY);nx=x+((ex-o.lastMouseX)*(o.hmode?1:-1));ny=y+((ey-o.lastMouseY)*(o.vmode?1:-1));if(o.xMapper)nx=o.xMapper(y)
else if(o.yMapper)ny=o.yMapper(x)
Drag.obj.root.style[o.hmode?"left":"right"]=nx+"px";Drag.obj.root.style[o.vmode?"top":"bottom"]=ny+"px";Drag.obj.lastMouseX=ex;Drag.obj.lastMouseY=ey;Drag.obj.root.onDrag(nx,ny);return false;},end:function()
{document.onmousemove=null;document.onmouseup=null;Drag.obj.root.onDragEnd(parseInt(Drag.obj.root.style[Drag.obj.hmode?"left":"right"]),parseInt(Drag.obj.root.style[Drag.obj.vmode?"top":"bottom"]));Drag.callBackEnd(Drag.obj);Drag.obj=null;document.onmousemove=Drag.callBackOnMouseMove;},fixE:function(e)
{if(typeof e=='undefined')e=window.event;if(typeof e.layerX=='undefined')e.layerX=e.offsetX;if(typeof e.layerY=='undefined')e.layerY=e.offsetY;return e;}};