//all javascripts that are SITE SPECIFIC, and probably cannot be reused in other site, go in this file

var openItem=0;
var hashVal=0;

function switchOpenCat(catID,closeOld,togSign,type,animDur){
	if(animDur==null){animDur=400;}
	if(togSign==1){togSign='image';}
	//open the current category if it is not already open
	if(catID!=openItem){
		//if there is another open category, close it
		if(openItem!=0 && closeOld==1){toggleContDiv(openItem,togSign,'','','',0,animDur);}
		toggleContDiv(catID,togSign,'','','',0,animDur);
		openItem=catID;
	}else{
		//if the openItem was clicked again, simply close it and reset the openItem variable
		toggleContDiv(openItem,togSign,'','','',0,animDur);
		openItem=0;
	}
	//do perform other functions depending on type
	if(type!=null){
		switch(type){
			case 'media': /*nothing*/ break;
		}
	}
}

function openContact(recipient,recipName,subject,feedback){
	if(recipient==null){recipient='';}
	if(recipName==null){recipName='';}
	if(subject==null){subject='';}
	if(feedback==null){feedback='';}
	//if(title==null){title='Contact Us';}
	openOverlay('iframe','','/includes/contact.php?Recipient='+recipient+"&recipName="+escape(recipName)+"&Subject="+escape(subject)+"&feedback="+feedback,525,390);
}

