<br />
<b>Warning</b>:  include(highslide/highslide-full.js) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory in <b>/var/www/virtual/wellness-hotel-ungarn.at/htdocs/js/allscripts.php</b> on line <b>3</b><br />
<br />
<b>Warning</b>:  include() [<a href='function.include'>function.include</a>]: Failed opening 'highslide/highslide-full.js' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in <b>/var/www/virtual/wellness-hotel-ungarn.at/htdocs/js/allscripts.php</b> on line <b>3</b><br />
<br />
<b>Warning</b>:  include(gs.js) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory in <b>/var/www/virtual/wellness-hotel-ungarn.at/htdocs/js/allscripts.php</b> on line <b>4</b><br />
<br />
<b>Warning</b>:  include() [<a href='function.include'>function.include</a>]: Failed opening 'gs.js' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in <b>/var/www/virtual/wellness-hotel-ungarn.at/htdocs/js/allscripts.php</b> on line <b>4</b><br />
   var http_request = false;
   var tarolo_1 = 'mainContainerDiv';
   var tarolo_2 = 'titleContainer';
   var loadstatustext='<div align="left" style="width:100%; height:100px;"><img src="images/loading2.gif" /> Betöltés..</div>';
   var loadAnim = true;
   var noLoadAnim = ['side_tree','poll_content','mainContainerDiv','searchbox'];
   
   function makeRequest(url, parameters, getpost, divID) {
      http_request = false;
	  
	  if(divID!=undefined) {
		  var div_ID=divID;
	  }else{
		  var div_ID=tarolo_1;
	  }
      if (window.XMLHttpRequest) {
         http_request = new XMLHttpRequest();
         if (http_request.overrideMimeType) {
	         http_request.overrideMimeType('text/html');
         }
      } else if (window.ActiveXObject) {
         try {
            http_request = new ActiveXObject("Msxml2.XMLHTTP");
         } catch (e) {
            try {
               http_request = new ActiveXObject("Microsoft.XMLHTTP");
            } catch (e) {}
         }
      }
      if (!http_request) {
         alert('1: Hiba történt, az adatok kűldése sikertelen!');
         return false;
      }
	  
	  for (var i=0;i<noLoadAnim.length;i++) {
		  if(div_ID==noLoadAnim[i]) loadAnim=false;
	  }
	  if(loadAnim==true) $_(div_ID).innerHTML=loadstatustext;
	  http_request.onreadystatechange = function() { alertContents(http_request,div_ID); };
	  if(getpost=='post') {
		  __FCKeditorNS = null; 
		  http_request.open("POST", url, true);
		  http_request.setRequestHeader("Content-Type", "application/x-www-form-urlencoded; charset=UTF-8");
		  http_request.send(parameters);
		  }
	  else {
		  __FCKeditorNS = null; 
		  http_request.open('GET', url + parameters, true);
		  http_request.setRequestHeader("Content-Type", "text/html; charset=UTF-8");
		  http_request.send(null);
		  }
	return true;
   }
   function alertContents(http_request,divID) {
      if (http_request.readyState == 4) {
         if (http_request.status == 200) {
			$_(divID).innerHTML=http_request.responseText;
			runScripts($_(divID));
			initLightbox();
         } else {
            alert('2: Hiba történt, az adatok küldése sikertelen!');
         }
      }
   }
   
function runScripts(obj) { 
	var scripts = obj.getElementsByTagName('script');
	for(var no=0;no<scripts.length;no++){
		eval(scripts[no].innerHTML);
	} 
}

function $_(n) {
  	 return document.getElementById(n);
}

function setfocus(id) {
	$_(id).focus();
}

function getFormData(thisform, requestURL, divID, method, newTab) {
	if(!requestURL || requestURL=='undefined') requestURL='admin_cms_test.php';
	if(!method || method=='undefined') method='post';
	var formdata = "";
	if(method=='get') formdata = "?";
	var theForm = document.forms[thisform];
    for (i=0; i<theForm.length; i++) {
		if(theForm.elements[i].type != undefined) {
			if(theForm.elements[i].type == "text"){
				formdata = formdata + theForm.elements[i].name + "=" + encodeURIComponent(theForm.elements[i].value) + "&";
			}else if(theForm.elements[i].type == "textarea"){
				formdata = formdata + theForm.elements[i].name + "=" + encodeURIComponent(theForm.elements[i].value) + "&";
			}else if(theForm.elements[i].type == "select"){
				formdata = formdata + theForm.elements[i].name + "=" + encodeURIComponent(theForm.elements[i].value) + "&";
			}else if(theForm.elements[i].type == "hidden"){
				formdata = formdata + theForm.elements[i].name + "=" + encodeURIComponent(theForm.elements[i].value) + "&";
			}else if(theForm.elements[i].type == "submit"){
				formdata = formdata + theForm.elements[i].name + "=" + encodeURIComponent(theForm.elements[i].value) + "&";
			}else if(theForm.elements[i].type == "checkbox"){
				ChK = (theForm.elements[i].checked == true) ? 1 : 0;
				formdata = formdata + theForm.elements[i].name + "=" + ChK + "&";
			}else if(theForm.elements[i].type == "radio"){
				  if(theForm.elements[i].checked==true){
						formdata = formdata + theForm.elements[i].name + "=" + theForm.elements[i].value + "&";
					}
			}else{
				formdata = formdata + theForm.elements[i].name + "=" + encodeURIComponent(document.forms[thisform].elements[i].value) + "&";
			}
		}
	}
	if(newTab==true) createNewTab('zadir_tabView4','Sablon szerkesztése',formdata,true);
	else makeRequest(requestURL, formdata, method, divID);
}

// MENU

Object.later = function (object, msec, method) {	
	var that = object,
		args = Array.prototype.slice.apply(arguments, [3]);
	if (typeof method === 'string') {
		method = that[method];
	}
    time = setTimeout(function () {
        method.apply(that, args);
    }, msec);
    return time;	
};
//---------------------------------------------------------//

var Menu = function () {
	Event.observe(window, 'load', function(){Menu.init();})
	return {
		time: false,
		over: false,
		show:function(s){
			if(this.time && this.over != s){
				this.hide(this.over);
				clearTimeout(this.time);
			} else if (this.over == s){
				clearTimeout(this.time);
			}
			s.down('a').addClassName('over');
			try{
				s.down('ul').style.display = 'block';
			}catch(e){return false;}
		},
		hide:function(s){
			s.down('a').removeClassName('over');
			try{
				s.down('ul').hide();
			}catch(e){return false;}			
		},
		hideTimeing:function(s){
			this.over = s;
			this.time = Object.later(this,500,'hide',s);
		},
		init:function(){
			$$('ul#mainMenu > li').each(function(s){		
				Event.observe(s, 'mouseover', function(){Menu.show(s); });				
				Event.observe(s, 'mouseout', function(){ Menu.hideTimeing(s); });				
			});
		}
	};
}();

//-----------------------------------------//

 if (document.images)
   {
     image_off= new Image(172,176);
     image_off.src="http://www.wellnesshotelmendan.hu/templates/default/images/hu/spacer.gif";  

     koszonto= new Image(172,176);
     koszonto.src="http://www.wellnesshotelmendan.hu/templates/default/images/hu/wellnesshotel_gr.jpg";

     hirlevel= new Image(172,176);
     hirlevel.src="http://www.wellnesshotelmendan.hu/templates/default/images/hu/wellnesshotel_nl.jpg";
	 
     vendegkonyv= new Image(172,176);
     vendegkonyv.src="http://www.wellnesshotelmendan.hu/templates/default/images/hu/wellnesshotel_gb.jpg";
 
     megkozelithetoseg= new Image(172,176);
     megkozelithetoseg.src="http://www.wellnesshotelmendan.hu/templates/default/images/hu/wellnesshotel_mp.jpg";
   }

function change1(bgdisplay,imgName)
 {
   if (document.images)
    {
      imgOn=eval(imgName + ".src");
      document[bgdisplay].src= imgOn;
    }
 } 

	function elemOn(elem_id){
		if(document.getElementById(elem_id))
			document.getElementById(elem_id).style.display = "block";
	}
	function elemOff(elem_id){
		if(document.getElementById(elem_id))
			document.getElementById(elem_id).style.display = "none";
	}
	function hideAll(){
		for( var i = 1; i <= 4; i++ )
			elemOff( 'div'+i );
	}
	function showAll(){
		for( var i = 1; i <= 4; i++ )
			elemOn( 'div'+i );
	}
	function showOne(elem_id){
		hideAll( );
		elemOn( elem_id );
	}

//--- FLASH --------------------------------------//

function flashControl(SRC,WIDTH,HEIGHT,FLASHVARS,WMODE,BGCOLOR) {

	while ( FLASHVARS.search(' ') != -1 ) {
		FLASHVARS = FLASHVARS.replace(' ', '%20');
	}

	document.write('<object type="application/x-shockwave-flash" data=' + SRC+ ' width=' + WIDTH + ' height=' + HEIGHT + '>');
	document.write('<!--[if IE]><param name="movie" value=' + SRC+ '>< ![endif]-->');

	if ( FLASHVARS ) { document.write('<param name="flashvars" value=' + FLASHVARS + '>'); }
	if ( WMODE ) { document.write('<param name="wmode" value=' + WMODE + '>'); }
	if ( BGCOLOR ) { document.write('<param name="bgcolor" value=' + BGCOLOR + '>'); }

        document.write('<param name="quality" value="high">');
	document.write('<\/object>');
}
//-----------------------------------------//
//-------------------------------------------------
var oldalak = new Array();

oldalak[0]= ["default", "12"]
oldalak[1]= ["panorama", "6"]
oldalak[2]= ["gyermekbarathoteles", "5"]


//-------------------------------------------------
function queryString() {
	var asd=""
	var vissza=""
	var myQueryString=document.location.search
	if (myQueryString[0]='?') {
	myQueryString=myQueryString.substr(1, myQueryString.length-1)
	}
	param=myQueryString.split("&")
	for(i=0;i<param.length;i++){
		p=param[i]
		v=p.split("=")
		if (v[0]=="p"){
			asd=v[1]
			for(o=0;o<oldalak.length;o++){
				if(asd==oldalak[o][0]){
					vissza=asd
				}
			}
		}
	}
	if(vissza !=""){
	return vissza
	}else{
	return "default"
	}
}

var fadeimages=new Array()

honnan = queryString();
for(j=0;j<oldalak.length;j++){
	if(oldalak[j][0] == honnan){
		for(k=0;k<oldalak[j][1];k++){
			
			fadeimages[k]=["../upload/Image/slideshow/"+honnan+"/kep"+k+".jpg", "", ""]
		
		}
	}
}
 
var fadebgcolor=""
 
////NO need to edit beyond here/////////////
 
var fadearray=new Array() //array to cache fadeshow instances
var fadeclear=new Array() //array to cache corresponding clearinterval pointers
 
var dom=(document.getElementById) //modern dom browsers
var iebrowser=document.all
 
function fadeshow(theimages, fadewidth, fadeheight, borderwidth, delay, pause, displayorder){
this.pausecheck=pause
this.mouseovercheck=0
this.delay=delay
this.degree=10 //initial opacity degree (10%)
this.curimageindex=0
this.nextimageindex=1
fadearray[fadearray.length]=this
this.slideshowid=fadearray.length-1
this.canvasbase="canvas"+this.slideshowid
this.curcanvas=this.canvasbase+"_0"
if (typeof displayorder!="undefined")
theimages.sort(function() {return 0.5 - Math.random();}) //thanks to Mike (aka Mwinter) :)
this.theimages=theimages
this.imageborder=parseInt(borderwidth)
this.postimages=new Array() //preload images
for (p=0;p<theimages.length;p++){
this.postimages[p]=new Image()
this.postimages[p].src=theimages[p][0]
}
 
var fadewidth=fadewidth+this.imageborder*2
var fadeheight=fadeheight+this.imageborder*2
 
if (iebrowser&&dom||dom) //if IE5+ or modern browsers (ie: Firefox)
document.write('<div id="master'+this.slideshowid+'" style="position:relative;width:'+fadewidth+'px;height:'+fadeheight+'px;overflow:hidden;"><div id="'+this.canvasbase+'_0" style="position:absolute;width:'+fadewidth+'px;height:'+fadeheight+'px;top:0;left:0;filter:progid:DXImageTransform.Microsoft.alpha(opacity=10);-moz-opacity:10;-khtml-opacity:10;background-color:'+fadebgcolor+'"></div><div id="'+this.canvasbase+'_1" style="position:absolute;width:'+fadewidth+'px;height:'+fadeheight+'px;top:0;left:0;filter:progid:DXImageTransform.Microsoft.alpha(opacity=10);-moz-opacity:10;background-color:'+fadebgcolor+'"></div></div>')
else
document.write('<div><img name="defaultslide'+this.slideshowid+'" src="'+this.postimages[0].src+'"></div>')
 
if (iebrowser&&dom||dom) //if IE5+ or modern browsers such as Firefox
this.startit()
else{
this.curimageindex++
setInterval("fadearray["+this.slideshowid+"].rotateimage()", this.delay)
}
}

function fadepic(obj){
if (obj.degree<100){
obj.degree+=10
if (obj.tempobj.filters&&obj.tempobj.filters[0]){
if (typeof obj.tempobj.filters[0].opacity=="number") //if IE6+
obj.tempobj.filters[0].opacity=obj.degree
else //else if IE5.5-
obj.tempobj.style.filter="alpha(opacity="+obj.degree+")"
}
else if (obj.tempobj.style.MozOpacity)
obj.tempobj.style.MozOpacity=obj.degree/101
else if (obj.tempobj.style.KhtmlOpacity)
obj.tempobj.style.KhtmlOpacity=obj.degree/100
}
else{
clearInterval(fadeclear[obj.slideshowid])
obj.nextcanvas=(obj.curcanvas==obj.canvasbase+"_0")? obj.canvasbase+"_0" : obj.canvasbase+"_1"
obj.tempobj=iebrowser? iebrowser[obj.nextcanvas] : document.getElementById(obj.nextcanvas)
obj.populateslide(obj.tempobj, obj.nextimageindex)
obj.nextimageindex=(obj.nextimageindex<obj.postimages.length-1)? obj.nextimageindex+1 : 0
setTimeout("fadearray["+obj.slideshowid+"].rotateimage()", obj.delay)
}
}
 
fadeshow.prototype.populateslide=function(picobj, picindex){
var slideHTML=""
if (this.theimages[picindex][1]!="") //if associated link exists for image
slideHTML='<a href="'+this.theimages[picindex][1]+'" target="'+this.theimages[picindex][2]+'">'
slideHTML+='<img src="'+this.postimages[picindex].src+'" border="'+this.imageborder+'px">'
if (this.theimages[picindex][1]!="") //if associated link exists for image
slideHTML+='</a>'
picobj.innerHTML=slideHTML
}
 
 
fadeshow.prototype.rotateimage=function(){
if (this.pausecheck==1) //if pause onMouseover enabled, cache object
var cacheobj=this
if (this.mouseovercheck==1)
setTimeout(function(){cacheobj.rotateimage()}, 100)
else if (iebrowser&&dom||dom){
this.resetit()
var crossobj=this.tempobj=iebrowser? iebrowser[this.curcanvas] : document.getElementById(this.curcanvas)
crossobj.style.zIndex++
fadeclear[this.slideshowid]=setInterval("fadepic(fadearray["+this.slideshowid+"])",50)
this.curcanvas=(this.curcanvas==this.canvasbase+"_0")? this.canvasbase+"_1" : this.canvasbase+"_0"
}
else{
var ns4imgobj=document.images['defaultslide'+this.slideshowid]
ns4imgobj.src=this.postimages[this.curimageindex].src
}
this.curimageindex=(this.curimageindex<this.postimages.length-1)? this.curimageindex+1 : 0
}
 
fadeshow.prototype.resetit=function(){
this.degree=10
var crossobj=iebrowser? iebrowser[this.curcanvas] : document.getElementById(this.curcanvas)
if (crossobj.filters&&crossobj.filters[0]){
if (typeof crossobj.filters[0].opacity=="number") //if IE6+
crossobj.filters(0).opacity=this.degree
else //else if IE5.5-
crossobj.style.filter="alpha(opacity="+this.degree+")"
}
else if (crossobj.style.MozOpacity)
crossobj.style.MozOpacity=this.degree/101
else if (crossobj.style.KhtmlOpacity)
crossobj.style.KhtmlOpacity=obj.degree/100
}
 
 
fadeshow.prototype.startit=function(){
var crossobj=iebrowser? iebrowser[this.curcanvas] : document.getElementById(this.curcanvas)
this.populateslide(crossobj, this.curimageindex)
if (this.pausecheck==1){ //IF SLIDESHOW SHOULD PAUSE ONMOUSEOVER
var cacheobj=this
var crossobjcontainer=iebrowser? iebrowser["master"+this.slideshowid] : document.getElementById("master"+this.slideshowid)
crossobjcontainer.onmouseover=function(){cacheobj.mouseovercheck=1}
crossobjcontainer.onmouseout=function(){cacheobj.mouseovercheck=0}
}
this.rotateimage()
}


//--------------------- HIRLEVEL 
function CheckMultiple2(frm, name) {
				for (var i=0; i < frm.length; i++)
				{
					fldObj = frm.elements[i];
					fldId = fldObj.id;
					if (fldId) {
						var fieldnamecheck=fldObj.id.indexOf(name);
						if (fieldnamecheck != -1) {
							if (fldObj.checked) {
								return true;
							}
						}
					}
				}
				return false;
			}
		function CheckForm2(f) {
			var email_re = /[a-z0-9!#$%&'*+\/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+\/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?/i;
			if (!email_re.test(f.email.value)) {
				alert("Adja meg e-mail címét.");
				f.email.focus();
				return false;
			}
		
				if (f.captcha.value == "") {
					alert("Adja meg az ellenőrző kódot.");
					f.captcha.focus();
					return false;
				}
			
			var fname = "CustomFields_2_2";
			var fld = document.getElementById(fname);
			if (fld.value == "") {
				alert("Adja meg Vezetéknevét.");
				fld.focus();
				return false;
			}
		
			var fname = "CustomFields_3_2";
			var fld = document.getElementById(fname);
			if (fld.value == "") {
				alert("Adja meg Keresztnevét");
				fld.focus();
				return false;
			}
		
				return true;
			}
			
//---------------------------- FELUGRO ABLAK
var tmr;
var t;
var obj;

function sFa() {
	obj = gObj();
	sLft();
	shw(true);
	t = 0;
	sTmr();
}

function hFa() {
	t = -100;
	sTmr();
	return false;
}

function sTmr() {
	tmr = setInterval("fd()",20);
}

function fd() {
	var amt = Math.abs(t+=10);
	if(amt == 0 || amt == 100) clearInterval(tmr);
	amt = (amt == 100)?99.999:amt;
  	
	obj.style.filter = "alpha(opacity:"+amt+")";
	obj.style.KHTMLOpacity = amt/100;
	obj.style.MozOpacity = amt/100;
	obj.style.opacity = amt/100;
	
	if(amt == 0) shw(false);
}

function sLft() {
	var w = 160;	// set this to 1/2 the width of the fa div defined in the style sheet 
			// there's not a reliable way to retrieve an element's width via javascript!!
					
	var l = (document.body.innerWidth)? document.body.innerWidth / 2:document.body.offsetWidth / 2;

	obj.style.left = (l - w)+"px";
}

function gObj() {
	return document.getElementById("fa");	
}

function shw(b) {
	(b)? obj.className = 'show':obj.className = '';	
}

