$(document).ready(function(){

		/*$('#row2bloc dd a').hover(function(){
			$(this).animate({letterSpacing:'+=2px'}, 100);

		}, function(){
			$(this).animate({letterSpacing:'-=2px'}, 100);
		});*/

		if (!$('body').hasClass('entered')){//i.e not inside members area
			$('#row2 *,#row3bloc').hide();
			$('#row3').css({height: '0px', marginBottom:'-150px'});
			$('#row4').css({paddingBottom: '150px'});
			$('#leftcontent, #content').css({top:'150px'});

			$('#row2 *').delay(400).fadeIn(200, function(){
				$('#row3').delay(200).animate({height : '150px'}, 1000, 'easeOutBounce', function(){
					$('#row3bloc').fadeIn(800);
				});
			});
		}
			


});


if (top.location != self.location) {top.location = self.location}

function newWindow(){ 
if (!document.getElementsByTagName) return false;
	
	var theTitle; var theLength; 
	var mainContent = document.getElementById("content");
	var theLinks = mainContent.getElementsByTagName("a");

	for (var i=0; i < theLinks.length; i++){

		if (theLinks[i].className === "blank"){
			theTitle = theLinks[i].title
			theLength = theTitle.length;
			
				if(theTitle !== ""){
					if (theTitle.charAt(theLength-1) === "."){
						theTitle = theTitle.substring(0, theLength-1); //remove "."
						}
					theTitle = theTitle.replace(/\s+$/,'') + " - "	//remove r wht space
				}

			theLinks[i].title = theTitle + "Opens in a new window.";
			theLinks[i].target="_blank";
		}
	}
}


document.write ("<style>#searchbox {color: #fff}</style>");
function hidetxt(txtbox) {txtbox.style.color='#000';}
function button_over(butt) {butt.style.backgroundColor='#ccc';}
function button_off(butt) {butt.style.backgroundColor='#ede9d8';}

//creates tooltips for ABBR tags in IE
function styleAbbr() {
	var oldBodyText, newBodyText, reg
	if (document.all) {
	oldBodyText = document.body.innerHTML;
	reg = /<ABBR([^>]*)>([^<]*)<\/ABBR>/g;
	newBodyText = oldBodyText.replace(reg, '<abbr $1><span class=\"abbr\" $1>$2</span></abbr>');
	document.body.innerHTML = newBodyText;
	}
}
window.onload = function(){ //other onloads go in here...
	newWindow();
	if (document.all) {styleAbbr()}//tooltips on abbr for old ie
}; 

var sc_project=1654082; 
var sc_invisible=1; 
var sc_partition=15; 
var sc_security="1fa4be3b"; 
var sc_remove_link=1; 

function createHttpRequest() {
    if (window.ActiveXObject) {
		var aVersions = ["MSXML2.XMLHttp.5.0", "MSXML2.XMLHttp.4.0", "MSXML2.XMLHttp.3.0", "MSXML2.XMLHttp", "Microsoft.XMLHttp"];
		
		for (var i = 0; 1 < aVersions.length; i++) {
			try { 
				xmlHttp = new ActiveXObject(aVersions[i]);
				return xmlHttp;
			} 
			catch (oError) {//do zilch 
			}
		}
		throw new Error("Sorry - Your browser does not have MSXML installed.\n This is required for this page.");

    } 
    else if (window.XMLHttpRequest) {
        xmlHttp = new XMLHttpRequest();
    }
}


//-- form val ...
function checksearch1(searchform1) {
if ((searchform1.search1.value=="")||(searchform1.search1.value=="Search")) {
alert("Please enter one or more keywords to search")
searchform1.search1.focus()
return false
}
return true
}
function checksearch2(searchform2) {
if ((searchform2.search2.value=="")||(searchform2.search2.value=="Enter search criteria here")) {
alert("Please enter your search criteria")
searchform2.search2.focus()
return false
}
return true
}

function validemail(email) {
invalidChars = " /:,;"
if (email == "") {
return true
}
for (i=0; i<invalidChars.length; i++) {
badChar = invalidChars.charAt(i)
if (email.indexOf(badChar,0) > -1) {
return false
}
}
atPos = email.indexOf("@",1)
if (atPos == -1) {
return false
}
if (email.indexOf("@",atPos+1) > -1) {
return false
}
periodPos = email.indexOf(".",atPos)
if (periodPos == -1) {
return false
}
if (periodPos+3 > email.length){
return false
}
return true
}

function submitit(passform) {
if ((passform.name1.value=="")||(passform.name1.value=="Enter your name")) {
alert("Please enter your name")
passform.name1.focus()
return false
}
if ( ((passform.tel.value=="")||(passform.tel.value=="Enter telephone number")) && ((passform.email.value=="")||(passform.email.value=="Enter e-mail address")) ){
alert(("Please enter either your telephone number or email address"))
passform.tel.focus()
return false
}
if ((passform.email.value!="")&&(passform.email.value!="Enter e-mail address")) {
if (!validemail(passform.email.value)) {
alert("The e-mail address is invalid")
passform.email.focus()
passform.email.select()
return false
}
}
if ((passform.msg.value=="")||(passform.msg.value=="Enter your message")) {
alert(("Please enter a message"))
passform.msg.focus()
return false
}
return true
}

function submitpassword(passwordform){
if (passwordform.password.value=="") {
alert(("Please enter the password"))
passwordform.password.focus()
return false
}
return true
}

function submitname(membername){
if (membername.memberID.value=="") {
alert(("Please select your name"))
membername.memberID.focus()
return false
}
return true
}
/*
function refresh(seconds,times){
if(!self.name.match(/(refreshed_)(\d+)/gi) || RegExp.$2 < times){ 
setTimeout('self.location.reload(true)',seconds*1000);
self.name = 'refreshed_'+(RegExp.$2/1+1); 
} 
} 
window.onLoad="refresh(5,1)"
*/