//Specify affected tags. Add or remove from list:
//var tgs = new Array( 'div', 'a', 'span' );
var tgs = new Array( 'div', 'span');
var tgs1 = new Array( 'a');

//Specify spectrum of different font sizes:
var szs = new Array( '10px' ,'12px','14px','15px','17px' );
var hgt = new Array( '18px' ,'18px','20px','22px','24px' );

var startSz = 1;

function ts( trgt,inc ) {
	if (!document.getElementById) return
	var d = document,cEl = null,sz = startSz,i,j,cTags;
	
	sz += inc;
	if ( sz < 0 ) sz = 0;
	if ( sz > 4 ) sz = 4;
	startSz = sz;
		
	if ( !( cEl = d.getElementById( trgt ) ) ) cEl = d.getElementsByTagName( trgt )[ 0 ];

	cEl.style.fontSize = szs[ sz ];

	for ( i = 0 ; i < tgs.length ; i++ ) {
		cTags = cEl.getElementsByTagName( tgs[ i ] );
		for ( j = 0 ; j < cTags.length ; j++ ){
			if(cTags[ j ].id == "body_content" || cTags[ j ].id == "index_news1" || cTags[ j ].id == "index_news2"){
				cTags[ j ].style.fontSize = szs[ sz ];
				cTags[ j ].style.lineHeight = hgt[ sz ];
				
				/*for ( k = 0 ; k < tgs1.length ; k++ ) {
					alert();
					cTags1 = cEl.getElementsByTagName( tgs1[ k ] );
					
					cTags1[ k ].style.fontSize = szs[ sz ];
				}*/

			}
		}
	}
}


document.write('<style type="text/css">#bottom_2{display:inline;position:relative;padding-top:15px;}</style>');

var strOS, strBrowser, strTemp;
   
  strOS = "other";
  strBrowser = "other";  
 
  strTemp = navigator.appVersion.toLowerCase();
 
  if (strTemp.indexOf("mac") > 0)
   strOS = "mac";

  if (strTemp.indexOf("safari") > 0)
   strBrowser = "safari";
  
   
if ((strOS.toLowerCase() == "mac") && (strBrowser.toLowerCase() == "safari")){
document.write ('<style type="text/css">#bottom_1{float:left;width:35px;display:inline;position:relative;}#bottom_2{float:left;display:inline;position:relative;padding-top:15px;} </style>');
  }
