var link = document.createElement('link');
link.setAttribute('href', 'system/theme.css');
link.setAttribute('rel', 'stylesheet');
link.setAttribute('type', 'text/css');
var head = document.getElementsByTagName('head').item(0);
head.appendChild(link);
var cmThemePanel1 = {
  // main menu display attributes
   mainFolderLeft: '<img alt="" src="system/jsimages/blank.gif">'          // HTML code to the left of the folder item
  ,mainFolderRight: ''                                   // HTML code to the right of the folder item
  ,mainItemLeft: '<img alt="" src="system/jsimages/blank.gif">'            // HTML code to the left of the regular item
  ,mainItemRight: '<img alt="" src="system/jsimages/blank.gif">'           // HTML code to the right of the regular item
  // sub menu display attributes
  ,folderLeft: '<img alt="" src="system/jsimages/link.gif">'         // HTML code to the left of the folder item
  ,folderRight: ''                                   // HTML code to the right of the folder item
  ,itemLeft: '<img alt="" src="system/jsimages/link.gif">'           // HTML code to the left of the regular item
  ,itemRight: '<img alt="" src="system/jsimages/blank.gif">'          // HTML code to the right of the regular item
  // spacing and delay
  ,mainSpacing: 0	   // cell spacing for main menu
  ,subSpacing: 0	   // cell spacing for sub menus
  ,delay: 500	       // auto dispear time for submenus in milli-seconds
};
// splits
var cmThemePanelHSplit = [_cmNoClick, '<td colspan="3" style="height: 5px; overflow: hidden"><div class="ThemePanelMenuSplit"><\/div><\/td>'];
var cmThemePanelMainHSplit = [_cmNoClick, '<td colspan="3" style="height: 5px; overflow: hidden"><div class="ThemePanelMenuSplit"><\/div><\/td>'];
var cmThemePanelMainVSplit = [_cmNoClick, '|'];
var jsCookMenu1 = [
  [null, 'HOME', 'index.htm', '_top', 'HOME']
, [null, 'Activities', 'activity.htm', '_self', 'Activities'
, [null, 'Academic Activities', 'aactivity.htm', '_self', 'Academic Activities'
, [null, 'Exciting Writing', 'aactivity09.htm', '_self', 'Exciting Writing']
, [null, 'Career Afternoon', 'aactivity08.htm', '_self', 'Career Afternoon']
, [null, 'Faculty Services', 'aactivity07.htm', '_self', 'Faculty Services']
]
, [null, 'Social Activities', 'soctivity.htm', '_self', 'Social Activities'
, [null, 'D\'Artagnan Tour 2009', 'soctivity109.htm', '_self', 'D\'Artagnan Tour 2009']
, [null, 'BBQ 2008', 'soctivity208.htm', '_self', 'BBQ 2008']
, [null, 'GPS Tour 2008', 'soctivity108.htm', '_self', 'GPS Tour 2008']
, [null, 'BBQ 2007', 'soctivity207.htm', '_self', 'BBQ 2007']
, [null, 'Boat Trip 2007', 'soctivity107.htm', '_self', 'Boat Trip 2007']
]
]
,[null, 'PhD Colloquia', 'list2.htm', '_self', 'PhD Colloquia'
,[null, 'PhD Colloquia 2004-2007', 'list1.htm', '_self', 'PhD Colloquia2004-2007']
,[null, 'PhD Colloquia since 2008', 'list2.htm', '_self', 'PhD Colloquiasince 2008']
]
,[null, 'Information', 'info.htm', '_self', 'Information'
,[null, 'Useful Software', 'software.htm', '_self', 'Useful Software']
,[null, 'The Bicycle Scheme', 'bike.htm', '_self', 'The Bicycle Scheme']
,[null, 'Useful Contacts', 'contacts.htm', '_self', 'Useful Contacts']
]
];
cmDraw ( 'jsCookMenuID1', jsCookMenu1, 'hbr', cmThemePanel1, 'ThemePanel' );

