//<!--

browserName = navigator.appName;
browserName1 = navigator.userAgent;
browserVer = parseInt(navigator.appVersion);
condition = !(( (browserName.indexOf("Explorer") >=0 ) && (browserVer < 4) ) ||  ((browserName.indexOf("Netscape") >=0 ) && (browserVer < 2) ) ||  ((browserName1.indexOf("Firefox")!=-1 )) ) ;

if (condition == true  )
    CanAnimate = true;
else
    CanAnimate = false;

function translator(pattern)
{
/////////////////////////////////////////////////////////////
// Script to use language convertor
// By Saradhi
/////////////////////////////////////////////////////////////

	/// Configuration parameters //////////////
	var open_in_same_window = 1;
	//////////// End Of Configuration /////////////

	var my_location = unescape(document.location.toString());
	var new_location ='';
	var new_pattern = '';
	if (my_location.indexOf('translate_c?') != -1) {
		/// From google...
		var indexof_u = my_location.indexOf('u=');
		if (indexof_u == -1) {
			new_location = document.location;
		}
		else {
			var subs = my_location.substring(indexof_u, my_location.length);
			var ss = subs.split('&');
			new_location = ss[0].substring(2, ss[0].length);
		}
	}
	else {
		new_location = document.location;
	}

	indexof_p = pattern.indexOf('|');

	var isen = '';
	if (indexof_p == -1) {
		indexof_p1 = pattern.indexOf('><');
		if (indexof_p1 == -1) {
			new_pattern = pattern;
			if (pattern == 'en') {
				isen = 1;
			}
		}
		else {
			var psplit =pattern.split('><');
			new_pattern = psplit[0]+'|'+psplit[1];
			if (psplit[1] == 'en') {
				isen = 1;
			}
		}
	}
	else {
		var psplit = pattern.split('|');
		new_pattern = psplit[0]+'|'+psplit[1];
		if (psplit[1] == 'en') {
			isen = 1;
		}
	}

	var thisurl = '';
	if (isen == 1) {
		thisurl = new_location;
	}
	else {
		thisurl = 'http://translate.google.com/translate_c?langpair=' + new_pattern + "&u=" + new_location;
	}

	if (open_in_same_window == 1) {
		window.location.href = thisurl;
	}
	else {
		if (CanAnimate ){
			msgWindow=window.open('' ,'subwindow','toolbar=yes,location=yes,directories=yes,status=yes,scrollbars=yes,menubar=yes,resizable=yes,left=0,top=0');
			msgWindow.focus();
			msgWindow.location.href = thisurl;
		}
		else {
			msgWindow=window.open(thisurl,'subwindow','toolbar=yes,location=yes,directories=yes,status=yes,scrollbars=yes,menubar=yes,resizable=yes,left=0,top=0');
		}
	}
}
// -->


if(document.all)
wd = screen.width;
else
wd=window.innerWidth;

if(wd >= 1280)
{
document.write('<LINK REL="stylesheet" HREF="/width1280.css" TYPE="text/css">');
}

//btm-pan start js//
function footerbox()
{
	if( typeof( window.innerWidth ) == 'number' ) {
		myWidth = window.innerWidth;
		myHeight = window.innerHeight;
	} else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
		myWidth = document.documentElement.clientWidth;
		myHeight = document.documentElement.clientHeight;
	} else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
		myWidth = document.body.clientWidth;
		myHeight = document.body.clientHeight;
	}
myHeight = myHeight-53;
document.getElementById('topbar_new').style.display="block";
document.getElementById('topbar_new').style.top=myHeight+'px';

if(navigator.appName == 'Microsoft Internet Explorer' && navigator.appVersion.match(/ [\d.]+/) == 6.0)
{
scrolltop=window.pageYOffset || document.body.scrollTop || document.documentElement.scrollTop;

fromtop= scrolltop+myHeight;
document.getElementById('topbar_new').style.position="absolute";
document.getElementById('topbar_new').style.top=fromtop+'px';
document.getElementById('topbar_new').style.left='0px';
}
}
function addEvent( obj, type, fn ){ 
   if (obj.addEventListener){ 
	  obj.addEventListener( type, fn, false );
   }
   else if (obj.attachEvent){ 
	  obj["e"+type+fn] = fn; 
	  obj[type+fn] = function(){ obj["e"+type+fn]( window.event ); } 
	  obj.attachEvent( "on"+type, obj[type+fn] ); 
   } 
}
addEvent(window, 'load', footerbox);
if(navigator.appName == 'Microsoft Internet Explorer' && navigator.appVersion.match(/ [\d.]+/) == 6.0)
{
addEvent(window, 'scroll', footerbox);
}
function closebar_new()
{
document.getElementById('topbar_new').style.display="none";
}
//btm-pan end js//

