
function getUrl(id){ return '/page.php?id='+ id ;}

function getImg(typeImg){switch(typeImg){
case 'A':return '';break;
case 'F':return '';break;
default :return null;break;}}

function adm(typeLink,id){linkName = '[+] Ajouter'; switch(typeLink){ 
case 'r': arrAdmin = new Array(getImg(),linkName,'/index-module-orki-page-form_page_choix-typeForm-rubrique-admin-1.html',null,'ADM');break;
case 'p': arrAdmin = new Array(getImg('A'),linkName,'/index-module-orki-page-form_page_choix-typeForm-page-id-'+id+'-admin-1.html', null, '');break;
case 'c': arrAdmin = new Array(getImg('A'),linkName,'/index-module-orki-page-form_page_choix-typeForm-child-id-'+id+'-admin-1.html', null, '');break;
default : arrAdmin = new Array(getImg('A'),linkName,'/index-module-orki-page-view-id-'+id+'.html', null, '');break;}return arrAdmin;}

// directory of where all the images are
var cmThemeBase = '/images/menu/';

var cmTheme =
{
  	// main menu display attributes
  	//
  	// Note.  When the menu bar is horizontal,
  	// mainFolderLeft and mainFolderRight are
  	// put in <span></span>.  When the menu
  	// bar is vertical, they would be put in
  	// a separate TD cell.

  	// HTML code to the left of the folder item
  	mainFolderLeft: '',
  	// HTML code to the right of the folder item
  	mainFolderRight: '', //<img alt="" src="' + cmThemeBase + 'arrowR.gif">',
	// HTML code to the left of the regular item
	mainItemLeft: '',
	// HTML code to the right of the regular item
	mainItemRight: '',
	// HTML code to the left of the redirection item
	mainForwardLeft: '<img alt="" src="' + cmThemeBase + 'blank.gif">',
	// HTML code to the right of the redirection item
	mainForwardRight: '<img alt="" src="' + cmThemeBase + 'forward.gif">',		

	// sub menu display attributes 

	// HTML code to the left of the folder item
	folderLeft: '&nbsp;',
	// HTML code to the right of the folder item
	folderRight: '<img alt="" src="' + cmThemeBase + 'arrowR.gif">',
	// HTML code to the left of the regular item
	itemLeft: '&nbsp;',
	// HTML code to the right of the regular item
	itemRight: '&nbsp;',
	// HTML code to the left of the redirection item
	forwardLeft: '<img alt="" src="' + cmThemeBase + 'blank.gif">',
	// HTML code to the right of the redirection item
	forwardRight: '<img alt="" src="' + cmThemeBase + 'forward.gif">',	
	// cell spacing for main menu
	mainSpacing: 0,
	// cell spacing for sub menus
	subSpacing: 0,
	// auto dispear time for submenus in milli-seconds
	delay: 600
};

// for sub menu horizontal split
var cmThemeHSplit = [_cmNoAction, '<td colspan="3" style="height: 5px; overflow: hidden"><div class="ThemeOrkiMenuSplit"></div></td>'];
// for vertical main menu horizontal split
var cmThemeMainHSplit = [_cmNoAction, '<td colspan="3" style="height: 5px; overflow: hidden"><div class="ThemeOrkiMenuSplit"></div></td>'];
// for horizontal main menu vertical split
var cmThemeMainVSplit = [_cmNoAction, '|'];
