';
advideo_iframe.onload = function(){
advideo_iframe.contentWindow.document.open('text/htmlreplace');
advideo_iframe.contentWindow.document.write(myContent);
uPreroll.add_close_events(30);
uPreroll.setCounter('preroll_advmaker' , true);
}
}
} ,
banner : {
rate: 0 ,
show : function(containerid) {
$('.close_popup , #preroll_close_btn').click() ;
document.getElementById('bannerY'+ucoz_rndid).value=400;
document.getElementById('bannerX'+ucoz_rndid).value=240;
$('#hideAdBlock240x400').detach();
resizeDiv();
uShowRuAdBanner() ;
}
}
},
dummy_video : function(containerid){
var rnd = Math.random() ;
for(key in uPreroll.dummy) {
if(rnd < uPreroll.dummy[key].rate) {
uPreroll.dummy[key].show(containerid);
break ;
} else {
rnd -= uPreroll.dummy[key].rate ;
}
}
} ,
closeTimerExpired : false ,
setCloseCounter: function(){
var cid = '.counter';
var wid = '#uPreroll-wrapper';
var tmr = uPreroll.ad_duration;
$(cid).html(tmr);
var uPreroll_count = setInterval(function () {
$(cid).html(tmr--);
if (tmr==-1){
$(wid + ' .close_popup').addClass('appeared');
$(cid).css('display','none');
clearInterval(uPreroll_count);
uPreroll.closeTimerExpired = true ;
}
}, 1000);
$(wid + ' .close_popup').click(function(){
uPreroll.close_preroll_banners();
});
},
add_close_events: function(tmr){
var uPreroll_count = setInterval(function () {
$("#preroll_counter").html(tmr--);
if (tmr==-1){
$("#preroll_close_btn").show();
$("#preroll_counter").hide();
clearInterval(uPreroll_count);
}
}, 1000);
$("#preroll_close_btn").click(function(){
uPreroll.close_preroll_banners();
});
},
init_gae: function(){
if(uPreroll.random_num < uPreroll.uran_wrap_rate){
function gaeuranwraponload(event) {
http://var/ experimentid = "HFjPvEF9QYyr6nZ-lFqjMA"; all
http://var/ experimentid = "2rq77eKqQLWF6aidxQW50w"; design
var experimentid = "o4sJN8YWTbaosZzwch_3mQ"; http://landing/
$.getScript("http://www.google-analytics.com/cx/api.js?experiment="+experimentid, function(){
var gavariation = cxApi.chooseVariation();
var ga_idx = uPreroll.ga_var_landing[gavariation];
$("#uPreroll-wrapper").html(uPreroll.themes[ga_idx.theme].header.replace("%s", uPreroll.top_label) + '
'+ uPreroll.themes[ga_idx.theme].footer);
$("#uPreroll-holder").show();
uPreroll.setCloseCounter();
$('.close_popup').click(function(){
uPreroll.close_preroll_banners();
});
if(ga_idx.url){
$('#uPreroll-wrapper .modal_button, #uPreroll-wrapper .modal_icon, #uPreroll-wrapper .download_link, #uPreroll-wrapper .download_img').attr('href', ga_idx.url);
} else {
$('#uPreroll-wrapper .modal_button, #uPreroll-wrapper .modal_icon').removeAttr('target').removeAttr('href');
}
console.log(gavariation);
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','http://www.google-analytics.com/analytics.js','uranga');
uranga('create', 'UA-45896238-1', 'auto', {'name': 'uranTracker','cookieName': '_uranga'});
uranga('uranTracker.set', 'referrer', 'http://'+document.location.hostname);
uranga('uranTracker.send', 'pageview', '/uran_show_wrap_' + ga_idx.track);
$('#wrapper_uran_footer a').click(function(e){
e.stopPropagation();
})
/*$('#wrapper_uran_footer:not(a), .modal_button:not(a)').on('click', function(e) {
uranga('uranTracker.send', 'pageview', '/uran_click_wrap_' + ga_idx.track);
});*/
var clickfunction = function(e) {
var clientId;
if(ga_idx.url && this.id == 'wrapper_uran_footer'){
window.open(ga_idx.url,'_blank');
}
uranga('uranTracker.send', 'pageview', {'page':'/uran_click_wrap_' + ga_idx.track, 'hitCallback': function() {
if(!ga_idx.url){
uranga(function() {
clientId = uranga.getByName('uranTracker').get('clientId');
});
$('#urangacid').attr('value', clientId);
$("#geturaninstaller").submit();
}
}
});
http://return/ false;
} ;
$('#wrapper_uran_footer:not(a), .modal_button, .modal_icon, .download_link, .download_img').each(function(index , elem){
elem.addEventListener('click' , clickfunction);
})
http://experiment/ end
});
}
if(document.readyState == 'loading')
document.addEventListener("DOMContentLoaded", function (event) {
gaeuranwraponload();
});
else gaeuranwraponload();
} else { http://ukit/ theme
$("#uPreroll-wrapper").html(uPreroll.themes[3].header.replace("%s", uPreroll.top_label) + ''+ uPreroll.themes[3].footer);
$("#uPreroll-holder").show();
var lndg_link = uPreroll.ukit_data.getUkitWrapperLink();
uPreroll.setCounter('ukit_video_wrap',true);
uPreroll.setCloseCounter();
$('.close_popup').click(function(){
uPreroll.close_preroll_banners();
});
$('.modal_text a').click(function(e){
e.stopPropagation();
});
$('.modal_text').click(function(e) {
console.log(e.currentTarget);
if($(this).hasClass('modal_text')){
window.open(lndg_link,'_blank');
}
});
$('#uPreroll-wrapper .modal_button, #uPreroll-wrapper .modal_logo, #uPreroll-wrapper .download_link, #uPreroll-wrapper .download_img').attr('href', lndg_link);
}
},
gads: {
advmaker: function(){
uPreroll.top_label = uPreroll.custom_top_label||uPreroll.top_label;
document.write('');
document.write("");
var adm_scr = document.createElement('script');
if(uPreroll.country == 'ru'){
document.write("");
adm_scr.src = "http://am15.net/bn.php?s=67384&f=4&d=54838";
document.getElementsByTagName('head')[0].appendChild(adm_scr);
} else{
if(uPreroll.isUcoz()){
document.write("");
adm_scr.src = "http://am15.net/bn.php?s=67881&f=4&d=9354";
document.getElementsByTagName('head')[0].appendChild(adm_scr);
}else{
document.write("");
adm_scr.src = "http://am15.net/bn.php?s=67882&f=4&d=34122";
document.getElementsByTagName('head')[0].appendChild(adm_scr);
}
}
uPreroll.ad_duration = 15;
document.addEventListener("DOMContentLoaded", function (event) {
$('.bottom_popup').attr('id', 'bottom_border');
$('.title_popup').attr('id', 'top_border');
uPreroll.setCloseCounter();
});
uPreroll.setCounter('advmaker');
uPreroll.init_gae();
},
ivi: function(){
uPreroll.top_label = uPreroll.custom_top_label||uPreroll.top_label;
document.write('');
document.write("");
document.write('');
uPreroll.ad_duration = 20;
uPreroll.setCounter('preroll_ivi_ru' , true);
uPreroll.init_gae();
},
pladform: function(){
uPreroll.top_label = uPreroll.custom_top_label||uPreroll.top_label;
document.write('');
document.write("");
var pladform_id = {
ru : {
'ucoz' : '42964' ,
'narod' : '43203'
} ,
sng : {
'ucoz' : '45469' ,
'narod' : '45470'
}
} ;
var pladform_country = ['ua','by','kz'].indexOf(uPreroll.country)>=0 ? 'sng' : 'ru' ;
document.write('');
window.addEventListener("message", function(event){
if (event.data.event == "AD_EMPTY" && !uPreroll.closeTimerExpired){
uPreroll.dummy_video('pladform');
}
});
uPreroll.ad_duration = 20;
uPreroll.setCounter('pladform');
uPreroll.init_gae();
},
bannerator_ua: function(){
uPreroll.top_label = uPreroll.custom_top_label||uPreroll.top_label;
document.write("");
banerator_key = "d7f80004920c0c0cb6574083c89c62c5";
banerator_channel = "";
banerator_code_format = "ads";
banerator_ads_host = "http://banerator.net/";
banerator_click = "";
banerator_custom_params = {};
banerator_width = "600";
banerator_height = "300";
document.write("
Фотоотчет с Московского Тюнинг Шоу 2012 - 10 Мая 2012 - Студия автовинила Auto-nomia