var ns4=(navigator.appName=='Netscape' && parseInt(navigator.appVersion)==4);
var ns6=(document.getElementById)? true:false;
var ie4=(document.all)? true:false;
var odl;
var f5_m=null;
var skimenu=null;

function switcher(idd)
{
	new AjaxObject101(wstawFormWyszZest).sndReq('get','wyszajax.xml','grupa=' + idd + '&mode=zest');
}

function changeGrupaProduktow(idd, mode)
{
	if (idd!=null) {
		if (idd.indexOf("samolot")!=-1) {
			switcher('samolot');
		}
		else if (idd.indexOf("autokar")!=-1) {
			switcher('autokar');
		}
		else if (idd.indexOf("wlasny")!=-1) {
			switcher('wlasny');
		}
		else if (idd.indexOf("TOOP00045")!=-1) {
			switcher('direct');
		}
		else if (idd.indexOf("lm=1&promocje=1")!=-1) {
                        switcher('lmpromocja');
                }
		else if (idd.indexOf("promocje=1")!=-1) {
			switcher('promocja');
		}
		else if (idd.indexOf("lm=1")!=-1) {
			switcher('lm');
		}
		else if (idd.indexOf("noProgramy=1")!=-1) {
			switcher('noprogramy');
		}
		else if (idd.indexOf("programy=1&onlyprogramy=1")!=-1) {
			switcher('programy');
		}
		else if (idd.indexOf("allInclusive=1")!=-1) {
			switcher('allinclusive');
		}
		else {
			switcher('all');
		}
	}
	return false;
}

function flash(name,width,height,bgcolor)	{
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"' + 
                'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0"' + 
                'width="' + width + '" height="' + height + '">' +
                '<param name="movie" value="/flash/' + name + '"/>' +
                '<param name="quality" value="high" />' +
                '<param name="menu" value="false" />' +
				'<param name="wmode" value="transparent" />' +
                '<param name="BGCOLOR" value="' + bgcolor + '" />' +
				'<embed wmode="transparent" src="/flash/'+name+'" width="'+width+'" height="'+height + '" quality="high"' + 
                    'pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"' + 
                    'menu="false" bgcolor="'+bgcolor+'"></embed>' +
            '</object>');
}

function hasHint(e) {
    if (e.style.color == '#808080' || e.style.color == 'gray') return true;
    return false; 
}

function resetHint(e) {
    if (hasHint(e)) {
        e.value=''; 
        e.style.color='black';
    }
}

