Popis interpreta Lars Frederiksen And The Bastards Upravit životopis
Členové skupiny Lars Frederiksen And The Bastards
Fotky Lars Frederiksen And The Bastards (14)
Videoklipy Lars Frederiksen And The Bastards (29)
Písně Lars Frederiksen And The Bastards (123)
Všechny písně Lars Frederiksen And The Bastards (123) »
Diskografie Lars Frederiksen And The Bastards (3)
");
$('.bannerSky').writeCapture().html("");
$('.banner2').writeCapture().html("");
$('.banner3').writeCapture().html("");
$('.toplist').writeCapture().html('
');
$('.score').html('
');
pp_gemius_hit('B7abi6bjiFkuqE6S03k.MsTWzXABO88AqTCL6i26TNj..7');
}
function changepic(file, desc, order ,id){
$('#imagex').hide();
$('#imagex').html('
');
$('#imagex').fadeIn(400);
$('#imagex_order').val(order);
$('#imagex_id').val(id);
$('#imagex_desc').html(desc);
$('#galery_link').text($('#imagex_order').val()+' z '+$('#gcount').val());
border(id);
refBanner();
loadRating();
relColorbox();
}
function next(){
var id = $('#imagex_order').val();
var gid = $('#gid').val();
var osid = $('#osid').val();
var payload = '/system/fotka-next/?id='+id+'&gid='+gid+'&osid='+osid;
$.get(payload, function(data){
var helper = data.split('$');
var desc = helper[1];
var file = helper[0];
var nove_order = helper[2];
var nove_id = helper[3];
changepic(file, desc, nove_order, nove_id);
if(nove_order > parseInt($('#image_right').val()) || nove_order < parseInt($('#image_left').val())){
list_next();
}
});
}
function prev(){
var id = $('#imagex_order').val();
var gid = $('#gid').val();
var osid = $('#osid').val();
var payload = '/system/fotka-prev/?id='+id+'&gid='+gid+'&osid='+osid;
$.get(payload, function(data){
var helper = data.split('$');
var desc = helper[1];
var file = helper[0];
var nove_order = helper[2];
var nove_id = helper[3];
changepic(file, desc, nove_order, nove_id);
if(nove_order < parseInt($('#image_left').val()) || nove_order > parseInt($('#image_right').val())){
list_prev();
}
});
}
function list_next(hum){
if(hum != 1){ hum = ''; }
var id = $('#image_right').val();
var gid = $('#gid').val();
var osid = $('#osid').val();
var seo = $('#seo').val();
var payload = '/system/fotka-list-next-skupina/?id='+id+'&gid='+gid+'&osid='+osid+'&hum='+hum+'&seo='+seo;
$.get(payload, function(data){
if(data){
var pomoc = data.split('$');
$('#list_body').hide();
$('#list_body').html(pomoc[0]);
$('#list_body').fadeIn(400);
$('#image_right').val(pomoc[1]);
$('#image_left').val(pomoc[2]);
}
});
}
function list_prev(hum){
if(hum != 1){ hum = ''; }
var id = $('#image_left').val();
var gid = $('#gid').val();
var osid = $('#osid').val();
var seo = $('#seo').val();
var payload = '/system/fotka-list-prev-skupina/?id='+id+'&gid='+gid+'&osid='+osid+'&hum='+hum+'&seo='+seo;
$.get(payload, function(data){
if(data){
var pomoc = data.split('$');
$('#list_body').hide();
$('#list_body').html(pomoc[0]);
$('#list_body').fadeIn(400);
$('#image_left').val(pomoc[1]);
$('#image_right').val(pomoc[2]);
}
});
}
function border(id){
$('#list_body img').removeClass('active');
$('#list_body #img'+id).addClass('active');
}
function loadRating(){
var id = $('#imagex_id').val();
var payload = '/system/fotka-ajax-rating/?id='+id;
$.get(payload, function(data){
$('#rating-add-wrapperx').hide();
$('#rating-add-wrapperx').html(data);
$('#rating-add-wrapperx').fadeIn(300);
$(".ratingy").rating({showCancel: false, cancelValue: null});
$("#rating-rate").bind("change", function(){
var objekt = $('#rating-rate').val().split('-');
var payload = '/system/rate-fotky/?name='+objekt[0]+'&value='+objekt[1];
if(this.value != ''){
$.get(payload, function(data) {
if(data == "x"){
alert("Hlasovat můžete jenom jednou.");
}else{
var veci = data.split('-');
$('#avg').text(veci[0]);
$('#count').text(veci[1]+' hlasů');
}
});
}
});
});
}
function relColorbox(){
$("a[rel^='colorbox']").colorbox({
maxWidth:1066,
maxHeight:800,
previous: "Předchozí",
next: "Další",
close: "Zavřít",
current: "Obrázek {current} / {total}"
});
}
//-->