jQuery.noConflict(); var width_window = jQuery(window).width(); var test_width = screen.width; if(test_width < width_window){ width_window=test_width; } function before_txt_ads(){ if(width_window>=1024){ before_txt_ads1(); before_txt_ads2(); } else if(width_window>=768){ before_txt_ads1_768(); before_txt_ads2_768(); } else if(width_window>=480){ before_txt_ads1_480(); before_txt_ads2_480(); } else if(width_window>=360){ before_txt_ads1_360(); before_txt_ads2_360(); } else if(width_window>=320){ before_txt_ads1_320(); before_txt_ads2_320(); } } function txt1_ads(){ if(width_window>=1024){ txt1(); } else if(width_window>=768){ txt1_768(); } else if(width_window>=480){ txt1_480(); } else if(width_window>=360){ txt1_360(); } else if(width_window>=320){ txt1_320(); } } function txt2_ads(){ if(width_window>=1024){ txt2(); } else if(width_window>=768){ txt2_768(); } else if(width_window>=480){ txt2_480(); } else if(width_window>=360){ txt2_360(); } else if(width_window>=320){ txt2_320(); } } function txt3_ads(){ if(width_window>=1024){ txt3(); } else if(width_window>=768){ txt3_768(); } else if(width_window>=480){ txt3_480(); } else if(width_window>=360){ txt3_360(); } else if(width_window>=320){ txt3_320(); } } function after_txt_ads(){ if(width_window>=1024){ after_txt(); } else if(width_window>=768){ after_txt_768(); } else if(width_window>=480){ after_txt_480(); } else if(width_window>=360){ after_txt_360(); } else if(width_window>=320){ after_txt_320(); } } function after_perelink_ads(){ if(width_window>=1024){ after_perelink(); } else if(width_window>=768){ after_perelink_768(); } else if(width_window>=480){ after_perelink_480(); } else if(width_window>=360){ after_perelink_360(); } else if(width_window>=320){ after_perelink_320(); } } function reklama_popup_ads(){ if(width_window>=1024){ reklama_popup(); } else if(width_window>=768){ reklama_popup_768(); } else if(width_window>=480){ reklama_popup_480(); } else if(width_window>=360){ reklama_popup_360(); } else if(width_window>=320){ reklama_popup_320(); } } function reklama_sidebar_ads(){ if(width_window>=1024){ reklama_sidebar(); } else if(width_window>=768){ reklama_sidebar_768(); } else if(width_window>=480){ reklama_sidebar_480(); } else if(width_window>=360){ reklama_sidebar_360(); } else if(width_window>=320){ reklama_sidebar_320(); } } function cat0_ads(){ console.log('');document.write('
'); google_ad_client = "ca-pub-5856650755505175"; google_ad_slot = "6097148198"; google_ad_width = 680; google_ad_height = 300; document.write(' '); document.write('
'); } function cat1_ads(){ console.log(''); } function cat2_ads(){ console.log(''); } function cat3_ads(){ console.log(''); } function after_cat(){ google_ad_client = "ca-pub-5856650755505175"; google_ad_slot = "9050614595"; google_ad_width = 580; google_ad_height = 400; document.write(' '); } function cat0_ads_768(){ console.log('_768'); } function cat1_ads_768(){ console.log('_768'); } function cat2_ads_768(){ console.log('_768'); } function cat3_ads_768(){ console.log('_768'); } function after_cat_768(){ } function cat0_ads_480(){ console.log('_480'); } function cat1_ads_480(){ console.log('_480'); } function cat2_ads_480(){ console.log('_480'); } function cat3_ads_480(){ console.log('_480'); } function after_cat_480(){ } function cat0_ads_360(){ console.log('_360'); } function cat1_ads_360(){ console.log('_360'); } function cat2_ads_360(){ console.log('_360'); } function cat3_ads_360(){ console.log('_360'); } function after_cat_360(){ } function cat0_ads_320(){ console.log('_320'); } function cat1_ads_320(){ console.log('_320'); } function cat2_ads_320(){ console.log('_320'); } function cat3_ads_320(){ console.log('_320'); } function after_cat_320(){ } function show_cat0_ads(){ if(width_window>=1024){ cat0_ads(); } else if(width_window>=768){ cat0_ads_768(); } else if(width_window>=480){ cat0_ads_480(); } else if(width_window>=360){ cat0_ads_360(); } else if(width_window>=320){ cat0_ads_320(); } } function show_cat1_ads(){ if(width_window>=1024){ cat1_ads(); } else if(width_window>=768){ cat1_ads_768(); } else if(width_window>=480){ cat1_ads_480(); } else if(width_window>=360){ cat1_ads_360(); } else if(width_window>=320){ cat1_ads_320(); } } function show_cat2_ads(){ if(width_window>=1024){ cat2_ads(); } else if(width_window>=768){ cat2_ads_768(); } else if(width_window>=480){ cat2_ads_480(); } else if(width_window>=360){ cat2_ads_360(); } else if(width_window>=320){ cat2_ads_320(); } } function show_cat3_ads(){ if(width_window>=1024){ cat3_ads(); } else if(width_window>=768){ cat3_ads_768(); } else if(width_window>=480){ cat3_ads_480(); } else if(width_window>=360){ cat3_ads_360(); } else if(width_window>=320){ cat3_ads_320(); } } function show_after_cat(){ if(width_window>=1024){ after_cat(); } else if(width_window>=768){ after_cat_768(); } else if(width_window>=480){ after_cat_480(); } else if(width_window>=360){ after_cat_360(); } else if(width_window>=320){ after_cat_320(); }} jQuery(document).ready(function() { var offsetT = jQuery('.reklama_sidebar_ads').offset(); function tizer_scroll() { if(offsetT){ var offsetR = jQuery('.show_after_txt_ads').offset(); var bottomY = jQuery(window).scrollTop() + jQuery(window).height() + 200; if (offsetT.top < (jQuery(window).scrollTop() + 10) && bottomY < offsetR.top) { jQuery('.reklama_sidebar_ads').css('position', 'fixed'); } else jQuery('.reklama_sidebar_ads').css('position', 'inherit'); } } jQuery(window).scroll(function () { tizer_scroll() }); tizer_scroll(); });