
function pop(title, width, height, filename)
{
	thefile=filename;
	var w = 480, h = 340;

	if (document.all || document.layers) {
	w = screen.availWidth;
	h = screen.availHeight;
	}

	var leftPos = (w-width)/2, topPos = (h-height)/2;
	
	popbox=window.open(thefile,title,"toolbar=no,scrollbars=no,resizable=no,directories=no,menubar=no,width="+width+",height="+height+",top=" + topPos + ",left=" + leftPos);
	if(popbox !=null)
	{
		if (popbox.opener==null)
		{
			popbox.opener=self;
		}
	}
}

function pop_mit(title, width, height, filename)
{
	thefile=filename;
	var w = 480, h = 340;

	if (document.all || document.layers) {
		w = screen.availWidth;
		h = screen.availHeight;
	}

	var leftPos = (w-width)/2, topPos = (h-height)/2;
	
	popbox=window.open(thefile,title,"toolbar=no,scrollbars=yes,resizable=yes,directories=no,status=yes,menubar=no,width="+width+",height="+height+",top=" + topPos + ",left=" + leftPos);
	if(popbox !=null)
	{
		if (popbox.opener==null)
		{
			popbox.opener=self;
		}
	}
}

function pop_mit_drucken(title, width, height, filename)
{
	thefile=filename;
	var w = 480, h = 340;

	if (document.all || document.layers) {
		w = screen.availWidth;
		h = screen.availHeight;
	}

	var leftPos = (w-width)/2, topPos = (h-height)/2;
	
	popbox=window.open(thefile,title,"toolbar=yes,scrollbars=yes,resizable=yes,directories=no,status=yes,menubar=no,width="+width+",height="+height+",top=" + topPos + ",left=" + leftPos);
	if(popbox !=null)
	{
		if (popbox.opener==null)
		{
			popbox.opener=self;
		}
	}
}


var glMsov = null;
jQuery(document).ready(function () {
    jQuery("#shadow").css("height", jQuery(document).height()).hide();
    jQuery("#shadow").css("width", jQuery(document).width())
//    jQuery("#gratistgl").click(function () {
//        gratisf();
//    });
    jQuery("#gratistgl").mouseover(function () {
		if (jQuery("#gratistgl").hasClass("a")) {
			//glMsov = setTimeout("gratisf();", 800);
        }
    });
    jQuery("#gratistgl").mouseout(function () {
        if (glMsov != null) clearTimeout(glMsov);
    });
});

function gratisfove() {
    if (jQuery("#gratistgl").hasClass("a")) {
        glMsov = setTimeout("gratisf();", 800);
    }
}
function gratisf() {
    if (glMsov != null) clearTimeout(glMsov);
    jQuery("#shadow").toggle();
    jQuery("#gratisifr").toggle('slow');
    
    if (jQuery("#gratistgl").hasClass("a")) {
        jQuery("#gratistgl").removeClass("a").addClass("ax");        
    } else {
        jQuery("#gratistgl").removeClass("ax").addClass("a");
    }
	
}



