var NO;
var first=true;
 var jsReady = false;
 function isReady() {
     return jsReady;
 }
 function pageInit() {
     jsReady = true;
     
 }
 function thisMovie(movieName) {
     if (navigator.appName.indexOf("Microsoft") != -1) {
         return window[movieName];
     } else {
         return document[movieName];
     }
 }
 function ie_visualizza(){
     	window.document.getElementById('news').visualizzaNews(NO); 
     	window.document.getElementById('popup_table').style.left=xstooltip_findPosX(window.document.getElementById('target'))+'px';

}
 function view_news(value) {
 	 if (navigator.appName.indexOf("Microsoft") != -1) {
 	 	NO=value; 	 	
	   	window.document.getElementById('popup_table').style.visibility='visible';
	   	window.document.getElementById('popup_bkg').style.visibility='visible';
		window.document.getElementById('popup_bkg').style.zIndex=149;
		window.document.getElementById('popup_table').style.zIndex=150;
		if(!first){
			window.document.getElementById('popup_table').style.left=xstooltip_findPosX(window.document.getElementById('target'))+'px';
			window.document.getElementById('news').visualizzaNews(value);
			window.document.getElementById('news').style.zIndex=151;
		}
		if(first){
 	 		first=false;
 	 		window.document.getElementById('popup_table').style.top=176;
 	 	}

     } else {
     	NO=value; 
	   	window.document.getElementById('news').style.visibility='visible';
	   	window.document.getElementById('popup_table').style.visibility='visible';
	   	window.document.getElementById('popup_bkg').style.visibility='visible';
		window.document.getElementById('popup_bkg').style.zIndex=149;
		window.document.getElementById('popup_table').style.zIndex=150;
		window.document.getElementById('news').style.zIndex=151;
		window.document.getElementById('popup_table').style.left=xstooltip_findPosX(window.document.getElementById('target'))+'px';
		window.document.getElementById('popup_table').style.top=175;
		window.document.getElementById('news').visualizzaNews(value);    
     }
 }
 function hideNews(value){
 	if (navigator.appName.indexOf("Microsoft") != -1) {
	 	window.document.getElementById('popup_bkg').style.zIndex=-1;
	 	window.document.getElementById('popup_bkg').style.visibility='hidden';
		window.document.getElementById('popup_table').style.zIndex=-1;
		window.document.getElementById('popup_table').style.left='-5000px';
		}
	else{
		window.document.getElementById('popup_bkg').style.zIndex=-1;
	 	window.document.getElementById('popup_bkg').style.visibility='hidden';
		window.document.getElementById('popup_table').style.zIndex=-1;
		window.document.getElementById('popup_table').style.visibility='hidden';
	}
 }
 function checkBrowser(){
     if (navigator.appName.indexOf("Microsoft") != -1) {
     }
     else {
     	//window.document.getElementById('news').isFirefox();
      }
 }
 function test(value){
     alert(value);
     return(value);
 }


