<!--

function addBookmark(title,url) {

	if (window.sidebar) {
		window.sidebar.addPanel("Automotive Components & Parts", url,"");
		//return false;
	}
	else if( document.all ) {
		window.external.AddFavorite( url, "Automotive Components & Parts");
		//return false;
	}
	else if(navigator.appName == 'Netscape') {
		alert('Press (CTRL-D) to bookmark this page.');
		//return false;
	}
	return false;
}


function addBookmark_old(title,url) {
	if (window.sidebar) { 
		window.sidebar.addPanel("Automotive Components & Parts", url,"");
	}
	else if( document.all ) {
		window.external.AddFavorite( url, "Automotive Components & Parts");
	}
	else if( window.opera && window.print ) {
		return true;
	}
}




function convertnew_old(ln)
{
var loc = document.location.toString();
loc = loc.substring(7,loc.length);

var newname = window.open('http://translate.google.com/translate_c?langpair=' + ln + "&u=" + document.location,"new_trans");
newname.focus();
return false;

/*
if (document.trans1.langpair.selectedIndex != 0)
{
var newname = window.open('http://translate.google.com/translate_c?langpair=' + document.trans1.langpair.value + "&u=" + document.location,"new_trans");
newname.focus();
return false;
}
else{
	alert('Kindly select a language.');
	document.trans1.langpair.focus();
return false;
}*/

}

function convertnew(pattern)
{

/////////////////////////////////////////////////////////////
// Script to use language convertor
// By Saradhi
/////////////////////////////////////////////////////////////

	/// Configuration parameters //////////////
	var open_in_same_window = 0;
	//////////// 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_p?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');
		}
	}
}

browserName = navigator.appName;
browserVer = parseInt(navigator.appVersion);
condition = !(( (browserName.indexOf("Explorer") >=0 ) && (browserVer < 4) ) ||  ((browserName.indexOf("Netscape") >=0 ) && (browserVer < 2) ) ) ;
if (condition == true  )
    CanAnimate = true;
else
    CanAnimate = false;

function openchild(thisurl){
if ( CanAnimate ){
        msgWindow=window.open( '' ,'subwindow','toolbar=no,location=no,directories=no,status=yes,scrollbars=yes,menubar=no,resizable=yes,width=635,height=230,left=0,top=0');
        msgWindow.focus();
        msgWindow.location.href = thisurl;
}
else {
        msgWindow=window.open( thisurl,'subwindow','toolbar=no,location=no,directories=no,status=yes,scrollbars=yes,menubar=no,resizable=yes,width=635,height=360,left=0,top=0');
}
}


function openchildts(thisurl){

if ( CanAnimate ){

        var windowHeight;
        var windowWidth;
        var windowTop;
        var windowLeft;
        windowHeight=(screen.height*(80/100))*0.85;
        windowWidth=screen.width*(70/100);
        windowTop=(screen.height*(20/100))*0.8;
        windowLeft=screen.width*(28.5/100);

        msgWindow=window.open( '' ,'subwindow','toolbar=no,location=no,directories=no,status=yes,scrollbars=yes,menubar=no,resizable=yes,top='+windowTop+',left='+windowLeft+',width='+windowWidth+',height='+windowHeight);
        msgWindow.focus();
        msgWindow.location.href = thisurl;
}
else {
        msgWindow=window.open( thisurl,'subwindow','toolbar=no,location=no,directories=no,status=yes,scrollbars=yes,menubar=no,resizable=yes,width=510,height=420');
}

}
 function popupTmplAll(url) {
            windowTop=(screen.top);
            windowLeft=screen.width-640;
            var ChangeTemplate=window.open(url,'ChangeTemplate','toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=yes,copyhistory=no,width=620,height=400,top='+windowTop+',left='+windowLeft);
            ChangeTemplate.focus();
 }
function popupEnquiry(url) {
            windowTop=(screen.top);
            windowLeft=screen.width-640;
            var Enquiry = window.open(url,'Enquiry','toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=yes,copyhistory=no,width=430,height=275,top='+windowTop+',left='+windowLeft);
            Enquiry.focus();
      }


//-->
