﻿var strCurrObj = '';

function showDivWeatherDay(strObjDiv,strObjBigDiv){
    strCurrObj = strObjDiv;
    document.getElementById(strObjDiv).style.display = "block";
    document.getElementById(strObjBigDiv).style.display = "none"
}

function getSelectItem(selectItem,WeatherContain){
    if(selectItem != "0")
        showDivWeatherDay(selectItem,WeatherContain);
}

function returnMainWeather(strObjDiv){
   // document.getElementById(strObjDiv).style.display="block";
    var obj = document.getElementById(strObjDiv);
    obj.style.display = "block";
    document.getElementById(strCurrObj).style.display="none";
}

function overWeather(objRef){
    objRef.style.cursor ="pointer";
}

/*
    av = ArticleViewerId
    aid = ArticleId
*/
function popUpPrintWindow(av,aid){
    var url  = "/Publications/ArticleModule/ArticleViewers/SingleArticleViewerPrint.aspx?av=" + av + "&aid=" + aid;
    windowPrint = window.open(url,"winPrint","height=600,width=770,toolbar=1,scrollbars=1,resizable=1");
    x = (screen.width /2) - 385;
    y = (screen.height /2) - 300;
    windowPrint.moveTo(x,y);
}

/*
    av = ArticleViewerId
    aid = ArticleId
*/
var count = 0;
function popUpEmailWindow(av,aid){
    
        var url = "/Publications/ArticleModule/ArticleViewers/SingleArticleViewerEmail.aspx?av=" + av + "&aid=" + aid;
        var windowEmail = window.open(url,"winEmail","height=350,width=440,toolbar=0,scrollbars=0,resizable=1");
        x = (screen.width /2) - 220;
        y = (screen.height /2) - 175;
        windowEmail.moveTo(x,y);
}



function hiddenDivSendEmailProperty(refString){
  var obj = document.getElementById(refString);
  obj.style.display = 'none';
}

/* not used yet */
function resizeWindow(){
    window.resizeTo(screen.width,screen.height);
    window.moveTo(0,0);
}

function clean(obj){
    obj.value = "";
}




    var objMenuTD1 = null;
	var objMenuTD2 = null;
	
	var ObjInnerTabMenu2Div = null;
	var ObjInnerTabMenu1Div = null;
	
	var objContentTab1 = null; 
	var objContentTab2 = null;
	
	function changeTab1(){
	    
	    objMenuTD1 = document.getElementById('tabMenu1Td');
	    objMenuTD2 = document.getElementById('tabMenu2Td');
	    ObjInnerTabMenu2Div = document.getElementById('innerTabMenu2Div');
	    ObjInnerTabMenu1Div = document.getElementById('innerTabMenu1Div');
	    
		objContentTab1 = document.getElementById('tabMenu1');
		objContentTab2 = document.getElementById('tabMenu2');
		
		objMenuTD2.style.borderBottom = '1px solid #C5C5C5';
		objMenuTD2.style.paddingBottom = '0px';
		
		
		ObjInnerTabMenu1Div.style.borderBottom = '0px';
		ObjInnerTabMenu1Div.style.height = '21px';
		objMenuTD1.style.borderBottom = '0px';
		objMenuTD1.style.paddingBottom = '1px';
		
		ObjInnerTabMenu2Div.style.borderBottom = '1px solid #C5C5C5';
		ObjInnerTabMenu2Div.style.height = '19px';
		
		
		objContentTab2.style.display = "none";
		objContentTab1.style.display = "block";
		
	}
	
	function changeTab2(){
	    objMenuTD1 = document.getElementById('tabMenu1Td');
	    objMenuTD2 = document.getElementById('tabMenu2Td');
	    ObjInnerTabMenu2Div = document.getElementById('innerTabMenu2Div');
	    ObjInnerTabMenu1Div = document.getElementById('innerTabMenu1Div');
	    
		objMenuTD1.style.borderBottom = '1px solid #C5C5C5';
		objMenuTD1.style.paddingBottom = '0px';
		
		objContentTab2 = document.getElementById('tabMenu2');
		objContentTab1 = document.getElementById('tabMenu1');
		
		ObjInnerTabMenu2Div.style.borderBottom = '0px';
		ObjInnerTabMenu2Div.style.height = '21px';
		objMenuTD2.style.borderBottom = '0px';
		objMenuTD2.style.paddingBottom = '1px';
		
		ObjInnerTabMenu1Div.style.borderBottom = '1px solid #C5C5C5';
		ObjInnerTabMenu1Div.style.height = '19px';
		
		objContentTab1.style.display = "none";	
	    objContentTab2.style.display = "block";
	   
	
	}
	
	function hiddenTabVideo(strObj,mod){
	    if(document.getElementById(strObj)){
		    document.getElementById(strObj).style.display = "none";
		}
	}
	
	function openDiv() {  
	    document.getElementById('pdfDiv').style.display = "block";
	    document.getElementById('bodyDiv1').style.display = "block";
	    document.getElementById('bodyDiv1').style.opacity = '50';
	    document.getElementById('bodyDiv1').style.filter = "alpha(opacity=50)";
	    document.getElementById('bodyDiv1').style.MozOpacity = (50 / 100);
	}

	function showPdfDiv() {
	    document.getElementById('pdfDiv').style.display = "none";
	    document.getElementById('bodyDiv1').style.display = "none";
	}


