function MM_preloadImages() {
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_openBrWindow(theURL,winName,features) {
var w = 600;
var h = 600;
var winl = (screen.width-w)/2;
var wint = (screen.height-h)/2;
if (winl < 0) winl = 0;
if (wint < 0) wint = 0;
windowprops = "height="+h+",width="+w+",top="+ wint +",left="+ winl +",location=no,"
+ "scrollbars=yes,menubars=no,toolbars=no,resizable=no,status=no";
  window.open(theURL,winName,windowprops);
}


/* Security Codes begin */

document.onselectstart=new Function("return false");
document.ondragstart=new Function("return false");

/*--------------------------------*/

function KeyPress(){
	if (event.ctrlKey) return false;
	if(event.keyCode==122){
	   event.keyCode=0;
	   return false;
	}
}

document.onkeydown = KeyPress;

/* Security Codes end */


/* Div Height and Width begin */
/*
var PHeight = '';
var NHeight = '';
var IHeight = '';
var FHTCHeight = '';
*/
function DivHeight(){ 

var SHeight = document.getElementById('sidebar').offsetHeight;
var SMHeight = document.getElementById('sidebarmenu1').offsetHeight;
var LHeight = document.getElementById('links').offsetHeight;
var CHeight = document.getElementById('content').offsetHeight;
var CSHeight = document.getElementById('contentspace').offsetHeight;


if(SHeight < CSHeight){

	if(CSHeight == CHeight)
	   NewLHeight = document.getElementById('links').style.height = CSHeight - SMHeight - 3 + "px";

	if(CSHeight < CHeight)
	   NewLHeight = document.getElementById('links').style.height = CSHeight - SMHeight + 45 + "px";	
}
/*
if(PHeight == ''){
	if(IHeight == 'contentspace_innov')
document.getElementById('contentspace_innov').style.height = CHeight + 16 + "px";
	else
document.getElementById('contentspace').style.height = CHeight + 16 + "px";
} 
else
document.getElementById('content').style.height = CHeight + "px";
}*/

/*
if(SHeight >= CHeight)
if(NHeight == '' && IHeight == '' && FHTCHeight == '' && PHeight == '')
document.getElementById('contentspace').style.height = SHeight + "px";
else*/

if(SHeight >= CSHeight){

	if(CSHeight == CHeight)
	   NewCSHeight = document.getElementById('contentspace').style.height = SHeight - 31 + "px";

	if(CSHeight < CHeight)
	   NewCSHeight = document.getElementById('contentspace').style.height = SHeight - 79 + "px";	
}
/*
if(PHeight)
document.getElementById('products').style.height = SHeight + "px";*/

//document.write('CSHeight: ' + CSHeight + '<br>' + 'CHeight: ' + CHeight);
}

onload = DivHeight;

/* Div Height and Width end */
