var how_many_adsc_17 = 2; var now = new Date() var sec = now.getSeconds() var adc17 = sec % how_many_adsc_17; adc17 +=1; adc17 = allAboutCookie("6rbBannerc17", how_many_adsc_17 ); widthc17='300'; heightc17='250'; if (adc17 ==1) { var how_many_ad1_17 = 1; var ad1_17 = sec % how_many_ad1_17; ad1_17 +=1; ad1_17 = allAboutCookie ("6rbBanner_17_1", how_many_ad1_17) if (ad1_17 == 1){ txt_17= ''; url_17 = 'http://www.easy-forex.info/camp/landing/forexVSstocks/AR/?gid=55766'; flash_17 = ''; img_file_17 = 'http://www.6rb.com/cc/banners/b_219q6h4kyj5rngzv.gif'; file_type_17 = 'img'; }} if (adc17 ==2) { var how_many_ad2_17 = 4; var ad2_17 = sec % how_many_ad2_17; ad2_17 +=1; ad2_17 = allAboutCookie ("6rbBanner_17_2", how_many_ad2_17) if (ad2_17 == 1){ txt_17= ''; url_17 = ''; flash_17 = 'http://www.6rb.com/cc/banners/b_bs3jk08n9zxpv2gf.swf'; img_file_17 = ''; file_type_17 = 'flash'; } if (ad2_17 == 2){ txt_17= ''; url_17 = ''; flash_17 = 'http://www.6rb.com/cc/banners/b_5hc8sbgkwd1f29jn.swf'; img_file_17 = ''; file_type_17 = 'flash'; } if (ad2_17 == 3){ txt_17= ''; url_17 = ''; flash_17 = 'http://www.6rb.com/cc/banners/b_287wgyk39jf0vbqn.swf'; img_file_17 = ''; file_type_17 = 'flash'; } if (ad2_17 == 4){ txt_17= ''; url_17 = ''; flash_17 = 'http://www.6rb.com/cc/banners/b_mwr8pt3hvyn1j7qf.swf'; img_file_17 = ''; file_type_17 = 'flash'; }} var str ='' if ( file_type_17 == 'flash' ) { str += '
'; str += ''; str += ''; str += ''; str += ''; str += ''; str += '
'; } else { if ( file_type_17 == 'html' ) { str += '
'; str += txt_17; str += '
'; } else { str += '
'; str += ''; str += ''; str += '
'; } } function SetCookie(cookieName,cookieValue,nDays) { var today = new Date(); var expire = new Date(); if (nDays==null || nDays==0) nDays=1; expire.setTime(today.getTime() + 3600000*24*nDays); document.cookie = cookieName+"="+escape(cookieValue) + ";expires="+expire.toGMTString(); } function ReadCookie(cookieName) { var theCookie=""+document.cookie; var ind=theCookie.indexOf(cookieName); if (ind==-1 || cookieName=="") return ""; var ind1=theCookie.indexOf(';',ind); if (ind1==-1) ind1=theCookie.length; return unescape(theCookie.substring(ind+cookieName.length+1,ind1)); } function allAboutCookie (co_name, nu_of_elements) { var cookieVar = ReadCookie(co_name); var newCookie = 0; if (cookieVar >= nu_of_elements || isNaN(cookieVar) || cookieVar == null || cookieVar =='' ) { newCookie = 1; } else { intCookie = parseInt(cookieVar); newCookie = intCookie+1; } SetCookie(co_name, newCookie, 3); return newCookie; } document.getElementById('banner17').innerHTML = str;