function cat0_ads(){ } function cat1_ads(){ } function cat2_ads(){ } function cat3_ads(){ } function after_cat(){ } function cat0_ads_768(){ } function cat1_ads_768(){ } function cat2_ads_768(){ } function cat3_ads_768(){ } function after_cat_768(){ } function cat0_ads_480(){ } function cat1_ads_480(){ } function cat2_ads_480(){ } function cat3_ads_480(){ } function after_cat_480(){ } function cat0_ads_360(){ } function cat1_ads_360(){ } function cat2_ads_360(){ } function cat3_ads_360(){ } function after_cat_360(){ } function cat0_ads_320(){ } function cat1_ads_320(){ } function cat2_ads_320(){ } function cat3_ads_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(); }} function reklama_sidebar_ads(){ document.write(""+"scr"+"ipt"+">");} 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(); });