Dealer Rebranding Guide |  |

# The mechanisms of dealer rebranding

Dealer rebranding is based oround:

- A dealer supplied HTML header include
- A dealer supplied stylesheet

The header takes the lions share of responsibility for establishing the dealer's identity, and will usually include graphics such as the dealer's logo.

The fonts and colours of the page body are fully customisable by the dealer-supplied stylesheet. Dealer's should use this stylesheet template as a starting point for producing their own compatible stylesheet.

### HTML header include coding guide

The HTML header include should be supplied as a slice of valid HTML, without <head>, <title> or <body> tags.

Any graphics are hosted on the dealer's server, and must be linked into the header by absolute (as opposed to relative) URLs.

### dmClub supplied variable content in the HTML header include

The page header includes some standard items of dynamically generated information. These are made available to the page via a set of javascript variables.

Dealers will need to include some simple javascript in their header include to ensure this information is displayed in an appropriate position.

### List of header variables

Variable name | Description
pageTitle | The page title, usually the account type
mode | The mode (including hyperlink to switch modes)
accRef | The number
userID | The user's user ID
logoutLink | The logout hyperlink and text
helpLink | The help hyperlink and text
errMsg | Any error message to be displayed to the user

### Inserting header variables in the header

Dealers should use the following simple javascript code to display the contents of a variable in the header.

`<script language="Javascript 1.2" type="text/javascript">document.write([VARIABLE_NAME])</script>`
Example
eg. `<script language=”Javascript 1.2” ” type=”text/javascript”>>document.write(accType)</script>`
will display the account type.