// JavaScript Document
function changeFontSize(inc,tagx)
{  
var p = document.getElementsByTagName(tagx);

for(n=0; n<p.length; n++) 
	{    if( p[n].style.fontSize) {       
			var sizex = parseInt(p[n].style.fontSize.replace("px", ""));    
			} 
			else {       
			var sizex = 12;    
			}    
			if ( ( ( sizex < 18 ) && (sizex >12 ) ) || ( ( inc > 0 ) && ( sizex < 14 ) ) || ( ( inc < 0 ) && ( sizex > 16 ) ) ) {p[n].style.fontSize = sizex+inc + 'px';   }
			
	}	
}

function readCookie(name)
{
    var dc = document.cookie;

    var prefix = name + "=";
    var begin = dc.indexOf("; " + prefix);
    if (begin == -1)
    {
        begin = dc.indexOf(prefix);
        if (begin != 0) return null;
    }
    else
    {
        begin += 2;
    }

    var end = dc.indexOf(";", begin);
    if (end == -1)
    {
        end = dc.length;
    }

    return unescape(dc.substring(begin + prefix.length, end));
}

function changeFontSizeMain(incx)
{
changeFontSize(incx,'p');
changeFontSize(incx,'div');
changeFontSize(incx,'font');
changeFontSize(incx,'tr');
changeFontSize(incx,'a');
changeFontSize(incx,'span');
var x = readCookie('textsize')
var y = parseInt(x);
		if (x){
				if (((y<6)&&(incx==2))|| ((y>-4)&&(incx==-2))){
						y= y + incx;
						document.cookie = "textsize=" + y + ";expires=Thursday, June 28, 2007 12:58:37 AM";
						}
						
				}
		else{
				document.cookie = "textsize=" + incx + ";expires=Thursday, June 28, 2007 12:58:37 AM";	
				}
}

function loadtextsize(){
var x = readCookie('textsize')
var y = parseInt(x);
if (x) {
	changeFontSize(y,'p');
	changeFontSize(y,'div');
	changeFontSize(y,'font');
	changeFontSize(y,'tr');
	changeFontSize(y,'a');
	changeFontSize(y,'span');
}
}
	
function breadcrumbs(){
  sURL = new String;
  sURL2 = new String;
  temp = new Object;
  var expr = /_/g; 
  var x = 0;
  var stop = 0;
  var output = "<a href=\"/\">Home</a>  >  ";
  sURL = location.href;
  sURL = sURL.slice(8,sURL.length);
  pos = sURL.indexOf("/");
  sURL = sURL.slice(pos+1,sURL.length)
  while(!stop){
    	pos = sURL.indexOf("/");
		sURL2=sURL.slice(0,pos);
		pos2=sURL2.indexOf("?");
   		if ((pos != -1)&&(pos2 == -1)){
      		temp[x] = sURL.slice(0,pos)
      		sURL = sURL.slice(pos+1,sURL.length);
    		}else{
      		stop = 1;
    		}
    	x++;
  }
  for(var i in temp){
    output += "<a href=\"";
    for(y=1;y<x-i;y++){
      output += "../";
    }
    output += temp[i] + "/\">" + temp[i].replace(expr," ") + "</a>  >  ";

  }
  document.write(output + document.title);  
}

function disablecss(){
	var i,s=document.styleSheets;
	
	for (i=0;i<s.length;i++) s[i].disabled=true;
	
}