// JavaScript Document
function addEvent(obj, evType, fn, useCapture) {

	if (obj.addEventListener) {
		obj.addEventListener(evType,fn,useCapture);
		return true;
	} else if(obj.attachEvent){
		return obj.attachEvent("on"+evType,fn);
	} else {
		return false;
	}
}
if(document.getElementById("click_0") != null ){
 addEvent(document.getElementById("click_0"), 'click', function (){document.location='contact.php'});
}
addEvent(document.getElementById("click_1"), 'click', function (){document.location='index.html'});
addEvent(document.getElementById("click_2"), 'click', function (){document.location='cegunkrol.html'});
addEvent(document.getElementById("click_3"), 'click', function (){document.location='elerhetosegunk.php'});
addEvent(document.getElementById("click_4"), 'click', function (){document.location='contact.php'});
addEvent(document.getElementById("click_6"), 'click', function (){document.location='cegunkrol.html'});
addEvent(document.getElementById("click_7"), 'click', function (){document.location='elerhetosegunk.php'})
addEvent(document.getElementById("click_8"), 'click', function (){document.location='contact.php'});

if(document.getElementById("click_10") != null ){
  addEvent(document.getElementById("click_10"), 'click', function (){document.location='contact.php?seller_id=1'});
  addEvent(document.getElementById("click_11"), 'click', function (){document.location='contact.php?seller_id=2'});
  addEvent(document.getElementById("click_12"), 'click', function (){document.location='contact.php?seller_id=3'});
  addEvent(document.getElementById("click_13"), 'click', function (){document.location='contact.php?seller_id=4'});
  addEvent(document.getElementById("click_14"), 'click', function (){document.location='contact.php?seller_id=5'});
}

var sfEls = document.getElementById("top-menu").getElementsByTagName("span");
        for (var i=0; i<sfEls.length; i++) {
          sfEls[i].onmouseover=function() {
            this.style.color='#333333';
            this.style.textDecoration='underline';         
          }
          sfEls[i].onmouseout=function() {
            this.style.color='#FFFFFF';
            this.style.textDecoration='none'; 
          }
}
var sfEls = document.getElementById("top-menu").getElementsByTagName("A");
        for (var i=0; i<sfEls.length; i++) {
          sfEls[i].onmouseover=function() {
            this.style.color='#333333';
            this.style.textDecoration='underline';         
          }
          sfEls[i].onmouseout=function() {
            this.style.color='#FFFFFF';
            this.style.textDecoration='none'; 
          }
}
var sfEls = document.getElementById("left-menubar").getElementsByTagName("A");
        for (var i=0; i<sfEls.length; i++) {
          sfEls[i].onmouseover=function() {
            this.style.color='#333333';       
          }
          sfEls[i].onmouseout=function() {
            this.style.color='#FFFFFF';
          }
}
var sfEls = document.getElementById("more-elements").getElementsByTagName("span");
        for (var i=0; i<sfEls.length; i++) {
          sfEls[i].onmouseover=function() {
            this.style.color='#628F0E';
             this.style.textDecoration='underline';        
          }
          sfEls[i].onmouseout=function() {
            this.style.color='#333333';
            this.style.textDecoration='none'; 
          }
}

if(document.getElementById("right-container") != null ){
  /*
  var sfEls = document.getElementById("workers_table").getElementsByTagName("span");
          for (var i=0; i<sfEls.length; i++) {
            sfEls[i].onmouseover=function() {
              this.style.color='#333333';
               this.style.textDecoration='none';        
            }
            sfEls[i].onmouseout=function() {
              this.style.color='#FFFFFF';
              this.style.textDecoration='none'; 
            }
  }
  var sfEls = document.getElementById("right-content").getElementsByTagName("A");
          for (var i=0; i<sfEls.length; i++) {
            sfEls[i].onmouseover=function() {
              this.style.color='#333333';       
            }
            sfEls[i].onmouseout=function() {
              this.style.color='#FFFFFF';
            }
  }*/
  var sfEls = document.getElementById("right-number").getElementsByTagName("span");
          for (var i=0; i<sfEls.length; i++) {
            sfEls[i].onmouseover=function() {
              this.style.color='#333333';       
            }
            sfEls[i].onmouseout=function() {
              this.style.color='#FFFFFF';
            }
  }
}
var sfEls = document.getElementById("more-elements").getElementsByTagName("A");
        for (var i=0; i<sfEls.length; i++) {
          sfEls[i].onmouseover=function() {
            this.style.color='#628F0E';
             this.style.textDecoration='underline';        
          }
          sfEls[i].onmouseout=function() {
            this.style.color='#333333';
            this.style.textDecoration='none'; 
          }
}
document.getElementById("search-button").onmouseover=function(){
            this.style.backgroundImage="url('images/keres_over.jpg')";
}

document.getElementById("search-button").onmouseout=function(){
            this.style.backgroundImage="url('images/keres.jpg')";
}

if(document.getElementById("submit-button") != null ){
  document.getElementById("submit-button").onmouseover=function(){
              this.style.backgroundImage="url('images/mehet_n_over.jpg')";
  }
  
  document.getElementById("submit-button").onmouseout=function(){
              this.style.backgroundImage="url('images/mehet_n.jpg')";
  }
}

document.getElementById("content_main").style.minHeight = screen.height-430;
var browser=navigator.appName;
var b_version=navigator.appVersion;
var version=parseFloat(b_version);
if (browser=="Microsoft Internet Explorer" && (version<7))
{
    document.getElementById("content_main").style.height += screen.height-384;
}

