//$(document).ready(flash_start());

function NX_getPageSize(){
        var de = document.documentElement;
        var w = window.innerWidth || self.innerWidth || (de&&de.clientWidth) || document.body.clientWidth;
//        var h = window.innerHeight || self.innerHeight || (de&&de.clientHeight) || document.body.clientHeight
//        arrayPageSize = new Array(w,h)
//        return arrayPageSize;
	return w;
}

function msieversion()
{
    var ua = window.navigator.userAgent
    var msie = ua.indexOf ( "MSIE " )
		  
    if ( msie > 0 )      // If Internet Explorer, return version number
	return parseInt (ua.substring (msie+5, ua.indexOf (".", msie )))
    else                 // If another browser, return 0
	return 0						
}
function NX_hideAll(){
	$('#framepole').empty();
//	$('#framepole').hide();
        $('#framepole').remove();
	
//	$('#framepole').hide();
//	$('#framepole').empty();
//    if(!msieversion()){

	$('#framepole').remove();	
//    }
	
}

function NX_showFrame(url,w,skrypty){ // niski, gdy pasek rezerwacji
	if(skrypty=='1'){
    	    h = 226;
	}else{
    	    h = 252;	
	}
        var ekran = NX_getPageSize();
        var site = 900;
        var xx = (ekran - site)/2;
        $('body').append('<div id="framepole" style="z-index: 2000; position: absolute; top: 170px; right: ' + xx + 'px; width: ' + w + 'px; height: ' + h + 'px; overflow-x: hidden; overflow: hidden; margin: 0; background: #F0E0BC;"><iframe frameborder="0" style="overflow-x: hidden; width: 100%; height: 100%; border: 0; background-color: #F0E0BC;" src="'+url+'" bodybgcolor="#F0E0BC" border="0"></iframe></div>');
}

function NX_showProfiFrame(what){	
        $('divprofi').html('<div id="frameprofi" style="z-index: 2000; width: 10px; height: 10px; overflow-x: hidden; overflow: hidden; margin: 0; background: #F0E0BC;"><iframe frameborder="0" style="overflow-x: hidden; width: 100%; height: 100%; border: 0; background-color: #F0E0BC;" src="'+url+'" bodybgcolor="#F0E0BC" border="0"></iframe></div>');
}

