/*Font Resize CODE*/
function getCookie(name){
  var cname = name + "=";
  var dc = document.cookie;
  if (dc.length > 0) {
    begin = dc.indexOf(cname);
    if (begin != -1) {
      begin += cname.length;
      end = dc.indexOf(";", begin);
      if (end == -1) end = dc.length;
        return unescape(dc.substring(begin, end));
    }
  }
  return null;
}



var firstCall = true;
var flag = 5;

function changeFontsize(fSize, increment) {
if(increment=='1')flag = flag + 1;
if(increment=='-1')flag = flag - 1;

if(flag<=7 && flag>=2)
{
  if (firstCall) {
    firstCall = false;
    if (increment != "")
      changeFontsize('12', '');
  }
  if (document.getElementsByTagName) {
        var eachElement, currentFontSize, fontIncrease, newFontSize;
        eachElement = document.getElementById("txt-inner"); 
		if(eachElement==null)eachElement = document.getElementById("data");
		
        if (increment != "") {
			
         		
				if(flag==3)newFontSize = 10;
				if(flag==4)newFontSize = 11;
				if(flag==5)newFontSize = 12;
				if(flag==6)newFontSize = 13;
				if(flag==7)newFontSize = 14;
		  		
		 	 if(eachElement.style!=null)eachElement.style.fontSize = newFontSize + "px";
          }
		  
		  
         var eachElement1, currentFontSize1, fontIncrease1, newFontSize1;
        
        for (i=0; i<eachElement.childNodes.length; i++) {
         eachElement1 = eachElement.childNodes[i]; 
         if(eachElement1!=null)
         { 
				
				if(flag==3)newFontSize1 = 10;
				if(flag==4)newFontSize1 = 11;
				if(flag==5)newFontSize1 = 12;
				if(flag==6)newFontSize1 = 13;
				if(flag==7)newFontSize1 = 14;
					 
				if(eachElement1.style!=null)eachElement1.style.fontSize = newFontSize1 + "px";
				
				////////////////
					 var eachElement2, currentFontSize2, fontIncrease2, newFontSize2;
					for (j=0; j<eachElement1.childNodes.length; j++) {
         			eachElement2 = eachElement1.childNodes[j]; 
        		 	if(eachElement2!=null)
        		 	{ 
						if(flag==3)newFontSize2 = 10;
						if(flag==4)newFontSize2 = 11;
						if(flag==5)newFontSize2 = 12;
						if(flag==6)newFontSize2 = 13;
						if(flag==7)newFontSize2 = 14;
					 
						if(eachElement2.style!=null)eachElement2.style.fontSize = newFontSize2 + "px";
					 }
					}
				/////////////////
		 }
		} 
	

   }
  }
  
  if(flag>=8)flag=7;
  if(flag<=2)flag=3;
}

/*Bookmark CODE*/
function MeBook()
{
var MyURL = document.URL;
var MyTitle=document.title;
//alert(MyURL);
bookmarksite(MyTitle, MyURL);
}

function bookmarksite(title,MyURL)
{
if (window.sidebar) // firefox
	window.sidebar.addPanel(title, MyURL, "");
else if(window.opera && window.print)
{ // opera
	var elem = document.createElement('a');
	elem.setAttribute('href',MyURL);
	elem.setAttribute('title',title);
	elem.setAttribute('rel','sidebar');
	elem.click();
} 
else if(document.all)// ie
	window.external.AddFavorite(MyURL, title);
}

/*Print CODE*/
function Toprint() {
window.print();
}

/*Mail this Page CODE*/
function MailPage()
{
mail_str = "mailto:?subject=Check out the " + document.title;
mail_str += "&body=I thought you might be interested in the " + document.title;
mail_str += ". You can view it at, " + location.href; 
location.href = mail_str;
}