//
//
var DYNLINK;
/////////////////////// ПАРСЕР
function DYNLINK( container )
{
this.container = container;
this.fragments = new Array();
this.banners = new Array();
this.phrases = new Array();
this.foundWords = new Array();
this.viewType = 1;
this.words = new Array();
this.VerseDivider = ":";
this.parameters = {
'phraseLimit' : 3,
'showTimeout' : 100,
'hideTimeout' : 500,
'openNewWin' : false,
'bannersURL' : 'http://www.bible.com.ua/exp/result.js'
}
//стили баннеров и ссылок
this.design = {
'banner' : {
'width' : 350,
'bgColor' : '#D5ECFC',
'headColor' : '#7698AF',
'linkColor' : '#016AB4',
'textColor' : '#000000',
'domainColor' : '#7698AF'
},
'phrase' : {
'style' : {
'fontWeight' : 'normal',
'color' : '#0000FF',
'textDecoration' : 'none',
'borderBottomWidth' : '1px',
'borderBottomStyle' : 'solid',
'borderBottomColor' : '#0000FF',
'cursor' : 'pointer'
}
}
}
//добавление баннера
this.addBanner = function(title, text, url, domain, word)
{
var banner = new DYNLINK_Banner(title, text, url, domain, word);
banner.id = this.banners.length;
this.banners[banner.id] = banner;
}
//добавление баннера
this.addWords = function(words)
{
for(var i=0;i| '; DYNLINK_header += ' | bible.com.ua | '; DYNLINK_header += 'Твоя Библия | '; DYNLINK_header += '
| ';
DYNLINK_content += ' ';
DYNLINK_content += ' ' + banner.text + ' ';
DYNLINK_content += ' ' + banner.domain + ' ';
DYNLINK_content += ' | ';
DYNLINK_content += '