// JavaScript Document
var t;
var tt;

function normalize_menu() {
	document.getElementById('mm_lvl2').innerHTML = '';
	document.getElementById('mm_lvl3').innerHTML = '';
	document.getElementById('mm_lvl4').innerHTML = '';
}


function get_rooot() {
 var rootstr = document.location.href;
 var rootstr2 = rootstr.split("/"); 
 return 'http://'+rootstr2[2]+'/';
}

function get_root() {
 var rootstr = document.location.href;
 var rootstr2 = rootstr.split("/"); 
 return 'http://'+rootstr2[2]+'/Direct-Marketing-Information/';
}

function do_action(url) {
	if(url!='') {
		 var rootstr = url;
 		 var rootstr2 = rootstr.split("-"); 
 		 if(rootstr2[0]=='new_window') {
		   window.open (rootstr2[2],rootstr2[2]);
		 } else {
		  document.location.href=get_rooot()+url;
		 }
	}
}

function level0_menu(menu_name,topm1,p1,url1,topm2,p2,url2,topm3,p3,url3,topm4,p4,url4,topm5,p5,url5,topm6,p6,url6,topm7,p7,url7) {
var tm1,tm2,tm3,tm4,tm5,tm6,tm7,p1,p2,p3,p4,p5,p6,p7,url1,url2,url3,url4,url5,url6,url7;

 if(topm1) {
  tm1 = '<div id="'+topm1+'_mm" style=" width:'+p1+'%; float:left; padding:2px;" onmouseover="show_bar(this.id,1)" onmouseout="hide_bar(this.id)" onclick="do_action(\''+url1+'\')"><div id="'+topm1+'_mtxt" style=" width:100%; float:left"><span style="cursor:pointer"><a>'+topm1+'</a></span></div><div id="'+topm1+'_div2" style="visibility:hidden; width:100%; float:left"><img  src="images/bar.JPG" width="100%" height="9" /></div></div>'; 	 
 } else { tm1 = ''; }
 if(topm2) {
  tm2 = '<div id="'+topm2+'_mm" style=" width:'+p2+'%; float:left; padding:2px;"  onmouseover="show_bar(this.id,2)" onmouseout="hide_bar(this.id)" onclick="do_action(\''+url2+'\')"><div id="'+topm2+'_mtxt" style=" width:100%; float:left"><span style="cursor:pointer"><a>'+topm2+'</a></span></div><div    id="'+topm2+'_div2" style="visibility:hidden; width:100%; float:left"><img  src="images/bar.JPG" width="100%" height="9" /></div></div>'; 	 
 } else { tm2 = ''; }
  if(topm3) {
  tm3 = '<div id="'+topm3+'_mm" style=" width:'+p3+'%; float:left;"  onmouseover="show_bar(this.id,3)" onmouseout="hide_bar(this.id)" onclick="do_action(\''+url3+'\')"><div id="'+topm3+'_mtxt" style=" width:100%; float:left"><span style="cursor:pointer"><a>'+topm3+'</a></span></div><div    id="'+topm3+'_div2" style="visibility:hidden; width:100%; float:left"><img  src="images/bar.JPG" width="100%" height="9" /></div></div>'; 	 
 } else { tm3 = ''; }
  if(topm4) {
  tm4 = '<div id="'+topm4+'_mm" style=" width:'+p4+'%; float:left;"  onmouseover="show_bar(this.id,4)" onmouseout="hide_bar(this.id)" onclick="do_action(\''+url4+'\')"><div id="'+topm4+'_mtxt" style=" width:100%; float:left"><span style="cursor:pointer"><a>'+topm4+'</a></span></div><div    id="'+topm4+'_div2" style="visibility:hidden; width:100%; float:left"><img  src="images/bar.JPG" width="100%" height="9" /></div></div>'; 	 
 } else { tm4 = ''; }
 if(topm5) {
  tm5 = '<div id="'+topm5+'_mm" style=" width:'+p5+'%; float:left;"  onmouseover="show_bar(this.id,5)" onmouseout="hide_bar(this.id)" onclick="do_action(\''+url5+'\')"><div id="'+topm5+'_mtxt" style=" width:100%; float:left"><span style="cursor:pointer"><a>'+topm5+'</a></span></div><div    id="'+topm5+'_div2" style="visibility:hidden; width:100%; float:left"><img  src="images/bar.JPG" width="100%" height="9" /></div></div>'; 	 
 } else { tm5 = ''; }
 if(topm6) {
  tm6 = '<div id="'+topm6+'_mm" style=" width:'+p6+'%; float:left;"  onmouseover="show_bar(this.id,6)" onmouseout="hide_bar(this.id)" onclick="do_action(\''+url6+'\')"><div id="'+topm6+'_mtxt" style=" width:100%; float:left"><span style="cursor:pointer"><a>'+topm6+'</a></span></div><div    id="'+topm6+'_div2" style="visibility:hidden; width:100%; float:left"><img  src="images/bar.JPG" width="100%" height="9" /></div></div>'; 	 
 } else { tm6 = ''; }
 if(topm7) {
  tm7 = '<div id="'+topm7+'_mm" style=" width:'+p7+'%; float:left;"  onmouseover="show_bar(this.id,7)" onmouseout="hide_bar(this.id)" onclick="do_action(\''+url7+'\')"><div id="'+topm7+'_mtxt" style=" width:100%; float:left"><span style="cursor:pointer"><a>'+topm7+'</a></span></div><div    id="'+topm7+'_div2" style="visibility:hidden; width:100%; float:left"><img  src="images/bar.JPG" width="100%" height="9" /></div></div>'; 	 
 } else { tm7 = ''; }

 document.getElementById(menu_name).innerHTML = tm1 + tm2 + tm3 + tm4 + tm5 + tm6 + tm7;	
}

function level1_menu(menu_name,key,topm1,p1,f1,url1,topm2,p2,f2,url2,topm3,p3,f3,url3,topm4,p4,f4,url4,topm5,p5,f5,url5,topm6,p6,f6,url6,topm7,p7,f7,url7) {
var tm1,tm2,tm3,tm4,tm5,tm6,tm7;


 if(topm1) {
  tm1 = '<div id="'+topm1+'_mm" style="width:'+p1+'%; float:'+f1+';" onclick="do_action(\''+url1+'\')" onmouseover="show_bar1(this.id,11,'+key+')" onmouseout="hide_bar2_1(\''+menu_name+'\')"><span style="cursor:pointer"><a>'+topm1+'</a></span></div>'; 	 
 } else { tm1 = ''; }
 if(topm2) {
  tm2 = '<div id="'+topm2+'_mm" style="width:'+p2+'%; float:'+f2+';" onclick="do_action(\''+url2+'\')" onmouseover="show_bar1(this.id,22,'+key+')" onmouseout="hide_bar2_1(\''+menu_name+'\')"><span style="cursor:pointer"><a>'+topm2+'</a></span></div>'; 	 
 } else { tm2 = ''; }
  if(topm3) {
  tm3 = '<div id="'+topm3+'_mm" style=" width:'+p3+'%; float:'+f3+';" onclick="do_action(\''+url3+'\')" onmouseover="show_bar1(this.id,33,'+key+')" onmouseout="hide_bar2_1(\''+menu_name+'\')"><span style="cursor:pointer"><a>'+topm3+'</a></span></div>'; 	 
 } else { tm3 = ''; }
  if(topm4) {
  tm4 = '<div id="'+topm4+'_mm" style=" width:'+p4+'%; float:'+f4+';" onclick="do_action(\''+url4+'\')" onmouseover="show_bar1(this.id,44,'+key+')" onmouseout="hide_bar2_1(\''+menu_name+'\')"><div id="'+topm4+'_mtxt" style=" width:100%; float:left"><span style="cursor:pointer"><a>'+topm4+'</a></span></div></div>'; 	 
 } else { tm4 = ''; }
 if(topm5) {
  tm5 = '<div id="'+topm5+'_mm" style=" width:'+p5+'%; float:'+f5+';" onclick="do_action(\''+url5+'\')" onmouseover="show_bar1(this.id,55,'+key+')" onmouseout="hide_bar2_1(\''+menu_name+'\')"><div id="'+topm5+'_mtxt" style=" width:100%; float:left"><span style="cursor:pointer"><a>'+topm5+'</a></span></div></div>'; 	 
 } else { tm5 = ''; }
 if(topm6) {
  tm6 = '<div id="'+topm6+'_mm" style=" width:'+p6+'%; float:'+f6+';" onclick="do_action(\''+url6+'\')" onmouseover="show_bar1(this.id,66,'+key+')" onmouseout="hide_bar2_1(\''+menu_name+'\')"><div id="'+topm6+'_mtxt" style=" width:100%; float:left"><span style="cursor:pointer"><a>'+topm6+'</a></span></div></div>'; 	 
 } else { tm6 = ''; }
 if(topm7) {
  tm7 = '<div id="'+topm7+'_mm" style=" width:'+p7+'%; float:'+f7+';" onclick="do_action(\''+url7+'\')" onmouseover="show_bar1(this.id,77,'+key+')" onmouseout="hide_bar2_1(\''+menu_name+'\')"><div id="'+topm7+'_mtxt" style=" width:100%; float:left"><span style="cursor:pointer"><a>'+topm7+'</a></span></div></div>'; 	 
 } else { tm7 = ''; }

 document.getElementById(menu_name).innerHTML = tm1 + tm2 + tm3 + tm4 + tm5 + tm6 + tm7;	
}

function level2_menu(menu_name,key,topm1,p1,f1,url1,topm2,p2,f2,url2,topm3,p3,f3,url3,topm4,p4,f4,url4,topm5,p5,f5,url5,topm6,p6,f6,url6,topm7,p7,f7,url7) {
var tm1,tm2,tm3,tm4,tm5,tm6,tm7;
 
 if(topm1) {
  tm1 = '<div id="'+topm1+'_mm" style="width:'+p1+'%; float:'+f1+'; padding-bottom:5px;" onclick="do_action(\''+url1+'\')" onmouseover="show_bar2(this.id,111,'+key+')"  onmouseout="hide_bar3_1(\''+menu_name+'\')"><span style="cursor:pointer"><a>'+topm1+'</a></span></div>'; 	 
 } else { tm1 = ''; }
 if(topm2) {
  tm2 = '<div id="'+topm2+'_mm" style="width:'+p2+'%; float:'+f2+'; padding-bottom:5px;"  onclick="do_action(\''+url2+'\')" onmouseover="show_bar2(this.id,222,'+key+')"  onmouseout="hide_bar3_1(\''+menu_name+'\')"><span style="cursor:pointer"><a>'+topm2+'</a></span></div>'; 	 
 } else { tm2 = ''; }
  if(topm3) {
  tm3 = '<div id="'+topm3+'_mm" style=" width:'+p3+'%; float:'+f3+'; padding-bottom:5px;"  onclick="do_action(\''+url3+'\')" onmouseover="show_bar2(this.id,333,'+key+')"  onmouseout="hide_bar3_1(\''+menu_name+'\')"><span style="cursor:pointer"><a>'+topm3+'</a></span></div>'; 	 
 } else { tm3 = ''; }
  if(topm4) {
  tm4 = '<div id="'+topm4+'_mm" style=" width:'+p4+'%; float:'+f4+'; padding-bottom:5px;"  onclick="do_action(\''+url4+'\')" onmouseover="show_bar2(this.id,444,'+key+')"  onmouseout="hide_bar3_1(\''+menu_name+'\')"><div id="'+topm4+'_mtxt" style=" width:100%; float:left"><span style="cursor:pointer"><a>'+topm4+'</a></span></div></div>'; 	 
 } else { tm4 = ''; }
 if(topm5) {
  tm5 = '<div id="'+topm5+'_mm" style=" width:'+p5+'%; float:'+f5+';; padding-bottom:5px;"  onclick="do_action(\''+url5+'\')" onmouseover="show_bar2(this.id,555,'+key+')"  onmouseout="hide_bar3_1(\''+menu_name+'\')"><div id="'+topm5+'_mtxt" style=" width:100%; float:left"><span style="cursor:pointer"><a>'+topm5+'</a></span></div></div>'; 	 
 } else { tm5 = ''; }
 if(topm6) {
  tm6 = '<div id="'+topm6+'_mm" style=" width:'+p6+'%; float:'+f6+'; padding-bottom:5px;"  onclick="do_action(\''+url6+'\')" onmouseover="show_bar2(this.id,666,'+key+')"  onmouseout="hide_bar3_1(\''+menu_name+'\')"><div id="'+topm6+'_mtxt" style=" width:100%; float:left"><span style="cursor:pointer"><a>'+topm6+'</a></span></div></div>'; 	 
 } else { tm6 = ''; }
 if(topm7) {
  tm7 = '<div id="'+topm7+'_mm" style=" width:'+p7+'%; float:'+f7+'; padding-bottom:5px;"  onclick="do_action(\''+url7+'\')" onmouseover="show_bar2(this.id,777,'+key+')"  onmouseout="hide_bar3_1(\''+menu_name+'\')"><div id="'+topm7+'_mtxt" style=" width:100%; float:left"><span style="cursor:pointer"><a>'+topm7+'</a></span></div></div>'; 	 
 } else { tm7 = ''; }

 document.getElementById(menu_name).innerHTML = tm1 + tm2 + tm3 + tm4 + tm5 + tm6 + tm7;	
}


function level3_menu(menu_name,key,topm1,p1,f1,url1,topm2,p2,f2,url2,topm3,p3,f3,url3,topm4,p4,f4,url4,topm5,p5,f5,url5,topm6,p6,f6,url6,topm7,p7,f7,url7) {
var tm1,tm2,tm3,tm4,tm5,tm6,tm7;
 
 if(topm1) {
  tm1 = '<div id="'+topm1+'_mm" style="width:'+p1+'%; float:'+f1+'; padding-bottom:5px;"  onclick="do_action(\''+url1+'\')" onmouseover="show_bar2(this.id,111,'+key+')"  onmouseout="hide_bar4_1(\''+menu_name+'\')"><span style="cursor:pointer"><a>'+topm1+'</a></span></div>'; 	 
 } else { tm1 = ''; }
 if(topm2) {
  tm2 = '<div id="'+topm2+'_mm" style="width:'+p2+'%; float:'+f2+'; padding-bottom:5px;"  onclick="do_action(\''+url2+'\')" onmouseover="show_bar2(this.id,111,'+key+')"  onmouseout="hide_bar4_1(\''+menu_name+'\')"><span style="cursor:pointer"><a>'+topm2+'</a></span></div>'; 	 
 } else { tm2 = ''; }
  if(topm3) {
  tm3 = '<div id="'+topm3+'_mm" style=" width:'+p3+'%; float:'+f3+'; padding-bottom:5px;"  onclick="do_action(\''+url3+'\')" onmouseover="show_bar2(this.id,111,'+key+')"  onmouseout="hide_bar4_1(\''+menu_name+'\')"><span style="cursor:pointer"><a>'+topm3+'</a></span></div>'; 	 
 } else { tm3 = ''; }
  if(topm4) {
  tm4 = '<div id="'+topm4+'_mm" style=" width:'+p4+'%; float:'+f4+'; padding-bottom:5px;"  onclick="do_action(\''+url4+'\')" onmouseover="show_bar2(this.id,111,'+key+')"  onmouseout="hide_bar4_1(\''+menu_name+'\')"><div id="'+topm4+'_mtxt" style=" width:100%; float:left"><span style="cursor:pointer"><a>'+topm4+'</a></span></div></div>'; 	 
 } else { tm4 = ''; }
 if(topm5) {
  tm5 = '<div id="'+topm5+'_mm" style=" width:'+p5+'%; float:'+f5+'; padding-bottom:5px;"  onclick="do_action(\''+url5+'\')"  onmouseout="hide_bar4_1(\''+menu_name+'\')" ><div id="'+topm5+'_mtxt" style=" width:100%; float:left"><span style="cursor:pointer"><a>'+topm5+'</a></span></div></div>'; 	 
 } else { tm5 = ''; }
 if(topm6) {
  tm6 = '<div id="'+topm6+'_mm" style=" width:'+p6+'%; float:'+f6+'; padding-bottom:5px;"  onclick="do_action(\''+url6+'\')" onmouseover="show_bar2(this.id,111,'+key+')"  onmouseout="hide_bar4_1(\''+menu_name+'\')"><div id="'+topm6+'_mtxt" style=" width:100%; float:left"><span style="cursor:pointer"><a>'+topm6+'</a></span></div></div>'; 	 
 } else { tm6 = ''; }
 if(topm7) {
  tm7 = '<div id="'+topm7+'_mm" style=" width:'+p7+'%; float:'+f7+'; padding-bottom:5px;"  onclick="do_action(\''+url7+'\')" onmouseover="show_bar2(this.id,111,'+key+')"  onmouseout="hide_bar4_1(\''+menu_name+'\')" ><div id="'+topm7+'_mtxt" style=" width:100%; float:left"><span style="cursor:pointer"><a>'+topm7+'</a></span></div></div>'; 	 
 } else { tm7 = ''; }

 document.getElementById(menu_name).innerHTML = tm1 + tm2 + tm3 + tm4 + tm5 + tm6 + tm7;	
}



function hide_bar(showid) {
	var x = showid.split('_',1)+'_div2';
	document.getElementById(x).style.visibility = 'hidden';
	
	hide_bar4_1('a');
}



function hide_bar2_1(showid) {
  t=setTimeout("hide_bar2('"+showid+"')",500);
}
function hide_bar2(showid) {
	//if(document.getElementById('mm_lvl3').innerHTML == '' && document.getElementById('mm_lvl4').innerHTML == '') {
	document.getElementById('mm_lvl2').innerHTML = '';
	document.getElementById('mm_lvl3').innerHTML = '';
	document.getElementById('mm_lvl4').innerHTML = '';
	//}
}

function hide_bar3_1(showid) {
//alert("hide_bar4('"+showid+"')");
  tt=setTimeout("hide_bar3('"+showid+"')",1000);
}
function hide_bar3(showid) {
	document.getElementById('mm_lvl4').innerHTML = '';
	document.getElementById('mm_lvl3').innerHTML = '';
	document.getElementById('mm_lvl2').innerHTML = '';	
}

function hide_bar4_1(showid) {
//alert("hide_bar4('"+showid+"')");
  tt=setTimeout("hide_bar4('"+showid+"')",1000);
}
function hide_bar4(showid) {
	document.getElementById('mm_lvl4').innerHTML = '';
	document.getElementById('mm_lvl3').innerHTML = '';
	document.getElementById('mm_lvl2').innerHTML = '';	
}

function show_bar(showid,key) {
	clearTimeout(t);
	clearTimeout(tt);
	
	var x = showid.split('_',1)+'_div2';
	document.getElementById(x).style.visibility = 'visible';
	
	document.getElementById('mm_lvl2').innerHTML = '';
	document.getElementById('mm_lvl3').innerHTML = '';
	document.getElementById('mm_lvl4').innerHTML = '';
	
	if(key==2) {
	 level1_menu('mm_lvl2',key,'Business Intelligence',25,'left','','Telemarketing',20,'left','','Publishing',15,'left','','Internet',15,'left','','',15,'left','');
	}
	
	if(key==3) {
	 level1_menu('mm_lvl2',key,'Why use Direct Marketing?',25,'left',get_root()+'Why-Use-Direct-Marketing/','Direct Mail',12,'left',get_root()+'Marketing-2/Direct-Mail/','Telemarketing',15,'left',get_root()+'Marketing-2/Telemarketing/','Fax Broadcasting',17,'left',get_root()+'Marketing-2/Direct-Mail/','Email Broadcasting',20,'left',get_root()+'marketing/Email-Marketing/Easy-Email-Broadcast-Solution/');
	}
	
	if(key==4) {
	 level1_menu('mm_lvl2',key,'Contact Us',15,'right',get_rooot()+'forms/Contact-Us/','About IDS Direct Marketing',35,'right',get_rooot()+'About-Us/','',30,'left','');
	}

}

function show_bar1(showid,key,key2) {
	clearTimeout(t);
	clearTimeout(tt);
	
 	document.getElementById('mm_lvl4').innerHTML = '';
	document.getElementById('mm_lvl3').innerHTML = '';
	

 if(key2==2) {
	if(key==11) {
	 level2_menu('mm_lvl3',key,'Ordering Lists Online',18,'left','','Business Mailing Lists',19,'left','','Consumer Mailing Lists',19,'left','','Data Processing',12,'left','','Direct Mail',14,'left','http://www.idsmediagroup.com/Direct_Mail/directmail.php','Free Downloads',16,'left','http://www.idsmediagroup.com/Downloads/freedownloads.php');
	}
	
	if(key==22) {
	 level2_menu('mm_lvl3',key,'Inbound',15,'left','http://www.idsmediagroup.com/Telemarketing/tele-inbound.php','Outboound',15,'left','http://www.idsmediagroup.com/Telemarketing/tele-outbound.php','Consultancy and Training',25,'left','http://www.idsmediagroup.com/Telemarketing/tele-consultancy.php','Perfect Lists',25,'left','http://www.idsmediagroup.com/Telemarketing/tele-perfectlist.php','Market Research',20,'left','http://www.idsmediagroup.com/Market_Research/marketresearch.php');
	}
	
	if(key==33) {
	 level2_menu('mm_lvl3',key,'Link Directories',15,'left','','Building Link',15,'left','','Phone Books',12,'left','','Wedding Directory',12,'left','','Contract Publishing',12,'left','','IDS Publishing',20,'left','publishing/pub-main2.htm','Order Directories Now',12,'left','shopping/order.php');
	}
	
	if(key==44) {
	 level2_menu('mm_lvl3',key,'Web Design',15,'left','Internet/internet-webdesign.php','Email Broadcasting',18,'left','Internet/internet-emailmarketing.php','Internet Marketing',22,'left','Internet/internet-onlinemarketing.php','Flash Web Advert Production',20,'left','','Software',20,'left','Internet/internet-software.php');
	}
 }
 
 if(key2==3) {

 }
 
 


}

function show_bar2(showid,key1,key2) {
	clearTimeout(tt);clearTimeout(t);
	
	//document.getElementById('mm_lvl4').innerHTML = '';


	if(key2==11) {
		if(key1==111) {
	     level3_menu('mm_lvl4',key1,'Bespoke',18,'left','http://marketingfile.com/execute/part1/publisherdatasetlisting.asp?pubid=58','Standard Lists',19,'left','http://www.idsmediagroup.com/shopping/order.php');
		}
		if(key1==222) {
		 level3_menu('mm_lvl4',key1,'Irish Business Lists',20,'left','http://www.idsmediagroup.com/Business_Lists/bizlists-roi.php','Irish business Lists',20,'left','http://www.idsmediagroup.com/Business_Lists/bizlists-uk.php','US Business Lists',20,'left','http://www.idsmediagroup.com/Business_Lists/bizlists-usa.php','European Business Lists',20,'left','http://www.idsmediagroup.com/Business_Lists/bizlists-europe.php','World Business Lists',20,'left','http://www.idsmediagroup.com/Business_Lists/bizlists-world.php');
		}
		if(key1==333) {
		 level3_menu('mm_lvl4',key1,'Irish Consumer Lists',20,'left','http://www.idsmediagroup.com/Consumer_Lists/conlists-ireland.php','UK Consumer Lists',20,'left','http://www.idsmediagroup.com/Consumer_Lists/conlists-uk.php','US Consumer Lists',20,'left','http://www.idsmediagroup.com/Consumer_Lists/conlists-usa.php','European Consumer Lists',20,'left','http://www.idsmediagroup.com/Consumer_Lists/conlists-europe.php','World Consumer Lists',20,'left','http://www.idsmediagroup.com/Consumer_Lists/conlists-world.php');
		}
		if(key1==444) {
		 level3_menu('mm_lvl4',key1,'Data Health Check',20,'left','http://www.idsmediagroup.com/Data_Processing/data-health-check.php','Data Enhancement and Expansion',20,'left','http://www.idsmediagroup.com/Data_Processing/data-enhancement.php','Data Audit',20,'left','http://www.idsmediagroup.com/Data_Processing/data-audit.php','',20,'left','','',20,'left','');
		}
	} 
	
	if(key2==22) {
		if(key1==111) {
	     level3_menu('mm_lvl4',key1,'',30,'left','');
		}
		if(key1==222) {
	     level3_menu('mm_lvl4',key1,'',30,'left','');
		}
		if(key1==333) {
	     level3_menu('mm_lvl4',key1,'',30,'left','');
		}
		if(key1==444) {
	     level3_menu('mm_lvl4',key1,'Download Business Case',30,'left','http://www.idsmediagroup.com/downloads/business-case.xls');
		}
		if(key1==555) {
	     level3_menu('mm_lvl4',key1,'People',14,'left','http://www.idsmediagroup.com/Market_Research/mr-people.php','Services',14,'left','http://www.idsmediagroup.com/Market_Research/mr-services.php','Research Processes',20,'left','http://www.idsmediagroup.com/Market_Research/mr-process.php','Credentials',14,'left','http://www.idsmediagroup.com/Market_Research/mr-credentials.php','Case Studies',16,'left','http://www.idsmediagroup.com/Market_Research/mr-casestudies.php','Other Services',17,'left','http://www.idsmediagroup.com/Market_Research/mr-services.php');
		}
	} 

	if(key2==33) {
		if(key1==111) {
	     level3_menu('mm_lvl4',key1,'Ireland',10,'left','http://www.linkdirectories.ie/','Northern Ireland',20,'left','http://www.linkdirectories.co.uk/');
		}
		if(key1==222) {
	     level3_menu('mm_lvl4',key1,'Ireland',10,'left','http://www.buildinglink.ie/','Northern Ireland',20,'left','http://www.buildinglinkni.com/');
		}
		if(key1==333) {
	     level3_menu('mm_lvl4',key1,'Ireland',10,'left','http://www.irishphonebooks.com/','Northern Ireland',20,'left','http://www.niphonebooks.com/');
		}
		if(key1==444) {
	     level3_menu('mm_lvl4',key1,'Ireland',10,'left','http://www.niweddingdirectory.com/','Northern Ireland',20,'left','http://www.theirishweddingdirectory.com/');
		}
		if(key1==555) {
	     level3_menu('mm_lvl4',key1,'Ireland',10,'left','new_window-http://www.gaelicmedia.net/','Northern Ireland',20,'left','http://www.linksupersavers.com/');
		}
	} 

}