// JavaScript Document
// Google Analytics - overdrive web site

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-6146473-3']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();



// height aize - overdrive web site

function changeHeight(id){
var obj=document.all && document.all(id)
|| document.getElementById && document.getElementById(id);
if(obj){
clientSize=getWindowClientSize();
obj.style.height=""+(clientSize.height)+"px";
}
}

function getWindowClientSize(){
var result={"width":0,"height":0};
if(window.self&&self.innerWidth){
result.width=self.innerWidth;
result.height=self.innerHeight;
}else if(document.documentElement && document.documentElement.clientHeight){
result.width=document.documentElement.clientWidth;
result.height=document.documentElement.clientHeight;
}else{
result.width=document.body.clientWidth;
result.height=document.body.clientHeight;
}
return result;
}


// image ON or OFF - overdrive web site

$(function(){
	$('img').hover(function(){
        $(this).attr('src', $(this).attr('src').replace('_off', '_on'));
		}, function(){
        	if (!$(this).hasClass('currentPage')) {
        	$(this).attr('src', $(this).attr('src').replace('_on', '_off'));
        }
   });
});


// link blank - overdrive web site

$(function(){
     $("a[href^='http://']").attr("target","_blank");
});
$(function(){
     $("a[href^='https://']").attr("target","_blank");
});


