$('document').ready(function(){
$('ul.tabs li a').mousedown(function(){
if($('div #tabCharter' + parseInt($(this).attr('href').replace('#tabContent', ''))).html().trim().length < 10){
var htmlContents = [
' ',
'
',
'
',
'
',
'
',
'
',
'
',
'
',
'
',
'
https://www.youtube.com/embed/BNZRyOjLxI0" frameborder="0" allowfullscreen="">'
];
$('div #tabCharter' + parseInt($(this).attr('href').replace('#tabContent', ''))).html(htmlContents[parseInt($(this).attr('href').replace('#tabContent', ''))]);
}
});
$('li.lazy_step_li a').mousedown(function(){
if($('div ' + $(this).attr('href')).html().trim().length < 10){
var htmlContents = [
' ',
'
',
'
',
'
',
'
',
'
',
'
',
'
',
'
',
'
',
'
',
'
',
'
',
'
',
'
',
'
',
'
',
'
',
'
',
'
',
'
',
'
',
'
',
'
',
'
',
'
',
'
',
'
',
'
',
'
',
'
',
'
',
'
',
'
',
'
',
'
',
'
',
'
',
'
',
'
',
'
',
'
',
'
',
'
',
'
',
'
',
'
'
];
$('div ' + $(this).attr('href')).html(htmlContents[parseInt($(this).attr('href').replace('#charterContent', ''))]);
$('.lazy_img').lazy();
}
});
});