var newlaunchfromflash;function flashed(a){newlaunchfromflash=window.open(a,"name");window.focus&&newlaunchfromflash.focus()}function ClickButtonByDefault(a){if(event.keyCode==13){event.returnValue=false;event.cancel=true;o=document.getElementById(a);o!=null&&o.click()}}function GetAbsoluteLeft(a){o=document.getElementById(a);for(oLeft=o.offsetLeft;o.offsetParent!=null;){oParent=o.offsetParent;oLeft+=oParent.offsetLeft;o=oParent}return oLeft}
function GetAbsoluteTop(a){o=document.getElementById(a);for(oTop=o.offsetTop;o.offsetParent!=null;){oParent=o.offsetParent;oTop+=oParent.offsetTop;o=oParent}return oTop}
function PopupDatePicker(a,b,c,f,d){var e=GetAbsoluteLeft(a),g=GetAbsoluteTop(a),h=document.getElementById(a).value;if(b!="")c=document.getElementById(b).value;window.open("/Controls/DatePicker.aspx?Ctl="+a+"&MinDate="+c+"&SelectedDate="+h,"DatePicker","width="+f+",height="+d+",left="+e+",top="+g+",location=no,directories=no,menubar=no,toolbar=no,status=no,scrollbars=no,resizable=no,dependent=yes").focus()}function goPage(a,b){o=document.getElementById(b);o.value=a;document.MainForm.submit()}
function viewImage(a,b,c,f){o1=document.getElementById("captionSection");o2=document.getElementById("imgSection");o2.src=a;o1.innerHTML=b+"<br/>"+c;if(f!="")if(document.getElementById(f)!=null){document.getElementById(f).value=a;if(document.getElementById("hidSelectedPicCaption")!=null)document.getElementById("hidSelectedPicCaption").value=b+"<br/>"+c}}function deletePicture(a,b){o=document.getElementById(b);o.value=a;document.Form1.submit()}
function OpenUrlInNewWindow(a){var b=null;b=window.open(a);setTimeout("DoNothing()",2E3);b==null&&alert("Your browser pop-up blockers prevent access to the booking search engine.\nFor best experience, please always allow pop-ups on this site.")}function DoNothing(){}function CheckForPopUpBlocker(a){a==null&&alert("It looks like your browser's pop-up blocker may be preventing access to the booking engine. \nPlease disable all pop-up blockers and submit your request again.")}
function NavigateBack(){window.navigate(-1)}
function validateTravelocityPackage(){var a="";if(document.getElementById(ctrPackageTo).value=="")a+="\n * To";if(document.getElementById(ctrPackageFrom).value=="")a+="\n * From";if(isDate(document.getElementById(ctrPackageDepart).value,"M/d/yyyy")==false)a+="\n * Depart Date";if(isDate(document.getElementById(ctrPackageReturn).value,"M/d/yyyy")==false)a+="\n * Return Date";if(parseInt(document.getElementById(ctrPackageNumAdults).value)+parseInt(document.getElementById(ctrPackageNumSeniors).value)==0)a+=
"\n * Must be at least one adult";return a}
function TravelocityPackage(a){if(a)if(event.keyCode==13){event.returnValue=false;event.cancel=true}else return;a="";a=validateTravelocityPackage();if(a==""){var b=new Date(document.getElementById(ctrPackageDepart).value),c=new Date(document.getElementById(ctrPackageReturn).value);b.getFullYear();a=b.getMonth()+1;b=b.getDate();c.getFullYear();var f=c.getMonth()+1;c=c.getDate();var d="";d+="http://www.res99.com/nexres/start-pages/gateway.cgi?";d+="engine=customtrip&src=10017101&action=search&stops=1&";d+=
"dateLeavingTime=Anytime&dateReturningTime=Anytime&";d=d+"goingTo="+document.getElementById(ctrPackageTo).value+"&";d=d+"leavingFrom="+document.getElementById(ctrPackageFrom).value+"&";d=d+"adults="+document.getElementById(ctrPackageNumAdults).value+"&";d=d+"children="+document.getElementById(ctrPackageNumChildren).value+"&";d=d+"seniors="+document.getElementById(ctrPackageNumSeniors).value+"&";window.open(d+"dateLeavingMonth="+a+"&dateLeavingDay="+b+"&dateReturningMonth="+f+"&dateReturningDay="+
c)}else{b="The following fields have missing or invalid data";b+=a;alert(b)}return false}
function validateTravelocityFlight(){var a="";if(document.getElementById(ctrFlightTo).value=="")a+="\n * To";if(document.getElementById(ctrFlightFrom).value=="")a+="\n * From";if(isDate(document.getElementById(ctrFlightDepart).value,"M/d/yyyy")==false)a+="\n * Depart Date";if(isDate(document.getElementById(ctrFlightReturn).value,"M/d/yyyy")==false)a+="\n * Return Date";if(parseInt(document.getElementById(ctrFlightNumAdults).value)+parseInt(document.getElementById(ctrFlightNumSeniors).value)==0)a+=
"\n * Must be at least one adult";return a}
function TravelocityFlight(a){if(a)if(event.keyCode==13){event.returnValue=false;event.cancel=true}else return;a="";a=validateTravelocityFlight();if(a==""){var b=new Date(document.getElementById(ctrFlightDepart).value),c=new Date(document.getElementById(ctrFlightReturn).value);b.getFullYear();a=b.getMonth()+1;b=b.getDate();c.getFullYear();var f=c.getMonth()+1;c=c.getDate();var d="";d+="http://go.travelpn.com/flights/InitialSearch.do?";d+="Service=TPN&affiliateId=10017101&subAffiliateId=&";d+="aspHeader=air&aspFooter=air&flightType=roundtrip&";
d+="pref_aln=exclude&nearbyAirports=off&dateLeavingTime=Anytime&";d+="dateReturningTime=Anytime&departDateFlexibility=0&returnDateFlexibility=0&";d+="leavingDate=mm/dd/yyyy&returningDate=mm/dd/yyyy&";d=d+"leavingFrom="+document.getElementById(ctrFlightFrom).value+"&";d=d+"goingTo="+document.getElementById(ctrFlightTo).value+"&";d=d+"adults="+document.getElementById(ctrFlightNumAdults).value+"&";d=d+"children="+document.getElementById(ctrFlightNumChildren).value+"&";d=d+"seniors="+document.getElementById(ctrFlightNumSeniors).value+
"&";window.open(d+"dateLeavingMonth="+a+"&dateLeavingDay="+b+"&dateReturningMonth="+f+"&dateReturningDay="+c)}else{b="The following fields have missing or invalid data";b+=a;alert(b)}return false}
function validateTravelocityHotel(){var a="";if(document.getElementById(ctrHotelCity).value==""&&document.getElementById(ctrHotelCountry).value=="")a+="\n * Destinations";if(isDate(document.getElementById(ctrHotelCheckIn).value,"M/d/yyyy")==false)a+="\n * Check-In Date";if(isDate(document.getElementById(ctrHotelCheckOut).value,"M/d/yyyy")==false)a+="\n * Check-Out Date";if(parseInt(document.getElementById(ctrHotelNumRooms).value)==0)a+="\n * Must be at least for one room";if(parseInt(document.getElementById(ctrHotelNumAdults).value)==
0)a+="\n * Must be at least one adult";return a}
function TravelocityHotel(a){if(a)if(event.keyCode==13){event.returnValue=false;event.cancel=true}else return;a="";a=validateTravelocityHotel();if(a==""){var b=new Date(document.getElementById(ctrHotelCheckIn).value),c=new Date(document.getElementById(ctrHotelCheckOut).value);a=b.getFullYear();var f=b.getMonth()+1;b=b.getDate();var d=c.getFullYear(),e=c.getMonth()+1;c=c.getDate();var g=document.getElementById(ctrHotelCity).value;if(g=="Destination...")g="";var h="";h+="http://www.res99.com/nexres/search/search_results.cgi?avail=Y&";
h=h+"num_rooms="+document.getElementById(ctrHotelNumRooms).value+"&";h=h+"num_adults="+document.getElementById(ctrHotelNumAdults).value+"&";h=h+"num_children="+document.getElementById(ctrHotelNumChildren).value+"&";h+="smoking_pref=NP&bed_type=NP&src=10017101&currency_id=USD&tab=tab0&Go=Search+For+Hotels&";h=h+"doa_mm="+f+"&doa_yy="+a+"&doa_dd="+b+"&dod_mm="+e+"&dod_yy="+d+"&dod_dd="+c+"&city="+g+"&country="+document.getElementById(ctrHotelCountry).value;window.open(h)}else{f="The following fields have missing or invalid data";
f+=a;alert(f)}return false}var MONTH_NAMES=["January","February","March","April","May","June","July","August","September","October","November","December","Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],DAY_NAMES=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sun","Mon","Tue","Wed","Thu","Fri","Sat"];function LZ(a){return(a<0||a>9?"":"0")+a}function isDate(a,b){if(getDateFromFormat(a,b)==0)return false;return true}
function compareDates(a,b,c,f){a=getDateFromFormat(a,b);c=getDateFromFormat(c,f);if(a==0||c==0)return-1;else if(a>c)return 1;return 0}
function formatDate(a,b){b+="";var c="",f=0,d="",e="";d=a.getYear()+"";e=a.getMonth()+1;var g=a.getDate(),h=a.getDay(),l=a.getHours(),n=a.getMinutes(),m=a.getSeconds(),j={};if(d.length<4)d=""+(d-0+1900);j.y=""+d;j.yyyy=d;j.yy=d.substring(2,4);j.M=e;j.MM=LZ(e);j.MMM=MONTH_NAMES[e-1];j.NNN=MONTH_NAMES[e+11];j.d=g;j.dd=LZ(g);j.E=DAY_NAMES[h+7];j.EE=DAY_NAMES[h];j.H=l;j.HH=LZ(l);j.h=l==0?12:l>12?l-12:l;j.hh=LZ(j.h);j.K=l>11?l-12:l;j.k=l+1;j.KK=LZ(j.K);j.kk=LZ(j.k);j.a=l>11?"PM":"AM";j.m=n;j.mm=LZ(n);
j.s=m;for(j.ss=LZ(m);f<b.length;){d=b.charAt(f);for(e="";b.charAt(f)==d&&f<b.length;)e+=b.charAt(f++);c+=j[e]!=null?j[e]:e}return c}function _isInteger(a){for(var b=0;b<a.length;b++)if("1234567890".indexOf(a.charAt(b))==-1)return false;return true}function _getInt(a,b,c,f){for(;f>=c;f--){var d=a.substring(b,b+f);if(d.length<c)break;if(_isInteger(d))return d}return null}
function getDateFromFormat(a,b){a+="";b+="";var c=0,f=0,d="",e="",g,h,l=new Date,n=l.getYear(),m=l.getMonth()+1,j=1,k=l.getHours(),p=l.getMinutes();l=l.getSeconds();for(var q="";f<b.length;){d=b.charAt(f);for(e="";b.charAt(f)==d&&f<b.length;)e+=b.charAt(f++);if(e=="yyyy"||e=="yy"||e=="y"){if(e=="yyyy")h=g=4;if(e=="yy")h=g=2;if(e=="y"){g=2;h=4}n=_getInt(a,c,g,h);if(n==null)return 0;c+=n.length;if(n.length==2)n=n>70?1900+(n-0):2E3+(n-0)}else if(e=="MMM"||e=="NNN"){for(d=m=0;d<MONTH_NAMES.length;d++){var r=
MONTH_NAMES[d];if(a.substring(c,c+r.length).toLowerCase()==r.toLowerCase())if(e=="MMM"||e=="NNN"&&d>11){m=d+1;if(m>12)m-=12;c+=r.length;break}}if(m<1||m>12)return 0}else if(e=="EE"||e=="E")for(d=0;d<DAY_NAMES.length;d++){e=DAY_NAMES[d];if(a.substring(c,c+e.length).toLowerCase()==e.toLowerCase()){c+=e.length;break}}else if(e=="MM"||e=="M"){m=_getInt(a,c,e.length,2);if(m==null||m<1||m>12)return 0;c+=m.length}else if(e=="dd"||e=="d"){j=_getInt(a,c,e.length,2);if(j==null||j<1||j>31)return 0;c+=j.length}else if(e==
"hh"||e=="h"){k=_getInt(a,c,e.length,2);if(k==null||k<1||k>12)return 0;c+=k.length}else if(e=="HH"||e=="H"){k=_getInt(a,c,e.length,2);if(k==null||k<0||k>23)return 0;c+=k.length}else if(e=="KK"||e=="K"){k=_getInt(a,c,e.length,2);if(k==null||k<0||k>11)return 0;c+=k.length}else if(e=="kk"||e=="k"){k=_getInt(a,c,e.length,2);if(k==null||k<1||k>24)return 0;c+=k.length;k--}else if(e=="mm"||e=="m"){p=_getInt(a,c,e.length,2);if(p==null||p<0||p>59)return 0;c+=p.length}else if(e=="ss"||e=="s"){l=_getInt(a,c,
e.length,2);if(l==null||l<0||l>59)return 0;c+=l.length}else if(e=="a"){if(a.substring(c,c+2).toLowerCase()=="am")q="AM";else if(a.substring(c,c+2).toLowerCase()=="pm")q="PM";else return 0;c+=2}else if(a.substring(c,c+e.length)!=e)return 0;else c+=e.length}if(c!=a.length)return 0;if(m==2)if(n%4==0&&n%100!=0||n%400==0){if(j>29)return 0}else if(j>28)return 0;if(m==4||m==6||m==9||m==11)if(j>30)return 0;if(k<12&&q=="PM")k=k-0+12;else if(k>11&&q=="AM")k-=12;return(new Date(n,m-1,j,k,p,l)).getTime()}
function parseDate(a){var b=arguments.length==2?arguments[1]:false;generalFormats=["y-M-d","MMM d, y","MMM d,y","y-MMM-d","d-MMM-y","MMM d"];monthFirst=["M/d/y","M-d-y","M.d.y","MMM-d","M/d","M-d"];dateFirst=["d/M/y","d-M-y","d.M.y","d-MMM","d/M","d-M"];b=["generalFormats",b?"dateFirst":"monthFirst",b?"monthFirst":"dateFirst"];for(var c=null,f=0;f<b.length;f++)for(var d=window[b[f]],e=0;e<d.length;e++){c=getDateFromFormat(a,d[e]);if(c!=0)return new Date(c)}return null}
function OnLoadScripts(){try{findPosY(document.getElementById("scrollbox"));findPosX(document.getElementById("scrollbox"));document.getElementById("scrollbox")}catch(a){}}function findPosX(a){var b=0;if(a.offsetParent)for(;a.offsetParent;){b+=a.offsetLeft;a=a.offsetParent}return b}function findPosY(a){var b=0;if(a.offsetParent)for(;a.offsetParent;){b+=a.offsetTop;a=a.offsetParent}return b}var mousePress="up";function reset_mousePress(){mousePress="up"}
function clickDivDown(){mousePress="down";moveDivDown()}function clickDivUp(){mousePress="down";moveDivUp()}
function moveDivDown(){var a,b,c;b=document.getElementById("scrollbox").clientHeight;c=document.getElementById("parent").clientHeight;a=document.getElementById("scrollbox").style.top;a=a.substring(0,a.length-2);if(parseInt(b)-parseInt(c)+parseInt(a)>0){a-=14;document.getElementById("scrollbox").style.top=a+"px";mousePress=="down"&&setTimeout("moveDivDown()",50);document.getElementById("ScrollImageUp").src="/images/scroll_buttons_light_up.gif"}else{mousePress="up";document.getElementById("ScrollImageDown").src=
"/images/scroll_buttons_dark_dn.gif"}}
function moveDivUp(){var a;document.getElementById("scrollbox");document.getElementById("parent");a=document.getElementById("scrollbox").style.top;a=a.substring(0,a.length-2);if(parseInt(a)<0){a=parseInt(a)+14;document.getElementById("scrollbox").style.top=a+"px";mousePress=="down"&&setTimeout("moveDivUp()",50);document.getElementById("ScrollImageUp").src="/images/scroll_buttons_light_up.gif";document.getElementById("ScrollImageDown").src="/images/scroll_buttons_light_dn.gif"}else{mousePress="up";
document.getElementById("ScrollImageDown").src="/images/scroll_buttons_light_dn.gif";document.getElementById("ScrollImageUp").src="/images/scroll_buttons_dark_up.gif"}}var disappeardelay=550,enableanchorlink=0,hidemenu_onclick=1,ie5=document.all,ns6=document.getElementById&&!document.all;function getposOffset(a,b){for(var c=b=="left"?a.offsetLeft:a.offsetTop,f=a.offsetParent;f!=null;){c=b=="left"?c+f.offsetLeft:c+f.offsetTop;f=f.offsetParent}return c}
function showhide(a,b){if(b.type=="click"&&a.display==none||b.type=="mouseover")setTimeout("dropmenuobj.style.display='inline'",100);else if(b.type=="click")a.display=nonw}function iecompattest(){return document.compatMode&&document.compatMode!="BackCompat"?document.documentElement:document.body}
function clearbrowseredge(a,b){var c=0;if(b=="rightedge"){var f=ie5&&!window.opera?iecompattest().scrollLeft+iecompattest().clientWidth-15:window.pageXOffset+window.innerWidth-15;dropmenuobj.contentmeasure=dropmenuobj.offsetWidth;if(f-dropmenuobj.x<dropmenuobj.contentmeasure)c=dropmenuobj.contentmeasure-a.offsetWidth}else{var d=ie5&&!window.opera?iecompattest().scrollTop:window.pageYOffset;f=ie5&&!window.opera?iecompattest().scrollTop+iecompattest().clientHeight-15:window.pageYOffset+window.innerHeight-
18;dropmenuobj.contentmeasure=dropmenuobj.offsetHeight;if(f-dropmenuobj.y<dropmenuobj.contentmeasure){c=dropmenuobj.contentmeasure+a.offsetHeight;if(dropmenuobj.y-d<dropmenuobj.contentmeasure)c=dropmenuobj.y+a.offsetHeight-d}}return c}
function dropdownmenu(a,b,c){if(window.event)event.cancelBubble=true;else b.stopPropagation&&b.stopPropagation();if(typeof dropmenuobj!="undefined")if(dropmenuobj)dropmenuobj.style.display="none";clearhidemenu();if(ie5||ns6){a.onmouseout=delayhidemenu;if(dropmenuobj=document.getElementById(c)){if(hidemenu_onclick)dropmenuobj.onclick=function(){dropmenuobj.style.display="none"};dropmenuobj.onmouseover=clearhidemenu;dropmenuobj.onmouseout=ie5?function(){dynamichide(event)}:function(f){dynamichide(f)};
showhide(dropmenuobj.style,b,"visible","hidden");dropmenuobj.x=getposOffset(a,"left");dropmenuobj.y=getposOffset(a,"top");dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(a,"rightedge")+"px";dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(a,"bottomedge")+a.offsetHeight+"px";removeselect("hidden")}}return clickreturnvalue()}
function removeselect(a){if(navigator.appVersion.indexOf("MSIE")!=-1){temp=navigator.appVersion.split("MSIE");version=parseFloat(temp[1]);if(version<7)for(var b=0;b<document.forms.length;b++)for(var c=0;c<document.forms[b].length;c++)if(document.forms[b].elements[c].options)document.forms[b].elements[c].style.visibility=a}}function clickreturnvalue(){return(ie5||ns6)&&!enableanchorlink?false:true}function contains_ns6(a,b){for(;b.parentNode;)if((b=b.parentNode)==a)return true;return false}
function dynamichide(a){if(ie5&&!dropmenuobj.contains(a.toElement))delayhidemenu();else ns6&&a.currentTarget!=a.relatedTarget&&!contains_ns6(a.currentTarget,a.relatedTarget)&&delayhidemenu()}function delayhidemenu(){if(typeof dropmenuobj!="undefined")if(dropmenuobj)delayhide=setTimeout("dropmenuobj.style.display='none';removeselect('visible')",disappeardelay)}function clearhidemenu(){typeof delayhide!="undefined"&&clearTimeout(delayhide)}
var cal_dteToday=new Date,cal_intDD=cal_dteToday.getDate(),cal_intMM=cal_dteToday.getMonth()+1,cal_intYYYY=cal_dteToday.getYear();if(cal_intYYYY<2E3)cal_intYYYY+=1900;
var cal_intDDSelected,cal_intMMSelected,cal_intYYYYSelected,cal_nMaxYears=4,nWeekDays=7,cal_targetEl,calendarUI,calendarIF,calendarUIArea,cal_arrYears,cal_LangId="en",blnSelectPast=false,blnRollPast=true,blnRollFuture=false,cal_dayInitialBorder="1px solid #f5f5f5",cal_dayMouseOverBorder="1px solid gray",cal_dayMouseOutBorder="1px solid whitesmoke",cal_weekendBGColor="#ebebeb",cal_weekendSelectedBGColor="#ffff00",cal_todayBorderColor="#990033",cal_SelectMouseOutBorder="1px solid white ",cal_monthDays=
[31,28,31,30,31,30,31,31,30,31,30,31],cal_monthNames=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],cal_monthNames_fr=["Jan","F&eacute;v","Mar","Apr","May","Jun","Jul","Ao&ucirc;","Sep","Oct","Nov","D&eacute;c"],cal_weekdayNames=["S","M","T","W","T","F","S"],cal_weekdayNames_fr=["D","L","M","M","J","V","S"],calSelectList,cal_useCalSelect=false,nyearsBack=cal_intYYYY-2002,blnShowDefaultEndDate=false;
function cal_genYearList(a){cal_arrYears=[];var b=0,c=cal_getYear(new Date);if(a<c)cal_arrYears[0]=a;for(i=b=cal_arrYears.length;i<cal_nMaxYears;i++){cal_arrYears[i]=c;c++}if(blnShowDefaultEndDate==true)cal_arrYears[cal_arrYears.length]=9999}function cal_getDateString(a,b,c){return cal_monthNames[a-1]+" "+b+", "+c}function cal_getTimeString(a,b,c){b="00"+b;return("00"+a).slice(-2)+":"+b.slice(-2)+" "+c}
function cal_getSelectList(a){var b="",c,f;if(cal_useCalSelect==true){strTempString2='<table id="cal_SelectDropDown" border="0" cellspacing="0" cellpadding="0">';for(f=0;f<cal_arrYears.length;f++){c=cal_arrYears[f]==a?' class="calselected"':"";strTempString2=strTempString2+"<tr><td"+c+' onmouseover="cal_Selectmouseover(this);" onmouseout="cal_Selectmouseout(this);" onclick="cal_SelectValue('+cal_arrYears[f]+');">'+cal_arrYears[f]+"</td></tr>"}strTempString2+="</table>";return strTempString2}else{b+=
"<select class='calselect' onchange='cal_refreshCal(this.options[this.selectedIndex].value);' id='CalYearSelect' name='CalYearSelect'>";for(f=0;f<cal_arrYears.length;f++){c=cal_arrYears[f]==a?" selected":"";b=b+"<option value='"+cal_arrYears[f]+"'"+c+">"+cal_arrYears[f]+"</option>"}b+="</select>";return b}}
function cal_calendar(a){var b=cal_getYear(cal_dteToday),c=cal_dteToday.getDate(),f=cal_dteToday.getMonth()+1,d="",e;e="";var g;year=cal_getYear(a);a.getDate();cal_monthDays[1]=cal_getFebDays(year);nDays=cal_monthDays[a.getMonth()];firstDay=a;firstDay.setDate(1);startDay=firstDay.getDay();e=a.getMonth()==0?cal_monthDays[11]-startDay+1:cal_monthDays[a.getMonth()-1]-startDay+1;d+="<TABLE id='myTable' class='Calendar' border='0' cellspacing='0' width='169px'>";d+="<TR><TH><img src='/images/cal_left.gif' onclick='cal_back();' class='calimage'></TH>";
d+=cal_useCalSelect==true?"<TH style=\"text-align: right\" nowrap COLSPAN='3'>":"<TH style=\"text-align: right\" nowrap COLSPAN='4'>";d+=cal_LangId=="fr"?cal_monthNames_fr[a.getMonth()]:cal_monthNames[a.getMonth()];d=d+" "+cal_getSelectList(year);d+="</TH><TH><img src='/images/cal_right.gif' onclick='cal_forward();' class='calimage'></TH><TH style=\"text-align:right; vertical-align:top\"><img src='/images/cal_close.gif' onclick='cal_close()' class='calimage'></TH></TR>";d+="<TR>";for(g=0;g<nWeekDays;g++)d=
cal_LangId=="fr"?d+"<TH class=\"Calweekdayheader\" width='24px'>"+cal_weekdayNames_fr[g]+"</TH>":d+"<TH class=\"Calweekdayheader\" width='24px'>"+cal_weekdayNames[g]+"</TH>";d+="<TR>";for(g=column=0;g<startDay;g++){d=column==0||column==6?d+'<TD style="background-color:'+cal_weekendBGColor+";border:1px solid"+cal_weekendBGColor+'" class="CalUnavailable">'+(e+g)+"</TD>":d+'<TD class="CalUnavailable">'+(e+g)+"</TD>";column++}for(g=1;g<=nDays;g++){e="CalSelectable";if(blnSelectPast==true){d=document.all?
d+'<TD style="width:22px; border:'+cal_dayInitialBorder+'" onclick="cal_updateDay(this.innerText);" onmouseover="cal_mouseover(this);" onmouseout="cal_mouseout(this);"':d+'<TD style="width:22px; border:'+cal_dayInitialBorder+'" onclick="cal_updateDay(this.textContent);" onmouseover="cal_mouseover(this);" onmouseout="cal_mouseout(this);"';if(cal_isSelectedDate(cal_intDDSelected,cal_intMMSelected,cal_intYYYYSelected,g)==true)e=cal_isToday(g,a.getMonth(),cal_getYear(a))==true?"CalSelectedToday":"CalSelectedday";
else if(cal_isToday(g,a.getMonth(),cal_getYear(a))==true)e="CalToday"}else if(cal_isPastDate(c,f,b,g)==true){d+="<TD";e="CalInvalidday"}else{d=document.all?d+'<TD style="width:22px; border:'+cal_dayInitialBorder+'" onclick="cal_updateDay(this.innerText);" onmouseover="cal_mouseover(this);" onmouseout="cal_mouseout(this);"':d+'<TD style="width:22px; border:'+cal_dayInitialBorder+'" onclick="cal_updateDay(this.textContent);" onmouseover="cal_mouseover(this);" onmouseout="cal_mouseout(this);"';if(cal_isSelectedDate(cal_intDDSelected,
cal_intMMSelected,cal_intYYYYSelected,g)==true)e=cal_isToday(g,a.getMonth(),cal_getYear(a))==true?"CalSelectedToday":"CalSelectedday";else if(cal_isToday(g,a.getMonth(),cal_getYear(a))==true)e="CalToday"}if(column==0||column==6)switch(e){case "CalSelectedToday":d=d+' style="background-color:'+cal_weekendSelectedBGColor+";border:  1px solid"+cal_weekendBGColor+'" class="'+e+'">'+g+"</TD>";break;case "CalSelectedday":d=d+' style="background-color:'+cal_weekendSelectedBGColor+";border:  1px solid"+cal_weekendBGColor+
'" class="'+e+'">'+g+"</TD>";break;default:d=d+' style="background-color:'+cal_weekendBGColor+";border: 1px solid"+cal_weekendBGColor+' " class="'+e+'">'+g+"</TD>"}else d=d+' class="'+e+'">'+g+"</TD>";column++;if(column==7){d+="</TR><TR>";column=0}}if(column<7&&column>0){for(g=1;g<=7-column;g++)d=column+g==7?d+'<TD style="background-color:'+cal_weekendBGColor+";border: 1px solid"+cal_weekendBGColor+'" class="CalUnavailable">'+g+"</TD>":d+'<TD class="CalUnavailable">'+g+"</TD>";d+="</TR><TR>"}d+=cal_LangId==
"fr"?"</tr><tr><td class='Calgototoday' colspan='7' onclick=\"cal_setToday();\">(f)Go to today</td></tr>":"</tr><tr><td class='Calgototoday' colspan='7' onclick=\"cal_setToday();\">Go to today</td></tr>";d+="</TABLE>";calendarUI.innerHTML=d;calendarIF.style.width=1;calendarIF.style.height=1;calendarUI.focus()}
function cal_calendarUpdate(a,b){var c=cal_getYear(cal_dteToday),f=cal_dteToday.getDate(),d=cal_dteToday.getMonth()+1,e="",g;g="";var h;futureObj=document.getElementById(b);year=cal_getYear(a);a.getDate();cal_monthDays[1]=cal_getFebDays(year);nDays=cal_monthDays[a.getMonth()];firstDay=a;firstDay.setDate(1);startDay=firstDay.getDay();g=a.getMonth()==0?cal_monthDays[11]-startDay+1:cal_monthDays[a.getMonth()-1]-startDay+1;e+="<TABLE id='myTable' class='Calendar' border='0' cellspacing='0' width='168px'>";
e=e+"<TR><TH><img src='/images/cal_left.gif' onclick=\"cal_backUpdate('"+futureObj.id+"')\" class='calimage' /></TH>";e+=cal_useCalSelect==true?"<TH style=\"text-align: right\" nowrap COLSPAN='3'>":"<TH style=\"text-align: right\" nowrap COLSPAN='4'>";e+=cal_LangId=="fr"?cal_monthNames_fr[a.getMonth()]:cal_monthNames[a.getMonth()];e=e+" "+cal_getSelectList(year);e=e+"</TH><TH><img src='/images/cal_right.gif' onclick=\"cal_forwardUpdate('"+futureObj.id+"')\" class='calimage' /></TH><TH style=\"text-align:right; vertical-align:top\"><img src='/images/cal_close.gif' onclick='cal_close()' class='calimage'></TH></TR>";
e+="<TR>";for(h=0;h<nWeekDays;h++)e=cal_LangId=="fr"?e+"<TH class=\"Calweekdayheader\" width='24px'>"+cal_weekdayNames_fr[h]+"</TH>":e+"<TH class=\"Calweekdayheader\" width='24px'>"+cal_weekdayNames[h]+"</TH>";e+="<TR>";for(h=column=0;h<startDay;h++){e=column==0||column==6?e+'<TD style="background-color:'+cal_weekendBGColor+";border: 1px solid"+cal_weekendBGColor+' " class="CalUnavailable">'+(g+h)+"</TD>":e+'<TD class="CalUnavailable">'+(g+h)+"</TD>";column++}for(h=1;h<=nDays;h++){g="CalSelectable";
if(blnSelectPast==true){e=document.all?e+'<TD style="width:22px; border:'+cal_dayInitialBorder+'" onclick="cal_updateDayFuture(this.innerText, \''+futureObj.id+'\');" onmouseover="cal_mouseover(this);" onmouseout="cal_mouseout(this);"':e+'<TD style="width:22px; border:'+cal_dayInitialBorder+'" onclick="cal_updateDayFuture(this.textContent, \''+futureObj.id+'\');" onmouseover="cal_mouseover(this);" onmouseout="cal_mouseout(this);"';if(cal_isSelectedDate(cal_intDDSelected,cal_intMMSelected,cal_intYYYYSelected,
h)==true)g=cal_isToday(h,a.getMonth(),cal_getYear(a))==true?"CalSelectedToday":"CalSelectedday";else if(cal_isToday(h,a.getMonth(),cal_getYear(a))==true)g="CalToday"}else if(cal_isPastDate(f,d,c,h)==true){e+="<TD";g="CalInvalidday"}else{e=document.all?e+'<TD style="width:22px; border:'+cal_dayInitialBorder+'" onclick="cal_updateDayFuture(this.innerText, \''+futureObj.id+'\');" onmouseover="cal_mouseover(this);" onmouseout="cal_mouseout(this);"':e+'<TD style="width:22px; border:'+cal_dayInitialBorder+
'" onclick="cal_updateDayFuture(this.textContent, \''+futureObj.id+'\');" onmouseover="cal_mouseover(this);" onmouseout="cal_mouseout(this);"';if(cal_isSelectedDate(cal_intDDSelected,cal_intMMSelected,cal_intYYYYSelected,h)==true)g=cal_isToday(h,a.getMonth(),cal_getYear(a))==true?"CalSelectedToday":"CalSelectedday";else if(cal_isToday(h,a.getMonth(),cal_getYear(a))==true)g="CalToday"}if(column==0||column==6)switch(g){case "CalSelectedToday":e=e+' style="background-color:'+cal_weekendSelectedBGColor+
";border: 1px solid"+cal_weekendBGColor+' " class="'+g+'">'+h+"</TD>";break;case "CalSelectedday":e=e+' style="background-color:'+cal_weekendSelectedBGColor+";border: 1px solid"+cal_weekendBGColor+' " class="'+g+'">'+h+"</TD>";break;default:e=e+' style="background-color:'+cal_weekendBGColor+";border:1px solid"+cal_weekendBGColor+' " class="'+g+'">'+h+"</TD>"}else e=e+' class="'+g+'">'+h+"</TD>";column++;if(column==7){e+="</TR><TR>";column=0}}if(column<7&&column>0){for(h=1;h<=7-column;h++)e=column+
h==7?e+'<TD style="background-color:'+cal_weekendBGColor+";border:1px solid"+cal_weekendBGColor+' " class="CalUnavailable">'+h+"</TD>":e+'<TD class="CalUnavailable">'+h+"</TD>";e+="</TR><TR>"}e+=cal_LangId=="fr"?"</tr><tr><td class='Calgototoday' colspan='7' onclick=\"cal_setToday();\">(f)Go to today</td></tr>":"</tr><tr><td class='Calgototoday' colspan='7' onclick=\"cal_setToday();\">Go to today</td></tr>";e+="</TABLE>";calendarUI.innerHTML=e;calendarIF.style.width=1;calendarIF.style.height=1;calendarUI.focus()}
function cal_isPastDate(a,b,c,f){a=cal_getYesterday(a,b,c).split("/");return f<a[1]&&cal_intMM<=a[0]&&cal_intYYYY<=a[2]||cal_intMM<a[0]&&cal_intYYYY<=a[2]?true:false}function cal_getYesterday(a,b,c){cal_monthDays[1]=cal_getFebDays(c);var f=a;if(a>1)f-=1;else{if(b>1)b-=1;else{c-=1;b=12}f=cal_monthDays[b-1]}return b+"/"+f+"/"+c}function cal_isSelectedDate(a,b,c,f){return f==a&&cal_intMM==b&&cal_intYYYY==c?true:false}function cal_getYear(a){return a.getYear()<2E3?a.getYear()+1900:a.getYear()}
function cal_isToday(a,b,c){return a==cal_dteToday.getDate()&&b==cal_dteToday.getMonth()&&c==cal_getYear(cal_dteToday)?true:false}function cal_setToday(){cal_intDD=cal_dteToday.getDate();cal_intMM=cal_dteToday.getMonth()+1;cal_intYYYY=cal_dteToday.getYear();if(cal_intYYYY<2E3)cal_intYYYY+=1900;var a=new Date(cal_getDateString(cal_intMM,cal_intDD,cal_intYYYY));cal_calendar(a)}
function cal_updateDay(a){cal_intDD=a;cal_getDateString(cal_intMM,cal_intDD,cal_intYYYY);cal_targetEl.value=cal_intMM+"/"+cal_intDD+"/"+cal_intYYYY;cal_close()}
function cal_updateDayFuture(a,b){var c=document.getElementById(b);cal_intDD=a;var f=new Date(cal_getDateString(cal_intMM,cal_intDD,cal_intYYYY));cal_targetEl.value=cal_intMM+"/"+cal_intDD+"/"+cal_intYYYY;if(c.value!=""){var d=c.value.split("/");d=new Date(cal_getDateString(d[0],d[1],d[2]));if(f>d){d=new Date;cal_intMM--;d.setFullYear(cal_intYYYY,cal_intMM,cal_intDD);d.setDate(f.getDate()+7);c.value=d.getMonth()+1+"/"+d.getDate()+"/"+d.getFullYear()}}cal_close()}
function cal_getFebDays(a){return a%4==0&&a%100!=0||a%400==0?29:28}
function cal_forward(){var a=document.getElementById("CalYearSelect").selectedIndex;if(document.getElementById("CalYearSelect")[a].value==cal_getYear(cal_dteToday)+cal_nMaxYears-1&&cal_intMM==12)return 0;cal_intMM++;if(cal_intMM>12){cal_intMM=1;cal_intYYYY++}cal_monthDays[1]=cal_getFebDays(cal_intYYYY);if(cal_intDD>cal_monthDays[cal_intMM-1])intDD=cal_monthDays[cal_intMM-1];a=new Date(cal_getDateString(cal_intMM,cal_intDD,cal_intYYYY));cal_calendar(a)}
function cal_forwardUpdate(a){var b=document.getElementById("CalYearSelect").selectedIndex;if(document.getElementById("CalYearSelect")[b].value==cal_getYear(cal_dteToday)+cal_nMaxYears-1&&cal_intMM==12)return 0;a=document.getElementById(a.toString());cal_intMM++;if(cal_intMM>12){cal_intMM=1;cal_intYYYY++}cal_monthDays[1]=cal_getFebDays(cal_intYYYY);if(cal_intDD>cal_monthDays[cal_intMM-1])intDD=cal_monthDays[cal_intMM-1];b=new Date(cal_getDateString(cal_intMM,cal_intDD,cal_intYYYY));cal_calendarUpdate(b,
a.id.toString())}
function cal_back(){var a=document.getElementById("CalYearSelect").selectedIndex;a=document.getElementById("CalYearSelect")[a].value;var b=cal_intMM-1;if(b<1)b=12;if(a<cal_getYear(cal_dteToday))return 0;else if(a==cal_getYear(cal_dteToday)&&b<cal_dteToday.getMonth()+1)return 0;if(blnRollPast==true)cal_intMM--;else if(cal_intMM>cal_dteToday.getMonth()+1&&cal_intYYYY>=cal_getYear(cal_dteToday)||cal_intYYYY>cal_getYear(cal_dteToday))cal_intMM--;if(cal_intMM<1){cal_intMM=12;cal_intYYYY--}if(cal_intYYYY<cal_arrYears[0])cal_intYYYY=
cal_arrYears[cal_arrYears.length-1];cal_monthDays[1]=cal_getFebDays(cal_intYYYY);if(cal_intDD>cal_monthDays[cal_intMM-1])cal_intDD=cal_monthDays[cal_intMM-1];a=new Date(cal_getDateString(cal_intMM,cal_intDD,cal_intYYYY));cal_calendar(a)}
function cal_backUpdate(a){var b=document.getElementById("CalYearSelect").selectedIndex;b=document.getElementById("CalYearSelect")[b].value;var c=cal_intMM-1;if(c<1)c=12;if(b<cal_getYear(cal_dteToday))return 0;else if(b==cal_getYear(cal_dteToday)&&c<cal_dteToday.getMonth()+1)return 0;a=document.getElementById(a);b=cal_intMM;if(b<10)b="0"+b;b=""+cal_intYYYY+b;c=cal_dteToday.getYear();if(c<2E3)c+=1900;var f=cal_dteToday.getMonth()+1;if(f<10)f="0"+f;if(b<=""+c+f)return 0;if(blnRollPast==true)cal_intMM--;
else if(cal_intMM>cal_dteToday.getMonth()+1&&cal_intYYYY>=cal_getYear(cal_dteToday)||cal_intYYYY>cal_getYear(cal_dteToday))cal_intMM--;if(cal_intMM<1){cal_intMM=12;cal_intYYYY--}if(cal_intYYYY<cal_arrYears[0])cal_intYYYY=cal_arrYears[cal_arrYears.length-1];cal_monthDays[1]=cal_getFebDays(cal_intYYYY);if(cal_intDD>cal_monthDays[cal_intMM-1])cal_intDD=cal_monthDays[cal_intMM-1];b=new Date(cal_getDateString(cal_intMM,cal_intDD,cal_intYYYY));cal_calendarUpdate(b,a.id.toString())}
function cal_refreshCal(a){if(a==cal_getYear(cal_dteToday)&&cal_intMM<cal_dteToday.getMonth()+1){cal_setToday();return 0}cal_intYYYY=a;cal_monthDays[1]=cal_getFebDays(cal_intYYYY);if(cal_intDD>cal_monthDays[cal_intMM-1])cal_intDD=cal_monthDays[cal_intMM-1];a=new Date(cal_getDateString(cal_intMM,cal_intDD,cal_intYYYY));cal_calendar(a)}
function cal_showFutureCalendar(a,b,c){c=document.getElementById(c).value.split("/");cal_dteToday=new Date(cal_getDateString(c[0],c[1],c[2]));cal_showCalendarNoUpdate(a,b)}
function cal_showCalendarNoUpdate(a,b){if(calendarIF==null){calendarIF=document.createElement("iframe");calendarIF.style.position="absolute";calendarIF.style.visibility="hidden";calendarIF.disabled=true;calendarIF.style.zIndex=0;document.body.appendChild(calendarIF)}if(calendarUI==null){calendarUI=document.createElement("DIV");calendarUI.style.position="absolute";calendarUI.style.visibility="hidden";calendarUI.style.zIndex=999;document.body.appendChild(calendarUI)}if(calSelectList==null&&cal_useCalSelect==
true){calSelectList=document.createElement("DIV");calSelectList.style.position="absolute";calSelectList.style.visibility="hidden";calSelectList.style.height="120";calSelectList.style.overflow="auto";calSelectList.id="cal_SelectList";calSelectList.style.zIndex=9999;document.body.appendChild(calSelectList)}cal_LangId=b.toLowerCase();var c=document.getElementById(a);cal_targetEl=c.previousSibling;var f=cal_targetEl.value==""?[cal_intMM,cal_intDD,cal_intYYYY]:cal_targetEl.value.split("/");cal_intMM=f[0];
cal_intDD=f[1];cal_intYYYY=f[2];cal_intMMSelected=f[0];cal_intDDSelected=f[1];cal_intYYYYSelected=f[2];cal_genYearList(cal_intYYYY);calendarUI.x=cal_getposOffset(c,"left");calendarUI.y=cal_getposOffset(c,"top");calendarUI.style.left=calendarUI.x+"px";calendarUI.style.top=calendarUI.y+"px";calendarUI.style.visibility="visible";calendarIF.style.left=calendarUI.style.left;calendarIF.style.top=calendarUI.style.top;calendarIF.style.border=0;calendarIF.style.visibility="visible";c=new Date(cal_getDateString(cal_intMM,
cal_intDD,cal_intYYYY));cal_calendar(c)}
function cal_showCalendar(a,b,c){c=c.toString();if(calendarIF==null){calendarIF=document.createElement("iframe");calendarIF.style.position="absolute";calendarIF.style.visibility="hidden";calendarIF.disabled=true;calendarIF.style.zIndex=0;document.body.appendChild(calendarIF)}if(calendarUI==null){calendarUI=document.createElement("DIV");calendarUI.style.position="absolute";calendarUI.style.visibility="hidden";calendarUI.style.zIndex=999;document.body.appendChild(calendarUI)}if(calSelectList==null&&
cal_useCalSelect==true){calSelectList=document.createElement("DIV");calSelectList.style.position="absolute";calSelectList.style.visibility="hidden";calSelectList.style.height="120";calSelectList.style.overflow="auto";calSelectList.id="cal_SelectList";calSelectList.style.zIndex=9999;document.body.appendChild(calSelectList)}cal_LangId=b.toLowerCase();a=document.getElementById(a);cal_targetEl=a.previousSibling;b=cal_targetEl.value==""?[cal_intMM,cal_intDD,cal_intYYYY]:cal_targetEl.value.split("/");cal_intMM=
b[0];cal_intDD=b[1];cal_intYYYY=b[2];cal_intMMSelected=b[0];cal_intDDSelected=b[1];cal_intYYYYSelected=b[2];cal_genYearList(cal_intYYYY);calendarUI.x=cal_getposOffset(a,"left");calendarUI.y=cal_getposOffset(a,"top");calendarUI.style.left=calendarUI.x+"px";calendarUI.style.top=calendarUI.y+"px";calendarUI.style.visibility="visible";calendarIF.style.left=calendarUI.style.left;calendarIF.style.top=calendarUI.style.top;calendarIF.style.border=0;calendarIF.style.visibility="visible";a=new Date(cal_getDateString(cal_intMM,
cal_intDD,cal_intYYYY));cal_calendarUpdate(a,c)}function cal_SelectValue(a){var b=document.getElementById("cal_SelectValue");calSelectList.style.visibility="hidden";if(document.all)b.innerText=a;else b.textContent=a;cal_refreshCal(a)}
function cal_showSelectlist(){if(calSelectList.style.visibility=="visible"){calSelectList.style.visibility="hidden";return 0}var a=document.getElementById("cal_SelectValue"),b=document.getElementById("cal_SelectDropDown").getBoundingClientRect();if(parseInt(calSelectList.scrollHeight)>parseInt(calSelectList.style.height))calSelectList.style.width=18+b.right-b.left;else{calSelectList.style.width=2+b.right-b.left;calSelectList.style.height=2+b.bottom-b.top}calSelectList.style.left=a.getBoundingClientRect().left-
2;calSelectList.style.top=a.getBoundingClientRect().bottom-2;calSelectList.style.visibility="visible"}function cal_close(){cal_hideElement(calendarUI);cal_hideElement(calendarIF)}function cal_hideElement(a){a.style.visibility="hidden"}function cal_mouseover(a){a.style.border=cal_dayMouseOverBorder;a.style.width=22}function cal_mouseout(a){a.style.border=a.style.backgroundColor==cal_weekendBGColor?"1px solid "+cal_weekendBGColor:cal_dayMouseOutBorder;a.style.width=22}
function cal_Selectmouseover(a){a.style.border=cal_dayMouseOverBorder;a.style.width=22}function cal_Selectmouseout(a){a.style.border=cal_SelectMouseOutBorder;a.style.width=22}function cal_getposOffset(a,b){for(var c=b=="left"?a.offsetLeft:a.offsetTop,f=a.offsetParent;f!=null;){c=b=="left"?c+f.offsetLeft:c+f.offsetTop;f=f.offsetParent}return c}if(typeof deconcept=="undefined")var deconcept={};if(typeof deconcept.util=="undefined")deconcept.util={};
if(typeof deconcept.SWFObjectUtil=="undefined")deconcept.SWFObjectUtil={};
deconcept.SWFObject=function(a,b,c,f,d,e,g,h,l,n,m,j,k){if(document.createElement&&document.getElementById){this.DETECT_KEY=k?k:"detectflash";this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params={};this.variables={};this.attributes=[];a&&this.setAttribute("swf",a);b&&this.setAttribute("id",b);c&&this.setAttribute("width",c);f&&this.setAttribute("height",f);d&&this.setAttribute("version",new deconcept.PlayerVersion(d.toString().split(".")));this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion(this.getAttribute("version"),
l);e&&this.addParam("bgcolor",e);g&&this.addParam("alt",g);h&&this.addParam("title",h);this.addParam("quality",n?n:"high");this.setAttribute("useExpressInstall",l);this.setAttribute("doExpressInstall",false);this.setAttribute("xiRedirectUrl",m?m:window.location);this.setAttribute("redirectUrl","");j&&this.setAttribute("redirectUrl",j)}};
deconcept.SWFObject.prototype={setAttribute:function(a,b){this.attributes[a]=b},getAttribute:function(a){return this.attributes[a]},addParam:function(a,b){this.params[a]=b},getParams:function(){return this.params},addVariable:function(a,b){this.variables[a]=b},getVariable:function(a){return this.variables[a]},getVariables:function(){return this.variables},getVariablePairs:function(){var a=[],b,c=this.getVariables();for(b in c)a.push(b+"="+c[b]);return a},getSWFHTML:function(){var a="";if(navigator.plugins&&
navigator.mimeTypes&&navigator.mimeTypes.length){this.getAttribute("doExpressInstall")&&this.addVariable("MMplayerType","PlugIn");a='<embed type="application/x-shockwave-flash" src="'+this.getAttribute("swf")+'" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'"';a+=' id="'+this.getAttribute("id")+'" name="'+this.getAttribute("id")+'" ';var b=this.getParams(),c;for(c in b)a+=[c]+'="'+b[c]+'" ';b=this.getVariablePairs().join("&");if(b.length>0)a+='flashvars="'+b+'"';a+=
"/>"}else{this.getAttribute("doExpressInstall")&&this.addVariable("MMplayerType","ActiveX");a='<object id="'+this.getAttribute("id")+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'">';a+='<param name="movie" value="'+this.getAttribute("swf")+'" />';b=this.getParams();for(c in b)a+='<param name="'+c+'" value="'+b[c]+'" />';a+='<param name="wmode" value="transparent" />';b=this.getVariablePairs().join("&");if(b.length>
0)a+='<param name="flashvars" value="'+b+'" />';a+="</object>"}return a},write:function(a){if(this.getAttribute("useExpressInstall"))if(this.installedVer.versionIsValid(new deconcept.PlayerVersion([6,0,65]))&&!this.installedVer.versionIsValid(this.getAttribute("version"))){this.setAttribute("doExpressInstall",true);this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));document.title=document.title.slice(0,47)+" - Flash Player Installation";this.addVariable("MMdoctitle",document.title)}if(this.skipDetect||
this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){(typeof a=="string"?document.getElementById(a):a).innerHTML=this.getSWFHTML();return true}else this.getAttribute("redirectUrl")!=""&&document.location.replace(this.getAttribute("redirectUrl"));return false}};
deconcept.SWFObjectUtil.getPlayerVersion=function(a,b){var c=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var f=navigator.plugins["Shockwave Flash"];if(f&&f.description)c=new deconcept.PlayerVersion(f.description.replace(/([a-z]|[A-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."))}else{try{f=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");for(var d=3;f!=null;d++){f=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+d);c=new deconcept.PlayerVersion([d,
0,0])}}catch(e){}if(a&&c.major>a.major)return c;if(!a||(a.minor!=0||a.rev!=0)&&c.major==a.major||c.major!=6||b)try{c=new deconcept.PlayerVersion(f.GetVariable("$version").split(" ")[1].split(","))}catch(g){}}return c};deconcept.PlayerVersion=function(a){this.major=parseInt(a[0])!=null?parseInt(a[0]):0;this.minor=parseInt(a[1])||0;this.rev=parseInt(a[2])||0};
deconcept.PlayerVersion.prototype.versionIsValid=function(a){if(this.major<a.major)return false;if(this.major>a.major)return true;if(this.minor<a.minor)return false;if(this.minor>a.minor)return true;if(this.rev<a.rev)return false;return true};deconcept.util={getRequestParameter:function(a){var b=document.location.search||document.location.hash;if(b){a=b.indexOf(a+"=");var c=b.indexOf("&",a)>-1?b.indexOf("&",a):b.length;if(b.length>1&&a>-1)return b.substring(b.indexOf("=",a)+1,c)}return""}};
if(Array.prototype.push==null)Array.prototype.push=function(a){this[this.length]=a;return this.length};var getQueryParamValue=deconcept.util.getRequestParameter,FlashObject=deconcept.SWFObject,SWFObject=deconcept.SWFObject;function OpenColorbox(a){OpenColorbox(a,640,480)}function OpenColorbox(a,b,c){eval('$.colorbox({iframe:true, href:"'+a+'", iframe:true, open:true, width:"'+b+'px", height:"'+c+'px"});')};

