-1) {
var s = source.indexOf("", e);
scripts.push(source.substring(s_e+1, e));
source = source.substring(0, s) + source.substring(e_e+1);
}
return [source, scripts]
/*
for(var i=0; i= (len-1))
$('#fotoright').css('display', 'none');
else
$('#fotoright').css('display', '');
$('#fotofooter').html(''+(currentPhoto+1)+'/'+len);
}
function LoadOtherPhotos(model, id)
{
feedPhotos = [];
var params = 'model='+model+'&id=' + id;
HttpGET('/dourointour/public/feed/photos/?'+ params, 2, PhotosLoaded);
}
function PhotosLoaded(data)
{
eval(data);
ActualizePhotoNavigation();
}
function ShowPhotos(photo, name)
{
feedPhotos = [];
currentPhoto = 0;
$('#fototitle').html(name);
ActualizePhotoNavigation();
ShowImageInDisplayBox(photo);
}
function ShowImageInDisplayBox (photo)
{
var newSize = scaleSize($('#displaybox').width(), $('#displaybox').height(), 800, 600);
html = "
";
var img = new Image();
$(img)
.load(function () {
$('#displayboximg').empty().append(this);
if (this.width >= this.height) {
$('#displayboximg').width(600);
$('#displayboximg').height(450);
$('#displaybox2').css('margin', '-225px 0 0 -350px');
} else {
$('#displayboximg').width(450);
$('#displayboximg').height(600);
$('#displaybox2').css('margin', '-300px 0 0 -275px');
}
$('#displaybox2').width($('#displayboximg').width()+100);
$('#displaybox2').height($('#displayboximg').height()+40);
var newSize = scaleSize($('#displayboximg').width(), $('#displayboximg').height(), this.width, this.height);
$(this).css('position', 'absolute');
$(this).css('width', ''+newSize[0]+'px');
$(this).css('height', ''+newSize[1]+'px');
$(this).css('left', ''+newSize[2]+'px');
$(this).css('top', ''+newSize[3]+'px');
})
.error(function () {
return;
})
.attr('src', photo);
$('#displayboximg').empty();
$('#displaybox').css('display', '');
}
function ShowHtmlInDisplayBox (objid)
{
var html = $('#'+objid).html();
html = html.replace('#'+objid, '#'+objid+'_new');
var width = $('#'+objid).width();
var height = $('#'+objid).height();
var W = $('div#main').width();
var H = $('div#main').height();
if (width < 300)
width = 300;
do {
$('#displaybox_div_info').width(width);
$('#displaybox2_info').width(width+40);
$('#displaybox2_info').css('margin-left', '-'+Math.floor(width/2+20)+'px');
width += 100;
var name = $('#'+objid+'_name').html();
if (name)
$('#displaybox_div_info').html(name+html);
else
$('#displaybox_div_info').html(html);
height = $('#displaybox2_info').height();
} while ((height > (H-100)) && (width < (W-160)));
var offy = window.pageYOffset ? window.pageYOffset : (document.documentElement ? document.documentElement.scrollTop : (document.body ? document.body.scrollTop : 0));
$('#displaybox2_info').css('top', ''+offy+'px');
$('#displaybox_info').css('display', '');
$('#displaybox2_info').css('display', '');
//window.scrollTo(0, 0);
}
function AddFavorite (model, id)
{
alert("You are not logged in");
}
function AddFavoriteCallback (response)
{
alert(response);
}