// MAKE FLASH

function makeFlash( src, id, width, height ) {
 var flashData =
	"<object style='width:" + width + "px; height:" + height + "px;' id='" + id + "' type='application/x-shockwave-flash' data='" + src + "' wmode='transparent'>\n" +
	"<param name='movie' value='" + src + "' />\n" +
	"<param name='wmode' value='transparent' />\n" +
	"</object>\n"
 ;
 document.write( flashData );
 return true;
}

// EXTERNAL LINKS

function externalLinks() { 
 if (!document.getElementsByTagName) return; 
 var anchors = document.getElementsByTagName("a"); 
 for (var i=0; i<anchors.length; i++) { 
   var anchor = anchors[i]; 
   if (anchor.getAttribute("href") && 
       anchor.getAttribute("rel") == "external") 
     anchor.target = "_blank"; 
 } 
}

// ANTI-SPAM
// Works: IE4+, NS6+, Opera

function antispam(name,domain) {
  document.location = "mailto:" + name + "@" + domain;
}

// HIGHLIGHT DIVS
// Works: IE4+, NS6+, Opera

function highLight(thisId,thisNum) {
    if (thisNum == 1) {
        ofVal = "#2f2f2f";
        onVal = "#434343";
    } else if (thisNum == 2) {
        ofVal = "transparent";
        onVal = "#1c1c1c";
    } else if (thisNum == 3) {
        ofVal = "#FFFFFF";
        onVal = "#EEEDE1";
    } else if (thisNum == 4) {
        ofVal = "#DFDFD2";
        onVal = "#CACAB4";
    } else if (thisNum == 5) {
        ofVal = "#EAEAE2";
        onVal = "#CACAB4";
    } else if (thisNum == 6) {
        ofVal = "transparent";
        onVal = "#DBDBCA";
    }
    thisId.style.background = onVal;
	thisId.onmouseout = function() {
	thisId.style.background = ofVal;
	}
}

//POP-UP WINDOW

function pop_up(filename)
	{
	/* initialize variables*/
	var file = filename

	/* determine browser */
	var bName = navigator.appName;
	var bVer = parseFloat(navigator.appVersion);
	
	if (bName == "Netscape") NewWindow = window.open(file, "same","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizeable=0,copyhistory=0,width=492,height=454").focus();
	else NewWindow = window.open(file, "same","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizeable=0,copyhistory=0,width=492,height=450").focus();
	}
	
	
// Nav Slider

$(document).ready(function () {
    $('a.menu_class').hover(function () {
	$('ul.the_menu').slideDown('fast');
    });
});

$(document).ready(function () {
    $('a.menu_class').click(function () {
	$('ul.the_menu').slideToggle('fast');
    });
});