/******************** SCRIPTS.JS *************************************/
function findObj(n, d) {
		  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
			d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
		  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
		  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=findObj(n,d.layers[i].document);
		  if(!x && d.getElementById) x=d.getElementById(n); return x;
		}
		
function showHideLayers() {
		  var i,p,v,obj,args=showHideLayers.arguments;
		  for (i=0; i<(args.length-2); i+=3) if ((obj=findObj(args[i]))!=null) { v=args[i+2];
			if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
			obj.visibility=v; }
		}

function preloadImages() { 
  var d=document; if(d.images){ if(!d.p) d.p=new Array();
    var i,j=d.p.length,a=preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.p[j]=new Image; d.p[j++].src=a[i];}}
}

function swapImage() { 
  var i,j=0,x,a=swapImage.arguments; document.sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=findObj(a[i]))!=null){document.sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function selectLink(index) {
	window.location.href = index;
}

/******************** UDM-CUSTOM.JS *************************************/
// UDMv4.42 //
/***************************************************************/
var um={'menuClasses':[],'itemClasses':[],'menuCode':[]};
/***************************************************************\

  ULTIMATE DROP DOWN MENU Version 4.42 by Brothercake
  http://www.udm4.com/
  
  This script may not be used or distributed without license

\***************************************************************/


/***************************************************************\
 * CORE CONFIGURATION
\***************************************************************/


//path to images folder 
um.baseSRC = "udm-resources/";


//navbar orientation
um.orientation = [
	"horizontal",	// alignment ["vertical"|"horizontal"|"popup"|"expanding"]
	"left",		// h align ["left"|"right"]
	"top",		// v align ["top"|"bottom"]
	"relative",	// positioning ["relative"|"absolute"|"fixed"|"allfixed"]
	"0.0em",		// x position ["em"|"ex"|"px"|"0"]
	"0.0em",		// y position ["em"|"ex"|"px"|"0"]
	"1000",		// z order ["0" to "10000"] (menu takes 20000 headroom)
	];
	

//navbar list output
um.list = [
	"flexible",	// horizontal overflow ["rigid"|"flexible"]
	"yes",		// -SPARE-
	"no", 		// -SPARE-
	];


//menu behaviors	
um.behaviors = [
	"100",		// open timer ["milliseconds"|"0"]
	"400",		// close timer ["milliseconds"|"never"|"0"]
	"yes",		// reposition menus to stay inside the viewport ["yes"|"no"]
	"default",	// manage windowed controls for win/ie ["default","hide","iframe","none"]
	];


//reset behaviors
um.reset = [
	"yes",		// reset from document mouse click ["yes"|"no"]
	"yes",		// reset from window resize ["yes"|"no"]
	"yes",		// reset from text resize ["yes"|"no"]
	"no",		// reset after following link ["yes"|"no"]
	];


//horizontal continuation strip
um.hstrip = [
	"none",		// background ["color"|"#hex"|"rgb()"|"image.gif"|"none"]
	"yes",		// copy navbar item margin-right to margin-bottom ["yes"|"no"]
	];
	
	
/***************************************************************\
 * MODULE SETTING
\***************************************************************/


//keyboard navigation [comment out or remove if not using]
um.keys = [
	"38",		// up ["n"] ("38" = up arrow key)
	"39",		// right ["n"] ("39" = right arrow key)
	"40",		// down ["n"] ("40" = down arrow key)
	"37",		// left ["n"] ("37" = left arrow key)
	"123",		// hotkey ["n"] ("38" = F12]
	"none",		// hotkey modifier ["none"|"shiftKey"|"ctrlKey"|"altKey"|"metaKey"]
	"27",		// escape ["n"|"none"] ("27" = escape key)
	"document.getElementsByTagName('a')[0]", // exit focus ["js-expression"]
	];


/***************************************************************\
 * NAVBAR DEFAULT STYLES
\***************************************************************/


//styles which apply to the navbar
um.navbar = [
	"0",		// nav -> menu x-offset (+-)["n" pixels]
	"0",		// nav -> menu y-offset (+-)["n" pixels]
	"7.5em",	// width ["em"|"ex"|"px"] (vertical navbar only - horizontal navbar items have "auto" width) ("%" doesn't work right) 
	];


//styles which apply to each navbar item
um.items = [
	"0",		// margin between items ["n" pixels]
	"1",		// border size ["n" pixels] (single value only)
	"collapse",	// border collapse ["collapse"|"separate"] (only applies when margin = "0")
	"#FFFFFF #FFFFFF #FFFFFF #FFFFFF",// border colors ["color"|"#hex"|"rgb()"] (single, double or four values)
	"solid",	// border styles ["solid"|"double"|"dotted"|"dashed"|"groove"|"ridge"|"inset"|"outset"] (single, double or four values; be careful with using "none")
	"#FFFFFF #FFFFFF #FFFFFF #FFFFFF",// hover/focus border colors ["color"|"#hex"|"rgb()"] (single, double or four values)
	"solid",	// hover/focus border styles ["solid"|"double"|"dotted"|"dashed"|"groove"|"ridge"|"inset"|"outset"] (single, double or four values; be careful with using "none")
	"#FFFFFF #FFFFFF #FFFFFF #eFFFFFF",// visited border colors ["color"|"#hex"|"rgb()"] (single, double or four values)
	"solid",// visited border styles ["solid"|"double"|"dotted"|"dashed"|"groove"|"ridge"|"inset"|"outset"] (single, double or four values; be careful with using "none")
	"5",		// left/right padding ["n" pixels] (single value only)
	"5",		// top/bottom padding ["n" pixels] (single value only)
	"#009999",		// background ["color"|"#hex"|"rgb()"|"image.gif"]
	"#C3EBEB",		// hover/focus background ["color"|"#hex"|"rgb()"|"image.gif"]
	"#009999",		// visited background ["color"|"#hex"|"rgb()"|"image.gif"]
	"70%",		// font size ["em"|"ex"|"%"|"px"|"pt"|"absolute-size"|"relative-size"]
	"arial,tahoma,sans-serif",// font family ["font1,font2,font3"] (always end with a generic family name)
	"bold",		// font weight ["normal"|"bold"|"bolder"|"lighter|"100" to "900"]
	"none",		// text decoration ["none"|"underline"|"overline"|"line-through"]
	"left",		// text-align ["left"|"right"|"center"]
	"#FFFFFF",	// color ["color"|"#hex"|"rgb()"]
	"#009999",	// hover/focus color ["color"|"#hex"|"rgb()"]
	"#FFFFFF",	// visited color ["color"|"#hex"|"rgb()"]
	"normal",	// font-style ["normal"|"italic"|"oblique"]
	"normal",	// hover/focus font-style ["normal"|"italic"|"oblique"]
	"normal",	// visited font-style ["normal"|"italic"|"oblique"]
	"letter-spacing:1px !important;",// additional link CSS (careful!)
	"",		// additional hover/focus CSS (careful!)
	"",		// additional visited CSS (careful!)
	"none",// menu indicator character/image ["text"|"image.gif"|"none"] 
	"none",// menu indicator rollover character/image ["text"|"image.gif"|"none"] (must be same type)
	"7",		// clipping width of indicator image ["n" pixels] (only when using image arrows)
	"..",		// alt text of indicator image ["text"] (only when using image arrows)
	];


/***************************************************************\
 * MENU DEFAULT STYLES
\***************************************************************/


//styles which apply to each menu
um.menus = [
	"0",		// menu -> menu x-offset (+-)["n" pixels]
	"0",		// menu -> menu y-offset (+-)["n" pixels]
	"0",		// border size ["n" pixels] (single value only) 
	"#FFFFFF #FFFFFF #FFFFFF #FFFFFF",// border colors ["color"|"#hex"|"rgb()"] (single, double or four values)
	"solid",	// border styles ["solid"|"double"|"dotted"|"dashed"|"groove"|"ridge"|"inset"|"outset"] (single, double or four values; be careful with using "none")
	"9.8em",	// width ["em"|"ex"|"px"]
	"0",		// padding ["n" pixels] (single value only) 
	"#C3EBEB",	// background ["color"|"#hex"|"rgb()"|"image.gif"]
	"",		// additional menu CSS (careful!) (you can use a transition here but *not* a static filter)
	"none",// shadow background ["color"|"#hex"|"rgb()"|"image.gif"|"none"]
	"0px",		// shadow offset (+-) ["em"|"px"|"pt"|"%"|"0"]
	"filter:progid:DXImageTransform.Microsoft.Shadow(color=#bbddbb,direction=135,strength=2);",// additional shadow layer CSS (if you use a Microsoft.Shadow filter here then Win/IE5.5+ will do that *instead* of default shadow)
	];


//styles which apply to each menu item
um.menuItems = [
	"0",		// margin around items ["n" pixels] (single value only; margins are like table cellspacing)
	"1",		// border size ["n" pixels] (single value only)
	"separate",	// border collapse ["collapse"|"separate"] (only applies when margin = "0")
	"#FFFFFF",	// border colors ["color"|"#hex"|"rgb()"] (single, double or four values)
	"solid",	// border styles ["solid"|"double"|"dotted"|"dashed"|"groove"|"ridge"|"inset"|"outset"] (single, double or four values; be careful with using "none")
	"#FFFFFF",		// hover/focus border colors ["color"|"#hex"|"rgb()"] (single, double or four values)
	"solid",	// hover/focus border styles ["solid"|"double"|"dotted"|"dashed"|"groove"|"ridge"|"inset"|"outset"] (single, double or four values; be careful with using "none")
	"#FFFFFF",	// visited border colors ["color"|"#hex"|"rgb()"] (single, double or four values)
	"solid",	// visited border styles ["solid"|"double"|"dotted"|"dashed"|"groove"|"ridge"|"inset"|"outset"] (single, double or four values; be careful with using "none")
	"5",		// left/right padding ["n" pixels] (single value only) 
	"2",		// top/bottom padding ["n" pixels] (single value only) 
	"#C3EBEB",	// background ["color"|"#hex"|"rgb()"|"image.gif"]
	"#009999",	// hover/focus background ["color"|"#hex"|"rgb()"|"image.gif"]
	"transparent",	// visited background ["color"|"#hex"|"rgb()"|"image.gif"]
	"70%",		// font size ["em"|"ex"|"%"|"px"|"pt"|"absolute-size"|"relative-size"]
	"arial,tahoma,sans-serif",// font family ["font1,font2,font3"] (always end with a generic family name)
	"normal",	// font weight ["normal"|"bold"|"bolder"|"lighter|"100" to "900"]
	"none",		// text decoration ["none"|"underline"|"overline"|"line-through"]
	"left",		// text-align ["left"|"right"|"center"]
	"#009999",		// color ["color"|"#hex"|"rgb()"]
	"#FFFFFF",		// hover/focus color ["color"|"#hex"|"rgb()"]
	"#009999",		// visited color ["color"|"#hex"|"rgb()"]
	"normal",	// font-style ["normal"|"italic"|"oblique"]
	"normal",	// hover/focus font-style ["normal"|"italic"|"oblique"]
	"normal",	// visited font-style ["normal"|"italic"|"oblique"]
	"",		// additional link CSS (careful!)
	"",		// additional hover/focus CSS (careful!)
	"",		// additional visited CSS (careful!)
	"none",// submenu indicator character/image ["text"|"image.gif"|"none"] 
	"none",// submenu indicator rollover character/image ["text"|"image.gif"|"none"] (must be the same type)
	"3",		// clipping width of indicator image ["n" pixels] (only when using image arrows)
	"..",		// alt text of indicator image ["text"] (only when using image arrows)
	];


/***************************************************************\
 * MENU CLASSES [comment out or remove if not using]
\***************************************************************/


//classes which apply to menus [optional]
um.menuClasses["orangeMenu"] = [
	"#FFFFFF #FFFFFF #FFFFFF #FFFFFF",// border colors ["color"|"#hex"|"rgb()"]
	"solid",	// border styles ["solid"|"double"|"dotted"|"dashed"|"groove"|"ridge"|"inset"|"outset"] (single, double or four values; be careful with using "none")
	"8em",		// width ["em"|"ex"|"px"]
	"#C3EBEB",		// background ["color"|"#hex"|"rgb()"|"image.gif"]
	"",		// additional menu CSS (careful!) (you can use a transition here but *not* a static filter)
	"none",// shadow background ["color"|"#hex"|"rgb()"|"image.gif"|"none"] 
	"0px",		// shadow offset (+-) ["em"|"px"|"pt"|"%"|"0"]
	"filter:progid:DXImageTransform.Microsoft.Shadow(color=#ddbbaa,direction=135,strength=2);", // additional shadow layer CSS (if you use a Microsoft.Shadow filter here then Win/IE5.5+ will do that *instead* of default shadow)
	];


//classes which apply to menu items [optional]
um.itemClasses["orangeMenuItem"] = [
	"#FFFFFF",		// border colors ["color"|"#hex"|"rgb()"] (single, double or four values)
	"solid",	// border styles ["solid"|"double"|"dotted"|"dashed"|"groove"|"ridge"|"inset"|"outset"] (single, double or four values; be careful with using "none")
	"#FFFFFF",	// hover/focus border colors ["color"|"#hex"|"rgb()"] (single, double or four values)
	"solid",	// hover/focus border styles ["solid"|"double"|"dotted"|"dashed"|"groove"|"ridge"|"inset"|"outset"] (single, double or four values; be careful with using "none")
	"#FFFFFF",		// visited border colors ["color"|"#hex"|"rgb()"] (single, double or four values)
	"solid",	// visited border styles ["solid"|"double"|"dotted"|"dashed"|"groove"|"ridge"|"inset"|"outset"] (single, double or four values; be careful with using "none")
	"#C3EBEB",		// background ["color"|"#hex"|"rgb()"|"image.gif"]
	"#009999",	// hover/focus background ["color"|"#hex"|"rgb()"|"image.gif"]
	"#C3EBEB",		// visited background ["color"|"#hex"|"rgb()"|"image.gif"]
	"70%",		// font size ["em"|"ex"|"%"|"px"|"pt"|"absolute-size"|"relative-size"]
	"arial,tahoma,sans-serif",// font family ["font1,font2,font3"] (always end with a generic family name)
	"normal",	// font weight ["normal"|"bold"|"bolder"|"lighter|"100" to "900"]
	"none",		// text decoration ["none"|"underline"|"overline"|"line-through"]
	"left",		// text-align ["left"|"right"|"center"]
	"#009999",	// color ["color"|"#hex"|"rgb()"]
	"#FFFFFF",	// hover/focus color ["color"|"#hex"|"rgb()"]
	"#009999",	// visited color ["color"|"#hex"|"rgb()"]
	"normal",	// font-style ["normal"|"italic"|"oblique"]
	"normal",	// hover/focus font-style ["normal"|"italic"|"oblique"]
	"normal",	// visited font-style ["normal"|"italic"|"oblique"]
	"",		// additional link CSS (careful!)
	"",		// additional hover/focus CSS (careful!)
	"",		// additional visited CSS (careful!)
	"none",// submenu indicator character/image ["text"|"image.gif"|"none"] (must be the same type as default submenu indicator)
	"none",// submenu indicator rollover character/image ["text"|"image.gif"|"none"] (must be the same type)
	"..",		// alt text of indicator image  ["text"] (only when using image arrow)
	];

// UDMv4.42 //
/***************************************************************\

  ULTIMATE DROP DOWN MENU Version 4.42 by Brothercake
  http://www.udm4.com/

  This script may not be used or distributed without license

\***************************************************************/
var umTree=null;um.ready=0;um.pi=function(n){n=parseInt(n,10);return (isNaN(n)?0:n);};um.un='undefined';um.m=document;um.gd=function(umD){return um.m.getElementById(umD);};um.xd=function(umD){umD.style.display='block';};um.xn=function(umD){umD.style.display='none';};um.xv=function(umD){umD.style.visibility='visible';};um.xh=function(umD){umD.style.visibility='hidden';};um.ne=function(umD){return umD.parentNode.className=='udm';};if(typeof um.reset==um.un){um.reset=['yes','yes','yes'];}if(typeof um.hstrip==um.un){um.hstrip=['none','yes'];}if(typeof um.reset[3]==um.un){um.reset[3]='no';}um.cx=['orientation','list','behaviors','navbar','items','menus','menuItems','menuClasses','itemClasses'];um.ei=0;um.e=[];um.v=[];um.w=[];um.vl=0;um.wl=0;um.ek=0;um.im=[];um.pcv=function(umE){if(umE&&/^[+\-]?[0-9]+$/.test(umE)){umE=um.pi(umE);if((um.ei==10||um.ei==11)&&umE<1){umE=1;}}if(umE&&/\.(gif|png|mng|jpg|jpeg|jpe|bmp)/i.test(umE)){um.im[um.ek]=new Image;um.im[um.ek++].src=um.baseSRC+umE;}return umE;};um.d=(typeof um.m.getElementById!=um.un&&(typeof um.m.createElement!=um.un||typeof um.m.createElementNS!=um.un));um.u=navigator.userAgent.toLowerCase();um.o5=/opera[\/ ][56]/.test(um.u);um.k=(navigator.vendor=='KDE');if(um.o5){um.d=0;}um.b=(um.d||um.o5);um.o7=(um.d&&typeof window.opera!=um.un);um.o75=0;um.o73=0;um.o71=0;if(um.o7){um.ova=um.pi(um.u.split(/opera[\/ ]/)[1].match(/[7-9]/)[0]);um.ovi=um.pi(um.u.split(/opera[\/ ][7-9]\./)[1].match(/^[0-9]/)[0]);um.o75=(um.ova>=8||um.ovi>=5);um.o73=(um.ova>=8||um.ovi>=3);um.o71=(um.ova==7&&um.ovi<=1);}um.s=(navigator.vendor=='Apple Computer, Inc.');um.s2=(um.s&&typeof XMLHttpRequest!=um.un);um.wie=(um.d&&typeof um.m.all!=um.un&&typeof window.opera==um.un&&!um.k);um.mie=(um.wie&&um.u.indexOf('mac')>0);um.mx=(um.u.indexOf('tasman 0.9')>0);if(um.mx){um.mie=1;}um.omie=0;if(um.mie){um.wie=0;um.iev=um.u;um.iev=um.iev.split('msie ');um.iev[1]=um.iev[1].split(';');um.iev=parseFloat(um.iev[1][0],10);um.omie=(um.iev<5.2);}um.ie=(um.wie||um.mie);um.wie5=(um.wie&&um.u.indexOf('msie 5')>0);um.wie55=(um.wie&&um.u.indexOf('msie 5.5')>0);um.wie50=(um.wie5&&!um.wie55);um.wie6=(um.wie&&um.u.indexOf('msie 6')>0);if(um.wie6){um.wie55=1;}um.q=(um.wie5||(um.mie&&!um.mx)||((um.mx||um.wie6||um.o7)&&um.m.compatMode!='CSS1Compat'));um.og=0;um.dg=0;if(navigator.product=='Gecko'&&!um.s){um.sub=um.pi(navigator.productSub);um.og=(um.sub<20030312);um.dg=(um.sub<20030208);}if(um.b){var i=0;do{if(um.cx[i].indexOf('Classes')<0){um.cxl=um[um.cx[i]].length;var j=0;do{if(typeof um[um.cx[i]][j]!=um.un){um.pv=um.pcv(um[um.cx[i]][j]);um.e[um.ei]=um.pv;um.ei++;}j++;}while(j<um.cxl);}else{for(j in um[um.cx[i]]){if(typeof um[um.cx[i]][j]!='function'){um.cxl=um[um.cx[i]][j].length;var k=0;do{if(typeof um[um.cx[i]][j][k]!=um.un){um.pcv(um[um.cx[i]][j][k]);}k++;}while(k<um.cxl);if(um.cx[i]=='menuClasses'){um.v[j]=um[um.cx[i]][j];um.vl++;}else{um.w[j]=um[um.cx[i]][j];um.wl++;}}}}i++;}while(i<9);um.kb=(typeof um.keys!=um.un&&!(um.mie||um.o7||um.k||(um.s&&!um.s2)));um.skb=(um.kb||(typeof um.keys!=um.un&&((um.o7&&!um.o71)||um.k)));um.sp=(typeof um.speech!=um.un&&um.wie);if(typeof um.speech!=um.un){um.e[12]='no';um.e[0]='vertical';}um.rp=(um.e[3]=='relative');if(um.mx||(um.wie50&&um.rp)){um.e[12]='no';}um.dir='left';if(um.e[1]=='rtl'){um.dir='right';um.e[1]='right';}um.e[13]=(um.e[13]=='yes')?'default':(um.e[13]=='no')?'iframe':um.e[13];um.hz=(um.wie50&&um.e[13]=='default')||(um.wie&&um.e[13]=='hide');um.h=um.e[0]=='horizontal';i=4;do{if(parseFloat(um.e[i],10)<0){um.e[i]='0';}i++}while(i<6);if(um.h&&um.dir=='right'){um.e[4]='-'+um.e[4];}um.p=um.e[0]=='popup';if(um.p){um.va=['left','top','absolute','-2000px','-2000px'];i=0;do{um.e[i+1]=um.va[i];i++}while(i<5);um.e[14]=0;um.e[15]=0;}um.ep=0;if(um.e[0]=='expanding'){um.ep=1;um.e[0]='vertical';}um.a=(um.e[1]=='right');um.rg=(um.h&&um.e[7]=='rigid'&&um.dir!='right');um.fe=false;if(um.e[3]=='allfixed'){um.e[3]='fixed';if(um.wie){um.fe=true;}}um.f=(um.e[3]=='fixed'&&!(um.ie||um.og));um.nc=(um.e[17]==0&&um.e[19]=='collapse');um.mc=(um.e[61]==0&&um.e[63]=='collapse');um.nm=((um.og&&um.rp)||(um.omie&&um.
h)||((um.dg||um.wie50)&&um.dir=='right'));um.nr=(um.nm||um.mie);um.ns=(um.dg||um.o71||(um.wie50&&um.rp)||(um.o7&&um.f)||um.mie);um.cns=(typeof um.m.createElementNS!=um.un);um.ss=(um.cns&&typeof um.m.styleSheets!=um.un&&!(um.s||um.k||um.mx));if(um.kb){i=0;do{um.keys[i]=um.pi(um.keys[i]);i++}while(i<5);if(um.keys[6]!='none'){um.keys[6]=um.pi(um.keys[6]);}else{um.keys[6]=-1;}}um.ni=/(gif|png|mng|jpg|jpeg|jpe|bmp)/i.test(um.e[45]);um.mi=/(gif|png|mng|jpg|jpeg|jpe|bmp)/i.test(um.e[89]);}um.rn=0;um.rv=[];um.addReceiver=function(umFC,umEC){um.rv[um.rn++]=[umFC,umEC];};um.gp=function(umRI){return (um.vn(umRI.nodeName).toLowerCase()=='li')?umRI:this.gp(umRI.parentNode);};um.createElement=function(umE,umA){um.el=(um.cns)?um.m.createElementNS('http://www.w3.org/1999/xhtml',umE):um.m.createElement(umE);if(typeof umA!=um.un){for(var i in umA){switch(i){case 'text' :um.el.appendChild(um.m.createTextNode(umA[i]));break;case 'class' : um.el.className=umA[i];break;default : um.el.setAttribute(i,'');um.el[i]=umA[i];break;}}}return um.el;};
