var Ovr2='';
if(typeof document.compatMode!='undefined'&&document.compatMode!='BackCompat'){
  sog_t1_DOCtp="_top:expression(document.documentElement.scrollTop+document.documentElement.clientHeight-this.clientHeight);_left:expression(document.documentElement.scrollLeft + document.documentElement.clientWidth - offsetWidth);}";
}
else{
  sog_t1_DOCtp="_top:expression(document.body.scrollTop+document.body.clientHeight-this.clientHeight);_left:expression(document.body.scrollLeft + document.body.clientWidth - offsetWidth);}";
}

if(typeof document.compatMode!='undefined'&&document.compatMode!='BackCompat'){
  sog_t1_DOCtp2="_top:expression(document.documentElement.scrollTop-20+document.documentElement.clientHeight-this.clientHeight);}";
}
else{
sog_t1_DOCtp2="_top:expression(document.body.scrollTop-20+document.body.clientHeight-this.clientHeight);}";
}

var sog_bgf0=(window.location.protocol.toLowerCase()=="https:")? "sahileng.gif" : "sahileng.gif";
var sog_tl_bodyCSS='* html {background:url('+sog_bgf0+') fixed;background-repeat: repeat;background-position: right bottom;}';
var sog_tl_fixedCSS='#sog_tl_fixed{position:fixed;';
var sog_tl_fixedCSS=sog_tl_fixedCSS+'_position:absolute;';
var sog_tl_fixedCSS=sog_tl_fixedCSS+'bottom:0px;';
var sog_tl_fixedCSS=sog_tl_fixedCSS+'right:0px;';
var sog_tl_fixedCSS=sog_tl_fixedCSS+'clip:rect(0 100 85 0);';
var sog_tl_fixedCSS=sog_tl_fixedCSS+sog_t1_DOCtp;
var sog_tl_popCSS='#sog_tl_pop {background-color: transparent;';
var sog_tl_popCSS=sog_tl_popCSS+'position:fixed;';
var sog_tl_popCSS=sog_tl_popCSS+'_position:absolute;';
var sog_tl_popCSS=sog_tl_popCSS+'height:194px;';
var sog_tl_popCSS=sog_tl_popCSS+'width: 244px;';
var sog_tl_popCSS=sog_tl_popCSS+'right: 120px;';
var sog_tl_popCSS=sog_tl_popCSS+'bottom: 20px;';
var sog_tl_popCSS=sog_tl_popCSS+'overflow: hidden;';
var sog_tl_popCSS=sog_tl_popCSS+'visibility: hidden;';
var sog_tl_popCSS=sog_tl_popCSS+'z-index: 100;';
var sog_tl_popCSS=sog_tl_popCSS+sog_t1_DOCtp2;

document.write('<style type="text/css">'+sog_tl_bodyCSS+sog_tl_fixedCSS+sog_tl_popCSS+'</style>');

function sog_tl_bigPopup(url){
  newwindow=window.open(url,'name');
  if(window.focus){
    newwindow.focus()
  }
  return false;
}

function sog_tl_toggleMiniPOPUP_hide(){
  var cred_id='sog_tl_pop';
  var NNtype='hidden';
  var IEtype='hidden';
  var WC3type='hidden';
  
  if(document.getElementById){
    eval("document.getElementById(cred_id).style.visibility=\""+WC3type+"\"");
  }
  else{
    if(document.layers){
      document.layers[cred_id].visibility=NNtype;
    }
    else{
      if(document.all){eval("document.all."+cred_id+".style.visibility=\""+IEtype+"\"");
    }
  }
}
}

function sog_tl_toggleMiniPOPUP_show(){
  cred_id='sog_tl_pop';
  var NNtype='show';
  var IEtype='visible';
  var WC3type='visible';
  if(document.getElementById){
    eval("document.getElementById(cred_id).style.visibility=\""+WC3type+"\"");
  }

  else{
    if(document.layers){
      document.layers[cred_id].visibility=NNtype;
    }
    else{
      if(document.all){
        eval("document.all."+cred_id+".style.visibility=\""+IEtype+"\"");
      }
    }
  }
}


function SOG(sog_tl_theLogo,sog_tl_LogoType,LogoPosition,theAffiliate){
  var sog_tl_myLocation=location.host;
  if(window.location.protocol.toLowerCase()=="http:"){
    var sog_tl_miniBaseURL='http://www.sahilonline.net/urdu/images/soeng.gif';
    var sog_tl_bigBaseURL='http://www.sahilonline.org/english/index.php';
  }
  else{
    var sog_tl_miniBaseURL='http://www.sahilonline.net/urdu/images/soeng.gif';
    var sog_tl_bigBaseURL='http://www.sahilonline.org/english/index.php';
  };
  document.write('<div id="sog_tl_pop">');
  document.write('<IFRAME src="'+sog_tl_miniBaseURL+'" WIDTH=140 HEIGHT=250 FRAMEBORDER=0 MARGINWIDTH=0 MARGINHEIGHT=0 SCROLLING=no allowtransparency=true></IFRAME>');
  document.write('</div>');
  document.write('<div id="sog_tl_fixed">');
  document.write('<a href="http://www.sahilonline.org/english/index.php" target="_blank"><img src='+sog_tl_theLogo+' alt="SahilOnline English Version" border="0" onMouseOver="Ovr=setTimeout(\'sog_tl_toggleMiniPOPUP_show()\',1000);clearTimeout(Ovr2)" onMouseOut="Ovr2=setTimeout(\'sog_tl_toggleMiniPOPUP_hide()\',3000);clearTimeout(Ovr)"</a>');
  document.write('</div>');
}

