// JavaScript Document

function changeFontSize(inc)
{  var p = document.getElementsByTagName('p');  
for(n=0; n<p.length; n++) 
{    if(p[n].style.fontSize) 
{       var size = parseInt(p[n].style.fontSize.replace("px", ""));    } 
else {       var size = 12;    }
p[n].style.fontSize = size+inc + 'px';   }}

function mailpage()
{
mail_str = "mailto:?subject=Thought this might interest you: " + document.title;
mail_str += "&body=Hi"
mail_str += "%0A%0AHere is a page that I thought you may find interesting on the Kevorkian Center of Near Eastern Studies at New York University.";
mail_str += "%0A%0AYou can view it at, " + location.href; 
location.href = mail_str;
}


/*SHOW-HIDE TOGGLE
	
	 - show-hide is triggered by the "toggler" class	 
	 - show-hide content defaults to open	
	 - show-hide collapsed trigger gets "toggler-closed" class
	 	 
	 */	 
	 
	var toggleSpeed = 300;
	$(".toggler").click(function(){
			$(this).toggleClass("toggler-closed").next().slideToggle(toggleSpeed);
		})
	.end();	


//Changing contrast of body font-color to #000000
                    function wsChangeColor(id, thecolor)
                    {
                        theid = document.getElementById(id);
						
                        theid.style.color= thecolor;
						
                       
                    }
                  

//Bookmarking script

function bookmarksite(title,url){
//var title=document.title;
//var url=location.href;
	
if (window.sidebar) // firefox
	window.sidebar.addPanel(title, url, "");
else if(window.opera && window.print){ // opera
	var elem = document.createElement('a');
	elem.setAttribute('href',url);
	elem.setAttribute('title',title);
	elem.setAttribute('rel','sidebar');
	elem.click();
} 
else if(document.all)// ie
	window.external.AddFavorite(url, title);
}
