document.write("<link rel='stylesheet' type='text/css' href='/msie_eng.css'>"); 

var xx, ie4, nn6, docall="document.getElementById('" , style_type='msie.css' , docsty="').style" ;
 var meteg=0 ; var current=0 ; var last=0 ; var timer=0 ;
 var nodes_num=0 ; var meteg_stat ; var arrow_o=new Image ; arrow_o.src="/images_n/arrow3_o.gif" ;
 var max_menu_items=8 ; // number of items in top bar
 
if (document.all)  ie4=true 
else  if (document.getElementById) { nn6=true ; style_type='msie.css' } ;

// ii subject, jj sub-menu
function load(ii,jj,kk) {
 // check for sub menu
 if  (arguments.length >= 2) {
objleft=eval(docall + "s" + ii + "_"+ jj + "')" ) ; 
objleft.style.fontWeight=700 ;
objleft.style.color="1C4E61" ;}
//objt2=eval(docall + "t2" + "')" ) ;  objt3=eval(docall + "t3" + "')" ) ;
//xx=objt2.offsetLeft + objt3.offsetLeft ;
xx=positionL("t3"); 
for (j=1 ; j <= 7 ; j++ ) {
 var objdiv=eval(docall + "layer" + j + docsty ) ;
 var objmenu=eval(docall + "a" + j +  "')" ) ;
 objdiv.left=xx + objmenu.offsetLeft ; }
 
 if  (arguments.length == 3)  {
objleft.previousSibling.src=arrow_o.src ;
 objleft.name="open" ; 
 objleft.nextSibling.style.display="block"  ; // shows articles in category
 var objul=objleft.nextSibling.firstChild.firstChild ;
 var loop=objul.childNodes.length ; // number of <li>
 for (j=0 ; j < loop ; j++ ) {
if ( page_name(objul.childNodes[j].firstChild.href) == page_name(window.location.href) )
//objul.childNodes[j].firstChild.style.color="#ff3b0e" ; 
objul.childNodes[j].firstChild.style.fontWeight=700 ;
 }}

}
	
	function page_name(str) {
 //var url=window.location.href + "" ; 
 if (str.indexOf('http://')==0) return(str) ;
 var exp1=/([\w\/]+)\/(\w+)\/(\S*)/ ; // extract content after last slash
 var result1=str.match(exp1) ; // result1[3]=file
 return result1[3].toString() ;
 }
	
function switch1(i) {
clearTimeout(timer) ;
// closes prior layer if different

 if ((current!=0) && (current!=i))  hide2() ;

var objimg=eval(docall + "imga" + i + "')") ;
objimg.src="/images_n/verti3_w.gif" ;
var obj=eval(docall + "a" + i +  docsty) ;
obj.backgroundImage="url('/images_n/back_orange_new.gif')" ;
var objdiv=eval(docall + "layer" + i + docsty ) ;
objdiv.visibility ="visible" ;
current=i ; 


//set title of last a link in table and set focus on first item
var objtab=eval(docall + "tbody_layer"  + i + "')" );
objtab.firstChild.firstChild.firstChild.nextSibling.focus() ;
objtab.lastChild.previousSibling.firstChild.lastChild.setAttribute("title","last" ) ; 


//end temp
}



function hide1() {
	timer=setTimeout ("hide2()", 1500);
	}
	
	function hide2() {
var objimg=eval(docall + "imga" + current + "')") ;
objimg.src="/images_n/verti3_w.gif" ; 
var obj=eval(docall + "a" + current +  docsty) ;
obj.backgroundImage="url('/images_n/back_grey.gif')" ;
eval(docall + 'layer' + current + docsty + ".visibility='hidden'") ; 
 	}
	
function onsubmenu(obj) {
clearTimeout(timer);
//obj.parentNode.style.backgroundColor="#B7E38F"
}

function outsubmenu(obj) {

//obj.parentNode.style.backgroundColor="#D3E6C2"
hide1() ;
}

function outsubmenu1(obj) {
if (obj.title=="last") {
if (current+1==max_menu_items) hide2()
else  switch1(current+1) }

}


function positionT(id) {
    var offsetTrail = document.getElementById(id);
    var offsetTop = 0;
    while (offsetTrail) {
    offsetTop=offsetTop + offsetTrail.offsetTop; 
    offsetTrail = offsetTrail.offsetParent; }
	return offsetTop
	}
	
	function positionL(id) {
    var offsetTrail = document.getElementById(id);
    var offsetLeft = 0;
    while (offsetTrail) {
    offsetLeft=offsetLeft + offsetTrail.offsetLeft; 
    offsetTrail = offsetTrail.offsetParent; }
	return offsetLeft
	}
	
	function onlist() {}
	function outlist() {}
	
	function stat (obj) {
	if (obj.name=="open"){
obj.name="closed" // stay in same page
obj.nextSibling.style.display="none"  ; // shows articles in category
meteg_stat=false ; } 
else meteg_stat=true ;
 }
 
function videoLink() {
var img = '<img border="0" src="images_n/isocVideo.gif" width="149" height="57" alt="Watch all panels and speakers">';
if (navigator.userAgent.indexOf("Firefox") != -1) { 
	document.write("<p><a style='border:0' href='/conf2007/videos/main_ff.html'>Watch our videos to sample what was conference 2007.</a>");	
	//document.write("<p><a style='border:0' href='/conf2007/videos/main_ff.html'>" + img + "</a></p>"); 
	} else {
	document.write("<p><a style='border:0' href='/conf2007/videos/main.html'>Watch our videos to sample what was conference 2007.");	
	//document.write("<p><a style='border:0' href='/conf2007/videos/main.html'>" + img + "</a>");
	}
}
// enable links on Iframes
origURL = parent.document.URL
anchorname = origURL.substring(origURL.indexOf('?')+1, origURL.length)
