/*
  ------------------------------------
  PVII Menu CSS Express Drop-Down Menu
  by Project Seven Development
  www.projectseven.com
  ------------------------------------
*/
function P7_ExpMenu(){ //v1.1.0.2 by PVII - www.projectseven.com
 preloadMM();
 safariMenu();
 if(navigator.appVersion.indexOf("MSIE")==-1){return;}
 var i,k,g,lg,r=/\s*menuhvr/,nn='',c,cs='menuhvr',bv='mainmenu';
 for(i=0;i<10;i++){g=document.getElementById(bv+nn);if(g){
 lg=g.getElementsByTagName("LI");if(lg){for(k=0;k<lg.length;k++){
 lg[k].onmouseover=function(){c=this.className;cl=(c)?c+' '+cs:cs;
 this.className=cl;};lg[k].onmouseout=function(){c=this.className;
 this.className=(c)?c.replace(r,''):'';};}}}nn=i+1;}
}

function preloadMM(){
	pic1= new Image;pic1.src="/css/images/navbgO.gif";
	pic2= new Image;pic2.src="/css/images/nav_dropbg.gif";
	pic3= new Image;pic3.src="/css/images/nav_dropbgO.gif";
}

function safariMenu(){
	if (navigator.userAgent.toLowerCase().indexOf("safari")==-1){return;}
	var g,lg,k,bv='mainmenu';
	g=document.getElementById('mainmenu');if (g){
	lg=g.getElementsByTagName("A");if(lg){for(k=0;k<lg.length;k++) {
	lg[k].title = "";}}}
}

function gliderInit(){
featuredcontentglider.init({
	gliderid: "glidingcontent", //ID of main glider container
	contentclass: "glidecontent", //Shared CSS class name of each glider content
	togglerid: "p-select", //ID of toggler container
	remotecontent: "", //Get gliding contents from external file on server? "filename" or "" to disable
	selected: 0, //Default selected content index (0=1st)
	persiststate: false, //Remember last content shown within browser session (true/false)?
	speed: 500, //Glide animation duration (in milliseconds)
	direction: "updown", //set direction of glide: "updown", "downup", "leftright", or "rightleft"
	autorotate: true, //Auto rotate contents (true/false)?
	autorotateconfig: [5000, 5] //if auto rotate enabled, set [milliseconds_btw_rotations, cycles_before_stopping]
})
}
