function get_browser(){
	var browserName=navigator.appName; 
	return browserName;
}
var bla = get_browser();

function openpop(file,where,top,left,width,height){
	window.open(file,"xxxxxxxxxx","toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, title=no, width="+width+", height="+height+", top="+top+", left="+left);
}

window.onload=function(){
	var cont = document.getElementById('container');
	var client_h =  document.body.clientHeight;
	if(bla=="Microsoft Internet Explorer")
	client_h -= 176;
	else
	client_h -= 166;
	var right = document.getElementById('right').offsetHeight;
	if (client_h > right)	cont.style.height = client_h   + "px";
	if (client_h < right)	cont.style.height = right   + "px";
}

/*
function ScrollDiv(){
   clearInterval(iInterval1);
   obj = document.getElementById('offers_');
   if ((obj.scrollHeight-obj.offsetHeight)<=10) {
    iContinue = 0;
    return;
   }//end_if
   if (iContinue!=1) {
  	iInterval1 = setInterval('ScrollDiv()',iSpeed1);
	  return;
   }//end_if

   if(obj!=null && (obj.scrollTop+iScroll1)<(obj.scrollHeight-obj.offsetHeight)){
      myEffect = $('offers_list').effect('opacity'); myEffect.set(0);
      obj.scrollTop=obj.scrollTop+iScroll1;
      myEffect = $('offers_list').effect('opacity', {duration:iSpeed1_effect, transition: Fx.Transitions.linear}); myEffect.start(0,1);
//      myEffect = $('offers_list').scrollTo(0, obj.scrollTop+iScroll1, {duration:iSpeed1_effect});
   } else if(document.getElementById('offers_')!=null) {
      myEffect = $('offers_list').effect('opacity'); myEffect.set(0);
   	  obj.scrollTop=0;
      myEffect = $('offers_list').effect('opacity', {duration:iSpeed1_effect, transition: Fx.Transitions.linear}); myEffect.start(0,1);
   }//end_if
   
   iInterval1 = setInterval('ScrollDiv()',iSpeed1);
}

var iContinue = 1;
var iSpeed1 = 5500;
var iSpeed1_effect = 1500;
var iScroll1 = 75;
var iInterval1 = setInterval('ScrollDiv()',iSpeed1);
*/

function ScrollDiv(){
   obj = document.getElementById('offers');

   if(obj!=null && obj.scrollTop<(obj.scrollHeight-obj.offsetHeight)){
      obj.scrollTop=obj.scrollTop+1;
   } else if(obj!=null) {
      obj.scrollTop=0;
   }//end_if
}

setInterval('ScrollDiv()',50);

function ScrollDiv2(){
   obj = document.getElementById('news');

   if(obj!=null && obj.scrollTop<(obj.scrollHeight-obj.offsetHeight)){
      obj.scrollTop=obj.scrollTop+1;
   } else if(obj!=null) {
      obj.scrollTop=0;
   }//end_if
}

setInterval('ScrollDiv2()',50);











