var server_client_id; var server_ad_width; var server_ad_height; var server_ad_style; var server_media_types; var server_integrate_media_types; var server_delivery_method; var server_code_version; var server_ad_color_border; var server_ad_color_background; var server_ad_color_headline; var server_ad_color_body; var server_ad_color_url; var server_ad_keyword; var server_ad_random; var server_ad_channel; var server_publisher_channels; var server_compete; var server_alternate_ad_url; var server_search_parameter; var server_sem_url; var server_target; var server_ad_filter1; var server_ad_filter2; var server_ad_filter3; var server_ad_region; var server_ignore_frameset; var server_target = 0; if(server_search_parameter) { flexad_search_parameter = server_search_parameter; } else { flexad_search_parameter = ""; } if(window ['google_ad_client'] != undefined ) { var server_compete = 1; } else { var server_compete = 0; } if(server_ad_random) { var flexad_ad_random = server_ad_random; } if(server_ad_channel) { var flexad_ad_channel = server_ad_channel; } var flexad_publisher_channels = ""; if (server_publisher_channels) { flexad_publisher_channels = server_publisher_channels; } var flexad_media_types = ""; if (server_media_types) { flexad_media_types = server_media_types; } var flexad_delivery_method = ""; if (server_delivery_method) { flexad_delivery_method = server_delivery_method; } if(server_ad_keyword) { var flexad_ad_keyword = server_ad_keyword; } if (server_ad_filter1) { if (encodeURIComponent) { var filter1 = encodeURIComponent(server_ad_filter1); } else { var filter1 = escape(server_ad_filter1); } } else { var filter1=""; } if (server_ad_filter2) { if (encodeURIComponent) { var filter2 = encodeURIComponent(server_ad_filter2); } else { var filter2 = escape(server_ad_filter2); } } else { var filter2=""; } if (server_ad_filter3) { if (encodeURIComponent) { var filter3 = encodeURIComponent(server_ad_filter3); } else { var filter3 = escape(server_ad_filter3); } } else { var filter3=""; } if (server_ad_region) { if (encodeURIComponent) { var ad_region = encodeURIComponent(server_ad_region); } else { var ad_region = escape(server_ad_region); } } else { var ad_region=""; } if(server_ad_color_border) { var flexad_ad_color_border = server_ad_color_border; } if(server_ad_color_background) { var flexad_ad_color_background = server_ad_color_background; } if(server_ad_color_headline) { var flexad_ad_color_headline = server_ad_color_headline; } if(server_ad_color_body) { var flexad_ad_color_body = server_ad_color_body; } if(server_ad_color_url) { var flexad_ad_color_url = server_ad_color_url; } if(server_code_version) { var flexad_code_version = server_code_version; } if(server_ad_width) { var flexad_ad_width = server_ad_width; } if(server_ad_height) { var flexad_ad_height = server_ad_height; } if(server_client_id) { var flexad_client_id = server_client_id; } if(server_ad_style) { var flexad_ad_style = server_ad_style; } //Useful defines var cpc_requrl = 'http://www.yidsense.com/'; var cpc_p_id = flexad_client_id; var cpc_uip ='98.148.116.35'; var cpc_channel = flexad_ad_channel; var cpc_limit =0; var cpc_doc_offset = 0; if (encodeURIComponent) { var cpc_keyword = encodeURIComponent(flexad_ad_keyword); } else { var cpc_keyword = escape(flexad_ad_keyword); } var cpc_region = ''; var sh_pg = 'sr'; var sh_countCPC = 0; var ad_font = "Arial"; var ad_network_name = 'Powered by YidSense'; var ad_network_destination_link = 'http://www.yidsense.com/?refid=' + cpc_p_id; var ad_character_limit = '80'; var ad_headline_fontsize = 12; if(flexad_ad_style == null){ var flexad_ad_style = ad_style; } if(flexad_ad_random == 1){ cpc_doc_offset = 0; } else { cpc_doc_offset = 0; } if(flexad_ad_style == "160x600_as") { var ad_body_width = 160; var ad_body_height = 600; var flexad_ad_width = ad_body_width; var flexad_ad_height = ad_body_height; var cpc_ad_count = 6; var ad_unit_width = flexad_ad_width ; var ad_unit_height = 95; var ad_unit_height_stacked_headline = 14; var ad_unit_height_stacked_body = 60; var ad_unit_height_stacked_url = 14; ad_headline_fontsize = 12; } if(flexad_ad_style == "160x400_as") { var ad_body_width = 160; var ad_body_height = 400; var flexad_ad_width = ad_body_width; var flexad_ad_height = ad_body_height; var cpc_ad_count = 4; var ad_unit_width = flexad_ad_width ; var ad_unit_height = 95; var ad_unit_height_stacked_headline = 14; var ad_unit_height_stacked_body = 60; var ad_unit_height_stacked_url = 14; ad_headline_fontsize = 12; } if(flexad_ad_style == "125x125_as") { var ad_body_width = 125; var ad_body_height = 125; var flexad_ad_width = ad_body_width; var flexad_ad_height = ad_body_height; var cpc_ad_count = 1; var ad_unit_width = flexad_ad_width ; var ad_unit_height = 110; var ad_unit_height_stacked_headline = 14; var ad_unit_height_stacked_body = 74; var ad_unit_height_stacked_url = 14; ad_headline_fontsize = 12; } if(flexad_ad_style == "234x60_as") { var ad_body_width = 234; var ad_body_height = 60; var flexad_ad_width = ad_body_width; var flexad_ad_height = ad_body_height; var cpc_ad_count = 1; var ad_unit_width = flexad_ad_width ; var ad_unit_height = 45; var ad_unit_height_stacked_headline = 14; var ad_unit_height_stacked_body = 74; var ad_unit_height_stacked_url = 14; ad_headline_fontsize = 14; } if(flexad_ad_style == "120x240_as") { var ad_body_width = 120; var ad_body_height = 240; var flexad_ad_width = ad_body_width; var flexad_ad_height = ad_body_height; if(ad_character_limit < 81) { var cpc_ad_count = 2; var ad_unit_height_stacked_body = 45; } else { var cpc_ad_count = 1; var ad_unit_height_stacked_body = 75; } var ad_unit_width = flexad_ad_width ; var ad_unit_height = 225/cpc_ad_count; var ad_unit_height_stacked_headline = 14; var ad_unit_height_stacked_url = 14; ad_headline_fontsize = 12; } if(flexad_ad_style == "234x60_as") { var ad_body_width = 234; var ad_body_height = 60; var flexad_ad_width = ad_body_width; var flexad_ad_height = ad_body_height; var cpc_ad_count = 1; var ad_unit_width = flexad_ad_width ; var ad_unit_height = 60; var ad_unit_height_stacked_headline = 14; var ad_unit_height_stacked_body = 45; var ad_unit_height_stacked_url = 14; ad_headline_fontsize = 12; } if(flexad_ad_style == "180x150_as") { var ad_body_width = 180; var ad_body_height = 150; var flexad_ad_width = ad_body_width; var flexad_ad_height = ad_body_height; var cpc_ad_count = 1; var ad_unit_width = flexad_ad_width ; var ad_unit_height = 120; var ad_unit_height_stacked_headline = 40; var ad_unit_height_stacked_body = 60; var ad_unit_height_stacked_url = 14; ad_headline_fontsize = 15; } if(flexad_ad_style == "240x400_as") { var ad_body_width = 240; var ad_body_height = 400; var flexad_ad_width = ad_body_width; var flexad_ad_height = ad_body_height; var cpc_ad_count = 6; var ad_unit_width = flexad_ad_width ; var ad_unit_height = 63; var ad_unit_height_stacked_headline = 14; var ad_unit_height_stacked_body = 30; var ad_unit_height_stacked_url = 14; ad_headline_fontsize = 12; } if(flexad_ad_style == "336x280_as") { var ad_body_height = 280; var ad_body_width = 336; var flexad_ad_width = ad_body_width; var flexad_ad_height = ad_body_height; var cpc_ad_count = 4; var ad_unit_width = flexad_ad_width ; var ad_unit_height = 65; var ad_unit_height_stacked_headline = 16; var ad_unit_height_stacked_body = 30; var ad_unit_height_stacked_url = 16; ad_headline_fontsize = 12; } if(flexad_ad_style == "250x250_as") { var ad_body_height = 250; var ad_body_width = 250; var flexad_ad_width = ad_body_width; var flexad_ad_height = ad_body_height; var cpc_ad_count = 4; var ad_unit_width = flexad_ad_width ; var ad_unit_height = 58; var ad_unit_height_stacked_headline = 14; var ad_unit_height_stacked_body = 29; var ad_unit_height_stacked_url = 14; } if(flexad_ad_style == "rectangle"){ flexad_ad_style = "300x250_as"; } if(flexad_ad_style == "300x250_as") { var ad_body_height = 250; var ad_body_width = 300; var flexad_ad_width = ad_body_width; var flexad_ad_height = ad_body_height; var cpc_ad_count = 4; var ad_unit_width = flexad_ad_width ; var ad_unit_height = 58; var ad_unit_height_stacked_headline = 14; var ad_unit_height_stacked_body = 29; var ad_unit_height_stacked_url = 14; } if(flexad_ad_style == "tower"){ flexad_ad_style = "120x600_as"; } if(flexad_ad_style == "120x600_as") { var ad_body_height = 600; var ad_body_width = 120; var flexad_ad_width = ad_body_width; var flexad_ad_height = ad_body_height; var cpc_ad_count = 5; var ad_unit_width = flexad_ad_width ; var ad_unit_height = 116; var ad_unit_height_stacked_headline = 30; var ad_unit_height_stacked_body = 60; var ad_unit_height_stacked_url = 14; } if(flexad_ad_style == "300x600_as") { var ad_body_height = 600; var ad_body_width = 300; var flexad_ad_width = ad_body_width; var flexad_ad_height = ad_body_height; var cpc_ad_count = 5; var ad_unit_width = flexad_ad_width ; var ad_unit_height = 116; var ad_unit_height_stacked_headline = 30; var ad_unit_height_stacked_body = 60; var ad_unit_height_stacked_url = 14; } if(flexad_ad_style == "banner"){ flexad_ad_style = "468x60_as"; } if(flexad_ad_style == "468x60_as") { var ad_body_height = 60; var ad_body_width = 468; var flexad_ad_width = ad_body_width; var flexad_ad_height = ad_body_height; var cpc_ad_count = 2; var ad_unit_width = 468 ; var ad_unit_height = 45; var ad_unit_height_stacked_headline = 14; var ad_unit_height_stacked_body = 28; var ad_unit_height_stacked_url = 14; } if(flexad_ad_style == "leaderboard"){ flexad_ad_style = "728x90_as"; } if(flexad_ad_style == "728x90_as") { var ad_body_height = 90; var ad_body_width = 728; var flexad_ad_width = ad_body_width; var flexad_ad_height = ad_body_height; if(ad_character_limit < 70) { var cpc_ad_count = 4; } else { var cpc_ad_count = 3; } var ad_unit_width = ad_body_width / cpc_ad_count ; var ad_unit_height = 76; var ad_unit_height_stacked_headline = 14; var ad_unit_height_stacked_body = 76; var ad_unit_height_stacked_url = 14; } //if(cpc_ad_count == "1") //{ // cpc_doc_offset = 0; //} if(server_ad_random == 0){ if(offset_next_loop > 0){ if(cpc_doc_offset == 0){ cpc_doc_offset = offset_next_loop ; } } } var currentURL = document.URL; if (!server_ignore_frameset) { try { currentURL = top.location.href; if (typeof(currentURL) == "undefined") { throw "undefined"; } } catch(exception) { currentURL = document.referrer; if (currentURL == "" || typeof(currentURL) == "undefined") { currentURL = document.URL; } } } document.write(""); if(offset_next_loop > 0){ var offset_next_loop = cpc_ad_count + offset_next_loop ; } else { var offset_next_loop = cpc_ad_count ; } var server_alternate_ad_url = undefined; var server_ad_width = undefined; var server_ad_height = undefined; var server_ad_style = undefined; var server_ad_keyword = undefined; var server_ad_channel = undefined; var server_ad_random = undefined; var server_media_types = undefined; var server_delivery_method = undefined;