function google_ad_request_done(google_ads){
var s='';
var i;
if(google_ads.length==0){
return;
}
if(google_ads[0].type=="text"){
if(google_ads.length==1){
s+='<a href=\"'+google_info.feedback_url+'\" TARGET="_blank">Ads by Google</a><a href="'+
google_ads[0].url+'" onmouseout="window.status=\'\'" onmouseover="window.status=\'go to '+
google_ads[0].visible_url+'\';return true">'+
google_ads[0].line1+'</a><span style="font-size:14px;color:#db0a00">'+
google_ads[0].line2+'&nbsp;'+
google_ads[0].line3+'</span> <span><a style="color:#333" href="'+
google_ads[0].url+'" onmouseout="window.status=\'\'" onmouseover="window.status=\'go to '+
google_ads[0].visible_url+'\';return true">'+
google_ads[0].visible_url+'</span></a>';
}
else if(google_ads.length>1){
s+='<a href=\"'+google_info.feedback_url+'\" Target="_blank" style="color:#616161;padding:6px 0 0 1px">Ads by Google</a>';
if(mytype=='TOP')
{
s+='<div style="'
if(google_ads.length <= 3)
{
s+='line-height:16px;">';
}
else
{
s+='line-height:16px;">';
}
for(i=0; i < google_ads.length; ++i){
if(i>0)
{
s+='<div style="padding-top:11px"></div>';
}
s+='<a style="';
if(google_ads.length<=3)
{
s+='font-size:14px;';
}
else
{
s+='font-size:14px;';
}
s+='color:#0d3ea0;font-weight:700;" Target="_blank" href="'+
google_ads[i].url+'" onmouseout="window.status=\'\'" onmouseover="window.status=\'go to '+
google_ads[i].visible_url+'\';return true">' +
google_ads[i].line1+'</a>&nbsp; <span style="font-size:12px">'+
google_ads[i].line2+' '+
google_ads[i].line3+' : ';
if(google_ads.length<=3)
{
s+='</span> <span><a style="font-size:10px;';
}
else
{
s+='</span> <span><a style="font-size:10px;';
}
s+='color:#008a00;font-size:11px;" Target="_blank" href="'+
google_ads[i].url+'" onmouseout="window.status=\'\'" onmouseover="window.status=\'go to '+
google_ads[i].visible_url+'\';return true">'+
google_ads[i].visible_url+'</span></a>';
}
s+='</div>';
if(google_ads[0].bidtype=="CPC")
{
google_adnum=google_adnum+google_ads.length;
}}
else
{
s+='<div style="'
if(google_ads.length<=3)
{
s+='line-height:18px;">';
}
else
{
s+='line-height:18px;">';
}
for(i=0; i<google_ads.length; ++i) {
if(i>0)

s+='<a style="';
google_ads[i].url+'" onmouseout="window.status=\'\'" onmouseover="window.status=\'go to '+
google_ads[i].visible_url+'\';return true">'+
google_ads[i].line1+'</a>'+
google_ads[i].line2+' '+
google_ads[i].line3+' : ';
s+='<a style="color:#158f01;" href="'+
google_ads[i].url+'" onmouseout="window.status=\'\'" onmouseover="window.status=\'go to '+
google_ads[i].visible_url+'\';return true">'+
google_ads[i].visible_url+'</a></div>';
}
if(google_ads[0].bidtype=="CPC")
{
google_adnum=google_adnum+google_ads.length;
}}}}
document.write(s);
return;}
function callgoogle()
{
google_ad_client = 'pub-8525015516580200';
google_ad_output='js';
google_max_num_ads=ads_count;
google_ad_type='text';
google_feedback='on';
google_skip=google_adnum;
}

function check_advanced_search()
{var kw = document.searc.q.value;
kw = kw.replace(/^\s+|\s+$/g,"");
if (kw.length < 3)
{error_message = "Please enter atleast 3 characters for search";
alert(error_message);
document.searc.q.focus();
return false;
}return true;
}function check_advanced_search1()
{var kw = document.searc1.q.value;
kw = kw.replace(/^\s+|\s+$/g,"");
if (kw.length < 3)
{error_message = "Please enter atleast 3 characters for search";
alert(error_message);
document.searc1.q.focus();
return false;}return true;}
function productservices(d) {if(d=="proserv"){document.getElementById('proserv').style.display = "block";document.getElementById('moreproser').style.display = "none";
}}function proremove(d) { if(d=="proserv"){document.getElementById('proserv').style.display = "none";document.getElementById('moreproser').style.display = "block";}}




// following js is used to convert language

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 convertnew(pattern)
{

/// 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_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');
}
}


}

