function initCal(){var f={navigator:{strings:{month:"Izberite mesec",year:"Vnesite leto",submit:"OK",cancel:"Preklic",invalidYear:"Prosimo vnesite veljavno leto"},monthFormat:YAHOO.widget.Calendar.SHORT,initialFocus:"year"},LOCALE_WEEKDAYS:"short",START_WEEKDAY:1,DATE_FIELD_DELIMITER:".",MDY_DAY_POSITION:1,MDY_MONTH_POSITION:2,MDY_YEAR_POSITION:3,MD_DAY_POSITION:1,MD_MONTH_POSTION:2,MONTHS_SHORT:["Jan","Feb","Mar","Apr","Maj","Jun","Jul","Avg","Sep","Okt","Nov","Dec"]};
function b(){this.mouseIn=true
}function d(){this.mouseIn=false;
if(this.hideOnMouseOut){this.calendar.hide();
this.hideOnMouseOut=false
}}function g(){if(!this.calRendered){this.calendar.render();
this.calRendered=true;
YAHOO.util.Event.addListener([this.calendar.container.firstChild],"mouseover",b,this,true);
YAHOO.util.Event.addListener([this.calendar.container.firstChild],"mouseout",d,this,true)
}this.mouseIn=false;
this.hideOnMouseOut=false;
this.calendar.show()
}var e=document.getElementsByTagName("input");
var j=new RegExp("(^|\\s)dateinput(\\s|$)");
for(var c in e){var a=e[c];
if(!j.test(a.className)){continue
}var h=document.createElement("div");
h.id=a.id+"_cal_container";
h.className="calHolder";
h.style.display="none";
h.style.position="absolute";
h.style.zIndex="200";
h.style.top="110px";
h.style.left="11px";
if(document.getElementById("hotelForm")){document.getElementById("hotelForm").appendChild(h)
}else{if(document.getElementById("room-form")){document.getElementById("room-form").appendChild(h)
}else{if(document.getElementById("hotels")){document.getElementById("hotels").appendChild(h)
}}}a.calendar=new YAHOO.widget.Calendar(a.id+"_cal",h.id,f);
a.calendar.container=h;
YAHOO.util.Event.addListener([a.calendar,a.calendar.container],"mouseover",b,a,true);
YAHOO.util.Event.addListener([a.calendar,a.calendar.container],"mouseout",d,a,true);
a.hideCalendar=function(){if(typeof this.mouseIn!="undefined"&&!this.mouseIn){window.setTimeout('document.getElementById("'+this.id+'").calendar.hide()',100)
}else{this.hideOnMouseOut=true
}};
a.calendar.selectEvent.subscribe(function(n,l,q){var p=l[0];
var k=p[0];
var m=k[0];
var o=k[1];
var i=k[2];
q.value=i+"."+o+"."+m;
q.mouseIn=false;
q.calendar.hide()
},a,true);
YAHOO.util.Event.addListener(a,"focus",g,a,true);
YAHOO.util.Event.addListener(a,"blur",function(){this.hideCalendar()
},a,true)
}}if(document.attachEvent){window.attachEvent("onload",initCal)
}else{window.addEventListener("load",initCal,false)
};