var TheCookie = document.cookie; google_ad_client = "pub-7153378993342722"; google_ad_width = 468; google_ad_height = 60; google_ad_format = "468x60_as"; function getCookie(name) { // use: getCookie("name"); var index = TheCookie.indexOf(name + "="); if (index == -1) return null; index = TheCookie.indexOf("=", index) + 1; var endstr = TheCookie.indexOf(";", index); if (endstr == -1) endstr = TheCookie.length; return unescape(TheCookie.substring(index, endstr)); } var today = new Date(); var expiry = new Date(today.getTime() + 1 * 12 * 60 * 60 * 1000); // plus 12 Hours function setCookie(name, value) { // use: setCookie("name", value); if (value != null && value != "") document.cookie=name + "=" + escape(value) + "; expires=" + expiry.toGMTString(); TheCookie = document.cookie; // update TheCookie } var client_ads_view_Foot = parseInt(getCookie("client_ads_view_Foot")) || 1; var reset = 0; p = new Array(6); p[0] = '\"Download'; p[1] = 'Incredible-Adventures' p[2] = '\"flightsim468-2\"' p[3] = '\"Flightsim468\"' p[4] = '' p[5] = ''; p[6] = '' p[8] = '' p[10] = '' p[20] = '\"Perfect' p[21] = '3DGlasses' p[23] = '' p[24] = '' if ( client_ads_view_Foot == 0 ) { setCookie("client_ads_view_Foot", client_ads_view_Foot+1); document.write(p[0]); } if ( client_ads_view_Foot == 1 ) { setCookie("client_ads_view_Foot", client_ads_view_Foot+1); document.write(p[1]); } if ( client_ads_view_Foot == 2 ) { setCookie("client_ads_view_Foot", client_ads_view_Foot+1); document.write(p[2]); } if ( client_ads_view_Foot == 3 ) { setCookie("client_ads_view_Foot", client_ads_view_Foot+1); document.write(p[3]); } else if ( client_ads_view_Foot == 4 ) { setCookie("client_ads_view_Foot", client_ads_view_Foot+1); document.write(p[0]); } else if ( client_ads_view_Foot == 5 ) { setCookie("client_ads_view_Foot", client_ads_view_Foot+1); document.write(p[3]); } else if ( client_ads_view_Foot == 6 ) { setCookie("client_ads_view_Foot", client_ads_view_Foot+1); document.write(p[1]); } if ( client_ads_view_Foot == 7 ) { setCookie("client_ads_view_Foot", client_ads_view_Foot+1); document.write(p[3]); } if ( client_ads_view_Foot == 8 ) { setCookie("client_ads_view_Foot", client_ads_view_Foot+1); document.write(p[1]); } if ( client_ads_view_Foot == 9 ) { setCookie("client_ads_view_Foot", client_ads_view_Foot+1); document.write(p[4]); } if ( client_ads_view_Foot == 10 ) { setCookie("client_ads_view_Foot", client_ads_view_Foot+1); document.write(p[1]); } if ( client_ads_view_Foot == 11 ) { setCookie("client_ads_view_Foot", client_ads_view_Foot+1); document.write(p[3]); } if ( client_ads_view_Foot == 12 ) { setCookie("client_ads_view_Foot", "0"); document.write(p[2]); } if ( client_ads_view_Foot > 12 ) { setCookie("client_ads_view_Foot", "0"); document.write(p[3]); }