﻿// JScript File
var min=8;
var max=18;
function increaseFontSize() {
   var p = document.getElementsByTagName('p');
   for(i=0;i<p.length;i++) {
      if(p[i].style.fontSize) {
         var s = parseInt(p[i].style.fontSize.replace("px",""));
      } else {
         var s = 12;
      }
      if(s!=max) {
         s += 1;
      }
      p[i].style.fontSize = s+"px"
   }
}
function decreaseFontSize() {
   var p = document.getElementsByTagName('p');
   for(i=0;i<p.length;i++) {
      if(p[i].style.fontSize) {
         var s = parseInt(p[i].style.fontSize.replace("px",""));
      } else {
         var s = 12;
      }
      if(s!=min) {
         s -= 1;
      }
      p[i].style.fontSize = s+"px"
   }   
}
function AddSite()
{
	if (document.all)
	window.external.AddFavorite(location.href, document.title);
	else if (window.sidebar)
	window.sidebar.addPanel(document.title, location.href, "")
}

window.addEvent('domready', function() {	
	        var slideElementC = $('slideC');
	        var slideVarC = new Fx.Slide(slideElementC, {
		        //Fx.Slide Options
		        mode: 'vertical', //default is 'vertical'
		        //wrapper: this.element, //default is this.element        		
		        //Fx Options
		        //link: 'cancel',
		        transition: 'sine:in',
		        duration: 300, 
        		
        		
		        //Fx Events
		        onStart: function()
		        {
			        $('start').highlight("#EBCC22");
		        },

		        onCancel: function(){
			        $('cancel').highlight("#EBCC22");
		        },

		        onComplete: function(){
		            pageScroll();
			        $('complete').highlight("#EBCC22");
		        }
	        }).hide();
        	
	        $('openC').addEvent('click', function(){   
		        slideVarC.toggle();		        		         
	        });
	        
        });
        
function pageScroll()
{
    var i=0;
    for (i=0;i<260;i++)
    {
        window.scrollBy(0,3); // horizontal and vertical scroll increments
	    
    }
    
//    window.scroll(0,374); 
}


