aiyo_ad_url = ''; aiyo_random = (new Date()).getTime(); aiyo_org_error_handler = window.onerror; function quoted(str) { return (str != null) ? '"' + str + '"' : '""'; } function aiyo_encodeURIComponent(str) { if (typeof(encodeURIComponent) == 'function') { return encodeURIComponent(str); } else { return escape(str); } } function aiyo_write_tracker(tracker_event) { var img_url = window.aiyo_ad_url.replace(/pagead\/ads/, 'pagead/imp.gif'); var img_src = img_url + '&event=' + tracker_event; var img_tag = ''; document.write(img_tag); } function aiyo_append_url(param, value) { if (value) { window.aiyo_ad_url += '&' + param + '=' + value; } } function aiyo_append_url_esc(param, value) { if (value) { aiyo_append_url(param, aiyo_encodeURIComponent(value)); } } function aiyo_append_color(param, value) { if (value && typeof(value) == 'object') { value = value[window.aiyo_random % value.length]; } aiyo_append_url('color_' + param, value); } function aiyo_show_ad() { var w = window; w.onerror = w.aiyo_org_error_handler; if (w.aiyo_ad_width < 5) { w.aiyo_num = w.aiyo_ad_width; w.aiyo_ad_width = w.aiyo_ad_width * 120; w.aiyo_type = 'horizontal'; } else { w.aiyo_num = w.aiyo_ad_height; w.aiyo_ad_height= 70+(130)*w.aiyo_ad_height; w.aiyo_type = 'vertical'; } w.aiyo_ad_url = 'http://www.aiyo.com/app/syn.do?'+'user=' + escape(w.aiyo_user.toLowerCase()) + "&catid="+w.aiyo_catid; aiyo_append_url('type', w.aiyo_type); aiyo_append_url('width', w.aiyo_ad_width); aiyo_append_url('bgcolor', w.aiyo_color_bg); aiyo_append_url('titlecolor', w.aiyo_color_link); aiyo_append_url('bdrcolor', w.aiyo_color_border); aiyo_append_url('linkcolor', w.aiyo_color_url); aiyo_append_url('bodycolor', w.aiyo_color_text); aiyo_append_url('height', w.aiyo_ad_height); aiyo_append_url('num', w.aiyo_num); w.aiyo_ad_url = w.aiyo_ad_url.substring(0, 1000); w.aiyo_ad_url = w.aiyo_ad_url.replace(/%\w?$/, ''); if (aiyo_ad_output == 'js' && w.aiyo_ad_request_done) { document.write(''); } else if (aiyo_ad_output == 'html') { if (w.name == 'aiyo_ads_frame') { aiyo_write_tracker('reboundredirect'); } else { document.write(''); aiyo_write_tracker('noiframe'); document.write(''); } } w.aiyo_ad_frameborder = null; w.aiyo_ad_format = null; w.aiyo_page_url = null; w.aiyo_language = null; w.aiyo_gl = null; w.aiyo_hints = null; w.aiyo_safe = null; w.aiyo_encoding = null; w.aiyo_ad_output = null; w.aiyo_max_num_ads = null; w.aiyo_ad_channel = null; w.aiyo_contents = null; w.aiyo_alternate_ad_url = null; w.aiyo_color_bg = null; w.aiyo_color_text = null; w.aiyo_color_link = null; w.aiyo_color_url = null; w.aiyo_color_border = null; w.aiyo_adtest = null; w.aiyo_kw_type = null; w.aiyo_kw = null; w.aiyo_num_radlinks = null; w.aiyo_max_radlink_len = null; } function aiyo_error_handler(message, url, line) { aiyo_show_ad(); return true; } window.onerror = aiyo_error_handler; if (window.aiyo_ad_frameborder == null) { aiyo_ad_frameborder = 0; } if (window.aiyo_ad_output == null) { aiyo_ad_output = 'html'; } if (window.aiyo_ad_format == null && window.aiyo_ad_output == 'html') { aiyo_ad_format = aiyo_ad_width + 'x' + aiyo_ad_height; } if (window.aiyo_page_url == null) { aiyo_page_url = document.referrer; if (window.top.location == document.location) { aiyo_page_url = document.location; aiyo_last_modified_time = Date.parse(document.lastModified) / 1000; } } aiyo_show_ad();