(function(){ var container_id, height, iframe, iframe_src = 'http://widgets.fwix.com/v7/dynamic_content.php', width; container_id = 'adw_container_' + Math.floor(Math.random() * 100000000000); document.write('
'); // Generate the source; iframe_src += '?geoid=' + encodeURIComponent(typeof adw_geoid == 'number' ? adw_geoid : 0) + '&title=' + encodeURIComponent(typeof adw_title == 'string' ? adw_title : '{location} News') + '&content_type=' + encodeURIComponent(typeof adw_content_type == 'string' ? adw_content_type : '') + '&filter_type=' + encodeURIComponent(typeof adw_filter_type == 'string' ? adw_filter_type : '') + '&filter=' + encodeURIComponent(typeof adw_filter == 'string' ? adw_filter : '') + '&style[show_map]=' + encodeURIComponent(typeof adw_show_map == 'number' ? adw_show_map : 0) + '&style[show_searchbox]=' + encodeURIComponent(typeof adw_show_searchbox == 'number' ? adw_show_searchbox : 0)+ '&style[show_images]=' + encodeURIComponent(typeof adw_show_images == 'number' ? adw_show_images : 1) + '&style[show_border]=' + encodeURIComponent(typeof adw_show_border == 'number' ? adw_show_border : 1); height = typeof adw_height == 'string' ? adw_height : '500px'; width = typeof adw_width == 'string' ? adw_width : '400px'; iframe_src += '&style[css][bdy_bg_color]=' + encodeURIComponent(typeof adw_bdy_bg_color == 'string' ? adw_bdy_bg_color : '#FFFFFF') + '&style[css][bdy_border_color]=' + encodeURIComponent(typeof adw_bdy_border_color == 'string' ? adw_bdy_border_color : '#DDE9EE') + '&style[css][bdy_padding]=' + encodeURIComponent(typeof adw_bdy_padding == 'string' ? adw_bdy_padding : '8px') + '&style[css][height]=' + height + '&style[css][width]=' + width + '&style[css][map_size]=' + encodeURIComponent(typeof adw_map_size == 'string' ? adw_map_size : '150px') + '&style[css][hdr_bg_color]=' + encodeURIComponent(typeof adw_hdr_bg_color == 'string' ? adw_hdr_bg_color : '#DDE9EE') + '&style[css][hdr_color]=' + encodeURIComponent(typeof adw_hdr_color == 'string' ? adw_hdr_color : '#444444') + '&style[css][hdr_font]=' + encodeURIComponent(typeof adw_hdr_font == 'string' ? adw_hdr_font : 'Arial') + '&style[css][hdr_txt_size]=' + encodeURIComponent(typeof adw_hdr_txt_size == 'string' ? adw_hdr_txt_size : '15px') + '&style[css][hdr_txt_wt]=' + encodeURIComponent(typeof adw_hdr_txt_wt == 'string' ? adw_hdr_txt_wt : 'bold') + '&style[css][hdr_padding]=' + encodeURIComponent(typeof adw_hdr_padding == 'string' ? adw_hdr_padding : '10px') + '&style[css][item_border]=' + encodeURIComponent(typeof adw_item_border == 'string' ? adw_item_border : '#EAEAEA') + '&style[css][item_hpadding]=' + encodeURIComponent(typeof adw_item_hpadding == 'string' ? adw_item_hpadding : '8px') + '&style[css][item_wpadding]=' + encodeURIComponent(typeof adw_item_wpadding == 'string' ? adw_item_wpadding : '4px') + '&style[css][item_image_size]=' + encodeURIComponent(typeof adw_item_image_size == 'string' ? adw_item_image_size : '42px') + '&style[css][ttl_txt_wt]=' + encodeURIComponent(typeof adw_ttl_txt_wt == 'string' ? adw_ttl_txt_wt : 'bold') + '&style[css][ttl_font]=' + encodeURIComponent(typeof adw_ttl_font == 'string' ? adw_ttl_font : 'Arial') + '&style[css][ttl_color]=' + encodeURIComponent(typeof adw_ttl_color == 'string' ? adw_ttl_color : '#397098') + '&style[css][ttl_txt_size]=' + encodeURIComponent(typeof adw_ttl_txt_size == 'string' ? adw_ttl_txt_size : '13px') + '&style[css][ttl_deco]=' + encodeURIComponent(typeof adw_ttl_deco == 'string' ? adw_ttl_deco : 'none') + '&style[css][item_heading_color]=' + encodeURIComponent(typeof adw_item_heading_color == 'string' ? adw_item_heading_color : '#444444') + '&style[css][summ_txt_wt]=' + encodeURIComponent(typeof adw_summ_txt_wt == 'string' ? adw_summ_txt_wt : 'default') + '&style[css][summ_font]=' + encodeURIComponent(typeof adw_summ_font == 'string' ? adw_summ_font : 'Arial') + '&style[css][summ_color]=' + encodeURIComponent(typeof adw_summ_color == 'string' ? adw_summ_color : '#444444') + '&style[css][summ_txt_size]=' + encodeURIComponent(typeof adw_summ_txt_size == 'string' ? adw_summ_txt_size : '12px') + '&style[css][show_meta]=' + encodeURIComponent(typeof adw_show_meta == 'string' ? adw_show_meta : 'inline') + '&style[css][meta_txt_wt]=' + encodeURIComponent(typeof adw_meta_txt_wt == 'string' ? adw_meta_txt_wt : 'default') + '&style[css][meta_font]=' + encodeURIComponent(typeof adw_meta_font == 'string' ? adw_meta_font : 'Arial') + '&style[css][meta_color]=' + encodeURIComponent(typeof adw_meta_color == 'string' ? adw_meta_color : '#AAAAAA') + '&style[css][meta_txt_size]=' + encodeURIComponent(typeof adw_meta_txt_size == 'string' ? adw_meta_txt_size : '11px') + '&style[css][meta_deco]=' + encodeURIComponent(typeof adw_meta_deco == 'string' ? adw_meta_deco : 'underline') + '&style[css][ftr_bg_color]=' + encodeURIComponent(typeof adw_ftr_bg_color == 'string' ? adw_ftr_bg_color : '#DDE9EE') + '&style[css][ftr_color]=' + encodeURIComponent(typeof adw_ftr_color == 'string' ? adw_ftr_color : '#444444') + '&style[css][ftr_font]=' + encodeURIComponent(typeof adw_ftr_font == 'string' ? adw_ftr_font : 'Arial') + '&style[css][ftr_txt_size]=' + encodeURIComponent(typeof adw_ftr_txt_size == 'string' ? adw_ftr_txt_size : '13px') + '&style[css][ftr_txt_wt]=' + encodeURIComponent(typeof adw_ftr_txt_wt == 'string' ? adw_ftr_txt_wt : 'bold') + '&style[css][ftr_padding]=' + encodeURIComponent(typeof adw_ftr_padding == 'string' ? adw_ftr_padding : '10px'); // Build the iframe iframe = document.createElement('iframe'); iframe.id = container_id+'_iframe'; iframe.setAttribute("frameborder", 0); iframe.setAttribute("scrolling", "no"); iframe.frameBorder = "0"; iframe.scrolling = "no"; iframe.style.height = height; iframe.style.width = width; document.getElementById(container_id).appendChild(iframe); iframe.src = iframe_src; })();