﻿

if (document.images) {
		
		var btn_livedemo_on = new Image(104,32);
  btn_livedemo_on.src = "images/btn_livedemo_on.gif";
  var btn_livedemo_off = new Image(104,32);
  btn_livedemo_off.src = "images/btn_livedemo_off.gif"; 		

}

function act(imgName) {
  if (document.images) 
    document.images[imgName].src = eval(imgName + "on.src");
}



function inact(imgName) {
  if (document.images)
    document.images[imgName].src = eval(imgName + "off.src");
}


Menu = {timer : null, current : null};
Menu.getStyle = function(name){
	if(document.getElementById) return document.getElementById(name).style;
	else if(document.all) return document.all[name].style;
	else if(document.layers) return document.layers[name];
}
Menu.show = function(name){
	if(this.timer) clearTimeout(this.timer);
	this.getStyle(name).visibility = "visible";
	this.current = name;
}
Menu.hide = function(){
	this.timer = setTimeout("Menu.doHide()",100);
}
Menu.doHide = function(){
	if(this.current){
		this.getStyle(this.current).visibility = "hidden";
		this.current = null;
	}
}


// OPEN NEW WINDOW FUNCTION

function openWindow(url, name, w, h) {
 var windowprops = "width=" + w + ",height=" + h + ",scrollbars=no,noresize,left=0,top=0,toolbar=no,location=no";
  popup = window.open(url,name,windowprops);
  }
		
	
// OPEN NEW WINDOW FUNCTION (with scrollbars)

function openWindowWithScroll(url, name, w, h) {
 var windowprops = "width=" + w + ",height=" + h + ",scrollbars=yes,allowresize=yes,left=0,top=0,toolbar=yes,location=yes";
  popup = window.open(url,name,windowprops);
  }

// OPEN NEW WINDOW FUNCTION (with scrollbars but no toolbar/menubar etc)

function bareWindowWithScroll(url, name, w, h, title) 
{
   var windowprops = "width=" + w + ",height=" + h + ",scrollbars=yes,left=100,top=100,toolbar=no,location=no,resizable=yes";
   popup = window.open(url,name,windowprops);
}


// -->


function openAdWin(url){
    var winpops=window.open(url,"","width=473,height=500,scrollbars")
}
