var optio_params = "";
if (self['optio_background_color']) optio_params += "&backgroundColor=" + encodeURIComponent(self['optio_background_color']);
if (self['optio_color1']) optio_params += "&color1=" + encodeURIComponent(self['optio_color1']);
if (self['optio_color2']) optio_params += "&color2=" + encodeURIComponent(self['optio_color2']);
if (self['optio_text_color1']) {
    optio_params += "&textColor=" + encodeURIComponent(self['optio_text_color1']);
    optio_params += "&navigationTextColor=" + encodeURIComponent(self['optio_text_color1']);
}
if (self['optio_text_color2']) {
    optio_params += "&navigationSelectedTextColor=" + encodeURIComponent(self['optio_text_color2']);
    optio_params += "&subNavigationTextColor=" + encodeURIComponent(self['optio_text_color2']);
}
if (self['optio_font_family']) {
    optio_params += "&fontFamily=" + encodeURIComponent(self['optio_font_family']);
    optio_params += "&navigationFontFamily=" + encodeURIComponent(self['optio_font_family']);
}
if (self['optio_font_size']) {
    optio_params += "&fontSize=" + encodeURIComponent(self['optio_font_size']);
    optio_params += "&navigationFontSize=" + encodeURIComponent(self['optio_font_size']);
}
if (self['optio_font_weight']) {
    optio_params += "&fontWeight=" + encodeURIComponent(self['optio_font_weight']);
    optio_params += "&navigationFontWeight=" + encodeURIComponent(self['optio_font_weight']);
}
if (self['optio_heading_font_family']) optio_params += "&headingFontFamily=" + encodeURIComponent(self['optio_heading_font_family']);
if (self['optio_heading_font_size']) optio_params += "&headingFontSize=" + encodeURIComponent(self['optio_heading_font_size']);
if (self['optio_heading_font_weight']) optio_params += "&headingFontWeight=" + encodeURIComponent(self['optio_heading_font_weight']);
if (self['optio_subheading_font_family']) optio_params += "&subheadingFontFamily=" + encodeURIComponent(self['optio_subheading_font_family']);
if (self['optio_subheading_font_size']) optio_params += "&subheadingFontSize=" + encodeURIComponent(self['optio_subheading_font_size']);
if (self['optio_subheading_font_weight']) optio_params += "&subheadingFontWeight=" + encodeURIComponent(self['optio_subheading_font_weight']);
if (self['optio_title']) optio_params += "&title=" + encodeURIComponent(self['optio_title']);
if (self['optio_width']) optio_params += "&width=" + encodeURIComponent(self['optio_width']);
optio_url = window.location.hostname;
if (optio_url == "") optio_url = "localhost";
document.write('<script type="text/javascript" src="http://www.optiopublishing.com/embed/?url=' + encodeURIComponent(optio_url) + optio_params + '"></scr' + 'ipt>');
