var AdBrite_Title_Color_Default = '0000FF'; var AdBrite_Text_Color_Default = '000000'; var AdBrite_Background_Color_Default = 'FFFFFF'; var AdBrite_Border_Color_Default = 'CCCCCC'; var AdBrite_URL_Color_Default = '008000'; var AdBrite_Title_Color,AdBrite_Text_Color,AdBrite_Background_Color,AdBrite_Border_Color,AdBrite_URL_Color; AdBrite_Title_Color = AdBrite_IAB_Zone_Test_Color(AdBrite_Title_Color); AdBrite_Text_Color = AdBrite_IAB_Zone_Test_Color(AdBrite_Text_Color); AdBrite_Background_Color = AdBrite_IAB_Zone_Test_Color(AdBrite_Background_Color); AdBrite_Border_Color = AdBrite_IAB_Zone_Test_Color(AdBrite_Border_Color); AdBrite_URL_Color = AdBrite_IAB_Zone_Test_Color(AdBrite_URL_Color); var AdBrite_Title_Color_Processed = (AdBrite_Title_Color) ? AdBrite_Title_Color : AdBrite_Title_Color_Default; var AdBrite_Text_Color_Processed = (AdBrite_Text_Color) ? AdBrite_Text_Color : AdBrite_Text_Color_Default; var AdBrite_Background_Color_Processed = (AdBrite_Background_Color) ? AdBrite_Background_Color : AdBrite_Background_Color_Default; var AdBrite_Border_Color_Processed = (AdBrite_Border_Color) ? AdBrite_Border_Color : AdBrite_Border_Color_Default; var AdBrite_URL_Color_Processed = (AdBrite_URL_Color) ? AdBrite_URL_Color : AdBrite_URL_Color_Default; function AdBrite_IAB_Zone_Test_Color(color) { if (typeof(color) != 'string') return false; if (!color.match(/^[0-9A-Fa-f]{6}$/) && !color.match(/^[0-9A-Fa-f]{3}$/)) return false; return color; } AdBrite_Title_Color = ''; AdBrite_Text_Color = ''; AdBrite_Background_Color = ''; AdBrite_Border_Color = ''; AdBrite_URL_Color = ''; try { AdBrite_Referrer = encodeURIComponent(top.location.href); } catch (ex) { AdBrite_Referrer = encodeURIComponent(document.referrer); } // for safari if ( AdBrite_Referrer == 'undefined' ) { AdBrite_Referrer = encodeURIComponent(document.referrer); } if ( !AdBrite_Referrer ) AdBrite_Referrer = encodeURIComponent(document.referrer); var AdBrite_IAB_Iframe_URL = 'http://ads.grx.adbrite.com/adserver/display_iab_ads.php?sid=883079' + '&title_color=' + AdBrite_Title_Color_Processed + '&text_color=' + AdBrite_Text_Color_Processed + '&background_color=' + AdBrite_Background_Color_Processed + '&border_color=' + AdBrite_Border_Color_Processed + '&url_color=' + AdBrite_URL_Color_Processed + '&newwin='+ '&zs='+ '&width=160' + '&height=600' + '&url=' + AdBrite_Referrer; document.write('
');