var vis = 0;
var isIE, isOpera, isGecko, isSafari, isKonqueror;
/*Window argument*/
var myWidth = 0, myHeight = 0;

/*Function get size current window*/
function GetWHWindow()
{
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myWidth = window.innerWidth;
    myHeight = window.innerHeight;
  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    //IE 6+ in 'standards compliant mode'
    myWidth = document.documentElement.clientWidth;
    myHeight = document.documentElement.clientHeight;
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    //IE 4 compatible
    myWidth = document.body.clientWidth;
    myHeight = document.body.clientHeight;
  }
}
/**/

function getTechParam() {
    var id = window.document.getElementById("tContent");
    
    if (id.style.visibility == "visible" ) {
        id.style.visibility = "hidden";
        } else { 
            id.style.visibility = "visible";
        }
        
        return false;
}

function OpenW(url, wd, hg) {
    window.open(url,'WindowNW', "'width=" + wd + "', height=" + hg + "', toolbar=no, status=no, menubar=no, resizable=no, scrollbars=no")
}

function HideShowW(value)
{
var idWindow = document.getElementById(value);

/*call function window size*/
GetWHWindow();
/**/

	if (idWindow.style.visibility == 'hidden')
	{
		idWindow.style.visibility = 'visible';
	} else if (idWindow.style.visibility == 'visible') {
		idWindow.style.visibility = 'hidden';
	} else {
	    idWindow.style.visibility = 'visible';
	}

/*Call function browser sniffer*/
BrowserSniffer();
	
idWindow.style.height = 2700;

if ( isGecko) {
	idWindow.style.width = myWidth - 17;
	} else {
		idWindow.style.width = myWidth; 
		}

}

function BrowserSniffer() {


var ua = navigator.userAgent.toLowerCase();

	isIE = (ua.indexOf("msie") != -1 && ua.indexOf("opera") == -1);
	isOpera = (ua.indexOf("opera") != -1);
	isGecko = (ua.indexOf("gecko") != -1);
	isSafari = (ua.indexOf("safari") != -1);
	isKonqueror = (ua.indexOf("konqueror") != -1);
}


function SetPreview(objectIMG, position)
{
    var obj = document.getElementById(objectIMG);
    obj.style.left = position;
    
    return false;
}
