﻿

/************ File: Constants.js ************/
try { var sEnvironment="";var ImagesFQDN=document.location.protocol+"//f.nanafiles.co.il/";}catch (ex){}



/************ File: Nana.js ************/
try { var sFP=window.location.protocol+"//"+window.location.host;try{var sNUI=(new Cookie("NUI")).getCookie().replace(/[+]/g," ");}catch(ex){}function trim(str){return str.replace(/^\s*|\s*$/g,"");}String.prototype.trim=function(){return trim(this);};function randOrd(a,b){return(Math.round(Math.random())-0.5);}function dec2hex(n){n=parseInt(n);var c="ABCDEF";var b=n/16;var r=n%16;b=b-(r/16);b=((b>=0)&&(b<=9))?b:c.charAt(b-10);return((r>=0)&&(r<=9))?b+""+r:b+""+c.charAt(r-10);}function UrlEncode(sStr){var sReturn="";for(var i=0;i<sStr.length;i++){var iUni=sStr.charCodeAt(i);if(iUni>=1488&&iUni<=1514){var iAsc=iUni-1264;sReturn+=escape(String.fromCharCode(iAsc));}else{if(iUni==32){sReturn+=escape("+");}else{if(iUni==43){sReturn+="%2b";}else{sReturn+=escape(sStr.charAt(i));}}}}return sReturn;}function utf8_decode(utftext){var string="";var i=0;var c=c1=c2=0;while(i<utftext.length){c=utftext.charCodeAt(i);if(c<128){string+=String.fromCharCode(c);i++;}else{if((c>191)&&(c<224)){c2=utftext.charCodeAt(i+1);string+=String.fromCharCode(((c&31)<<6)|(c2&63));i+=2;}else{c2=utftext.charCodeAt(i+1);c3=utftext.charCodeAt(i+2);string+=String.fromCharCode(((c&15)<<12)|((c2&63)<<6)|(c3&63));i+=3;}}}return string;}function suycDateDiff(start){var strMonthArray=new Array(12);strMonthArray[0]="Jan";strMonthArray[1]="Feb";strMonthArray[2]="Mar";strMonthArray[3]="Apr";strMonthArray[4]="May";strMonthArray[5]="Jun";strMonthArray[6]="Jul";strMonthArray[7]="Aug";strMonthArray[8]="Sep";strMonthArray[9]="Oct";strMonthArray[10]="Nov";strMonthArray[11]="Dec";var text=start.substring(5);var sMounth=text;sMounth=text.substring(3);sMounth=sMounth.substring(1,3);if(sMounth.indexOf(0)==0){sMounth=sMounth.substring(1,2);}sMounth=strMonthArray[sMounth-1];var sDay=text;sDay=sDay.substring(1,3);var sYear=text;sYear=sYear.substring(7,11);start=sDay+" "+sMounth+" "+sYear;var now;now=new Date();var iOut=0;var bufferA=Date.parse(start);var bufferB=Date.parse(now);if(isNaN(bufferA)||isNaN(bufferB)){return 0;}var number=bufferB-bufferA;iOut=parseInt(number/86400000);return iOut;}function defined(o){return(typeof (o)!="undefined");}function SearchRedirectLocal(e){if(!defined(e)&&defined(window.event)){e=window.event;}return SearchRedirect(false,(e.target||e.srcElement));}function SearchRedirect(bReturnString,frm){var sParamName,sParamValue,arrSplit,sUrl="";var oSearchBar=(!defined(frm))?document.getElementById("SearchBar"):frm;var oDiv=new Div(oSearchBar);var oArrInput;var nNumOfParam=0;var sKeywordParam;var sArrIgnore=new Array("q","serviceAction");var arrURL,sOptionId;var oQ=oSearchBar.q;oQ=CleanKeywords(oQ);if(oQ.value.length<2||oQ.value=="׳—׳₪׳©׳• ׳?׳×׳¨"){alert("׳?׳™׳?׳× ׳—׳™׳₪׳•׳© ׳¦׳¨׳™׳›׳” ׳?׳”׳›׳™׳? ׳?׳₪׳—׳•׳× 2 ׳×׳•׳•׳™׳? ׳—׳•׳§׳™׳™׳?");return false;}if(oSearchBar.serviceAction.value){arrURL=oSearchBar.serviceAction.value.split("|");}else{var oSA=document.getElementsByName("serviceAction");for(var i=0;i<oSA.length;i++){if(oSA[i].checked){sOptionId=oSA[i].id;arrURL=oSA[i].value.split("|");break;}}}if(typeof (arrURL)!="undefined"){nNumOfParam=arrURL.length;}if(nNumOfParam>2){for(var i=1;i<nNumOfParam-1;i++){arrSplit=arrURL[i].split("=");sParamName=arrSplit[0];sParamValue=arrSplit[1];sUrl+="&"+escape(sParamName)+"="+UrlEncode(sParamValue);}}if(typeof (arrURL)!="undefined"){if(arrURL[0].toLowerCase().indexOf("ftsearch")>=0){if(!ValidateSearchString(oQ.value.trim())){alert(".׳?׳™׳?׳× ׳—׳™׳₪׳•׳© ׳™׳›׳•׳?׳” ׳?׳”׳›׳™׳? ׳?׳•׳×׳™׳•׳× ׳‘׳?׳ ׳’׳?׳™׳×, ׳¢׳‘׳¨׳™׳× ׳•׳¡׳₪׳¨׳•׳×");return false;}}}oArrInput=oSearchBar.getAllChild("INPUT");for(var i=0;i<oArrInput.length;i++){if(sArrIgnore[0]!=oArrInput[i].name&&sArrIgnore[1]!=oArrInput[i].name){if((oArrInput[i].type=="radio"&&oArrInput[i].checked)||oArrInput[i].type!="radio"){sUrl+="&"+escape(oArrInput[i].name)+"="+UrlEncode(oArrInput[i].value);}}}oArrInput=oSearchBar.getAllChild("SELECT");for(var i=0;i<oArrInput.length;i++){if(sArrIgnore[0]!=oArrInput[i].name&&sArrIgnore[1]!=oArrInput[i].name){sUrl+="&"+escape(oArrInput[i].name)+"="+UrlEncode(oArrInput[i].value);}}if(typeof (arrURL)!="undefined"){sKeywordParam=arrURL[nNumOfParam-1];}sUrl+="&gr=";sUrl+=oSearchBar.g.checked?"1":"0";sUrl=sUrl+"&"+escape(sKeywordParam)+"="+UrlEncode(oQ.value);if(typeof (arrURL)!="undefined"){sUrl=arrURL[0]+"?"+sUrl.substring(1);}else{sUrl=sUrl.substring(1);}if(sOptionId){sUrl+="&sbId="+sOptionId.replace("serviceAction","");}if(oQ.value!=""){if(bReturnString){return sUrl;}else{parent.location=sUrl;return false;}}else{return false;}}function SelectSearchButton(){var sSrbId=RequestQueryString("sbId");if(sSrbId!=""){var oSrlOldId=document.getElementById("FontSelected1");var oSrlId=document.getElementById("FontSelected"+sSrbId);var oSrb=document.getElementById("serviceAction"+sSrbId);if(oSrb){oSrb.checked=true;oSrlOldId.style.fontWeight="normal";oSrlId.style.fontWeight="bold";}}}function ValidateSearchString(sStr){for(i=0;i<sStr.length;i++){var iChar=sStr.charCodeAt(i);if(!((iChar==32)||(iChar>=97&&iChar<=122)||(iChar>=65&&iChar<=90)||(iChar>=48&&iChar<=57)||(iChar>=1488&&iChar<=1514))){return false;}}return true;}function CleanKeywords(oKeyword){var KeywordValue=oKeyword.value;KeywordValue=KeywordValue.replace("http://","");KeywordValue=KeywordValue.replace("www.","");KeywordValue=KeywordValue.replace(".com","");KeywordValue=KeywordValue.replace(".co","");KeywordValue=KeywordValue.replace(".net","");KeywordValue=KeywordValue.replace(".org","");KeywordValue=KeywordValue.replace(".gov","");KeywordValue=KeywordValue.replace(".net","");KeywordValue=KeywordValue.replace(".il","");KeywordValue=KeywordValue.replace("planet.nana","");KeywordValue=KeywordValue.replace("members.nana","");KeywordValue=KeywordValue.replace(".asp","");KeywordValue=KeywordValue.replace(".htm","");KeywordValue=KeywordValue.replace(".html","");KeywordValue=KeywordValue.replace(/\?/g," ");KeywordValue=KeywordValue.replace(/!/g," ");KeywordValue=KeywordValue.replace(/;/g," ");KeywordValue=KeywordValue.replace(/\+/g," ");KeywordValue=KeywordValue.replace(/-/g," ");KeywordValue=KeywordValue.replace(/~/g," ");KeywordValue=KeywordValue.replace(/%/g," ");KeywordValue=KeywordValue.replace(/$/g," ");KeywordValue=KeywordValue.replace(/&/g," ");KeywordValue=KeywordValue.replace(/^/g," ");KeywordValue=KeywordValue.replace(/^/g," ");KeywordValue=KeywordValue.replace(/@/g," ");KeywordValue=KeywordValue.replace(/=/g," ");KeywordValue=KeywordValue.replace("/"," ");KeywordValue=KeywordValue.replace(/\[/g," ");KeywordValue=KeywordValue.replace(/]/g," ");KeywordValue=KeywordValue.replace(/\(/g," ");KeywordValue=KeywordValue.replace(/\)/g," ");KeywordValue=KeywordValue.replace(/\*/g," ");KeywordValue=KeywordValue.replace(/#/g," ");KeywordValue=KeywordValue.replace(/}/g," ");KeywordValue=KeywordValue.replace(/{/g," ");KeywordValue=KeywordValue.replace(/,/g," ");KeywordValue=KeywordValue.replace(/</g," ");KeywordValue=KeywordValue.replace(/>/g," ");oKeyword.value=trim(KeywordValue);return oKeyword;}function SearchNoValidateSubmit(){return true;}function DecodeKeyword(sKeyword){var sNewKeyword="";if(typeof (sKeyword)!="undefined"){var aWords=sKeyword.split("+");for(j=0;j<aWords.length;j++){var aLetters=aWords[j].split("%D7");if(aLetters.length>1){for(i=1;i<aLetters.length;i++){sNewKeyword+="%"+dec2hex(parseInt("0x"+aLetters[i].substr(1,2))+80);}}else{sNewKeyword+=aWords[j];}if(j<aWords.length-1){sNewKeyword+="+";}}}return sNewKeyword;}function NanaPopUp(sPopupWinArgs){NanaPopUpReturn(sPopupWinArgs);}function NanaPopUpReturn(sPopupWinArgs){if(sPopupWinArgs!=""){var sURL="";var sWidth="";var sHeight="";var sFeatures="";var sScrollBars="";var oNewWindow;var sName="PopupWin";var sFeatures="";var arrArgs=sPopupWinArgs.split(",");typeof (arrArgs[0])=="string"?sURL=arrArgs[0]:{};if(typeof (arrArgs[1])=="string"){sWidth=arrArgs[1].toLowerCase();}else{parent.location.href=sURL;self.focus();return(null);}typeof (arrArgs[2])=="string"?sHeight=arrArgs[2].toLowerCase():{};typeof (arrArgs[3])=="string"?sScrollBars=arrArgs[3].toLowerCase():{};sFeatures="top=10, left=10";if(sWidth=="width=0"){sWidth="";}else{if(sWidth.indexOf("width")==-1){sWidth=", width="+sWidth;}}if(sHeight=="height=0"){sHeight="";}else{if(sHeight.indexOf("height")==-1){sHeight=", height="+sHeight;}}if(sScrollBars!=""&&sScrollBars.indexOf("scrollbars")==-1){sScrollBars=", scrollbars="+sScrollBars;}sFeatures=sFeatures+sWidth+sHeight+sScrollBars;oNewWindow=window.open(sURL,sName,sFeatures);return oNewWindow;}}function RequestQueryString(KeyName,qrStr){if(typeof (qrStr)=="undefined"){var qrStr=window.location.search;}else{var arrHref=qrStr.split("?");qrStr=(arrHref.length<2)?arrHref[0]:arrHref[1];}var spQrStr=qrStr.substring(1);var arr=spQrStr.split("&");for(var i=0;i<arr.length;i++){var index=arr[i].indexOf("=");var key=arr[i].substring(0,index);var val=arr[i].substring(index+1);if(key==KeyName){return val;}}}function GetWindowWidth(){var myWidth=0,myHeight=0;if(typeof (window.innerWidth)=="number"){myWidth=window.innerWidth;}else{if(document.documentElement&&(document.documentElement.clientWidth||document.documentElement.clientHeight)){myWidth=document.documentElement.clientWidth;}else{if(document.body&&(document.body.clientWidth||document.body.clientHeight)){myWidth=document.body.clientWidth;}}}return myWidth;}function GetWindowHeight(){var myWidth=0,myHeight=0;if(typeof (window.innerWidth)=="number"){myHeight=window.innerHeight;}else{if(document.documentElement&&(document.documentElement.clientWidth||document.documentElement.clientHeight)){myHeight=document.documentElement.clientHeight;}else{if(document.body&&(document.body.clientWidth||document.body.clientHeight)){myHeight=document.body.clientHeight;}}}return myHeight;}function getScrollXY(){var scrOfX=0,scrOfY=0;if(typeof (window.pageYOffset)=="number"){scrOfY=window.pageYOffset;scrOfX=window.pageXOffset;}else{if(document.body&&(document.body.scrollLeft||document.body.scrollTop)){scrOfY=document.body.scrollTop;scrOfX=document.body.scrollLeft;}else{if(document.documentElement&&(document.documentElement.scrollLeft||document.documentElement.scrollTop)){scrOfY=document.documentElement.scrollTop;scrOfX=document.documentElement.scrollLeft;}}}return[scrOfX,scrOfY];}function saveCookie(name,value,days){if(days){var date=new Date();date.setTime(date.getTime()+(days*24*60*60*1000));var expires="; expires="+date.toGMTString();}else{expires="";}document.cookie=name+"="+value+expires+"; path=/";}function readCookie(name){var nameEQ=name+"=";var ca=document.cookie.split(";");for(var i=0;i<ca.length;i++){var c=ca[i];while(c.charAt(0)==" "){c=c.substring(1,c.length);}if(c.indexOf(nameEQ)==0){return c.substring(nameEQ.length,c.length);}}return 1;}function XmlLoader(source){var xmlDoc;if(!source.documentElement){source=source||"<root></root>";try{xmlDoc=new ActiveXObject("Microsoft.XMLDOM");xmlDoc.async="false";xmlDoc.loadXML(source);}catch(e){try{parser=new DOMParser();xmlDoc=parser.parseFromString(source,"text/xml");}catch(e){return null;}}source=xmlDoc;}return source;}function displayWallashopsTemplate(sTargetId,sTemplateId){$(function(){if(typeof oWsProducts!="undefined"){if(typeof oWsProducts.error=="undefined"){oWsProducts.vertical_template.sort(randOrd);oWsProducts.main_template.sort(randOrd);oWsProducts.horizontal_template.sort(randOrd);$("#"+sTargetId).setTemplateElement(sTemplateId,null,{filter_data:false});$("#"+sTargetId).processTemplate(oWsProducts);}}});}function SetGirafaCheckbox(flag,Formobject){if(flag){Formobject.gr.value=1;}else{Formobject.gr.value=0;}}var naPageRefreshEnabled=true;function SetPageRefresh(iTimeoutInterval){if(iTimeoutInterval>0){window.setTimeout(function(){PerformPageRefresh(iTimeoutInterval);},iTimeoutInterval);}}function PerformPageRefresh(iTimeoutInterval){if(naPageRefreshEnabled){document.location.href=document.location.href;}else{window.setTimeout(function(){PerformPageRefresh(iTimeoutInterval);},iTimeoutInterval);}}function TogglePageRefresh(bVal){naPageRefreshEnabled=bVal;}function CheckSurveyType1Form(){var bFormFilled=true;var bQuestionFilled=false;for(i=0;i<document.getElementsByName("QuestionID").length;i++){bQuestionFilled=false;for(j=0;j<document.getElementsByName(document.getElementsByName("QuestionID")[i].value).length;j++){if(document.getElementsByName(document.getElementsByName("QuestionID")[i].value)[j].checked==true){bQuestionFilled=true;break;}}if(bQuestionFilled!=true){bFormFilled=false;break;}}return bFormFilled;}function CheckSurveyType2Form(){if(CheckSurveyType1Form()){if(document.getElementById("FirstName").value!=""&&document.getElementById("LastName").value!=""&&document.getElementById("Address").value!=""&&(new Input(document.getElementById("Email")).CheckEmail())){new Div(document.getElementById("oMsg")).Open();new Div(document.getElementById("oMsgBold")).Close();return true;}else{if(document.getElementById("FirstName").value==""||document.getElementById("LastName").value==""||document.getElementById("Address").value==""){document.getElementById("oMsgBold").innerHTML="׳ ׳? ׳?׳?׳?׳? ׳?׳× ׳›׳? ׳”׳©׳“׳•׳× ׳”׳?׳¡׳•׳?׳ ׳™׳? ׳‘׳›׳•׳›׳‘׳™׳×";}else{document.getElementById("oMsgBold").innerHTML="׳©׳“׳” ׳“׳•׳?׳¨ ׳?׳?׳§׳˜׳¨׳•׳ ׳™ ׳?׳? ׳×׳§׳™׳?";}new Div(document.getElementById("oMsg")).Close();new Div(document.getElementById("oMsgBold")).Open();return false;}}document.getElementById("oMsgBold").innerHTML="׳?׳ ׳? ׳”׳©׳‘ ׳¢׳? ׳›׳? ׳”׳©׳?׳?׳•׳×.";new Div(document.getElementById("oMsg")).Close();new Div(document.getElementById("oMsgBold")).Open();return false;}function PopUpResizeTicker(){var iWidth=496;var iOffsetY=90;window.moveTo(0,0);window.resizeTo(iWidth,(new Div(document.getElementById("oTickerBody")).getHeight())+iOffsetY);window.focus();}function ValidateForm(){var dt=document.frmSample.txtDate;if(isDate(dt.value)==false){dt.focus();return false;}return true;}function OpenGameWindow(sLink,sTitle){sTitle=sTitle.replace("'","`");var typeid=RequestQueryString("typeid",sLink);if(typeid==""||typeof (typeid)=="undefined"){sLink+="&typeid=5";}else{if(typeid!=5&&typeid!=""){sLink=sLink.replace("typeid="+typeid,"typeid=5");}}window.open(sLink+"&GameN="+sTitle,"","width=1024,height=910,resizable=1,scrollbars=1");}var PluginDetect={handler:function(c,b,a){return function(){c(b,a);};},isDefined:function(b){return typeof b!="undefined";},isArray:function(b){return(b&&b.constructor===Array);},isFunc:function(b){return typeof b=="function";},isString:function(b){return typeof b=="string";},num:function(a){return(this.isString(a)&&(/\d/).test(a));},getNumRegx:/[\d][\d\.\_,-]*/,splitNumRegx:/[\.\_,-]/g,getNum:function(b,c){var d=this,a=d.num(b)?(d.isDefined(c)?new RegExp(c):d.getNumRegx).exec(b):null;return a?a[0].replace(d.splitNumRegx,","):null;},compareNums:function(h,f,d){var e=this,c,b,a,g=parseInt;if(e.num(h)&&e.num(f)){if(e.isDefined(d)&&d.compareNums){return d.compareNums(h,f);}c=h.split(e.splitNumRegx);b=f.split(e.splitNumRegx);for(a=0;a<Math.min(c.length,b.length);a++){if(g(c[a],10)>g(b[a],10)){return 1;}if(g(c[a],10)<g(b[a],10)){return -1;}}}return 0;},formatNum:function(b){var c=this,a,d;if(!c.num(b)){return null;}d=b.replace(/\s/g,"").split(c.splitNumRegx).concat(["0","0","0","0"]);for(a=0;a<4;a++){if(/^(0+)(.+)$/.test(d[a])){d[a]=RegExp.$2;}}if(!(/\d/).test(d[0])){d[0]="0";}return d.slice(0,4).join(",");},$$hasMimeType:function(a){return function(d){if(!a.isIE){var c,b,e,f=a.isString(d)?[d]:d;for(e=0;e<f.length;e++){if(/[^\s]/.test(f[e])&&(c=navigator.mimeTypes[f[e]])&&(b=c.enabledPlugin)&&(b.name||b.description)){return c;}}}return null;};},findNavPlugin:function(g,d){var a=this.isString(g)?g:g.join(".*"),e=d===false?"":"\\d",b,c=new RegExp(a+".*"+e+"|"+e+".*"+a,"i"),f=navigator.plugins;for(b=0;b<f.length;b++){if(c.test(f[b].description)||c.test(f[b].name)){return f[b];}}return null;},AXO:window.ActiveXObject,getAXO:function(b,a){var g=null,f,d=false,c=this;try{g=new c.AXO(b);d=true;}catch(f){}if(c.isDefined(a)){delete g;return d;}return g;},convertFuncs:function(f){var a,g,d,b=/^[\$][\$]/,c={};for(a in f){if(b.test(a)){c[a]=1;}}for(a in c){try{g=a.slice(2);if(g.length>0&&!f[g]){f[g]=f[a](f);}}catch(d){}}},initScript:function(){var $=this,nav=navigator,userAgent=$.isString(nav.userAgent)?nav.userAgent:"",vendor=$.isString(nav.vendor)?nav.vendor:"",platform=$.isString(nav.platform)?nav.platform:"";$.OS=(/win/i).test(platform)?1:((/mac/i).test(platform)?2:((/linux/i).test(platform)?3:4));$.convertFuncs($);$.isIE=
/*@cc_on!@*/
false;$.IEver=$.isIE&&((/MSIE\s*(\d\.?\d*)/i).exec(userAgent))?parseFloat(RegExp.$1,10):-1;$.ActiveXEnabled=false;if($.isIE){var x,progid=["Msxml2.XMLHTTP","Msxml2.DOMDocument","Microsoft.XMLDOM","ShockwaveFlash.ShockwaveFlash","TDCCtl.TDCCtl","Shell.UIHelper","Scripting.Dictionary","wmplayer.ocx"];for(x=0;x<progid.length;x++){if($.getAXO(progid[x],1)){$.ActiveXEnabled=true;break;}}$.head=$.isDefined(document.getElementsByTagName)?document.getElementsByTagName("head")[0]:null;}$.isGecko=!$.isIE&&$.isString(navigator.product)&&(/Gecko/i).test(navigator.product)&&(/Gecko\s*\/\s*\d/i).test(userAgent);$.GeckoRV=$.isGecko?$.formatNum((/rv\s*\:\s*([\.\,\d]+)/i).test(userAgent)?RegExp.$1:"0.9"):null;$.isSafari=!$.isIE&&(/Safari\s*\/\s*\d/i).test(userAgent)&&(/Apple/i).test(vendor);$.isChrome=!$.isIE&&(/Chrome\s*\/\s*\d/i).test(userAgent);$.isOpera=!$.isIE&&(/Opera\s*[\/]?\s*\d/i).test(userAgent);$.addWinEvent("load",$.handler($.runWLfuncs,$));},init:function(d,a){var c=this,b;if(!c.isString(d)){return -3;}if(d.length==1){c.getVersionDelimiter=d;return -3;}b=c[d.toLowerCase().replace(/\s/g,"")];if(!b||!b.getVersion){return -3;}c.plugin=b;if(!c.isDefined(b.installed)||a==true){b.installed=b.version=b.version0=b.getVersionDone=null;b.$=c;}c.garbage=false;if(c.isIE&&!c.ActiveXEnabled){if(b!==c.java){return -2;}}return 1;},fPush:function(b,a){var c=this;if(c.isArray(a)&&(c.isFunc(b)||(c.isArray(b)&&b.length>0&&c.isFunc(b[0])))){a[a.length]=b;}},callArray:function(b){var c=this,a;if(c.isArray(b)){for(a=0;a<b.length;a++){if(b[a]===null){return ;}c.call(b[a]);b[a]=null;}}},call:function(c){var b=this,a=b.isArray(c)?c.length:-1;if(a>0&&b.isFunc(c[0])){c[0](b,a>1?c[1]:0,a>2?c[2]:0,a>3?c[3]:0);}else{if(b.isFunc(c)){c(b);}}},$$isMinVersion:function(a){return function(h,g,d,c){var e=a.init(h),f,b=-1;if(e<0){return e;}f=a.plugin;g=a.formatNum(typeof g=="number"?g.toString():(a.isString(g)?a.getNum(g):"0"));if(!a.num(g)){return -3;}if(f.getVersionDone!=1){f.getVersion(d,c);if(f.getVersionDone===null){f.getVersionDone=1;}}a.cleanup();if(f.installed!==null){b=f.installed<=0.5?f.installed:(f.version===null?0:(a.compareNums(f.version,g,f)>=0?1:-1));}return b;};},getVersionDelimiter:",",$$getVersion:function(a){return function(g,d,c){var e=a.init(g),f,b;if(e<0){return null;}f=a.plugin;if(f.getVersionDone!=1){f.getVersion(d,c);if(f.getVersionDone===null){f.getVersionDone=1;}}a.cleanup();b=(f.version||f.version0);return b?b.replace(a.splitNumRegx,a.getVersionDelimiter):b;};},cleanup:function(){},addWinEvent:function(d,c){var e=this,a=window,b;if(e.isFunc(c)){if(a.addEventListener){a.addEventListener(d,c,false);}else{if(a.attachEvent){a.attachEvent("on"+d,c);}else{b=a["on"+d];a["on"+d]=e.winHandler(c,b);}}}},winHandler:function(d,c){return function(){d();if(typeof c=="function"){c();}};},WLfuncs:[0],runWLfuncs:function(a){a.winLoaded=true;a.callArray(a.WLfuncs);if(a.onDoneEmptyDiv){a.onDoneEmptyDiv();}},winLoaded:false,$$onWindowLoaded:function(a){return function(b){if(a.winLoaded){a.call(b);}else{a.fPush(b,a.WLfuncs);}};},div:null,divWidth:50,pluginSize:1,emptyDiv:function(){var c=this,a,e,b,d=0;if(c.div&&c.div.childNodes){for(a=c.div.childNodes.length-1;a>=0;a--){b=c.div.childNodes[a];if(b&&b.childNodes){if(d==0){for(e=b.childNodes.length-1;e>=0;e--){b.removeChild(b.childNodes[e]);}c.div.removeChild(b);}else{}}}}},onDoneEmptyDiv:function(){var a=this;if(!a.winLoaded){return ;}if(a.WLfuncs&&a.WLfuncs.length>0&&a.isFunc(a.WLfuncs[a.WLfuncs.length-1])){return ;}if(a.java){if(a.java.OTF==3){return ;}if(a.java.funcs&&a.java.funcs.length>0&&a.isFunc(a.java.funcs[a.java.funcs.length-1])){return ;}}a.emptyDiv();},getObject:function(c,a){var g,d=this,f=null,b=d.getContainer(c);try{if(b&&b.firstChild){f=b.firstChild;}if(a&&f){f.focus();}}catch(g){}return f;},getContainer:function(a){return(a&&a[0]?a[0]:null);},instantiate:function(i,c,f,a,j){var l,m=document,h=this,q,p=m.createElement("span"),o,g,n="/";var k=function(s,r){var u=s.style,d,t;if(!u){return ;}u.outline="none";u.border="none";u.padding="0px";u.margin="0px";u.visibility="visible";if(h.isArray(r)){for(d=0;d<r.length;d=d+2){try{u[r[d]]=r[d+1];}catch(t){}}return ;}},b=function(){var s,t="pd33993399",r=null,d=(m.getElementsByTagName("body")[0]||m.body);if(!d){try{m.write('<div id="'+t+'">o<'+n+"div>");r=m.getElementById(t);}catch(s){}}d=(m.getElementsByTagName("body")[0]||m.body);if(d){if(d.firstChild&&h.isDefined(d.insertBefore)){d.insertBefore(h.div,d.firstChild);}else{d.appendChild(h.div);}if(r){d.removeChild(r);}}else{}};if(!h.isDefined(a)){a="";}if(h.isString(i)&&(/[^\s]/).test(i)){q="<"+i+' width="'+h.pluginSize+'" height="'+h.pluginSize+'" ';for(o=0;o<c.length;o=o+2){if(/[^\s]/.test(c[o+1])){q+=c[o]+'="'+c[o+1]+'" ';}}q+=">";for(o=0;o<f.length;o=o+2){if(/[^\s]/.test(f[o+1])){q+='<param name="'+f[o]+'" value="'+f[o+1]+'" />';}}q+=a+"<"+n+i+">";}else{q=a;}if(!h.div){h.div=m.createElement("div");g=m.getElementById("plugindetect");if(g){h.div=g;}else{h.div.id="plugindetect";b();}k(h.div,["width",h.divWidth+"px","height",(h.pluginSize+3)+"px","fontSize",(h.pluginSize+3)+"px","lineHeight",(h.pluginSize+3)+"px","verticalAlign","baseline","display","block"]);if(!g){k(h.div,["position","absolute","right","0px","top","0px"]);}}if(h.div&&h.div.parentNode){h.div.appendChild(p);k(p,["fontSize",(h.pluginSize+3)+"px","lineHeight",(h.pluginSize+3)+"px","verticalAlign","baseline","display","inline"]);try{if(p&&p.parentNode){p.focus();}}catch(l){}try{p.innerHTML=q;}catch(l){}if(p.childNodes.length==1&&!(h.isGecko&&h.compareNums(h.GeckoRV,"1,5,0,0")<0)){k(p.firstChild,["display","inline"]);}return[p];}return[null];},flash:{mimeType:["application/x-shockwave-flash","application/futuresplash"],progID:"ShockwaveFlash.ShockwaveFlash",classID:"clsid:D27CDB6E-AE6D-11CF-96B8-444553540000",getVersion:function(){var c=function(i){if(!i){return null;}var e=/[\d][\d\,\.\s]*[rRdD]{0,1}[\d\,]*/.exec(i);return e?e[0].replace(/[rRdD\.]/g,",").replace(/\s/g,""):null;};var j,g=this.$,h,f,b=null,a=null,d=null;if(!g.isIE){j=g.findNavPlugin("Flash");if(j&&j.description&&g.hasMimeType(this.mimeType)){b=c(j.description);}}else{for(f=15;f>2;f--){a=g.getAXO(this.progID+"."+f);if(a){d=f.toString();break;}}if(d=="6"){try{a.AllowScriptAccess="always";}catch(h){return"6,0,21,0";}}try{b=c(a.GetVariable("$version"));}catch(h){}if(!b&&d){b=d;}}this.installed=b?1:-1;this.version=g.formatNum(b);return true;}},windowsmediaplayer:{mimeType:["application/x-mplayer2","application/asx"],progID:"wmplayer.ocx",classID:"clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6",getVersion:function(){var a=null,e=this.$,b=null;this.installed=-1;if(!e.isIE){if(e.hasMimeType(this.mimeType)){if(e.findNavPlugin(["Windows","Media","(Plug-in|Plugin)"],false)||e.findNavPlugin(["Flip4Mac","Windows","Media"],false)){this.installed=0;}var d=e.isGecko&&e.compareNums(e.GeckoRV,e.formatNum("1.8"))<0;if(!d&&e.findNavPlugin(["Windows","Media","Firefox Plugin"],false)){var c=e.instantiate("object",["type",this.mimeType[0]],[],"",this),f=e.getObject(c);if(f){a=f.versionInfo;}}}}else{b=e.getAXO(this.progID);if(b){a=b.versionInfo;}}if(a){this.installed=1;}this.version=e.formatNum(a);}},silverlight:{mimeType:"application/x-silverlight",progID:"AgControl.AgControl",digits:[9,20,9,12,31],getVersion:function(){var e=this.$,j=document,i=null,c=null,h=false,b=[1,0,1,1,1],r=[1,0,1,1,1],k=function(d){return(d<10?"0":"")+d.toString();},n=function(s,d,u,v,t){return(s+"."+d+"."+u+k(v)+k(t)+".0");},o=function(d,s){return q((d==0?s:r[0]),(d==1?s:r[1]),(d==2?s:r[2]),(d==3?s:r[3]),(d==4?s:r[4]));},q=function(t,s,w,v,u){var u;try{return c.IsVersionSupported(n(t,s,w,v,u));}catch(u){}return false;};if(!e.isIE){var a=[null,null],f=e.findNavPlugin("Silverlight Plug-in",false),g=e.isGecko&&e.compareNums(e.GeckoRV,e.formatNum("1.6"))<=0;if(f&&e.hasMimeType(this.mimeType)){i=e.formatNum(f.description);if(i){r=i.split(e.splitNumRegx);if(parseInt(r[2],10)>=30226&&parseInt(r[0],10)<2){r[0]="2";}i=r.join(",");}if(e.isGecko&&!g){h=true;}if(!h&&!g&&i){a=e.instantiate("object",["type",this.mimeType],[],"",this);c=e.getObject(a);if(c){if(q(b[0],b[1],b[2],b[3],b[4])){h=true;}if(!h){c.data="data:"+this.mimeType+",";if(q(b[0],b[1],b[2],b[3],b[4])){h=true;}}}}}}else{c=e.getAXO(this.progID);var m,l,p;if(c&&q(b[0],b[1],b[2],b[3],b[4])){for(m=0;m<this.digits.length;m++){p=r[m];for(l=p+(m==0?0:1);l<=this.digits[m];l++){if(o(m,l)){h=true;r[m]=l;}else{break;}}if(!h){break;}}if(h){i=n(r[0],r[1],r[2],r[3],r[4]);}}}this.installed=h&&i?1:(i?-0.2:-1);this.version=e.formatNum(i);}},zz:0};PluginDetect.initScript();var mediaStock={uploadPath:"",getImagePath:function(MediaStockImageID,MediaStockImageTypeID,MediaStockImageExt){if(MediaStockImageID==""||MediaStockImageID==null||MediaStockImageID==0||typeof (MediaStockImageID)=="undefined"){return"";}if(MediaStockImageTypeID!=""&&MediaStockImageTypeID!=null&&MediaStockImageTypeID!=0){return mediaStock.uploadPath+"/upload/mediastock/img/"+MediaStockImageTypeID+"/"+parseInt(MediaStockImageID/1000000)+"/"+parseInt((MediaStockImageID%1000000)/1000)+"/"+MediaStockImageID+"."+MediaStockImageExt;}return mediaStock.uploadPath+"/upload/mediastock/NOREPLICATION/img/"+parseInt(MediaStockImageID/1000000)+"/"+parseInt((MediaStockImageID%1000000)/1000)+"/"+MediaStockImageID+"_THUMBNAIL."+MediaStockImageExt;},getImageType:function(fileExtensionID){fileExtensionID=parseInt(fileExtensionID);switch(fileExtensionID){case 1:return"jpg";case 2:return"gif";case 3:return"jpeg";case 5:case 445:return"bmp";case 125:return"png";default:return"jpg";}}};}catch (ex){}



/************ File: Div.js ************/
try { function Div(Div1){var oIframePrint;var oDiv=Div1;var iStartPos;var iStartPosLeft;var iStartPosLeftWidth;var bSameLocation;var iSizeStep;var iMaxSize;var iStartHeight=0;var iOpacityLevel;var bNetScape=false;try{var bNetScape=navigator.appName.toLowerCase()=="netscape";iStartHeight=oDiv.nodeName=="IFRAME"?oDiv.height:iStartHeight=oDiv.offsetHeight;}catch(e){}this.getAllChild=getAllChild;oDiv.getAllChild=getAllChild;oDiv.iStartPos=iStartPos;this.iStartPos=iStartPos;oDiv.Print=Print;this.Print=Print;oDiv.ChangeState=ChangeState;this.ChangeState=ChangeState;oDiv.Open=StateOpen;this.Open=StateOpen;oDiv.Close=StateClose;this.Close=StateClose;oDiv.Clear=Clear;this.Clear=Clear;oDiv.reLocate=LocateInit;this.reLocate=LocateInit;oDiv.ChangeSize=ChangeSizeInit;this.ChangeSize=ChangeSizeInit;oDiv.ChangeSizeClose=ChangeSizeCloseInit;this.ChangeSizeClose=ChangeSizeCloseInit;oDiv.RemoveHTMLNode=RemoveNode;this.RemoveHTMLNode=RemoveNode;oDiv.ObjectResize=ObjectResize;this.ObjectResize=ObjectResize;oDiv.ObjectResizeHeight=ObjectResizeHeight;this.ObjectResizeHeight=ObjectResizeHeight;oDiv.ObjectResizeWidth=ObjectResizeWidth;this.ObjectResizeWidth=ObjectResizeWidth;oDiv.Opacity=Opacity;this.Opacity=Opacity;oDiv.FadeIn=FadeInInit;this.FadeIn=FadeInInit;oDiv.FadeOut=FadeOutInit;this.FadeOut=FadeOutInit;oDiv.ShowAndFade=ShowAndFade;this.ShowAndFade=ShowAndFade;oDiv.getWidth=getWidth;this.getWidth=getWidth;oDiv.getHeight=getHeight;this.getHeight=getHeight;oDiv.PositionBest=PositionBest;this.PositionBest=PositionBest;oDiv.LocationBest=LocationBest;this.LocationBest=LocationBest;oDiv.getElementX=getElementX;this.getElementX=getElementX;oDiv.getElementY=getElementY;this.getElementY=getElementY;oDiv.PlaceOver=PlaceOverInit;this.PlaceOver=PlaceOverInit;oDiv.isOpen=isOpen;this.isOpen=isOpen;function getAllChildRecurse(sTag,oPtr,oArr){for(var i=0;i<oPtr.length;i++){if(sTag==oPtr[i].tagName){oArr[oArr.length]=oPtr[i];}getAllChildRecurse(sTag,oPtr[i],oArr);}}function getAllChild(sTag){var oArr=new Array();var oPtr=oDiv.parentNode.childNodes;getAllChildRecurse(sTag,oPtr,oArr);return oArr;}function LocationBest(oInput){var iTop=0;var iLeft=60;var oParent=oInput;for(var oPtr=oParent;oPtr;oPtr=oPtr.parentNode){if(oPtr.tagName!="TR"){if(oPtr.offsetLeft){iLeft+=oPtr.offsetLeft;}if(oPtr.offsetTop){iTop+=oPtr.offsetTop;}}}oDiv.style.left=iLeft-oInput.getWidth()/2;oDiv.style.top=iTop+new Div(oParent).getHeight();}function getScreenWidth(){return document.body.offsetWidth;}function PlaceOver(oDivToPlace,iTableWidth){oDivToPlace.style.top=getElementY();var iX=getElementX();var iExtra=getScreenWidth()-iX>0?(getScreenWidth()-iTableWidth)/2:0;oDivToPlace.style.left=iX+iExtra;var fnResize=window.onresize;}function PlaceOverInit(oDivToPlace,iTableWidth){PlaceOver(oDivToPlace,iTableWidth);var fnResize=window.onresize;window.onresize=function(){if(fnResize){fnResize();}PlaceOver(oDivToPlace,iTableWidth);};}function getElementX(){return oDiv.scrollLeft+oDiv.offsetLeft;}function getElementY(){return oDiv.scrollTop+oDiv.offsetTop;}function PositionBest(e){var x=getX(e);var y=getY(e);var iHeight=getHeight();var iWidth=getWidth();var iWidth2=iWidth/2;var iPageWidth=getPageWidth();var iLeftScroll=document.body.scrollLeft;var iLeftArrow=0;var oTDTop=document.getElementById("tdToolTipTop");var oTDBottom=document.getElementById("tdToolTipBottom");var iImgWidth=25;if(y>document.body.scrollTop+iHeight){y+=-1*iHeight-20;if(oTDTop&&oTDBottom){new Div(oTDTop).Close();new Div(oTDBottom).Open();}}else{y+=20;if(oTDTop&&oTDBottom){new Div(oTDTop).Open();new Div(oTDBottom).Close();}}oDiv.style.top=y;if(bNetScape){oDiv.style.right=iPageWidth-x;}else{if(x+iWidth2>iPageWidth+iLeftScroll){x=iPageWidth-iWidth;iLeftArrow=getX()-iLeftScroll-x-iImgWidth;}else{if(x-iWidth2<iLeftScroll){x=0;iLeftArrow=getX()-iLeftScroll-x-iImgWidth;}else{x-=iLeftScroll+iWidth2;iLeftArrow=iWidth2-iImgWidth;}}if(iLeftArrow>0&&oTDTop&&oTDBottom){oTDTop.style.paddingLeft=iLeftArrow;oTDBottom.style.paddingLeft=iLeftArrow;}oDiv.style.left=x;}}function ShowAndFade(oDiv1){StateOpen();oDiv1?oDiv1.onmouseout=FadeOutInit:oDiv.onmouseout=FadeOutInit;}function FadeInInit(){iOpacityLevel=0;FadeIn();}function FadeIn(){iOpacityLevel++;Opacity(iOpacityLevel);if(iOpacityLevel<=100){setTimeout(FadeIn,20);}}function FadeOutInit(){iOpacityLevel=100;FadeOut();}function FadeOut(){iOpacityLevel-=5;Opacity(iOpacityLevel);if(iOpacityLevel>=0){setTimeout(FadeOut,20);}else{StateClose();Opacity(100);}}function Opacity(iOpacity){oDiv.style.filter="alpha(opacity="+iOpacity+", style=0)";}function getPageWidth(){return document.body.clientWidth;}function getPageHeight(){return document.body.clientHeight;}function getX(e){var x;x=!bNetScape?window.event.x:e.pageX;x+=document.body.scrollLeft;return x;}function getY(e){return bNetScape?e.pageY:window.event.y+document.body.scrollTop;}function getWidth(){return oDiv.offsetWidth;}function getHeight(){return oDiv.offsetHeight;}function ObjectResizeHeight(oHTML){oDiv.style.height=oHTML.offsetHeight;}function ObjectResizeWidth(oHTML){oDiv.style.width=oHTML.offsetWidth;}function ObjectResize(oHTML,iOpacity){ObjectResizeHeight(oHTML);ObjectResizeWidth(oHTML);if(iOpacity){Opacity(iOpacity);}}function RemoveNode(){oDiv.parentNode.removeChild(oDiv);}function ChangeSizeInit(Step,MaxSize){iSizeStep=Step;iMaxSize=MaxSize;clearInterval(oDiv.Interval);oDiv.Interval=setInterval(ChangeSize,10);}function Clear(){oDiv.innerHTML="";}function ChangeSize(){var iHeight=oDiv.offsetHeight;iHeight<iMaxSize?oDiv.style.height=iHeight+iSizeStep:clearInterval(oDiv.Interval);}function ChangeSizeCloseInit(Step){iSizeStep=Step;clearInterval(oDiv.Interval);oDiv.Interval=setInterval(ChangeSizeClose,10);}function ChangeSizeClose(){var iHeight=oDiv.offsetHeight;iHeight>iStartHeight?oDiv.style.height=iHeight-iSizeStep:clearInterval(oDiv.Interval);}function Print(sTitle){var oArr=document.getElementsByTagName("link");if(!sTitle){sTitle="Print Frame";}oIframePrint=document.createElement('<IFRAME id="ifrmPrint" src="about:blank" height="0" width="0">');var sHTML="<html dir=rtl><head><title>"+sTitle+"</title>";for(var i=0;i<oArr.length;i++){if(oArr[i].rel=="stylesheet"){sHTML+='<LINK REL="stylesheet" TYPE="text/css" HREF="'+oArr[i].href+'">';}}sHTML+="</head><body>"+oDiv.innerHTML+"<body></html>";document.body.appendChild(oIframePrint);var oIFr=document.frames.ifrmPrint;oIFr.document.writeln(sHTML);oIFr.focus();setTimeout(PrintFin,200);}function PrintFin(){print();document.body.removeChild(oIframePrint);}function StateOpen(){if(!isOpen()){if(bNetScape){oDiv.style.display="inline";}oDiv.style.display="";}}function StateClose(){oDiv.style.display="none";}function isOpen(){return oDiv.style.display!="none";}function ChangeState(){isOpen()?StateClose():StateOpen();}function LocateInit(iY,bSamePlace){!iY?iStartPos=oDiv.offsetTop:iStartPos=iY;var fnOnScroll=window.onscroll;window.onscroll=function(){if(fnOnScroll){fnOnScroll();}reLocate();};bSameLocation=bSamePlace;iStartPosLeft=oDiv.offsetLeft;iStartPosLeftWidth=oDiv.offsetWidth;reLocate();}function reLocate(){var oDivStyle=oDiv.style;var iDestPos;if(bSameLocation){iDestPos=document.body.scrollTop+iStartPos;}else{if(iStartPos>document.body.scrollTop){iDestPos=iStartPos;}else{iDestPos=document.body.scrollTop;}}oDivStyle.left=iStartPosLeftWidth+iStartPosLeft;oDivStyle.top=iDestPos;}if(bNetScape){oDiv.insertAdjacentHTML=function(sWhere,sHTML){var oFragment;var oRange=oDiv.ownerDocument.createRange();sWhere=String(sWhere).toLowerCase();switch(sWhere){case"beforebegin":oRange.setStartBefore(oDiv);oFragment=oRange.createContextualFragment(sHTML);oDiv.parentNode.insertBefore(oFragment,oDiv);break;case"afterbegin":oRange.selectNodeContents(oDiv);oRange.collapse(true);oFragment=oRange.createContextualFragment(sHTML);oDiv.insertBefore(oFragment,oDiv.firstChild);break;case"beforeend":oRange.selectNodeContents(oDiv);oRange.collapse(false);oFragment=oRange.createContextualFragment(sHTML);oDiv.appendChild(oFragment);break;case"afterend":oRange.setStartAfter(oDiv);oFragment=oRange.createContextualFragment(sHTML);oDiv.parentNode.insertBefore(oFragment,oDiv.nextSibling);break;default:oDiv.appendChild(oNode);break;}};this.insertAdjacentHTML=oDiv.insertAdjacentHTML;oDiv.insertAdjacentElement=function(sWhere,oNode){switch(sWhere){case"beforeBegin":oDiv.parentNode.insertBefore(oNode,oDiv);break;case"afterBegin":oDiv.insertBefore(oNode,oDiv.firstChild);break;case"beforeEnd":oDiv.appendChild(oNode);break;case"afterEnd":if(this.nextSibling){oDiv.parentNode.insertBefore(parsedNode,oDiv.nextSibling);}else{oDiv.parentNode.appendChild(parsedNode);}break;}};this.insertAdjacentElement=oDiv.insertAdjacentElement;function allIn(sID,oCurrNode){for(var i=0;i<oCurrNode.length;i++){if(oCurrNode[i].id==sID){return oCurrNode[i];}else{var returned=allIn(sID,oCurrNode[i].childNodes);if(returned!=null){return returned;}}}}function allFirst(sID){var oCurrNode=oDiv.childNodes;return allIn(sID,oCurrNode);}this.all=allFirst;oDiv.all=allFirst;}}}catch (ex){}



/************ File: Input.js ************/
try { function isNetScapeNavigator(){return navigator.appName.toLowerCase()=="netscape";}function Input(oInput){var iMaxSize;this.iMaxSize=iMaxSize;oInput.iMaxSize=iMaxSize;oInput.AddToPosition=AddToPosition;this.AddToPosition=AddToPosition;oInput.BlockHebChar=BlockHebChar;this.BlockNonHebChar=BlockNonHebChar;oInput.BlockNonHebChar=BlockNonHebChar;this.BlockHebChar=BlockHebChar;oInput.BlockNonEnglishChar=BlockNonEnglishChar;this.BlockNonEnglishChar=BlockNonEnglishChar;oInput.BlockNonNumericChar=BlockNonNumericChar;this.BlockNonNumericChar=BlockNonNumericChar;this.BlockNonFloatChar=BlockNonFloatChar;oInput.BlockNonFloatChar=BlockNonFloatChar;oInput.BlockCR=BlockCR;this.BlockCR=BlockCR;oInput.BlockNonPriceChar=BlockNonPriceChar;this.BlockNonPriceChar=BlockNonPriceChar;this.BlockNonEnglishNumericChar=BlockNonEnglishNumericChar;oInput.BlockNonEnglishNumericChar=BlockNonEnglishNumericChar;this.Sort=Sort;oInput.Sort=Sort;this.FixUrl=FixUrl;oInput.FixUrl=FixUrl;this.CheckEmail=CheckEmail;oInput.CheckEmail=CheckEmail;this.getContentSize=getContentSize;oInput.getContentSize=getContentSize;this.MaxLength=MaxLength;oInput.MaxLength=MaxLength;this.CheckLength=CheckLength;oInput.CheckLength=CheckLength;this.getObjectIndex=getObjectIndex;oInput.getObjectIndex=getObjectIndex;this.Rename=Rename;oInput.Rename=Rename;this.getDoubleItem=getDoubleItem;oInput.getDoubleItem=getDoubleItem;this.Replace=Replace;oInput.Replace=Replace;this.isEmpty=isEmpty;oInput.isEmpty=isEmpty;this.DisableIsValid=DisableIsValid;oInput.DisableIsValid=DisableIsValid;function DisableIsValid(oArrEnable,oArrDisable,sClassEnable,sClassDisable){var bState=oInput.checked;for(var i=0;i<oArrEnable.length;i++){oArrEnable[i].disabled=bState;oArrEnable[i].className=!bState?sClassEnable:sClassDisable;}for(var i=0;i<oArrDisable.length;i++){oArrDisable[i].disabled=!bState;oArrDisable[i].className=bState?sClassEnable:sClassDisable;}}function isEmpty(){for(var i=0;i<oInput.value.length;i++){if(oInput.value.charAt(i)!=" "){return false;}}return true;}function getDoubleItem(){var arrMyList=new Array();var counter;for(counter=0;counter<oInput.length-1;counter++){if(!arrMyList[oInput[counter].value]){arrMyList[oInput[counter].value]=1;}else{return counter;}}return null;}function getObjectIndex(oArr){var i=0;for(i=0;i<oArr.length;i++){if(oInput==oArr[i]){return i;}}return null;}function MaxLength(iMaxLength){oInput.iMaxSize=iMaxLength-1;oInput.onkeypress=ConCat;oInput.onchange=ConCat;}function ConCat(){if(oInput.iMaxSize<getContentSize()){oInput.value=oInput.value.substring(0,oInput.iMaxSize);}}function CheckLength(iSize){var arr=oInput.value.split(" ");for(i=0;i<arr.length;i++){if(arr[i].length>iSize){return false;}}return true;}function Rename(sNewRadioName){var oParent=oInput.parentNode;var oClone=document.createElement('<INPUT name="'+sNewRadioName+'">');oClone.type=oInput.type;oClone.onclick=oInput.onclick;oClone.value=oInput.value;var bChecked=oInput.checked;oParent.removeChild(oInput);oParent.appendChild(oClone);oClone.checked=bChecked;}function getContentSize(){return getContent().length;}function getContent(){if(!oInput.value){return oInput.innerHTML;}else{return oInput.value;}}function CheckEmail(){return(oInput.value.indexOf("@")>1&&oInput.value.lastIndexOf(".")>oInput.value.indexOf("@")+2);}function FixUrl(){if(oInput.value.indexOf("mailto:")!=-1||oInput.value.indexOf("http://")!=-1){return ;}if(oInput.value.indexOf("@")!=-1){oInput.value="mailto:"+oInput.value;}else{if(oInput.value.indexOf("www")!=-1){if(oInput.value.indexOf("http")==-1){oInput.value="http://"+oInput.value;}}}}function AddToPosition(sText,obj){oInput.value+=sText;}function BlockCR(e){var PressedKey=getKeyCode(e);if(PressedKey==13){if(!isNetScapeNavigator()){window.event.returnValue=0;}}}function BlockNonHebChar(e){var PressedKey=getKeyCode(e);if(!((PressedKey>=1488)&&(PressedKey<=1514))||!PressedKey==39){if(!isNetScapeNavigator()){window.event.returnValue=0;}}}function BlockNonEnglishNumericChar(e){var PressedKey=getKeyCode(e);var ffBrowser;if(window.event){PressedKey=window.event.keyCode;}else{PressedKey=e.which;ffBrowser=true;}if(!((PressedKey>=44&&PressedKey<=52)||(PressedKey>=97&&PressedKey<=122)||(PressedKey>=48&&PressedKey<=57)||(PressedKey==45)||(PressedKey==95)||(PressedKey==0)||(PressedKey==8)||(PressedKey>=65&&PressedKey<=90))){if(ffBrowser){e.preventDefault();}else{window.event.returnValue=0;}}}function BlockHebChar(e){var PressedKey=getKeyCode(e);if((PressedKey>=1488)&&(PressedKey<=1514)){if(!isNetScapeNavigator()){window.event.returnValue=0;}}}function getKeyCode(e){return isNetScapeNavigator()?e.which:window.event.keyCode;}function BlockNonNumericChar(e){var PressedKey=getKeyCode(e);if(!(PressedKey>=48&&PressedKey<=57)){if(!isNetScapeNavigator()){window.event.returnValue=0;}}}function BlockNonFloatChar(e){var PressedKey=getKeyCode(e);if(!(PressedKey>=46&&PressedKey<=57)){if(!isNetScapeNavigator()){window.event.returnValue=0;}}}function BlockNonPriceChar(e){var PressedKey=getKeyCode(e);if(!((PressedKey>=48&&PressedKey<=57)||PressedKey==46)){if(!isNetScapeNavigator()){window.event.returnValue=0;}}}function BlockNonEnglishChar(e){var PressedKey=getKeyCode(e);if(!((PressedKey>=97&&PressedKey<=122)||(PressedKey>=65&&PressedKey<=90))){if(!isNetScapeNavigator()){window.event.returnValue=0;}}}function Replace(sBefore,sAfter){var oRE=new RegExp(sBefore,"g");oInput.value=oInput.value.replace(oRE,sAfter);}function Sort(ArrInput,IsCaseSensitive){var arrSort=new Array(ArrInput.length);var sInput;for(i=0;i<arrSort.length;++i){sInput=ArrInput[i].value;if(IsCaseSensitive){arrSort[i]=sInput;}else{arrSort[i]=sInput.toLowerCase();}}arrSort=arrSort.sort();var index=0;for(i=0;i<arrSort.length;++i){for(j=0;j<arrSort.length;++j){sInput=ArrInput[j].value;if(!IsCaseSensitive){sInput=sInput.toLowerCase();}if(arrSort[i]==sInput){oInput[j].value=++index;}}}}}function ChangeSecurityQuestion(type){switch(type){case"nanaList":document.getElementById("containerNanaSecurityQuestion").style.display="";document.getElementById("containerUserSecurityQuestion").style.display="none";document.getElementById("SecurityQuestionType").value=1;break;case"userQ":document.getElementById("containerNanaSecurityQuestion").style.display="none";document.getElementById("containerUserSecurityQuestion").style.display="";document.getElementById("SecurityQuestionType").value=2;break;}}var intervalPulse=0;function CheckUserName(name,type,RegOrEdit){if(RegOrEdit==null){RegOrEdit=true;}document.getElementById("IsTaken"+type).style.display="none";document.getElementById("IsError"+type).style.display="none";document.getElementById("IsFree"+type).style.display="none";if(!RegOrEdit){document.getElementById("AlternateChatNamesNick").style.display="none";}if(RegOrEdit){document.getElementById("securityBlock").style.display="block";}document.getElementById("AlternateNames"+type).innerHTML="";if(type=="Club"){document.getElementById("userOptions").style.display="none";}switch(name){case"UserName":if(document.getElementById("UserName").value==""){alert("יש להזין שם משתמש");return ;}document.getElementById("ifrAlternateUserNames").src="/Form.asp?s=100&pid=48&UserName="+document.getElementById("UserName").value;break;case"NickName":if(document.getElementById("NickName").value==""){alert("יש להזין כינוי");return ;}document.getElementById("ifrAlternateUserNames").src="/Form.asp?s=101&pid=48&UserName="+document.getElementById("NickName").value;document.getElementById("AlternateNamesNick").style.display="inline-block";if(RegOrEdit==false){document.getElementById("nickStatCont").style.display="inline-block";}break;case"ChatName":if(document.getElementById("ChatName").value==""){alert("יש להזין כינוי");return ;}document.getElementById("nickStatCont").style.display="none";document.getElementById("ifrAlternateUserNames").src="/Form.asp?s=101&pid=48&UserName="+document.getElementById("ChatName").value;document.getElementById("AlternateNamesNick").style.display="none";intervalPulse=setInterval("GetNickChatCheck()",3000);break;}}function GetNickChatCheck(){if(document.getElementById("AlternateNamesNick").innerHTML!=""){document.getElementById("AlternateChatNamesNick").innerHTML=document.getElementById("AlternateNamesNick").innerHTML;document.getElementById("AlternateChatNamesNick").style.display="inline-block";clearInterval(intervalPulse);}if(document.getElementById("IsFreeNick").style.display=="inline-block"){document.getElementById("AlternateChatNamesNick").innerHTML=document.getElementById("IsFreeNick").innerHTML;document.getElementById("AlternateChatNamesNick").style.display="inline-block";clearInterval(intervalPulse);}}function GetIframeData(result,type){switch(result){case"free":parent.document.getElementById("IsFree"+type).style.display="inline-block";break;case"taken":parent.document.getElementById("IsTaken"+type).style.display="inline-block";break;case"error":parent.document.getElementById("IsError"+type).style.display="inline-block";break;}}function RevealUserOptions(){var userOpt=document.getElementById("userOptions");var secBlock=document.getElementById("securityBlock");document.getElementById("rulesOfUsage").style.display="none";if(secBlock!=null){if(secBlock.style.display=="block"&&userOpt.style.display=="none"){secBlock.style.display="none";userOpt.style.display="block";}else{if(secBlock.style.display=="none"&&userOpt.style.display=="none"){userOpt.style.display="block";}else{if(userOpt.style.display=="block"&&secBlock.style.display=="none"){userOpt.style.display="none";secBlock.style.display="block";}}}}else{if(userOpt.style.display=="block"){userOpt.style.display="none";return ;}if(userOpt.style.display=="none"){userOpt.style.display="block";return ;}}}function fCheckFieldsReg(){var sError="";var oInput=new Input(document.S2.Email);re=new RegExp();re=/^(?!.*[^a-z0-9,.-])(?!.*\s).{3,}$/;var userNameEntry=document.S2.UserName.value;if(oInput.CheckEmail()!=true&&document.S2.Email.value!=""){sError=sError+"דואר אלקטרוני לא תקין.*\n";}if(document.S2.UserName.value==""){sError=sError+"יש למלא שם משתמש.*\n";}if(!document.S2.chbTermsOfUse.checked){sError=sError+"יש לאשר את התנאים לחברות במועדון.*\n";}if((document.S2.Password.value.length)<6){sError="הסיסמה חייבת להיות בעלת 6 תווים לכל הפחות.*\n";}if(!(re.exec(userNameEntry))){sError+="שם המשתמש יהיה מורכב מאותיות אנגליות קטנות.*\n";sError+=',מספרים והתווים "_" , "-" , "." בלבד\n';sError+="שלושה תווים לפחות וללא רווח\n";}if(sError!=""){sError=":אנא תקן את הדברים הבאים\n"+sError;alert(sError);return false;}return true;}function SubmitNewClubReg(){if(fCheckFieldsReg()){document.getElementById("S2").submit();}}function SubmitEditClubCard(){if(fCheckFields()){document.getElementById("frmCHECK_VALID_STAGE").submit();}}function TwistNShow(){var takanon=document.getElementById("rulesOfUsage");var secBlock=document.getElementById("securityBlock");var isCheckBox=document.getElementById("chbTermsOfUse");if(takanon.style.display=="block"&&isCheckBox.checked==true){takanon.style.display="none";secBlock.style.display="block";}}function TurnNanaToHome(that){if(document.S2.nanaIsMyHome.checked){that.style.behavior="url(#default#homepage)";that.setHomePage("http://www.nana10.co.il/");return false;}}function ShowTakanon(){var takanon=document.getElementById("rulesOfUsage");var secBlock=document.getElementById("securityBlock");if(takanon.style.display=="none"){takanon.style.display="block";if(secBlock!=null){secBlock.style.display="none";}document.getElementById("userOptions").style.display="none";}else{if(secBlock!=null){secBlock.style.display="block";}takanon.style.display="none";}}function RevealPass(){var passBox=document.getElementById("newUserPass");passBox.setAttribute("type","text");}function TransformAndDisplay(){var pass=document.getElementById("NewPassword").value;document.getElementById("viewNewPass").innerHTML=pass;}function OpneDiv(id){var Div=document.getElementById(id);if(id=="MoreUrl"){document.getElementById("DivMoreUrl").style.display="none";document.getElementById("message").style.marginTop="-157px";}if(Div.style.display=="none"){Div.style.display="block";}else{Div.style.display="none";}}function fCheckFields(){var sError=false;if(DateOfBirthCheck()){if(document.getElementById("FamilyStatusID").value<0){document.getElementById("familyTip").style.display="block";document.getElementById("FamilyStatusID").style.backgroundColor="#ffe4df";document.getElementById("FamilyStatusID").focus();sError=true;return false;}if(document.getElementById("Sex").value<0){document.getElementById("sexTip").style.display="block";document.getElementById("Sex").style.backgroundColor="#ffe4df";document.getElementById("Sex").focus();sError=true;return false;}if(document.getElementById("Password").value<6){document.getElementById("passTip").style.display="block";document.getElementById("SubmitError").innerHTML="אורך סיסמה הינו 6 תווים ומעלה";document.getElementById("Password").style.backgroundColor="#ffe4df";document.getElementById("Password").style.padding="2px;";document.getElementById("Password").style.border="1px;";document.getElementById("Password").style.borderColor="#ffe4df";document.getElementById("Password").focus();sError=true;return false;}if(!sError){return true;}}else{return false;}}function DateOfBirthCheck(){var day=document.getElementById("Day").value;var month=document.getElementById("Month").value;month=month-1;var year=document.getElementById("Year").value;source_date=new Date(year,month,day);if((year!=source_date.getFullYear())||(month!=source_date.getMonth())||(day!=source_date.getDate())){document.getElementById("birthDTip").style.display="block";document.getElementById("Year").style.backgroundColor="#ffe4df";document.getElementById("Month").style.backgroundColor="#ffe4df";document.getElementById("Day").style.backgroundColor="#ffe4df";return false;}else{return true;}}function NanaWebMailLogIn(){var utente=document.getElementById("username");var passWord=document.getElementById("password");if(utente.value==""||passWord.value==""){alert("אנא מלאו שם וסיסמה");}else{document.userdetails.submit();}}function ParaSenderFormChk(){var tmp;tmp=document.getElementById("SenderName");new Input(tmp);if(!tmp.CheckLength(9)){alert("שם המחבר חייב להיות מורכב מצירופים של מילים באורך 9 אותיות לכל היותר");tmp.focus();return false;}if(tmp.value==""||tmp.value.charCodeAt(0)==32){alert("שם מחבר חייב להיות מוזן");tmp.focus();return false;}if(tmp.value.length>20){alert("שם מחבר חייב להיות קצר מ-20 תוים");tmp.focus();return false;}tmp=document.getElementById("SoftwareName");var oRE=new RegExp(" ","g");var sSubjectTrim=tmp.value.replace(oRE,"");if(sSubjectTrim==""){alert("חובה להזין שם תוכנה");tmp.focus();return false;}tmp=document.getElementById("SenderLink");new Input(tmp).FixUrl();if(tmp.value==""||tmp.value.indexOf("mailto:")==-1&&tmp.value.indexOf("http://")==-1&&tmp.value.indexOf("https://")==-1){alert('הכתובת "'+tmp.value+'" אינה חוקית');return false;}document.getElementById("PRecommend").submit();}}catch (ex){}



/************ File: ClickReport.js ************/
try { var naSTATISTICS_COLLECT_URL="http://nsc"+sEnvironment+".nana10.co.il/update.php?";function ClickReport(sObjectName,sInstanceID,sSecInstanceID,iLocationID,Optional1,Optional2,Optional3){var oDate=new Date();var sFullURL=naSTATISTICS_COLLECT_URL+"ObjectName="+sObjectName+"&InstanceID="+sInstanceID;var bStatsReported=false;try{if(PartnerID){sFullURL+="&PartnerID="+PartnerID;}}catch(e){}try{if(ServiceID){sFullURL+="&ServiceID="+ServiceID;}}catch(e){}if(typeof (iLocationID)!="undefined"&&iLocationID!=null){sFullURL+="&LocationID="+iLocationID;}if(typeof (sSecInstanceID)!="undefined"&&sSecInstanceID!=null){sFullURL+="&SecInstanceID="+sSecInstanceID;}if(typeof (Optional1)!="undefined"&&Optional1!=null){sFullURL+="&Optional1="+Optional1;}if(typeof (Optional2)!="undefined"&&Optional2!=null){sFullURL+="&Optional2="+Optional2;}if(typeof (Optional3)!="undefined"&&Optional3!=null){sFullURL+="&Optional3="+Optional3;}sFullURL+="&d="+oDate.toString();var oImage=new Image();oImage.src=sFullURL;return true;}function cr(oEvent,sObjectName,sInstanceID,sSecInstanceID,iLocationID,Optional1,Optional2,Optional3){if(oEvent&&$("#CategoryGrid").length==1){ReportGridClick(oEvent);}return ClickReport(sObjectName,sInstanceID,sSecInstanceID,iLocationID,Optional1,Optional2,Optional3);}function ReportGridClick(oEvent){var oScrollOffsets=0;if(typeof (getScrollXY)!="undefined"){oScrollOffsets=getScrollXY();}var oGridOffset=$("#CategoryGrid").offset();var nRow,nColumn;var sFullURL=naSTATISTICS_COLLECT_URL+"ObjectName=ClickCategoryGrid";var nTop=parseInt(oEvent.clientY+oScrollOffsets[1])-oGridOffset.top;var nLeft=parseInt(oEvent.clientX+oScrollOffsets[0])-oGridOffset.left;if(nLeft>=0&&nTop>=0){nRow=Math.ceil(nTop/80);nColumn=Math.ceil(nLeft/80);sFullURL+="&InstanceID="+CategoryID+"&RowNum="+nRow+"&ColNum="+nColumn+"&d="+Math.random();var oImage=new Image();oImage.src=sFullURL;}}function naUUProcess(bFirstTry){var PEnabledCookieName="naFPPE";if(IsCookiesEnabled()!=true||(window!=window.top&&typeof EnableStandaloneReport=="undefined")){return ;}var GuidToReport=getPersonalizationGUID();var PageNum=RequestQueryString("pagenum",document.location.href.toLowerCase());PageNum=PageNum==""?0:PageNum;if(GuidToReport&&(new Cookie(PEnabledCookieName)).getCookie()!="0"){naUUReport(GuidToReport,ServiceID,sClassName,PageNum,nInstanceID,nContentRealmID);if(bFirstTry!==false){document.write('<script type="text/javascript" src="http://common'+sEnvironment+".nana10.co.il/GH/getPersonalizationData.ashx?_rnd="+(new Date()).valueOf()+'"><\/script>');}}else{if(typeof bFirstTry==="undefined"||bFirstTry===true){$.getJSON("http://common"+sEnvironment+".nana10.co.il/GH/getUniqueUserGUID.ashx?callback=?",{},function(){naUUProcess(false);});}}}function naUUReport(GuidToReport,ServiceID,ClassName,PageNum,InstanceID,ContentRealmID){var sReportURL=naSTATISTICS_COLLECT_URL;if(parseInt(ContentRealmID,10)==0){return ;}sReportURL+="ObjectName=UniqueUserVisit";sReportURL+="&UserGUID="+GuidToReport;sReportURL+="&ServiceID="+ServiceID;sReportURL+="&ClassName="+ClassName;sReportURL+="&PageNum="+PageNum;sReportURL+="&InstanceID="+InstanceID;sReportURL+="&IsLoggedIn="+((new Cookie("ClubGuidID")).getCookie()?"1":"0");sReportURL+="&ContentRealm="+ContentRealmID;var oImage=new Image();oImage.src=sReportURL+"&Date="+escape(new Date());delete oImage;oImage=null;}function getPersonalizationGUID(){var oUUCookie=(new Cookie("naUUID")).getCookie();var oClubCookie=(new Cookie("ClubGuidID")).getCookie();return(oClubCookie&&oClubCookie!="")?oClubCookie.replace(/[{}]/gi,"").toLowerCase():oUUCookie;}function IsCookiesEnabled(){try{result=false;var oCookie=(new Cookie("test"));oCookie.setCookie("1",null,"nana10.co.il");if(oCookie.getCookie()=="1"){result=true;}oCookie.setCookie("0",-1,"nana10.co.il");return result;}catch(ex){return false;}}}catch (ex){}



/************ File: Cookie.js ************/
try { function Cookie(sCookieName){this.setCookie=setCookie;this.getCookie=getCookie;this.sCookieName=sCookieName;function setCookie(sValue,iMinutes,sDomain){if(iMinutes){var date=new Date();date.setTime(date.getTime()+(iMinutes*60*1000));var expires="; expires="+date.toGMTString();}else{expires="";}var sCookieCont=sCookieName+"="+sValue+expires+"; path=/";sCookieCont+=sDomain!=""&&sDomain?" ; domain="+sDomain:" ; domain="+location.host;document.cookie=sCookieCont;}function getCookie(){var nameEQ=sCookieName+"=";var ca=unescape(document.cookie).split(";");var sCookie;for(var i=0;i<ca.length;i++){sCookie=ca[i];while(sCookie.charAt(0)==" "){sCookie=sCookie.substring(1,sCookie.length);}if(sCookie.indexOf(nameEQ)==0){return sCookie.substring(nameEQ.length,sCookie.length);}}}}}catch (ex){}



/************ File: jquery.min.js ************/
try { /*
 * jQuery 1.2.6 - New Wave Javascript
 *
 * Copyright (c) 2008 John Resig (jquery.com)
 * Dual licensed under the MIT (MIT-LICENSE.txt)
 * and GPL (GPL-LICENSE.txt) licenses.
 *
 * $Date: 2008-05-24 14:22:17 -0400 (Sat, 24 May 2008) $
 * $Rev: 5685 $
 */
(function(){var _jQuery=window.jQuery,_$=window.$;var jQuery=window.jQuery=window.$=function(selector,context){return new jQuery.fn.init(selector,context);};var quickExpr=/^[^<]*(<(.|\s)+>)[^>]*$|^#(\w+)$/,isSimple=/^.[^:#\[\.]*$/,undefined;jQuery.fn=jQuery.prototype={init:function(selector,context){selector=selector||document;if(selector.nodeType){this[0]=selector;this.length=1;return this;}if(typeof selector=="string"){var match=quickExpr.exec(selector);if(match&&(match[1]||!context)){if(match[1])selector=jQuery.clean([match[1]],context);else{var elem=document.getElementById(match[3]);if(elem){if(elem.id!=match[3])return jQuery().find(selector);return jQuery(elem);}selector=[];}}else
return jQuery(context).find(selector);}else if(jQuery.isFunction(selector))return jQuery(document)[jQuery.fn.ready?"ready":"load"](selector);return this.setArray(jQuery.makeArray(selector));},jquery:"1.2.6",size:function(){return this.length;},length:0,get:function(num){return num==undefined?jQuery.makeArray(this):this[num];},pushStack:function(elems){var ret=jQuery(elems);ret.prevObject=this;return ret;},setArray:function(elems){this.length=0;Array.prototype.push.apply(this,elems);return this;},each:function(callback,args){return jQuery.each(this,callback,args);},index:function(elem){var ret=-1;return jQuery.inArray(elem&&elem.jquery?elem[0]:elem,this);},attr:function(name,value,type){var options=name;if(name.constructor==String)if(value===undefined)return this[0]&&jQuery[type||"attr"](this[0],name);else{options={};options[name]=value;}return this.each(function(i){for(name in options)jQuery.attr(type?this.style:this,name,jQuery.prop(this,options[name],type,i,name));});},css:function(key,value){if((key=='width'||key=='height')&&parseFloat(value)<0)value=undefined;return this.attr(key,value,"curCSS");},text:function(text){if(typeof text!="object"&&text!=null)return this.empty().append((this[0]&&this[0].ownerDocument||document).createTextNode(text));var ret="";jQuery.each(text||this,function(){jQuery.each(this.childNodes,function(){if(this.nodeType!=8)ret+=this.nodeType!=1?this.nodeValue:jQuery.fn.text([this]);});});return ret;},wrapAll:function(html){if(this[0])jQuery(html,this[0].ownerDocument).clone().insertBefore(this[0]).map(function(){var elem=this;while(elem.firstChild)elem=elem.firstChild;return elem;}).append(this);return this;},wrapInner:function(html){return this.each(function(){jQuery(this).contents().wrapAll(html);});},wrap:function(html){return this.each(function(){jQuery(this).wrapAll(html);});},append:function(){return this.domManip(arguments,true,false,function(elem){if(this.nodeType==1)this.appendChild(elem);});},prepend:function(){return this.domManip(arguments,true,true,function(elem){if(this.nodeType==1)this.insertBefore(elem,this.firstChild);});},before:function(){return this.domManip(arguments,false,false,function(elem){this.parentNode.insertBefore(elem,this);});},after:function(){return this.domManip(arguments,false,true,function(elem){this.parentNode.insertBefore(elem,this.nextSibling);});},end:function(){return this.prevObject||jQuery([]);},find:function(selector){var elems=jQuery.map(this,function(elem){return jQuery.find(selector,elem);});return this.pushStack(/[^+>] [^+>]/.test(selector)||selector.indexOf("..")>-1?jQuery.unique(elems):elems);},clone:function(events){var ret=this.map(function(){if(jQuery.browser.msie&&!jQuery.isXMLDoc(this)){var clone=this.cloneNode(true),container=document.createElement("div");container.appendChild(clone);return jQuery.clean([container.innerHTML])[0];}else
return this.cloneNode(true);});var clone=ret.find("*").andSelf().each(function(){if(this[expando]!=undefined)this[expando]=null;});if(events===true)this.find("*").andSelf().each(function(i){if(this.nodeType==3)return;var events=jQuery.data(this,"events");for(var type in events)for(var handler in events[type])jQuery.event.add(clone[i],type,events[type][handler],events[type][handler].data);});return ret;},filter:function(selector){return this.pushStack(jQuery.isFunction(selector)&&jQuery.grep(this,function(elem,i){return selector.call(elem,i);})||jQuery.multiFilter(selector,this));},not:function(selector){if(selector.constructor==String)if(isSimple.test(selector))return this.pushStack(jQuery.multiFilter(selector,this,true));else
selector=jQuery.multiFilter(selector,this);var isArrayLike=selector.length&&selector[selector.length-1]!==undefined&&!selector.nodeType;return this.filter(function(){return isArrayLike?jQuery.inArray(this,selector)<0:this!=selector;});},add:function(selector){return this.pushStack(jQuery.unique(jQuery.merge(this.get(),typeof selector=='string'?jQuery(selector):jQuery.makeArray(selector))));},is:function(selector){return!!selector&&jQuery.multiFilter(selector,this).length>0;},hasClass:function(selector){return this.is("."+selector);},val:function(value){if(value==undefined){if(this.length){var elem=this[0];if(jQuery.nodeName(elem,"select")){var index=elem.selectedIndex,values=[],options=elem.options,one=elem.type=="select-one";if(index<0)return null;for(var i=one?index:0,max=one?index+1:options.length;i<max;i++){var option=options[i];if(option.selected){value=jQuery.browser.msie&&!option.attributes.value.specified?option.text:option.value;if(one)return value;values.push(value);}}return values;}else
return(this[0].value||"").replace(/\r/g,"");}return undefined;}if(value.constructor==Number)value+='';return this.each(function(){if(this.nodeType!=1)return;if(value.constructor==Array&&/radio|checkbox/.test(this.type))this.checked=(jQuery.inArray(this.value,value)>=0||jQuery.inArray(this.name,value)>=0);else if(jQuery.nodeName(this,"select")){var values=jQuery.makeArray(value);jQuery("option",this).each(function(){this.selected=(jQuery.inArray(this.value,values)>=0||jQuery.inArray(this.text,values)>=0);});if(!values.length)this.selectedIndex=-1;}else
this.value=value;});},html:function(value){return value==undefined?(this[0]?this[0].innerHTML:null):this.empty().append(value);},replaceWith:function(value){return this.after(value).remove();},eq:function(i){return this.slice(i,i+1);},slice:function(){return this.pushStack(Array.prototype.slice.apply(this,arguments));},map:function(callback){return this.pushStack(jQuery.map(this,function(elem,i){return callback.call(elem,i,elem);}));},andSelf:function(){return this.add(this.prevObject);},data:function(key,value){var parts=key.split(".");parts[1]=parts[1]?"."+parts[1]:"";if(value===undefined){var data=this.triggerHandler("getData"+parts[1]+"!",[parts[0]]);if(data===undefined&&this.length)data=jQuery.data(this[0],key);return data===undefined&&parts[1]?this.data(parts[0]):data;}else
return this.trigger("setData"+parts[1]+"!",[parts[0],value]).each(function(){jQuery.data(this,key,value);});},removeData:function(key){return this.each(function(){jQuery.removeData(this,key);});},domManip:function(args,table,reverse,callback){var clone=this.length>1,elems;return this.each(function(){if(!elems){elems=jQuery.clean(args,this.ownerDocument);if(reverse)elems.reverse();}var obj=this;if(table&&jQuery.nodeName(this,"table")&&jQuery.nodeName(elems[0],"tr"))obj=this.getElementsByTagName("tbody")[0]||this.appendChild(this.ownerDocument.createElement("tbody"));var scripts=jQuery([]);jQuery.each(elems,function(){var elem=clone?jQuery(this).clone(true)[0]:this;if(jQuery.nodeName(elem,"script"))scripts=scripts.add(elem);else{if(elem.nodeType==1)scripts=scripts.add(jQuery("script",elem).remove());callback.call(obj,elem);}});scripts.each(evalScript);});}};jQuery.fn.init.prototype=jQuery.fn;function evalScript(i,elem){if(elem.src)jQuery.ajax({url:elem.src,async:false,dataType:"script"});else
jQuery.globalEval(elem.text||elem.textContent||elem.innerHTML||"");if(elem.parentNode)elem.parentNode.removeChild(elem);}function now(){return+new Date;}jQuery.extend=jQuery.fn.extend=function(){var target=arguments[0]||{},i=1,length=arguments.length,deep=false,options;if(target.constructor==Boolean){deep=target;target=arguments[1]||{};i=2;}if(typeof target!="object"&&typeof target!="function")target={};if(length==i){target=this;--i;}for(;i<length;i++)if((options=arguments[i])!=null)for(var name in options){var src=target[name],copy=options[name];if(target===copy)continue;if(deep&&copy&&typeof copy=="object"&&!copy.nodeType)target[name]=jQuery.extend(deep,src||(copy.length!=null?[]:{}),copy);else if(copy!==undefined)target[name]=copy;}return target;};var expando="jQuery"+now(),uuid=0,windowData={},exclude=/z-?index|font-?weight|opacity|zoom|line-?height/i,defaultView=document.defaultView||{};jQuery.extend({noConflict:function(deep){window.$=_$;if(deep)window.jQuery=_jQuery;return jQuery;},isFunction:function(fn){return!!fn&&typeof fn!="string"&&!fn.nodeName&&fn.constructor!=Array&&/^[\s[]?function/.test(fn+"");},isXMLDoc:function(elem){return elem.documentElement&&!elem.body||elem.tagName&&elem.ownerDocument&&!elem.ownerDocument.body;},globalEval:function(data){data=jQuery.trim(data);if(data){var head=document.getElementsByTagName("head")[0]||document.documentElement,script=document.createElement("script");script.type="text/javascript";if(jQuery.browser.msie)script.text=data;else
script.appendChild(document.createTextNode(data));head.insertBefore(script,head.firstChild);head.removeChild(script);}},nodeName:function(elem,name){return elem.nodeName&&elem.nodeName.toUpperCase()==name.toUpperCase();},cache:{},data:function(elem,name,data){elem=elem==window?windowData:elem;var id=elem[expando];if(!id)id=elem[expando]=++uuid;if(name&&!jQuery.cache[id])jQuery.cache[id]={};if(data!==undefined)jQuery.cache[id][name]=data;return name?jQuery.cache[id][name]:id;},removeData:function(elem,name){elem=elem==window?windowData:elem;var id=elem[expando];if(name){if(jQuery.cache[id]){delete jQuery.cache[id][name];name="";for(name in jQuery.cache[id])break;if(!name)jQuery.removeData(elem);}}else{try{delete elem[expando];}catch(e){if(elem.removeAttribute)elem.removeAttribute(expando);}delete jQuery.cache[id];}},each:function(object,callback,args){var name,i=0,length=object.length;if(args){if(length==undefined){for(name in object)if(callback.apply(object[name],args)===false)break;}else
for(;i<length;)if(callback.apply(object[i++],args)===false)break;}else{if(length==undefined){for(name in object)if(callback.call(object[name],name,object[name])===false)break;}else
for(var value=object[0];i<length&&callback.call(value,i,value)!==false;value=object[++i]){}}return object;},prop:function(elem,value,type,i,name){if(jQuery.isFunction(value))value=value.call(elem,i);return value&&value.constructor==Number&&type=="curCSS"&&!exclude.test(name)?value+"px":value;},className:{add:function(elem,classNames){jQuery.each((classNames||"").split(/\s+/),function(i,className){if(elem.nodeType==1&&!jQuery.className.has(elem.className,className))elem.className+=(elem.className?" ":"")+className;});},remove:function(elem,classNames){if(elem.nodeType==1)elem.className=classNames!=undefined?jQuery.grep(elem.className.split(/\s+/),function(className){return!jQuery.className.has(classNames,className);}).join(" "):"";},has:function(elem,className){return jQuery.inArray(className,(elem.className||elem).toString().split(/\s+/))>-1;}},swap:function(elem,options,callback){var old={};for(var name in options){old[name]=elem.style[name];elem.style[name]=options[name];}callback.call(elem);for(var name in options)elem.style[name]=old[name];},css:function(elem,name,force){if(name=="width"||name=="height"){var val,props={position:"absolute",visibility:"hidden",display:"block"},which=name=="width"?["Left","Right"]:["Top","Bottom"];function getWH(){val=name=="width"?elem.offsetWidth:elem.offsetHeight;var padding=0,border=0;jQuery.each(which,function(){padding+=parseFloat(jQuery.curCSS(elem,"padding"+this,true))||0;border+=parseFloat(jQuery.curCSS(elem,"border"+this+"Width",true))||0;});val-=Math.round(padding+border);}if(jQuery(elem).is(":visible"))getWH();else
jQuery.swap(elem,props,getWH);return Math.max(0,val);}return jQuery.curCSS(elem,name,force);},curCSS:function(elem,name,force){var ret,style=elem.style;function color(elem){if(!jQuery.browser.safari)return false;var ret=defaultView.getComputedStyle(elem,null);return!ret||ret.getPropertyValue("color")=="";}if(name=="opacity"&&jQuery.browser.msie){ret=jQuery.attr(style,"opacity");return ret==""?"1":ret;}if(jQuery.browser.opera&&name=="display"){var save=style.outline;style.outline="0 solid black";style.outline=save;}if(name.match(/float/i))name=styleFloat;if(!force&&style&&style[name])ret=style[name];else if(defaultView.getComputedStyle){if(name.match(/float/i))name="float";name=name.replace(/([A-Z])/g,"-$1").toLowerCase();var computedStyle=defaultView.getComputedStyle(elem,null);if(computedStyle&&!color(elem)){ret=computedStyle.getPropertyValue(name);if (style[ name ] != "" && style[name] != ret){ret = style[ name ];}}else{var swap=[],stack=[],a=elem,i=0;for(;a&&color(a);a=a.parentNode)stack.unshift(a);for(;i<stack.length;i++)if(color(stack[i])){swap[i]=stack[i].style.display;stack[i].style.display="block";}ret=name=="display"&&swap[stack.length-1]!=null?"none":(computedStyle&&computedStyle.getPropertyValue(name))||"";for(i=0;i<swap.length;i++)if(swap[i]!=null)stack[i].style.display=swap[i];}if(name=="opacity"&&ret=="")ret="1";}else if(elem.currentStyle){var camelCase=name.replace(/\-(\w)/g,function(all,letter){return letter.toUpperCase();});ret=elem.currentStyle[name]||elem.currentStyle[camelCase];if(!/^\d+(px)?$/i.test(ret)&&/^\d/.test(ret)){var left=style.left,rsLeft=elem.runtimeStyle.left;elem.runtimeStyle.left=elem.currentStyle.left;style.left=ret||0;ret=style.pixelLeft+"px";style.left=left;elem.runtimeStyle.left=rsLeft;}}return ret;},clean:function(elems,context){var ret=[];context=context||document;if(typeof context.createElement=='undefined')context=context.ownerDocument||context[0]&&context[0].ownerDocument||document;jQuery.each(elems,function(i,elem){if(!elem)return;if(elem.constructor==Number)elem+='';if(typeof elem=="string"){elem=elem.replace(/(<(\w+)[^>]*?)\/>/g,function(all,front,tag){return tag.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?all:front+"></"+tag+">";});var tags=jQuery.trim(elem).toLowerCase(),div=context.createElement("div");var wrap=!tags.indexOf("<opt")&&[1,"<select multiple='multiple'>","</select>"]||!tags.indexOf("<leg")&&[1,"<fieldset>","</fieldset>"]||tags.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"<table>","</table>"]||!tags.indexOf("<tr")&&[2,"<table><tbody>","</tbody></table>"]||(!tags.indexOf("<td")||!tags.indexOf("<th"))&&[3,"<table><tbody><tr>","</tr></tbody></table>"]||!tags.indexOf("<col")&&[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"]||jQuery.browser.msie&&[1,"div<div>","</div>"]||[0,"",""];div.innerHTML=wrap[1]+elem+wrap[2];while(wrap[0]--)div=div.lastChild;if(jQuery.browser.msie){var tbody=!tags.indexOf("<table")&&tags.indexOf("<tbody")<0?div.firstChild&&div.firstChild.childNodes:wrap[1]=="<table>"&&tags.indexOf("<tbody")<0?div.childNodes:[];for(var j=tbody.length-1;j>=0;--j)if(jQuery.nodeName(tbody[j],"tbody")&&!tbody[j].childNodes.length)tbody[j].parentNode.removeChild(tbody[j]);if(/^\s/.test(elem))div.insertBefore(context.createTextNode(elem.match(/^\s*/)[0]),div.firstChild);}elem=jQuery.makeArray(div.childNodes);}if(elem.length===0&&(!jQuery.nodeName(elem,"form")&&!jQuery.nodeName(elem,"select")))return;if(elem[0]==undefined||jQuery.nodeName(elem,"form")||elem.options)ret.push(elem);else
ret=jQuery.merge(ret,elem);});return ret;},attr:function(elem,name,value){if(!elem||elem.nodeType==3||elem.nodeType==8)return undefined;var notxml=!jQuery.isXMLDoc(elem),set=value!==undefined,msie=jQuery.browser.msie;name=notxml&&jQuery.props[name]||name;if(elem.tagName){var special=/href|src|style/.test(name);if(name=="selected"&&jQuery.browser.safari)elem.parentNode.selectedIndex;if(name in elem&&notxml&&!special){if(set){if(name=="type"&&jQuery.nodeName(elem,"input")&&elem.parentNode)throw"type property can't be changed";elem[name]=value;}if(jQuery.nodeName(elem,"form")&&elem.getAttributeNode(name))return elem.getAttributeNode(name).nodeValue;return elem[name];}if(msie&&notxml&&name=="style")return jQuery.attr(elem.style,"cssText",value);if(set)elem.setAttribute(name,""+value);var attr=msie&&notxml&&special?elem.getAttribute(name,2):elem.getAttribute(name);return attr===null?undefined:attr;}if(msie&&name=="opacity"){if(set){elem.zoom=1;elem.filter=(elem.filter||"").replace(/alpha\([^)]*\)/,"")+(parseInt(value)+''=="NaN"?"":"alpha(opacity="+value*100+")");}return elem.filter&&elem.filter.indexOf("opacity=")>=0?(parseFloat(elem.filter.match(/opacity=([^)]*)/)[1])/100)+'':"";}name=name.replace(/-([a-z])/ig,function(all,letter){return letter.toUpperCase();});if(set)elem[name]=value;return elem[name];},trim:function(text){return(text||"").replace(/^\s+|\s+$/g,"");},makeArray:function(array){var ret=[];if(array!=null){var i=array.length;if(i==null||array.split||array.setInterval||array.call)ret[0]=array;else
while(i)ret[--i]=array[i];}return ret;},inArray:function(elem,array){for(var i=0,length=array.length;i<length;i++)if(array[i]===elem)return i;return-1;},merge:function(first,second){var i=0,elem,pos=first.length;if(jQuery.browser.msie){while(elem=second[i++])if(elem.nodeType!=8)first[pos++]=elem;}else
while(elem=second[i++])first[pos++]=elem;return first;},unique:function(array){var ret=[],done={};try{for(var i=0,length=array.length;i<length;i++){var id=jQuery.data(array[i]);if(!done[id]){done[id]=true;ret.push(array[i]);}}}catch(e){ret=array;}return ret;},grep:function(elems,callback,inv){var ret=[];for(var i=0,length=elems.length;i<length;i++)if(!inv!=!callback(elems[i],i))ret.push(elems[i]);return ret;},map:function(elems,callback){var ret=[];for(var i=0,length=elems.length;i<length;i++){var value=callback(elems[i],i);if(value!=null)ret[ret.length]=value;}return ret.concat.apply([],ret);}});var userAgent=navigator.userAgent.toLowerCase();jQuery.browser={version:(userAgent.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[])[1],safari:/webkit/.test(userAgent),opera:/opera/.test(userAgent),msie:/msie/.test(userAgent)&&!/opera/.test(userAgent),mozilla:/mozilla/.test(userAgent)&&!/(compatible|webkit)/.test(userAgent)};var styleFloat=jQuery.browser.msie?"styleFloat":"cssFloat";jQuery.extend({boxModel:!jQuery.browser.msie||document.compatMode=="CSS1Compat",props:{"for":"htmlFor","class":"className","float":styleFloat,cssFloat:styleFloat,styleFloat:styleFloat,readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing"}});jQuery.each({parent:function(elem){return elem.parentNode;},parents:function(elem){return jQuery.dir(elem,"parentNode");},next:function(elem){return jQuery.nth(elem,2,"nextSibling");},prev:function(elem){return jQuery.nth(elem,2,"previousSibling");},nextAll:function(elem){return jQuery.dir(elem,"nextSibling");},prevAll:function(elem){return jQuery.dir(elem,"previousSibling");},siblings:function(elem){return jQuery.sibling(elem.parentNode.firstChild,elem);},children:function(elem){return jQuery.sibling(elem.firstChild);},contents:function(elem){return jQuery.nodeName(elem,"iframe")?elem.contentDocument||elem.contentWindow.document:jQuery.makeArray(elem.childNodes);}},function(name,fn){jQuery.fn[name]=function(selector){var ret=jQuery.map(this,fn);if(selector&&typeof selector=="string")ret=jQuery.multiFilter(selector,ret);return this.pushStack(jQuery.unique(ret));};});jQuery.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(name,original){jQuery.fn[name]=function(){var args=arguments;return this.each(function(){for(var i=0,length=args.length;i<length;i++)jQuery(args[i])[original](this);});};});jQuery.each({removeAttr:function(name){jQuery.attr(this,name,"");if(this.nodeType==1)this.removeAttribute(name);},addClass:function(classNames){jQuery.className.add(this,classNames);},removeClass:function(classNames){jQuery.className.remove(this,classNames);},toggleClass:function(classNames){jQuery.className[jQuery.className.has(this,classNames)?"remove":"add"](this,classNames);},remove:function(selector){if(!selector||jQuery.filter(selector,[this]).r.length){jQuery("*",this).add(this).each(function(){jQuery.event.remove(this);jQuery.removeData(this);});if(this.parentNode)this.parentNode.removeChild(this);}},empty:function(){jQuery(">*",this).remove();while(this.firstChild)this.removeChild(this.firstChild);}},function(name,fn){jQuery.fn[name]=function(){return this.each(fn,arguments);};});jQuery.each(["Height","Width"],function(i,name){var type=name.toLowerCase();jQuery.fn[type]=function(size){return this[0]==window?jQuery.browser.opera&&document.body["client"+name]||jQuery.browser.safari&&window["inner"+name]||document.compatMode=="CSS1Compat"&&document.documentElement["client"+name]||document.body["client"+name]:this[0]==document?Math.max(Math.max(document.body["scroll"+name],document.documentElement["scroll"+name]),Math.max(document.body["offset"+name],document.documentElement["offset"+name])):size==undefined?(this.length?jQuery.css(this[0],type):null):this.css(type,size.constructor==String?size:size+"px");};});function num(elem,prop){return elem[0]&&parseInt(jQuery.curCSS(elem[0],prop,true),10)||0;}var chars=jQuery.browser.safari&&parseInt(jQuery.browser.version)<417?"(?:[\\w*_-]|\\\\.)":"(?:[\\w\u0128-\uFFFF*_-]|\\\\.)",quickChild=new RegExp("^>\\s*("+chars+"+)"),quickID=new RegExp("^("+chars+"+)(#)("+chars+"+)"),quickClass=new RegExp("^([#.]?)("+chars+"*)");jQuery.extend({expr:{"":function(a,i,m){return m[2]=="*"||jQuery.nodeName(a,m[2]);},"#":function(a,i,m){return a.getAttribute("id")==m[2];},":":{lt:function(a,i,m){return i<m[3]-0;},gt:function(a,i,m){return i>m[3]-0;},nth:function(a,i,m){return m[3]-0==i;},eq:function(a,i,m){return m[3]-0==i;},first:function(a,i){return i==0;},last:function(a,i,m,r){return i==r.length-1;},even:function(a,i){return i%2==0;},odd:function(a,i){return i%2;},"first-child":function(a){return a.parentNode.getElementsByTagName("*")[0]==a;},"last-child":function(a){return jQuery.nth(a.parentNode.lastChild,1,"previousSibling")==a;},"only-child":function(a){return!jQuery.nth(a.parentNode.lastChild,2,"previousSibling");},parent:function(a){return a.firstChild;},empty:function(a){return!a.firstChild;},contains:function(a,i,m){return(a.textContent||a.innerText||jQuery(a).text()||"").indexOf(m[3])>=0;},visible:function(a){return"hidden"!=a.type&&jQuery.css(a,"display")!="none"&&jQuery.css(a,"visibility")!="hidden";},hidden:function(a){return"hidden"==a.type||jQuery.css(a,"display")=="none"||jQuery.css(a,"visibility")=="hidden";},enabled:function(a){return!a.disabled;},disabled:function(a){return a.disabled;},checked:function(a){return a.checked;},selected:function(a){return a.selected||jQuery.attr(a,"selected");},text:function(a){return"text"==a.type;},radio:function(a){return"radio"==a.type;},checkbox:function(a){return"checkbox"==a.type;},file:function(a){return"file"==a.type;},password:function(a){return"password"==a.type;},submit:function(a){return"submit"==a.type;},image:function(a){return"image"==a.type;},reset:function(a){return"reset"==a.type;},button:function(a){return"button"==a.type||jQuery.nodeName(a,"button");},input:function(a){return/input|select|textarea|button/i.test(a.nodeName);},has:function(a,i,m){return jQuery.find(m[3],a).length;},header:function(a){return/h\d/i.test(a.nodeName);},animated:function(a){return jQuery.grep(jQuery.timers,function(fn){return a==fn.elem;}).length;}}},parse:[/^(\[) *@?([\w-]+) *([!*$^~=]*) *('?"?)(.*?)\4 *\]/,/^(:)([\w-]+)\("?'?(.*?(\(.*?\))?[^(]*?)"?'?\)/,new RegExp("^([:.#]*)("+chars+"+)")],multiFilter:function(expr,elems,not){var old,cur=[];while(expr&&expr!=old){old=expr;var f=jQuery.filter(expr,elems,not);expr=f.t.replace(/^\s*,\s*/,"");cur=not?elems=f.r:jQuery.merge(cur,f.r);}return cur;},find:function(t,context){if(typeof t!="string")return[t];if(context&&context.nodeType!=1&&context.nodeType!=9)return[];context=context||document;var ret=[context],done=[],last,nodeName;while(t&&last!=t){var r=[];last=t;t=jQuery.trim(t);var foundToken=false,re=quickChild,m=re.exec(t);if(m){nodeName=m[1].toUpperCase();for(var i=0;ret[i];i++)for(var c=ret[i].firstChild;c;c=c.nextSibling)if(c.nodeType==1&&(nodeName=="*"||c.nodeName.toUpperCase()==nodeName))r.push(c);ret=r;t=t.replace(re,"");if(t.indexOf(" ")==0)continue;foundToken=true;}else{re=/^([>+~])\s*(\w*)/i;if((m=re.exec(t))!=null){r=[];var merge={};nodeName=m[2].toUpperCase();m=m[1];for(var j=0,rl=ret.length;j<rl;j++){var n=m=="~"||m=="+"?ret[j].nextSibling:ret[j].firstChild;for(;n;n=n.nextSibling)if(n.nodeType==1){var id=jQuery.data(n);if(m=="~"&&merge[id])break;if(!nodeName||n.nodeName.toUpperCase()==nodeName){if(m=="~")merge[id]=true;r.push(n);}if(m=="+")break;}}ret=r;t=jQuery.trim(t.replace(re,""));foundToken=true;}}if(t&&!foundToken){if(!t.indexOf(",")){if(context==ret[0])ret.shift();done=jQuery.merge(done,ret);r=ret=[context];t=" "+t.substr(1,t.length);}else{var re2=quickID;var m=re2.exec(t);if(m){m=[0,m[2],m[3],m[1]];}else{re2=quickClass;m=re2.exec(t);}m[2]=m[2].replace(/\\/g,"");var elem=ret[ret.length-1];if(m[1]=="#"&&elem&&elem.getElementById&&!jQuery.isXMLDoc(elem)){var oid=elem.getElementById(m[2]);if((jQuery.browser.msie||jQuery.browser.opera)&&oid&&typeof oid.id=="string"&&oid.id!=m[2])oid=jQuery('[@id="'+m[2]+'"]',elem)[0];ret=r=oid&&(!m[3]||jQuery.nodeName(oid,m[3]))?[oid]:[];}else{for(var i=0;ret[i];i++){var tag=m[1]=="#"&&m[3]?m[3]:m[1]!=""||m[0]==""?"*":m[2];if(tag=="*"&&ret[i].nodeName.toLowerCase()=="object")tag="param";r=jQuery.merge(r,ret[i].getElementsByTagName(tag));}if(m[1]==".")r=jQuery.classFilter(r,m[2]);if(m[1]=="#"){var tmp=[];for(var i=0;r[i];i++)if(r[i].getAttribute("id")==m[2]){tmp=[r[i]];break;}r=tmp;}ret=r;}t=t.replace(re2,"");}}if(t){var val=jQuery.filter(t,r);ret=r=val.r;t=jQuery.trim(val.t);}}if(t)ret=[];if(ret&&context==ret[0])ret.shift();done=jQuery.merge(done,ret);return done;},classFilter:function(r,m,not){m=" "+m+" ";var tmp=[];for(var i=0;r[i];i++){var pass=(" "+r[i].className+" ").indexOf(m)>=0;if(!not&&pass||not&&!pass)tmp.push(r[i]);}return tmp;},filter:function(t,r,not){var last;while(t&&t!=last){last=t;var p=jQuery.parse,m;for(var i=0;p[i];i++){m=p[i].exec(t);if(m){t=t.substring(m[0].length);m[2]=m[2].replace(/\\/g,"");break;}}if(!m)break;if(m[1]==":"&&m[2]=="not")r=isSimple.test(m[3])?jQuery.filter(m[3],r,true).r:jQuery(r).not(m[3]);else if(m[1]==".")r=jQuery.classFilter(r,m[2],not);else if(m[1]=="["){var tmp=[],type=m[3];for(var i=0,rl=r.length;i<rl;i++){var a=r[i],z=a[jQuery.props[m[2]]||m[2]];if(z==null||/href|src|selected/.test(m[2]))z=jQuery.attr(a,m[2])||'';if((type==""&&!!z||type=="="&&z==m[5]||type=="!="&&z!=m[5]||type=="^="&&z&&!z.indexOf(m[5])||type=="$="&&z.substr(z.length-m[5].length)==m[5]||(type=="*="||type=="~=")&&z.indexOf(m[5])>=0)^not)tmp.push(a);}r=tmp;}else if(m[1]==":"&&m[2]=="nth-child"){var merge={},tmp=[],test=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(m[3]=="even"&&"2n"||m[3]=="odd"&&"2n+1"||!/\D/.test(m[3])&&"0n+"+m[3]||m[3]),first=(test[1]+(test[2]||1))-0,last=test[3]-0;for(var i=0,rl=r.length;i<rl;i++){var node=r[i],parentNode=node.parentNode,id=jQuery.data(parentNode);if(!merge[id]){var c=1;for(var n=parentNode.firstChild;n;n=n.nextSibling)if(n.nodeType==1)n.nodeIndex=c++;merge[id]=true;}var add=false;if(first==0){if(node.nodeIndex==last)add=true;}else if((node.nodeIndex-last)%first==0&&(node.nodeIndex-last)/first>=0)add=true;if(add^not)tmp.push(node);}r=tmp;}else{var fn=jQuery.expr[m[1]];if(typeof fn=="object")fn=fn[m[2]];if(typeof fn=="string")fn=eval("false||function(a,i){return "+fn+";}");r=jQuery.grep(r,function(elem,i){return fn(elem,i,m,r);},not);}}return{r:r,t:t};},dir:function(elem,dir){var matched=[],cur=elem[dir];while(cur&&cur!=document){if(cur.nodeType==1)matched.push(cur);cur=cur[dir];}return matched;},nth:function(cur,result,dir,elem){result=result||1;var num=0;for(;cur;cur=cur[dir])if(cur.nodeType==1&&++num==result)break;return cur;},sibling:function(n,elem){var r=[];for(;n;n=n.nextSibling){if(n.nodeType==1&&n!=elem)r.push(n);}return r;}});jQuery.event={add:function(elem,types,handler,data){if(elem.nodeType==3||elem.nodeType==8)return;if(jQuery.browser.msie&&elem.setInterval)elem=window;if(!handler.guid)handler.guid=this.guid++;if(data!=undefined){var fn=handler;handler=this.proxy(fn,function(){return fn.apply(this,arguments);});handler.data=data;}var events=jQuery.data(elem,"events")||jQuery.data(elem,"events",{}),handle=jQuery.data(elem,"handle")||jQuery.data(elem,"handle",function(){if(typeof jQuery!="undefined"&&!jQuery.event.triggered)return jQuery.event.handle.apply(arguments.callee.elem,arguments);});handle.elem=elem;jQuery.each(types.split(/\s+/),function(index,type){var parts=type.split(".");type=parts[0];handler.type=parts[1];var handlers=events[type];if(!handlers){handlers=events[type]={};if(!jQuery.event.special[type]||jQuery.event.special[type].setup.call(elem)===false){if(elem.addEventListener)elem.addEventListener(type,handle,false);else if(elem.attachEvent)elem.attachEvent("on"+type,handle);}}handlers[handler.guid]=handler;jQuery.event.global[type]=true;});elem=null;},guid:1,global:{},remove:function(elem,types,handler){if(elem.nodeType==3||elem.nodeType==8)return;var events=jQuery.data(elem,"events"),ret,index;if(events){if(types==undefined||(typeof types=="string"&&types.charAt(0)=="."))for(var type in events)this.remove(elem,type+(types||""));else{if(types.type){handler=types.handler;types=types.type;}jQuery.each(types.split(/\s+/),function(index,type){var parts=type.split(".");type=parts[0];if(events[type]){if(handler)delete events[type][handler.guid];else
for(handler in events[type])if(!parts[1]||events[type][handler].type==parts[1])delete events[type][handler];for(ret in events[type])break;if(!ret){if(!jQuery.event.special[type]||jQuery.event.special[type].teardown.call(elem)===false){if(elem.removeEventListener)elem.removeEventListener(type,jQuery.data(elem,"handle"),false);else if(elem.detachEvent)elem.detachEvent("on"+type,jQuery.data(elem,"handle"));}ret=null;delete events[type];}}});}for(ret in events)break;if(!ret){var handle=jQuery.data(elem,"handle");if(handle)handle.elem=null;jQuery.removeData(elem,"events");jQuery.removeData(elem,"handle");}}},trigger:function(type,data,elem,donative,extra){data=jQuery.makeArray(data);if(type.indexOf("!")>=0){type=type.slice(0,-1);var exclusive=true;}if(!elem){if(this.global[type])jQuery("*").add([window,document]).trigger(type,data);}else{if(elem.nodeType==3||elem.nodeType==8)return undefined;var val,ret,fn=jQuery.isFunction(elem[type]||null),event=!data[0]||!data[0].preventDefault;if(event){data.unshift({type:type,target:elem,preventDefault:function(){},stopPropagation:function(){},timeStamp:now()});data[0][expando]=true;}data[0].type=type;if(exclusive)data[0].exclusive=true;var handle=jQuery.data(elem,"handle");if(handle)val=handle.apply(elem,data);if((!fn||(jQuery.nodeName(elem,'a')&&type=="click"))&&elem["on"+type]&&elem["on"+type].apply(elem,data)===false)val=false;if(event)data.shift();if(extra&&jQuery.isFunction(extra)){ret=extra.apply(elem,val==null?data:data.concat(val));if(ret!==undefined)val=ret;}if(fn&&donative!==false&&val!==false&&!(jQuery.nodeName(elem,'a')&&type=="click")){this.triggered=true;try{elem[type]();}catch(e){}}this.triggered=false;}return val;},handle:function(event){var val,ret,namespace,all,handlers;event=arguments[0]=jQuery.event.fix(event||window.event);namespace=event.type.split(".");event.type=namespace[0];namespace=namespace[1];all=!namespace&&!event.exclusive;handlers=(jQuery.data(this,"events")||{})[event.type];for(var j in handlers){var handler=handlers[j];if(all||handler.type==namespace){event.handler=handler;event.data=handler.data;ret=handler.apply(this,arguments);if(val!==false)val=ret;if(ret===false){event.preventDefault();event.stopPropagation();}}}return val;},fix:function(event){if(event[expando]==true)return event;var originalEvent=event;event={originalEvent:originalEvent};var props="altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode metaKey newValue originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target timeStamp toElement type view wheelDelta which".split(" ");for(var i=props.length;i;i--)event[props[i]]=originalEvent[props[i]];event[expando]=true;event.preventDefault=function(){if(originalEvent.preventDefault)originalEvent.preventDefault();originalEvent.returnValue=false;};event.stopPropagation=function(){if(originalEvent.stopPropagation)originalEvent.stopPropagation();originalEvent.cancelBubble=true;};event.timeStamp=event.timeStamp||now();if(!event.target)event.target=event.srcElement||document;if(event.target.nodeType==3)event.target=event.target.parentNode;if(!event.relatedTarget&&event.fromElement)event.relatedTarget=event.fromElement==event.target?event.toElement:event.fromElement;if(event.pageX==null&&event.clientX!=null){var doc=document.documentElement,body=document.body;event.pageX=event.clientX+(doc&&doc.scrollLeft||body&&body.scrollLeft||0)-(doc.clientLeft||0);event.pageY=event.clientY+(doc&&doc.scrollTop||body&&body.scrollTop||0)-(doc.clientTop||0);}if(!event.which&&((event.charCode||event.charCode===0)?event.charCode:event.keyCode))event.which=event.charCode||event.keyCode;if(!event.metaKey&&event.ctrlKey)event.metaKey=event.ctrlKey;if(!event.which&&event.button)event.which=(event.button&1?1:(event.button&2?3:(event.button&4?2:0)));return event;},proxy:function(fn,proxy){proxy.guid=fn.guid=fn.guid||proxy.guid||this.guid++;return proxy;},special:{ready:{setup:function(){bindReady();return;},teardown:function(){return;}},mouseenter:{setup:function(){if(jQuery.browser.msie)return false;jQuery(this).bind("mouseover",jQuery.event.special.mouseenter.handler);return true;},teardown:function(){if(jQuery.browser.msie)return false;jQuery(this).unbind("mouseover",jQuery.event.special.mouseenter.handler);return true;},handler:function(event){if(withinElement(event,this))return true;event.type="mouseenter";return jQuery.event.handle.apply(this,arguments);}},mouseleave:{setup:function(){if(jQuery.browser.msie)return false;jQuery(this).bind("mouseout",jQuery.event.special.mouseleave.handler);return true;},teardown:function(){if(jQuery.browser.msie)return false;jQuery(this).unbind("mouseout",jQuery.event.special.mouseleave.handler);return true;},handler:function(event){if(withinElement(event,this))return true;event.type="mouseleave";return jQuery.event.handle.apply(this,arguments);}}}};jQuery.fn.extend({bind:function(type,data,fn){return type=="unload"?this.one(type,data,fn):this.each(function(){jQuery.event.add(this,type,fn||data,fn&&data);});},one:function(type,data,fn){var one=jQuery.event.proxy(fn||data,function(event){jQuery(this).unbind(event,one);return(fn||data).apply(this,arguments);});return this.each(function(){jQuery.event.add(this,type,one,fn&&data);});},unbind:function(type,fn){return this.each(function(){jQuery.event.remove(this,type,fn);});},trigger:function(type,data,fn){return this.each(function(){jQuery.event.trigger(type,data,this,true,fn);});},triggerHandler:function(type,data,fn){return this[0]&&jQuery.event.trigger(type,data,this[0],false,fn);},toggle:function(fn){var args=arguments,i=1;while(i<args.length)jQuery.event.proxy(fn,args[i++]);return this.click(jQuery.event.proxy(fn,function(event){this.lastToggle=(this.lastToggle||0)%i;event.preventDefault();return args[this.lastToggle++].apply(this,arguments)||false;}));},hover:function(fnOver,fnOut){return this.bind('mouseenter',fnOver).bind('mouseleave',fnOut);},ready:function(fn){bindReady();if(jQuery.isReady)fn.call(document,jQuery);else
jQuery.readyList.push(function(){return fn.call(this,jQuery);});return this;}});jQuery.extend({isReady:false,readyList:[],ready:function(){if(!jQuery.isReady){jQuery.isReady=true;if(jQuery.readyList){jQuery.each(jQuery.readyList,function(){this.call(document);});jQuery.readyList=null;}jQuery(document).triggerHandler("ready");}}});var readyBound=false;function bindReady(){if(readyBound)return;readyBound=true;if(document.addEventListener&&!jQuery.browser.opera)document.addEventListener("DOMContentLoaded",jQuery.ready,false);if(jQuery.browser.msie&&window==top)(function(){if(jQuery.isReady)return;try{document.documentElement.doScroll("left");}catch(error){setTimeout(arguments.callee,0);return;}jQuery.ready();})();if(jQuery.browser.opera)document.addEventListener("DOMContentLoaded",function(){if(jQuery.isReady)return;for(var i=0;i<document.styleSheets.length;i++)if(document.styleSheets[i].disabled){setTimeout(arguments.callee,0);return;}jQuery.ready();},false);if(jQuery.browser.safari){var numStyles;(function(){if(jQuery.isReady)return;if(document.readyState!="loaded"&&document.readyState!="complete"){setTimeout(arguments.callee,0);return;}if(numStyles===undefined)numStyles=jQuery("style, link[rel=stylesheet]").length;if(document.styleSheets.length!=numStyles){setTimeout(arguments.callee,0);return;}jQuery.ready();})();}jQuery.event.add(window,"load",jQuery.ready);}jQuery.each(("blur,focus,load,resize,scroll,unload,click,dblclick,"+"mousedown,mouseup,mousemove,mouseover,mouseout,change,select,"+"submit,keydown,keypress,keyup,error").split(","),function(i,name){jQuery.fn[name]=function(fn){return fn?this.bind(name,fn):this.trigger(name);};});var withinElement=function(event,elem){var parent=event.relatedTarget;while(parent&&parent!=elem)try{parent=parent.parentNode;}catch(error){parent=elem;}return parent==elem;};jQuery(window).bind("unload",function(){jQuery("*").add(document).unbind();});jQuery.fn.extend({_load:jQuery.fn.load,load:function(url,params,callback){if(typeof url!='string')return this._load(url);var off=url.indexOf(" ");if(off>=0){var selector=url.slice(off,url.length);url=url.slice(0,off);}callback=callback||function(){};var type="GET";if(params)if(jQuery.isFunction(params)){callback=params;params=null;}else{params=jQuery.param(params);type="POST";}var self=this;jQuery.ajax({url:url,type:type,dataType:"html",data:params,complete:function(res,status){if(status=="success"||status=="notmodified")self.html(selector?jQuery("<div/>").append(res.responseText.replace(/<script(.|\s)*?\/script>/g,"")).find(selector):res.responseText);self.each(callback,[res.responseText,status,res]);}});return this;},serialize:function(){return jQuery.param(this.serializeArray());},serializeArray:function(){return this.map(function(){return jQuery.nodeName(this,"form")?jQuery.makeArray(this.elements):this;}).filter(function(){return this.name&&!this.disabled&&(this.checked||/select|textarea/i.test(this.nodeName)||/text|hidden|password/i.test(this.type));}).map(function(i,elem){var val=jQuery(this).val();return val==null?null:val.constructor==Array?jQuery.map(val,function(val,i){return{name:elem.name,value:val};}):{name:elem.name,value:val};}).get();}});jQuery.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(i,o){jQuery.fn[o]=function(f){return this.bind(o,f);};});var jsc=now();jQuery.extend({get:function(url,data,callback,type){if(jQuery.isFunction(data)){callback=data;data=null;}return jQuery.ajax({type:"GET",url:url,data:data,success:callback,dataType:type});},getScript:function(url,callback){return jQuery.get(url,null,callback,"script");},getJSON:function(url,data,callback){return jQuery.get(url,data,callback,"json");},post:function(url,data,callback,type){if(jQuery.isFunction(data)){callback=data;data={};}return jQuery.ajax({type:"POST",url:url,data:data,success:callback,dataType:type});},ajaxSetup:function(settings){jQuery.extend(jQuery.ajaxSettings,settings);},ajaxSettings:{url:location.href,global:true,type:"GET",timeout:0,contentType:"application/x-www-form-urlencoded",processData:true,async:true,data:null,username:null,password:null,accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},ajax:function(s){s=jQuery.extend(true,s,jQuery.extend(true,{},jQuery.ajaxSettings,s));var jsonp,jsre=/=\?(&|$)/g,status,data,type=s.type.toUpperCase();if(s.data&&s.processData&&typeof s.data!="string")s.data=jQuery.param(s.data);if(s.dataType=="jsonp"){if(type=="GET"){if(!s.url.match(jsre))s.url+=(s.url.match(/\?/)?"&":"?")+(s.jsonp||"callback")+"=?";}else if(!s.data||!s.data.match(jsre))s.data=(s.data?s.data+"&":"")+(s.jsonp||"callback")+"=?";s.dataType="json";}if(s.dataType=="json"&&(s.data&&s.data.match(jsre)||s.url.match(jsre))){jsonp="jsonp"+jsc++;if(s.data)s.data=(s.data+"").replace(jsre,"="+jsonp+"$1");s.url=s.url.replace(jsre,"="+jsonp+"$1");s.dataType="script";window[jsonp]=function(tmp){data=tmp;success();complete();window[jsonp]=undefined;try{delete window[jsonp];}catch(e){}if(head)head.removeChild(script);};}if(s.dataType=="script"&&s.cache==null)s.cache=false;if(s.cache===false&&type=="GET"){var ts=now();var ret=s.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+ts+"$2");s.url=ret+((ret==s.url)?(s.url.match(/\?/)?"&":"?")+"_="+ts:"");}if(s.data&&type=="GET"){s.url+=(s.url.match(/\?/)?"&":"?")+s.data;s.data=null;}if(s.global&&!jQuery.active++)jQuery.event.trigger("ajaxStart");var remote=/^(?:\w+:)?\/\/([^\/?#]+)/;if(s.dataType=="script"&&type=="GET"&&remote.test(s.url)&&remote.exec(s.url)[1]!=location.host){var head=document.getElementsByTagName("head")[0];var script=document.createElement("script");script.src=s.url;if(s.scriptCharset)script.charset=s.scriptCharset;if(!jsonp){var done=false;script.onload=script.onreadystatechange=function(){if(!done&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){done=true;success();complete();head.removeChild(script);}};}head.appendChild(script);return undefined;}var requestDone=false;var xhr=window.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest();if(s.username)xhr.open(type,s.url,s.async,s.username,s.password);else
xhr.open(type,s.url,s.async);try{if(s.data)xhr.setRequestHeader("Content-Type",s.contentType);if(s.ifModified)xhr.setRequestHeader("If-Modified-Since",jQuery.lastModified[s.url]||"Thu, 01 Jan 1970 00:00:00 GMT");xhr.setRequestHeader("X-Requested-With","XMLHttpRequest");xhr.setRequestHeader("Accept",s.dataType&&s.accepts[s.dataType]?s.accepts[s.dataType]+", */*":s.accepts._default);}catch(e){}if(s.beforeSend&&s.beforeSend(xhr,s)===false){s.global&&jQuery.active--;xhr.abort();return false;}if(s.global)jQuery.event.trigger("ajaxSend",[xhr,s]);var onreadystatechange=function(isTimeout){if(!requestDone&&xhr&&(xhr.readyState==4||isTimeout=="timeout")){requestDone=true;if(ival){clearInterval(ival);ival=null;}status=isTimeout=="timeout"&&"timeout"||!jQuery.httpSuccess(xhr)&&"error"||s.ifModified&&jQuery.httpNotModified(xhr,s.url)&&"notmodified"||"success";if(status=="success"){try{data=jQuery.httpData(xhr,s.dataType,s.dataFilter);}catch(e){status="parsererror";}}if(status=="success"){var modRes;try{modRes=xhr.getResponseHeader("Last-Modified");}catch(e){}if(s.ifModified&&modRes)jQuery.lastModified[s.url]=modRes;if(!jsonp)success();}else
jQuery.handleError(s,xhr,status);complete();if(s.async)xhr=null;}};if(s.async){var ival=setInterval(onreadystatechange,13);if(s.timeout>0)setTimeout(function(){if(xhr){xhr.abort();if(!requestDone)onreadystatechange("timeout");}},s.timeout);}try{xhr.send(s.data);}catch(e){jQuery.handleError(s,xhr,null,e);}if(!s.async)onreadystatechange();function success(){if(s.success)s.success(data,status);if(s.global)jQuery.event.trigger("ajaxSuccess",[xhr,s]);}function complete(){if(s.complete)s.complete(xhr,status);if(s.global)jQuery.event.trigger("ajaxComplete",[xhr,s]);if(s.global&&!--jQuery.active)jQuery.event.trigger("ajaxStop");}return xhr;},handleError:function(s,xhr,status,e){if(s.error)s.error(xhr,status,e);if(s.global)jQuery.event.trigger("ajaxError",[xhr,s,e]);},active:0,httpSuccess:function(xhr){try{return!xhr.status&&location.protocol=="file:"||(xhr.status>=200&&xhr.status<300)||xhr.status==304||xhr.status==1223||jQuery.browser.safari&&xhr.status==undefined;}catch(e){}return false;},httpNotModified:function(xhr,url){try{var xhrRes=xhr.getResponseHeader("Last-Modified");return xhr.status==304||xhrRes==jQuery.lastModified[url]||jQuery.browser.safari&&xhr.status==undefined;}catch(e){}return false;},httpData:function(xhr,type,filter){var ct=xhr.getResponseHeader("content-type"),xml=type=="xml"||!type&&ct&&ct.indexOf("xml")>=0,data=xml?xhr.responseXML:xhr.responseText;if(xml&&data.documentElement.tagName=="parsererror")throw"parsererror";if(filter)data=filter(data,type);if(type=="script")jQuery.globalEval(data);if(type=="json")data=eval("("+data+")");return data;},param:function(a){var s=[];if(a.constructor==Array||a.jquery)jQuery.each(a,function(){s.push(encodeURIComponent(this.name)+"="+encodeURIComponent(this.value));});else
for(var j in a)if(a[j]&&a[j].constructor==Array)jQuery.each(a[j],function(){s.push(encodeURIComponent(j)+"="+encodeURIComponent(this));});else
s.push(encodeURIComponent(j)+"="+encodeURIComponent(jQuery.isFunction(a[j])?a[j]():a[j]));return s.join("&").replace(/%20/g,"+");}});jQuery.fn.extend({show:function(speed,callback){return speed?this.animate({height:"show",width:"show",opacity:"show"},speed,callback):this.filter(":hidden").each(function(){this.style.display=this.oldblock||"";if(jQuery.css(this,"display")=="none"){var elem=jQuery("<"+this.tagName+" />").appendTo("body");this.style.display=elem.css("display");if(this.style.display=="none")this.style.display="block";elem.remove();}}).end();},hide:function(speed,callback){return speed?this.animate({height:"hide",width:"hide",opacity:"hide"},speed,callback):this.filter(":visible").each(function(){this.oldblock=this.oldblock||jQuery.css(this,"display");this.style.display="none";}).end();},_toggle:jQuery.fn.toggle,toggle:function(fn,fn2){return jQuery.isFunction(fn)&&jQuery.isFunction(fn2)?this._toggle.apply(this,arguments):fn?this.animate({height:"toggle",width:"toggle",opacity:"toggle"},fn,fn2):this.each(function(){jQuery(this)[jQuery(this).is(":hidden")?"show":"hide"]();});},slideDown:function(speed,callback){return this.animate({height:"show"},speed,callback);},slideUp:function(speed,callback){return this.animate({height:"hide"},speed,callback);},slideToggle:function(speed,callback){return this.animate({height:"toggle"},speed,callback);},fadeIn:function(speed,callback){return this.animate({opacity:"show"},speed,callback);},fadeOut:function(speed,callback){return this.animate({opacity:"hide"},speed,callback);},fadeTo:function(speed,to,callback){return this.animate({opacity:to},speed,callback);},animate:function(prop,speed,easing,callback){var optall=jQuery.speed(speed,easing,callback);return this[optall.queue===false?"each":"queue"](function(){if(this.nodeType!=1)return false;var opt=jQuery.extend({},optall),p,hidden=jQuery(this).is(":hidden"),self=this;for(p in prop){if(prop[p]=="hide"&&hidden||prop[p]=="show"&&!hidden)return opt.complete.call(this);if(p=="height"||p=="width"){opt.display=jQuery.css(this,"display");opt.overflow=this.style.overflow;}}if(opt.overflow!=null)this.style.overflow="hidden";opt.curAnim=jQuery.extend({},prop);jQuery.each(prop,function(name,val){var e=new jQuery.fx(self,opt,name);if(/toggle|show|hide/.test(val))e[val=="toggle"?hidden?"show":"hide":val](prop);else{var parts=val.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),start=e.cur(true)||0;if(parts){var end=parseFloat(parts[2]),unit=parts[3]||"px";if(unit!="px"){self.style[name]=(end||1)+unit;start=((end||1)/e.cur(true))*start;self.style[name]=start+unit;}if(parts[1])end=((parts[1]=="-="?-1:1)*end)+start;e.custom(start,end,unit);}else
e.custom(start,val,"");}});return true;});},queue:function(type,fn){if(jQuery.isFunction(type)||(type&&type.constructor==Array)){fn=type;type="fx";}if(!type||(typeof type=="string"&&!fn))return queue(this[0],type);return this.each(function(){if(fn.constructor==Array)queue(this,type,fn);else{queue(this,type).push(fn);if(queue(this,type).length==1)fn.call(this);}});},stop:function(clearQueue,gotoEnd){var timers=jQuery.timers;if(clearQueue)this.queue([]);this.each(function(){for(var i=timers.length-1;i>=0;i--)if(timers[i].elem==this){if(gotoEnd)timers[i](true);timers.splice(i,1);}});if(!gotoEnd)this.dequeue();return this;}});var queue=function(elem,type,array){if(elem){type=type||"fx";var q=jQuery.data(elem,type+"queue");if(!q||array)q=jQuery.data(elem,type+"queue",jQuery.makeArray(array));}return q;};jQuery.fn.dequeue=function(type){type=type||"fx";return this.each(function(){var q=queue(this,type);q.shift();if(q.length)q[0].call(this);});};jQuery.extend({speed:function(speed,easing,fn){var opt=speed&&speed.constructor==Object?speed:{complete:fn||!fn&&easing||jQuery.isFunction(speed)&&speed,duration:speed,easing:fn&&easing||easing&&easing.constructor!=Function&&easing};opt.duration=(opt.duration&&opt.duration.constructor==Number?opt.duration:jQuery.fx.speeds[opt.duration])||jQuery.fx.speeds.def;opt.old=opt.complete;opt.complete=function(){if(opt.queue!==false)jQuery(this).dequeue();if(jQuery.isFunction(opt.old))opt.old.call(this);};return opt;},easing:{linear:function(p,n,firstNum,diff){return firstNum+diff*p;},swing:function(p,n,firstNum,diff){return((-Math.cos(p*Math.PI)/2)+0.5)*diff+firstNum;}},timers:[],timerId:null,fx:function(elem,options,prop){this.options=options;this.elem=elem;this.prop=prop;if(!options.orig)options.orig={};}});jQuery.fx.prototype={update:function(){if(this.options.step)this.options.step.call(this.elem,this.now,this);(jQuery.fx.step[this.prop]||jQuery.fx.step._default)(this);if(this.prop=="height"||this.prop=="width")this.elem.style.display="block";},cur:function(force){if(this.elem[this.prop]!=null&&this.elem.style[this.prop]==null)return this.elem[this.prop];var r=parseFloat(jQuery.css(this.elem,this.prop,force));return r&&r>-10000?r:parseFloat(jQuery.curCSS(this.elem,this.prop))||0;},custom:function(from,to,unit){this.startTime=now();this.start=from;this.end=to;this.unit=unit||this.unit||"px";this.now=this.start;this.pos=this.state=0;this.update();var self=this;function t(gotoEnd){return self.step(gotoEnd);}t.elem=this.elem;jQuery.timers.push(t);if(jQuery.timerId==null){jQuery.timerId=setInterval(function(){var timers=jQuery.timers;for(var i=0;i<timers.length;i++)if(!timers[i]())timers.splice(i--,1);if(!timers.length){clearInterval(jQuery.timerId);jQuery.timerId=null;}},13);}},show:function(){this.options.orig[this.prop]=jQuery.attr(this.elem.style,this.prop);this.options.show=true;this.custom(0,this.cur());if(this.prop=="width"||this.prop=="height")this.elem.style[this.prop]="1px";jQuery(this.elem).show();},hide:function(){this.options.orig[this.prop]=jQuery.attr(this.elem.style,this.prop);this.options.hide=true;this.custom(this.cur(),0);},step:function(gotoEnd){var t=now();if(gotoEnd||t>this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;var done=true;for(var i in this.options.curAnim)if(this.options.curAnim[i]!==true)done=false;if(done){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;this.elem.style.display=this.options.display;if(jQuery.css(this.elem,"display")=="none")this.elem.style.display="block";}if(this.options.hide)this.elem.style.display="none";if(this.options.hide||this.options.show)for(var p in this.options.curAnim)jQuery.attr(this.elem.style,p,this.options.orig[p]);}if(done)this.options.complete.call(this.elem);return false;}else{var n=t-this.startTime;this.state=n/this.options.duration;this.pos=jQuery.easing[this.options.easing||(jQuery.easing.swing?"swing":"linear")](this.state,n,0,1,this.options.duration);this.now=this.start+((this.end-this.start)*this.pos);this.update();}return true;}};jQuery.extend(jQuery.fx,{speeds:{slow:600,fast:200,def:400},step:{scrollLeft:function(fx){fx.elem.scrollLeft=fx.now;},scrollTop:function(fx){fx.elem.scrollTop=fx.now;},opacity:function(fx){jQuery.attr(fx.elem.style,"opacity",fx.now);},_default:function(fx){fx.elem.style[fx.prop]=fx.now+fx.unit;}}});jQuery.fn.offset=function(){var left=0,top=0,elem=this[0],results;if(elem)with(jQuery.browser){var parent=elem.parentNode,offsetChild=elem,offsetParent=elem.offsetParent,doc=elem.ownerDocument,safari2=safari&&parseInt(version)<522&&!/adobeair/i.test(userAgent),css=jQuery.curCSS,fixed=css(elem,"position")=="fixed";if(elem.getBoundingClientRect){var box=elem.getBoundingClientRect();add(box.left+Math.max(doc.documentElement.scrollLeft,doc.body.scrollLeft),box.top+Math.max(doc.documentElement.scrollTop,doc.body.scrollTop));add(-doc.documentElement.clientLeft,-doc.documentElement.clientTop);}else{add(elem.offsetLeft,elem.offsetTop);while(offsetParent){add(offsetParent.offsetLeft,offsetParent.offsetTop);if(mozilla&&!/^t(able|d|h)$/i.test(offsetParent.tagName)||safari&&!safari2)border(offsetParent);if(!fixed&&css(offsetParent,"position")=="fixed")fixed=true;offsetChild=/^body$/i.test(offsetParent.tagName)?offsetChild:offsetParent;offsetParent=offsetParent.offsetParent;}while(parent&&parent.tagName&&!/^body|html$/i.test(parent.tagName)){if(!/^inline|table.*$/i.test(css(parent,"display")))add(-parent.scrollLeft,-parent.scrollTop);if(mozilla&&css(parent,"overflow")!="visible")border(parent);parent=parent.parentNode;}if((safari2&&(fixed||css(offsetChild,"position")=="absolute"))||(mozilla&&css(offsetChild,"position")!="absolute"))add(-doc.body.offsetLeft,-doc.body.offsetTop);if(fixed)add(Math.max(doc.documentElement.scrollLeft,doc.body.scrollLeft),Math.max(doc.documentElement.scrollTop,doc.body.scrollTop));}results={top:top,left:left};}function border(elem){add(jQuery.curCSS(elem,"borderLeftWidth",true),jQuery.curCSS(elem,"borderTopWidth",true));}function add(l,t){left+=parseInt(l,10)||0;top+=parseInt(t,10)||0;}return results;};jQuery.fn.extend({position:function(){var left=0,top=0,results;if(this[0]){var offsetParent=this.offsetParent(),offset=this.offset(),parentOffset=/^body|html$/i.test(offsetParent[0].tagName)?{top:0,left:0}:offsetParent.offset();offset.top-=num(this,'marginTop');offset.left-=num(this,'marginLeft');parentOffset.top+=num(offsetParent,'borderTopWidth');parentOffset.left+=num(offsetParent,'borderLeftWidth');results={top:offset.top-parentOffset.top,left:offset.left-parentOffset.left};}return results;},offsetParent:function(){var offsetParent=this[0].offsetParent;while(offsetParent&&(!/^body|html$/i.test(offsetParent.tagName)&&jQuery.css(offsetParent,'position')=='static'))offsetParent=offsetParent.offsetParent;return jQuery(offsetParent);}});jQuery.each(['Left','Top'],function(i,name){var method='scroll'+name;jQuery.fn[method]=function(val){if(!this[0])return;return val!=undefined?this.each(function(){this==window||this==document?window.scrollTo(!i?val:jQuery(window).scrollLeft(),i?val:jQuery(window).scrollTop()):this[method]=val;}):this[0]==window||this[0]==document?self[i?'pageYOffset':'pageXOffset']||jQuery.boxModel&&document.documentElement[method]||document.body[method]:this[0][method];};});jQuery.each(["Height","Width"],function(i,name){var tl=i?"Left":"Top",br=i?"Right":"Bottom";jQuery.fn["inner"+name]=function(){return this[name.toLowerCase()]()+num(this,"padding"+tl)+num(this,"padding"+br);};jQuery.fn["outer"+name]=function(margin){return this["inner"+name]()+num(this,"border"+tl+"Width")+num(this,"border"+br+"Width")+(margin?num(this,"margin"+tl)+num(this,"margin"+br):0);};});})();}catch (ex){}



/************ File: jquery.ondemand.js ************/
try { (function($){function isExternalScript(url){return/(http|https):\/\//.test(url);}function isTagExist(id){return document.getElementById(id)||false;}function exec(text,delay){text=text.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\n");setTimeout('try { eval("'+text+'"); } catch(ex) { }',delay||0);}$.extend({requireConfig:{routeJs:"",routeCss:"",url:"",content:"",callback:null,obj:null,scope:null,id:null},queue:[],pending:null,requireJs:function(opts){if(!opts){return ;}var _req=$.extend({},$.requireConfig,opts);if(!(_req.url||_req.content)){return ;}this.pending=_req;if(_req.id&&isTagExist(_req.id)){this.requestComplete(_req.callback);}var _this=this;var _head=document.getElementsByTagName("head")[0]||document.documentElement;var _scriptTag=document.createElement("script");_scriptTag.type="text/javascript";if(_req.id){_scriptTag.id=_req.id;}_scriptTag.onload=_scriptTag.onreadystatechange=function(){if(!this.readyState||this.readyState=="loaded"||this.readyState=="complete"){_this.requestComplete(_req.callback);}};if(_req.url){_req.url=(isExternalScript(_req.url))?_req.url:_req.routeJs+_req.url;if($.browser.safari){exec(_req.url,100);}_scriptTag.src=_req.url;}if(_req.content){if(jQuery.browser.msie){_scriptTag.text=_req.content;}else{_scriptTag.appendChild(document.createTextNode(_req.content));}}_head.insertBefore(_scriptTag,_head.firstChild);},requestComplete:function(callback){if(this.isFunction(callback)){callback();}this.pending=null;if(this.queue.length>0){var request=this.queue.shift();this.requireJs(request);}},requireCss:function(styleUrl,id){if(id&&isTagExist(id)){return ;}var styleTag=document.createElement("link");if(id){styleTag.id=id;}$(styleTag).attr({href:styleUrl,type:"text/css",media:"screen",rel:"stylesheet"}).appendTo($("head")[0]);styleTag=null;},requireRules:function(styleText,id){if(id&&isTagExist(id)){return ;}var styleTag=document.createElement("style");styleTag.type="text/css";if(id){styleTag.id=id;}if(styleTag.styleSheet){styleTag.styleSheet.cssText=styleText;}else{var cssText=document.createTextNode(styleText);styleTag.append(cssText);}$(styleTag).appendTo($("head").get(0));styleTag=null;},preloadCssImages:function(index){var allImgs=[],sheets;var k=0;if(index){sheets=[];sheets.push(document.styleSheets[index]);}else{sheets=document.styleSheets;}for(var i=0;i<sheets.length;i++){var cssPile="";var csshref=(sheets[i].href)?sheets[i].href:"window.location.href";var baseURLarr=csshref.split("/");baseURLarr.pop();var baseURL=baseURLarr.join("/");if(baseURL!=""){baseURL+="/";}if(document.styleSheets[i].cssRules){var thisSheetRules=document.styleSheets[i].cssRules;for(var j=0;j<thisSheetRules.length;j++){cssPile+=thisSheetRules[j].cssText;}}else{cssPile+=document.styleSheets[i].cssText;}var imgUrls=cssPile.match(/[^\(]+\.(gif|jpg|jpeg|png)/g);var loaded=0;if(imgUrls!=null&&imgUrls.length>0&&imgUrls!=""){var arr=jQuery.makeArray(imgUrls);jQuery(arr).each(function(){allImgs[k]=new Image();allImgs[k].src=(this.charAt(0)=="/"||this.match("http://"))?this:baseURL+this;k++;});}}return allImgs;}});})(jQuery);}catch (ex){}



/************ File: jquery.autocomplete.min.js ************/
try { (function($){$.fn.extend({autocomplete:function(urlOrData,options){var isUrl=typeof urlOrData=="string";options=$.extend({},$.Autocompleter.defaults,{url:isUrl?urlOrData:null,data:isUrl?null:urlOrData,delay:isUrl?$.Autocompleter.defaults.delay:10,max:options&&!options.scroll?10:150},options);options.highlight=options.highlight||function(value){return value;};options.formatMatch=options.formatMatch||options.formatItem;return this.each(function(){new $.Autocompleter(this,options);});},result:function(handler){return this.bind("result",handler);},search:function(handler){return this.trigger("search",[handler]);},flushCache:function(){return this.trigger("flushCache");},setOptions:function(options){return this.trigger("setOptions",[options]);},unautocomplete:function(){return this.trigger("unautocomplete");}});$.Autocompleter=function(input,options){var KEY={UP:38,DOWN:40,DEL:46,TAB:9,RETURN:13,ESC:27,COMMA:188,PAGEUP:33,PAGEDOWN:34,BACKSPACE:8};var $input=$(input).attr("autocomplete","off").addClass(options.inputClass);var timeout;var previousValue="";var cache=$.Autocompleter.Cache(options);var hasFocus=0;var lastKeyPressCode;var config={mouseDownOnSelect:false};var select=$.Autocompleter.Select(options,input,selectCurrent,config);$input.keydown(function(event){lastKeyPressCode=event.keyCode;switch(event.keyCode){case KEY.UP:event.preventDefault();if(select.visible()){select.prev();}else{onChange(0,true);}break;case KEY.DOWN:event.preventDefault();if(select.visible()){select.next();}else{onChange(0,true);}break;case KEY.PAGEUP:event.preventDefault();if(select.visible()){select.pageUp();}else{onChange(0,true);}break;case KEY.PAGEDOWN:event.preventDefault();if(select.visible()){select.pageDown();}else{onChange(0,true);}break;case options.multiple&&$.trim(options.multipleSeparator)==","&&KEY.COMMA:case KEY.TAB:case KEY.RETURN:if(selectCurrent()){if(!options.multiple){$input.blur();}event.preventDefault();}break;case KEY.ESC:select.hide();break;default:clearTimeout(timeout);timeout=setTimeout(onChange,options.delay);break;}}).keypress(function(){}).focus(function(){hasFocus++;}).blur(function(){hasFocus=0;if(!config.mouseDownOnSelect){hideResults();}}).click(function(){if(hasFocus++>1&&!select.visible()){onChange(0,true);}}).bind("search",function(){var fn=(arguments.length>1)?arguments[1]:null;function findValueCallback(q,data){var result;if(data&&data.length){for(var i=0;i<data.length;i++){if(data[i].result.toLowerCase()==q.toLowerCase()){result=data[i];break;}}}if(typeof fn=="function"){fn(result);}else{$input.trigger("result",result&&[result.data,result.value]);}}$.each(trimWords($input.val()),function(i,value){request(value,findValueCallback,findValueCallback);});}).bind("flushCache",function(){cache.flush();}).bind("setOptions",function(){$.extend(options,arguments[1]);if("data" in arguments[1]){cache.populate();}}).bind("unautocomplete",function(){select.unbind();$input.unbind();});function selectCurrent(){var selected=select.selected();if(!selected){return false;}var v=selected.result;previousValue=v;if(options.multiple){var words=trimWords($input.val());if(words.length>1){v=words.slice(0,words.length-1).join(options.multipleSeparator)+options.multipleSeparator+v;}v+=options.multipleSeparator;}$input.val(v);hideResultsNow();$input.trigger("result",[selected.data,selected.value]);return true;}function onChange(crap,skipPrevCheck){if(lastKeyPressCode==KEY.DEL){select.hide();return ;}var currentValue=$input.val();if(!skipPrevCheck&&currentValue==previousValue){return ;}previousValue=currentValue;currentValue=lastWord(currentValue);if(currentValue.length>=options.minChars){$input.addClass(options.loadingClass);if(!options.matchCase){currentValue=currentValue.toLowerCase();}request(currentValue,receiveData,hideResultsNow);}else{stopLoading();select.hide();}}function trimWords(value){if(!value){return[""];}var words=value.split(options.multipleSeparator);var result=[];$.each(words,function(i,value){if($.trim(value)){result[i]=$.trim(value);}});return result;}function lastWord(value){if(!options.multiple){return value;}var words=trimWords(value);return words[words.length-1];}function autoFill(q,sValue){if(options.autoFill&&(lastWord($input.val()).toLowerCase()==q.toLowerCase())&&lastKeyPressCode!=KEY.BACKSPACE){$input.val($input.val()+sValue.substring(lastWord(previousValue).length));$.Autocompleter.Selection(input,previousValue.length,previousValue.length+sValue.length);}}function hideResults(){clearTimeout(timeout);timeout=setTimeout(hideResultsNow,200);}function hideResultsNow(){select.hide();clearTimeout(timeout);stopLoading();if(options.mustMatch){$input.search(function(result){if(!result){$input.val("");}});}}function receiveData(q,data){if(data&&data.length&&hasFocus){stopLoading();select.display(data,q);autoFill(q,data[0].value);select.show();}else{hideResultsNow();}}function request(term,success,failure){if(!options.matchCase){term=term.toLowerCase();}var data=cache.load(term);if(data&&data.length){success(term,data);}else{if((typeof options.url=="string")&&(options.url.length>0)){var extraParams={timestamp:+new Date()};$.each(options.extraParams,function(key,param){extraParams[key]=typeof param=="function"?param():param;});$.ajax({mode:"abort",port:"autocomplete"+input.name,dataType:options.dataType,url:options.url,data:$.extend({q:lastWord(term),limit:options.max},extraParams),success:function(data){var parsed=options.parse&&options.parse(data)||parse(data);cache.add(term,parsed);success(term,parsed);}});}else{select.emptyList();failure(term);}}}function parse(data){var parsed=[];var rows=data.split("\n");for(var i=0;i<rows.length;i++){var row=$.trim(rows[i]);if(row){row=row.split("|");parsed[parsed.length]={data:row,value:row[0],result:options.formatResult&&options.formatResult(row,row[0])||row[0]};}}return parsed;}function stopLoading(){$input.removeClass(options.loadingClass);}};$.Autocompleter.defaults={inputClass:"ac_input",resultsClass:"ac_results",loadingClass:"ac_loading",minChars:1,delay:400,matchCase:false,matchSubset:true,matchContains:false,cacheLength:10,max:100,mustMatch:false,extraParams:{},selectFirst:true,formatItem:function(row){return row[0];},formatMatch:null,autoFill:false,width:0,multiple:false,multipleSeparator:", ",highlight:function(value,term){return value.replace(new RegExp("(?![^&;]+;)(?!<[^<>]*)("+term.replace(/([\^\$\(\)\[\]\{\}\*\.\+\?\|\\])/gi,"\\$1")+")(?![^<>]*>)(?![^&;]+;)","gi"),"<strong>$1</strong>");},scroll:true,scrollHeight:180};$.Autocompleter.Cache=function(options){var data={};var length=0;function matchSubset(s,sub){if(!options.matchCase){s=s.toLowerCase();}var i=s.indexOf(sub);if(i==-1){return false;}return i==0||options.matchContains;}function add(q,value){if(length>options.cacheLength){flush();}if(!data[q]){length++;}data[q]=value;}function populate(){if(!options.data){return false;}var stMatchSets={},nullData=0;if(!options.url){options.cacheLength=1;}stMatchSets[""]=[];for(var i=0,ol=options.data.length;i<ol;i++){var rawValue=options.data[i];rawValue=(typeof rawValue=="string")?[rawValue]:rawValue;var value=options.formatMatch(rawValue,i+1,options.data.length);if(value===false){continue;}var firstChar=value.charAt(0).toLowerCase();if(!stMatchSets[firstChar]){stMatchSets[firstChar]=[];}var row={value:value,data:rawValue,result:options.formatResult&&options.formatResult(rawValue)||value};stMatchSets[firstChar].push(row);if(nullData++<options.max){stMatchSets[""].push(row);}}$.each(stMatchSets,function(i,value){options.cacheLength++;add(i,value);});}setTimeout(populate,25);function flush(){data={};length=0;}return{flush:flush,add:add,populate:populate,load:function(q){if(!options.cacheLength||!length){return null;}if(!options.url&&options.matchContains){var csub=[];for(var k in data){if(k.length>0){var c=data[k];$.each(c,function(i,x){if(matchSubset(x.value,q)){csub.push(x);}});}}return csub;}else{if(data[q]){return data[q];}else{if(options.matchSubset){for(var i=q.length-1;i>=options.minChars;i--){var c=data[q.substr(0,i)];if(c){var csub=[];$.each(c,function(i,x){if(matchSubset(x.value,q)){csub[csub.length]=x;}});return csub;}}}}}return null;}};};$.Autocompleter.Select=function(options,input,select,config){var CLASSES={ACTIVE:"ac_over"};var listItems,active=-1,data,term="",needsInit=true,element,list;function init(){if(!needsInit){return ;}element=$("<div/>").hide().addClass(options.resultsClass).css("position","absolute").appendTo(document.body);list=$("<ul>").appendTo(element).mouseover(function(event){if(target(event).nodeName&&target(event).nodeName.toUpperCase()=="LI"){active=$("li",list).removeClass(CLASSES.ACTIVE).index(target(event));$(target(event)).addClass(CLASSES.ACTIVE);}}).click(function(event){$(target(event)).addClass(CLASSES.ACTIVE);select();input.focus();return false;}).mousedown(function(){config.mouseDownOnSelect=true;}).mouseup(function(){config.mouseDownOnSelect=false;});if(options.width>0){element.css("width",options.width);}needsInit=false;}function target(event){var element=event.target;while(element&&element.tagName!="LI"){element=element.parentNode;}if(!element){return[];}return element;}function moveSelect(step){listItems.slice(active,active+1).removeClass(CLASSES.ACTIVE);movePosition(step);var activeItem=listItems.slice(active,active+1).addClass(CLASSES.ACTIVE);if(options.scroll){var offset=0;listItems.slice(0,active).each(function(){offset+=this.offsetHeight;});if((offset+activeItem[0].offsetHeight-list.scrollTop())>list[0].clientHeight){list.scrollTop(offset+activeItem[0].offsetHeight-list.innerHeight());}else{if(offset<list.scrollTop()){list.scrollTop(offset);}}}}function movePosition(step){active+=step;if(active<0){active=listItems.size()-1;}else{if(active>=listItems.size()){active=0;}}}function limitNumberOfItems(available){return options.max&&options.max<available?options.max:available;}function fillList(){list.empty();var max=limitNumberOfItems(data.length);for(var i=0;i<max;i++){if(!data[i]){continue;}var formatted=options.formatItem(data[i].data,i+1,max,data[i].value,term);if(formatted===false){continue;}var li=$("<li>").html(options.highlight(formatted,term)).addClass(i%2==0?"ac_event":"ac_odd").appendTo(list)[0];$.data(li,"ac_data",data[i]);}listItems=list.find("li");if(options.selectFirst){listItems.slice(0,1).addClass(CLASSES.ACTIVE);active=0;}list.bgiframe();}return{display:function(d,q){init();data=d;term=q;fillList();},next:function(){moveSelect(1);},prev:function(){moveSelect(-1);},pageUp:function(){if(active!=0&&active-8<0){moveSelect(-active);}else{moveSelect(-8);}},pageDown:function(){if(active!=listItems.size()-1&&active+8>listItems.size()){moveSelect(listItems.size()-1-active);}else{moveSelect(8);}},hide:function(){element&&element.hide();active=-1;},visible:function(){return element&&element.is(":visible");},current:function(){return this.visible()&&(listItems.filter("."+CLASSES.ACTIVE)[0]||options.selectFirst&&listItems[0]);},show:function(){var offset=$(input).offset();element.css({width:typeof options.width=="string"||options.width>0?options.width:$(input).width(),top:offset.top+input.offsetHeight,left:offset.left}).show();if(options.scroll){list.scrollTop(0);list.css({maxHeight:options.scrollHeight,overflow:"auto"});if($.browser.msie&&typeof document.body.style.maxHeight==="undefined"){var listHeight=0;listItems.each(function(){listHeight+=this.offsetHeight;});var scrollbarsVisible=listHeight>options.scrollHeight;list.css("height",scrollbarsVisible?options.scrollHeight:listHeight);if(!scrollbarsVisible){listItems.width(list.width()-parseInt(listItems.css("padding-left"))-parseInt(listItems.css("padding-right")));}}}},selected:function(){var selected=listItems&&listItems.filter("."+CLASSES.ACTIVE).removeClass(CLASSES.ACTIVE);return selected&&selected.length&&$.data(selected[0],"ac_data");},emptyList:function(){list&&list.empty();},unbind:function(){element&&element.remove();}};};$.Autocompleter.Selection=function(field,start,end){if(field.createTextRange){var selRange=field.createTextRange();selRange.collapse(true);selRange.moveStart("character",start);selRange.moveEnd("character",end);selRange.select();}else{if(field.setSelectionRange){field.setSelectionRange(start,end);}else{if(field.selectionStart){field.selectionStart=start;field.selectionEnd=end;}}}field.focus();};})(jQuery);}catch (ex){}



/************ File: jquery.bgiframe.min.js ************/
try { (function($){$.fn.bgIframe=$.fn.bgiframe=function(s){if($.browser.msie&&/6.0/.test(navigator.userAgent)){s=$.extend({top:"auto",left:"auto",width:"auto",height:"auto",opacity:true,src:"javascript:false;"},s||{});var prop=function(n){return n&&n.constructor==Number?n+"px":n;},html='<iframe class="bgiframe"frameborder="0"tabindex="-1"src="'+s.src+'"style="display:block;position:absolute;z-index:-1;'+(s.opacity!==false?"filter:Alpha(Opacity='0');":"")+"top:"+(s.top=="auto"?"expression(((parseInt(this.parentNode.currentStyle.borderTopWidth)||0)*-1)+'px')":prop(s.top))+";left:"+(s.left=="auto"?"expression(((parseInt(this.parentNode.currentStyle.borderLeftWidth)||0)*-1)+'px')":prop(s.left))+";width:"+(s.width=="auto"?"expression(this.parentNode.offsetWidth+'px')":prop(s.width))+";height:"+(s.height=="auto"?"expression(this.parentNode.offsetHeight+'px')":prop(s.height))+';"/>';return this.each(function(){if($("> iframe.bgiframe",this).length==0){this.insertBefore(document.createElement(html),this.firstChild);}});}return this;};})(jQuery);}catch (ex){}



/************ File: nyroModal.js ************/
try { jQuery(function($){var isIE6=($.browser.msie&&parseInt($.browser.version.substr(0,1))<7);var body=$("body");var currentSettings;var fixFF=false;var contentElt;var contentEltLast;var modal={started:false,ready:false,dataReady:false,anim:false,loadingShown:false,transition:false,error:false,full:null,bg:null,loading:null,tmp:null,content:null,wrapper:null,closing:false,contentWrapper:null,scripts:new Array()};var resized={width:false,height:false};$.fn.nyroModal=function(settings){if(!this){return false;}return this.each(function(){if(this.nodeName.toLowerCase()=="form"){$(this).submit(function(e){if(this.enctype=="multipart/form-data"){processModal($.extend(settings,{from:this}));return true;}e.preventDefault();processModal($.extend(settings,{from:this}));return false;});}else{$(this).click(function(e){e.preventDefault();processModal($.extend(settings,{from:this}));return false;});}});};$.fn.nyroModalManual=function(settings){if(!this.length){processModal(settings);}return this.each(function(){processModal($.extend(settings,{from:this}));});};$.nyroModalManual=function(settings){processModal(settings);};$.nyroModalSettings=function(settings,deep1,deep2){setCurrentSettings(settings,deep1,deep2);if(!deep1&&modal.started){if(modal.bg&&settings.bgColor){currentSettings.updateBgColor(modal,currentSettings,function(){});}if(modal.contentWrapper&&settings.title){title=$("h1#nyroModalTitle",modal.contentWrapper);if(title.length){title.text(settings.title);}else{modal.contentWrapper.prepend('<h1 id="nyroModalTitle">'+settings.title+"</h1>");}}if(modal.content&&(modal.dataReady&&!modal.anim&&!modal.transition)&&(settings.width||settings.height)){calculateSize(true);if(fixFF){modal.content.css({position:""});}currentSettings.resize(modal,currentSettings,function(){if(fixFF){modal.content.css({position:"fixed"});}if($.isFunction(currentSettings.endResize)){currentSettings.endResize(modal,currentSettings);}});}}};$.nyroModalRemove=function(){removeModal();};$.nyroModalNext=function(){var link=getGalleryLink(1);if(link){return link.nyroModalManual(currentSettings);}return false;};$.nyroModalPrev=function(){var link=getGalleryLink(-1);if(link){return link.nyroModalManual(currentSettings);}return false;};$.fn.nyroModal.settings={debug:false,modal:false,type:"",from:"",hash:"",processHandler:null,selIndicator:"nyroModalSel",formIndicator:"nyroModal",content:null,bgColor:"#000000",ajax:{},swf:{wmode:"transparent"},width:null,height:null,minWidth:50,minHeight:50,resizable:true,autoSizable:true,padding:25,regexImg:"[^.].(jpg|jpeg|png|tiff|gif|bmp)s*$",defaultImgAlt:"Image",setWidthImgTitle:true,ltr:true,css:{bg:{zIndex:100,position:"fixed",top:0,left:0,height:"100%",width:"100%"},wrapper:{zIndex:101,position:"fixed",top:"50%",left:"50%"},wrapper2:{},content:{overflow:"auto"},loading:{zIndex:102,position:"fixed",top:"50%",left:"50%",marginTop:"-50px",marginLeft:"-50px"}},wrap:{div:'<div class="wrapper"></div>',ajax:'<div class="wrapper"></div>',form:'<div class="wrapper"></div>',formData:'<div class="wrapper"></div>',image:'<div class="wrapperImg"></div>',gallery:'<div class="wrapperImg"><a href="#" class="nyroModalPrev">Prev</a><a href="#"  class="nyroModalNext">Next</a></div>',swf:'<div class="wrapperSwf"></div>',iframe:'<div class="wrapperIframe"></div>',manual:'<div class="wrapper"></div>'},closeButton:'<a href="#" class="nyroModalClose" id="closeBut" title="close">Close</a>',title:null,titleFromIframe:true,openSelector:".nyroModal",closeSelector:".nyroModalClose",contentLoading:'<a href="#" class="nyroModalClose">Cancel</a>',errorClass:"error",contentError:'The requested content cannot be loaded.<br />Please try again later.<br /><a href="#" class="nyroModalClose">Close</a>',handleError:null,showBackground:showBackground,hideBackground:hideBackground,endFillContent:null,showContent:showContent,endShowContent:null,beforeHideContent:null,hideContent:hideContent,showTransition:showTransition,hideTransition:hideTransition,showLoading:showLoading,hideLoading:hideLoading,resize:resize,endResize:null,updateBgColor:updateBgColor,endRemove:null};function processModal(settings){if(modal.loadingShown||modal.transition||modal.anim){return ;}debug("processModal");modal.started=true;setDefaultCurrentSettings(settings);modal.error=false;modal.closing=false;modal.dataReady=false;modal.scripts=new Array();currentSettings.type=fileType();if($.isFunction(currentSettings.processHandler)){currentSettings.processHandler(currentSettings);}from=currentSettings.from;url=currentSettings.url;if(currentSettings.type=="swf"){currentSettings.resizable=false;setCurrentSettings({overflow:"hidden"},"css","content");currentSettings.content='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+currentSettings.width+'" height="'+currentSettings.height+'"><param name="movie" value="'+url+'"></param>';var tmp="";$.each(currentSettings.swf,function(name,val){currentSettings.content+='<param name="'+name+'" value="'+val+'"></param>';tmp+=" "+name+'="'+val+'"';});currentSettings.content+='<embed src="'+url+'" type="application/x-shockwave-flash" width="'+currentSettings.width+'" height="'+currentSettings.height+'"'+tmp+"></embed></object>";}if(from){var jFrom=$(from);if(currentSettings.type=="form"){var data=$(from).serializeArray();data.push({name:currentSettings.formIndicator,value:1});if(currentSettings.selector){data.push({name:currentSettings.selIndicator,value:currentSettings.selector.substring(1)});}$.ajax($.extend({},currentSettings.ajax,{url:url,data:data,type:from.method,success:ajaxLoaded,error:loadingError}));debug("Form Ajax Load: "+jFrom.attr("action"));showModal();}else{if(currentSettings.type=="formData"){initModal();jFrom.attr("target","nyroModalIframe");jFrom.attr("action",url);jFrom.prepend('<input type="hidden" name="'+currentSettings.formIndicator+'" value="1" />');if(currentSettings.selector){jFrom.prepend('<input type="hidden" name="'+currentSettings.selIndicator+'" value="'+currentSettings.selector.substring(1)+'" />');}modal.tmp.html('<iframe frameborder="0" hspace="0" name="nyroModalIframe"></iframe>');$("iframe",modal.tmp).css({width:currentSettings.width,height:currentSettings.height}).error(loadingError).load(formDataLoaded);debug("Form Data Load: "+jFrom.attr("action"));showModal();showContentOrLoading();}else{if(currentSettings.type=="image"||currentSettings.type=="gallery"){var title=jFrom.attr("title")||currentSettings.defaultImgAlt;initModal();modal.tmp.html('<img id="nyroModalImg" />').find("img").attr("alt",title);debug("Image Load: "+url);modal.tmp.css({lineHeight:0});$("img",modal.tmp).error(loadingError).load(function(){debug("Image Loaded: "+this.src);$(this).unbind("load");var w=modal.tmp.width();var h=modal.tmp.height();modal.tmp.css({lineHeight:""});setCurrentSettings({width:w,height:h,imgWidth:w,imgHeight:h});setCurrentSettings({overflow:"hidden"},"css","content");modal.dataReady=true;if(modal.loadingShown||modal.transition){showContentOrLoading();}}).attr("src",url);showModal();}else{if(currentSettings.type=="iframe"){initModal();modal.tmp.html('<iframe frameborder="0" hspace="0" src="'+url+'" name="nyroModalIframe"></iframe>');debug("Iframe Load: "+url);$("iframe",modal.tmp).eq(0).css({width:"100%",height:isDoctypeStrict()?"99%":"100%"}).load(function(e){if(currentSettings.titleFromIframe&&url.indexOf(window.location.hostname)>-1){$.nyroModalSettings({title:$("iframe",modal.full).contents().find("title").text()});}});currentSettings.autoSizable=false;modal.dataReady=true;showModal();}else{if(currentSettings.type){debug("Content: "+currentSettings.type);initModal();modal.tmp.html(currentSettings.content);var w=modal.tmp.width();var h=modal.tmp.height();var div=$(currentSettings.type);if(div.length){setCurrentSettings({type:"div"});w=div.width();h=div.height();if(contentElt){contentEltLast=contentElt;}contentElt=div;modal.tmp.append(div.contents());}setCurrentSettings({width:w,height:h});if(modal.tmp.html()){modal.dataReady=true;}else{loadingError();}showModal();showContentOrLoading();}else{debug("Ajax Load: "+url);setCurrentSettings({type:"ajax"});var data=currentSettings.ajax.data||{};if(currentSettings.selector){if(typeof data=="string"){data+="&"+currentSettings.selIndicator+"="+currentSettings.selector.substring(1);}else{data[currentSettings.selIndicator]=currentSettings.selector.substring(1);}}$.ajax($.extend(true,currentSettings.ajax,{url:url,success:ajaxLoaded,error:loadingError,data:data}));showModal();}}}}}}else{if(currentSettings.content){debug("Content: "+currentSettings.type);setCurrentSettings({type:"manual"});initModal();modal.tmp.html($("<div/>").html(currentSettings.content).contents());if(modal.tmp.html()){modal.dataReady=true;}else{loadingError();}showModal();}else{}}}function setDefaultCurrentSettings(settings){debug("setDefaultCurrentSettings");currentSettings=$.extend({},$.fn.nyroModal.settings,settings);currentSettings.selector="";currentSettings.borderW=0;currentSettings.borderH=0;currentSettings.resizable=true;setMargin();}function setCurrentSettings(settings,deep1,deep2){if(modal.started){if(deep1&&deep2){$.extend(currentSettings[deep1][deep2],settings);}else{if(deep1){$.extend(currentSettings[deep1],settings);}else{$.extend(currentSettings,settings);}}}else{if(deep1&&deep2){$.extend($.fn.nyroModal.settings[deep1][deep2],settings);}else{if(deep1){$.extend($.fn.nyroModal.settings[deep1],settings);}else{$.extend($.fn.nyroModal.settings,settings);}}}}function setMarginScroll(){if(isIE6){if(document.documentElement){currentSettings.marginScrollLeft=document.documentElement.scrollLeft;currentSettings.marginScrollTop=document.documentElement.scrollTop;}else{currentSettings.marginScrollLeft=document.body.scrollLeft;currentSettings.marginScrollTop=document.body.scrollTop;}}else{currentSettings.marginScrollLeft=0;currentSettings.marginScrollTop=0;}}function setMargin(){setMarginScroll();currentSettings.marginLeft=-(currentSettings.width+currentSettings.borderW)/2+currentSettings.marginScrollLeft;currentSettings.marginTop=-(currentSettings.height+currentSettings.borderH)/2+currentSettings.marginScrollTop;}function setMarginloading(){setMarginScroll();var outer=getOuter(modal.loading);currentSettings.marginTopLoading=-(modal.loading.height()+outer.h.border+outer.h.padding)/2+currentSettings.marginScrollTop;currentSettings.marginLeftLoading=-(modal.loading.width()+outer.w.border+outer.w.padding)/2+currentSettings.marginScrollLeft;}function initModal(){debug("initModal");if(!modal.full){if(currentSettings.debug){setCurrentSettings({color:"white"},"css","bg");}var iframeHideIE="";if(isIE6){body.css({height:body.height()+"px",width:body.width()+"px",position:"static",overflow:"hidden"});$("html").css({overflow:"hidden"});setCurrentSettings({position:"absolute",height:"110%",width:"110%",top:currentSettings.marginScrollTop+"px",left:currentSettings.marginScrollLeft+"px"},"css","bg");setCurrentSettings({position:"absolute"},"css","loading");setCurrentSettings({position:"absolute"},"css","wrapper");iframeHideIE=$('<iframe id="nyroModalIframeHideIe"></iframe>').css($.extend({},currentSettings.css.bg,{opacity:0,zIndex:50,border:"none"}));}body.append($('<div id="nyroModalFull"><div id="nyroModalBg"></div><div id="nyroModalWrapper"><div id="nyroModalContent"></div></div><div id="nyrModalTmp"></div><div id="nyroModalLoading"></div></div>').hide());modal.full=$("#nyroModalFull").show();modal.bg=$("#nyroModalBg").css($.extend({backgroundColor:currentSettings.bgColor},currentSettings.css.bg)).before(iframeHideIE);if(!currentSettings.modal){modal.bg.click(removeModal);}modal.loading=$("#nyroModalLoading").css(currentSettings.css.loading).hide();modal.contentWrapper=$("#nyroModalWrapper").css(currentSettings.css.wrapper).hide();modal.content=$("#nyroModalContent");modal.tmp=$("#nyrModalTmp").hide();if($.isFunction($.fn.mousewheel)){modal.content.mousewheel(function(e,d){var elt=modal.content.get(0);if((d>0&&elt.scrollTop==0)||(d<0&&elt.scrollHeight-elt.scrollTop==elt.clientHeight)){e.preventDefault();e.stopPropagation();}});}$(document).keydown(keyHandler);modal.content.css({width:"auto",height:"auto"});modal.contentWrapper.css({width:"auto",height:"auto"});}}function showModal(){debug("showModal");if(!modal.ready){initModal();modal.anim=true;currentSettings.showBackground(modal,currentSettings,endBackground);}else{modal.anim=true;modal.transition=true;currentSettings.showTransition(modal,currentSettings,function(){endHideContent();modal.anim=false;showContentOrLoading();});}}function keyHandler(e){if(e.keyCode==27){if(!currentSettings.modal){removeModal();}}else{if(currentSettings.type=="gallery"&&modal.ready&&modal.dataReady&&!modal.anim&&!modal.transition){if(e.keyCode==39||e.keyCode==40){e.preventDefault();$(".nyroModalNext",modal.content).eq(0).trigger("click");return false;}else{if(e.keyCode==37||e.keyCode==38){e.preventDefault();$(".nyroModalPrev",modal.content).eq(0).trigger("click");return false;}}}}}function fileType(){if(currentSettings.forceType){var tmp=currentSettings.forceType;if(!currentSettings.content){currentSettings.from=true;}currentSettings.forceType=null;return tmp;}var from=currentSettings.from;var url;if(from&&from.nodeName){var jFrom=$(from);currentSettings.url=url=from.nodeName.toLowerCase()=="form"?jFrom.attr("action"):from.href;if(jFrom.attr("rev")=="modal"){currentSettings.modal=true;}if(jFrom.attr("title")){currentSettings.title=jFrom.attr("title");}var imgType=imageType(url,from);if(imgType){return imgType;}if(from.target&&from.target.toLowerCase()=="_blank"||(from.hostname&&from.hostname.replace(/:\d*$/,"")!=window.location.hostname.replace(/:\d*$/,""))){return"iframe";}else{if(from.nodeName.toLowerCase()=="form"){setCurrentSettings(extractUrlSel(url));if(jFrom.attr("enctype")=="multipart/form-data"){return"formData";}return"form";}}}else{url=currentSettings.url;if(!currentSettings.content){currentSettings.from=true;}if(!url){return null;}var reg1=new RegExp("^http://","g");if(url.match(reg1)){return"iframe";}}var imgType=imageType(url,from);if(imgType){return imgType;}var swf=new RegExp("[^.].(swf)s*$","i");if(swf.test(url)){return"swf";}var tmp=extractUrlSel(url);setCurrentSettings(tmp);if(!tmp.url){return tmp.selector;}}function imageType(url,from){var image=new RegExp(currentSettings.regexImg,"i");if(image.test(url)){if(from&&from.rel){return"gallery";}else{return"image";}}}function extractUrlSel(url){var ret={url:null,selector:null};if(url){var hash=getHash(url);var hashLoc=getHash(window.location.href);var curLoc=window.location.href.substring(0,window.location.href.length-hashLoc.length);var req=url.substring(0,url.length-hash.length);if(req==curLoc){ret.selector=hash;}else{ret.url=req;ret.selector=hash;}}return ret;}function loadingError(){debug("loadingError");modal.error=true;if(!modal.ready){return ;}if($.isFunction(currentSettings.handleError)){currentSettings.handleError(modal,currentSettings);}modal.loading.addClass(currentSettings.errorClass).html(currentSettings.contentError);$(currentSettings.closeSelector,modal.loading).click(removeModal);setMarginloading();modal.loading.css({marginTop:currentSettings.marginTopLoading+"px",marginLeft:currentSettings.marginLeftLoading+"px"});}function fillContent(){debug("fillContent");if(!modal.tmp.html()){return ;}modal.content.html(modal.tmp.contents());modal.tmp.empty();wrapContent();if($.isFunction(currentSettings.endFillContent)){currentSettings.endFillContent(modal,currentSettings);}modal.content.append(modal.scripts);var currentSettingsNew=$.extend({},currentSettings);if(resized.width){currentSettingsNew.width=null;}if(resized.height){currentSettingsNew.height=null;}$(currentSettings.closeSelector,modal.contentWrapper).click(removeModal);$(currentSettings.openSelector,modal.contentWrapper).nyroModal(currentSettingsNew);}function wrapContent(){debug("wrapContent");var wrap=$(currentSettings.wrap[currentSettings.type]);modal.content.append(wrap.children().remove());modal.contentWrapper.wrapInner(wrap);if(currentSettings.type=="gallery"){var linkPrev=getGalleryLink(-1);if(linkPrev){$(".nyroModalPrev",modal.contentWrapper).attr("href",linkPrev.attr("href")).click(function(e){e.preventDefault();linkPrev.nyroModalManual(currentSettings);return false;});}else{$(".nyroModalPrev",modal.contentWrapper).remove();}var linkNext=getGalleryLink(1);if(linkNext){$(".nyroModalNext",modal.contentWrapper).attr("href",linkNext.attr("href")).click(function(e){e.preventDefault();linkNext.nyroModalManual(currentSettings);return false;});}else{$(".nyroModalNext",modal.contentWrapper).remove();}}calculateSize();}function getGalleryLink(dir){if(currentSettings.type=="gallery"){if(!currentSettings.ltr){dir*=-1;}var gallery=$('[rel="'+currentSettings.from.rel+'"]');var currentIndex=gallery.index(currentSettings.from);var index=currentIndex+dir;if(index>=0&&index<gallery.length){return gallery.eq(index);}}return false;}function calculateSize(resizing){debug("calculateSize");if(!modal.wrapper){modal.wrapper=modal.contentWrapper.children(":first");}resized.width=false;resized.height=false;if(currentSettings.autoSizable&&(!currentSettings.width||!currentSettings.height)){modal.contentWrapper.css({opacity:0}).show();var tmp={width:"auto",height:"auto"};if(currentSettings.width){tmp.width=currentSettings.width;}if(currentSettings.height){tmp.height=currentSettings.height;}modal.content.css(tmp);if(!currentSettings.width){currentSettings.width=modal.content.width();resized.width=true;}if(!currentSettings.height){currentSettings.height=modal.content.height();resized.height=true;}modal.contentWrapper.hide().css({opacity:1});}currentSettings.width=Math.max(currentSettings.width,currentSettings.minWidth);currentSettings.height=Math.max(currentSettings.height,currentSettings.minHeight);var outerWrapper=getOuter(modal.contentWrapper);var outerWrapper2=getOuter(modal.wrapper);var outerContent=getOuter(modal.content);var tmp={content:{width:currentSettings.width,height:currentSettings.height},wrapper2:{width:currentSettings.width+outerContent.w.total,height:currentSettings.height+outerContent.h.total},wrapper:{width:currentSettings.width+outerContent.w.total+outerWrapper2.w.total,height:currentSettings.height+outerContent.h.total+outerWrapper2.h.total}};if(currentSettings.resizable){var maxHeight=$(window).height()-currentSettings.padding*2-outerWrapper.h.border-(tmp.wrapper.height-currentSettings.height);var maxWidth=$(window).width()-currentSettings.padding*2-outerWrapper.w.border-(tmp.wrapper.width-currentSettings.width);if(tmp.content.height>maxHeight||tmp.content.width>maxWidth){if(currentSettings.type=="image"||currentSettings.type=="gallery"){var diffW=tmp.content.width-currentSettings.imgWidth;var diffH=tmp.content.height-currentSettings.imgHeight;if(diffH<0){diffH=0;}if(diffW<0){diffW=0;}var calcH=maxHeight-diffH;var calcW=maxWidth-diffW;var ratio=Math.min(calcH/currentSettings.imgHeight,calcW/currentSettings.imgWidth);calcH=Math.floor(currentSettings.imgHeight*ratio);calcW=Math.floor(currentSettings.imgWidth*ratio);$("img#nyroModalImg",modal.content).css({height:calcH+"px",width:calcW+"px"});tmp.content.height=calcH+diffH;tmp.content.width=calcW+diffW;}else{tmp.content.height=Math.min(tmp.content.height,maxHeight);tmp.content.width=Math.min(tmp.content.width,maxWidth);}tmp.wrapper2={width:tmp.content.width+outerContent.w.total,height:tmp.content.height+outerContent.h.total};tmp.wrapper={width:tmp.content.width+outerContent.w.total+outerWrapper2.w.total,height:tmp.content.height+outerContent.h.total+outerWrapper2.h.total};}}modal.content.css($.extend({},tmp.content,currentSettings.css.content));modal.wrapper.css($.extend({},tmp.wrapper2,currentSettings.css.wrapper2));if(!resizing){modal.contentWrapper.css($.extend({},tmp.wrapper,currentSettings.css.wrapper));if(currentSettings.type=="image"||currentSettings.type=="gallery"){var title=$("img",modal.content).attr("alt");$("img",modal.content).removeAttr("alt");if(title!=currentSettings.defaultImgAlt){var divTitle=$("<div>"+title+"</div>");modal.content.append(divTitle);if(currentSettings.setWidthImgTitle){var outerDivTitle=getOuter(divTitle);divTitle.css({width:(tmp.content.width+outerContent.w.padding-outerDivTitle.w.total)+"px"});}}}if(!currentSettings.modal){modal.contentWrapper.prepend(currentSettings.closeButton);}}if(currentSettings.title){modal.contentWrapper.prepend('<h1 id="nyroModalTitle">'+currentSettings.title+"</h1>");}tmp.wrapper.borderW=outerWrapper.w.border;tmp.wrapper.borderH=outerWrapper.h.border;setCurrentSettings(tmp.wrapper);setMargin();}function removeModal(e){debug("removeModal");if(e){e.preventDefault();}if(modal.full&&modal.ready){modal.ready=false;modal.anim=true;modal.closing=true;if(modal.loadingShown||modal.transition){currentSettings.hideLoading(modal,currentSettings,function(){modal.loading.hide();modal.loadingShown=false;modal.transition=false;currentSettings.hideBackground(modal,currentSettings,endRemove);});}else{if(fixFF){modal.content.css({position:""});}modal.wrapper.css({overflow:"hidden"});modal.content.css({overflow:"hidden"});if($.isFunction(currentSettings.beforeHideContent)){currentSettings.beforeHideContent(modal,currentSettings,function(){currentSettings.hideContent(modal,currentSettings,function(){endHideContent();currentSettings.hideBackground(modal,currentSettings,endRemove);});});}else{currentSettings.hideContent(modal,currentSettings,function(){endHideContent();currentSettings.hideBackground(modal,currentSettings,endRemove);});}}}if(e){return false;}}function showContentOrLoading(){debug("showContentOrLoading");if(modal.ready&&!modal.anim){if(modal.dataReady){if(modal.tmp.html()){modal.anim=true;if(modal.transition){fillContent();currentSettings.hideTransition(modal,currentSettings,function(){modal.loading.hide();modal.transition=false;modal.loadingShown=false;endShowContent();});}else{currentSettings.hideLoading(modal,currentSettings,function(){modal.loading.hide();modal.loadingShown=false;fillContent();setMarginloading();currentSettings.showContent(modal,$.extend({},currentSettings),endShowContent);});}}}else{if(!modal.loadingShown&&!modal.transition){modal.anim=true;modal.loadingShown=true;if(modal.error){loadingError();}else{modal.loading.html(currentSettings.contentLoading);}$(currentSettings.closeSelector,modal.loading).click(removeModal);setMarginloading();currentSettings.showLoading(modal,currentSettings,function(){modal.anim=false;showContentOrLoading();});}}}}function ajaxLoaded(data){debug("AjaxLoaded: "+this.url);modal.tmp.html(currentSettings.selector?filterScripts($("<div>"+data+"</div>").find(currentSettings.selector).contents()):filterScripts(data));if(modal.tmp.html()){modal.dataReady=true;showContentOrLoading();}else{loadingError();}}function formDataLoaded(){debug("formDataLoaded");var jFrom=$(currentSettings.from);jFrom.attr("action",jFrom.attr("action")+currentSettings.selector);jFrom.attr("target","");$("input[name="+currentSettings.formIndicator+"]",currentSettings.from).remove();var iframe=modal.tmp.children("iframe");var iframeContent=iframe.unbind("load").contents().find(currentSettings.selector||"body").not("script[src]");iframe.attr("src","about:blank");modal.tmp.html(iframeContent.html());if(modal.tmp.html()){modal.dataReady=true;showContentOrLoading();}else{loadingError();}}function endHideContent(){debug("endHideContent");modal.anim=false;if(contentEltLast){contentEltLast.append(modal.content.contents());contentEltLast=null;}else{if(contentElt){contentElt.append(modal.content.contents());contentElt=null;}}modal.content.empty();modal.contentWrapper.empty().removeAttr("style");if(modal.closing||modal.transition){modal.contentWrapper.hide();}modal.contentWrapper.css(currentSettings.css.wrapper).append(modal.content);showContentOrLoading();}function endRemove(){debug("endRemove");$(document).unbind("keydown",keyHandler);modal.anim=false;modal.full.remove();modal.full=null;if(isIE6){body.css({height:"",width:"",position:"",overflow:""});$("html").css({overflow:""});}if($.isFunction(currentSettings.endRemove)){currentSettings.endRemove(modal,currentSettings);}}function endBackground(){debug("endBackground");modal.ready=true;modal.anim=false;showContentOrLoading();}function endShowContent(){debug("endShowContent");modal.anim=false;modal.contentWrapper.css({opacity:""});fixFF=$.browser.mozilla&&parseFloat($.browser.version)<1.9&&currentSettings.type!="gallery"&&currentSettings.type!="image";if(fixFF){modal.content.css({position:"fixed"});}if($.isFunction(currentSettings.endShowContent)){currentSettings.endShowContent(modal,currentSettings);}if(resized.width){setCurrentSettings({width:null});}if(resized.height){setCurrentSettings({height:null});}}function getHash(url){if(typeof url=="string"){var hashPos=url.indexOf("#");if(hashPos>-1){return url.substring(hashPos);}}return"";}function filterScripts(data){if(typeof data=="string"){data=data.replace(/<\/?(html|head|body)([^>]*)>/gi,"");}var tmp=new Array();$.each($.clean({0:data},this.ownerDocument),function(){if($.nodeName(this,"script")){if(!this.src||$(this).attr("rel")=="forceLoad"){modal.scripts.push(this);}}else{tmp.push(this);}});return tmp;}function getOuter(elm){elm=elm.get(0);var ret={h:{margin:getCurCSS(elm,"marginTop")+getCurCSS(elm,"marginBottom"),border:getCurCSS(elm,"borderTopWidth")+getCurCSS(elm,"borderBottomWidth"),padding:getCurCSS(elm,"paddingTop")+getCurCSS(elm,"paddingBottom")},w:{margin:getCurCSS(elm,"marginLeft")+getCurCSS(elm,"marginRight"),border:getCurCSS(elm,"borderLeftWidth")+getCurCSS(elm,"borderRightWidth"),padding:getCurCSS(elm,"paddingLeft")+getCurCSS(elm,"paddingRight")}};ret.h.outer=ret.h.margin+ret.h.border;ret.w.outer=ret.w.margin+ret.w.border;ret.h.inner=ret.h.padding+ret.h.border;ret.w.inner=ret.w.padding+ret.w.border;ret.h.total=ret.h.outer+ret.h.padding;ret.w.total=ret.w.outer+ret.w.padding;return ret;}function getCurCSS(elm,name){var ret=parseInt($.curCSS(elm,name,true));if(isNaN(ret)){ret=0;}return ret;}function isDoctypeStrict(){var doctype="";if($.browser.opera){return true;}else{if($.browser.msie){var re=/\s+(X?HTML)\s+([\d\.]+)\s*([^\/]+)*\//gi;var res=false;if($.browser.msie){res=document.all[0].nodeType==8?re.test(document.all[0].nodeValue):false;}if(res){doctype=RegExp.$3;}}else{doctype=document.doctype.systemId;}}return doctype.toLowerCase().indexOf("strict")>-1;}function debug(msg){if($.fn.nyroModal.settings.debug||currentSettings&&currentSettings.debug){nyroModalDebug(msg,modal,currentSettings||{});}}function showBackground(elts,settings,callback){elts.bg.css({opacity:0}).fadeTo(500,0.75,callback);}function hideBackground(elts,settings,callback){elts.bg.fadeOut(300,callback);}function showLoading(elts,settings,callback){elts.loading.css({marginTop:settings.marginTopLoading+"px",marginLeft:settings.marginLeftLoading+"px",opacity:0}).show().animate({opacity:1},{complete:callback,duration:400});}function hideLoading(elts,settings,callback){callback();}function showContent(elts,settings,callback){elts.loading.css({marginTop:settings.marginTopLoading+"px",marginLeft:settings.marginLeftLoading+"px"}).show().animate({width:settings.width+"px",height:settings.height+"px",marginTop:settings.marginTop+"px",marginLeft:settings.marginLeft+"px"},{duration:350,complete:function(){elts.contentWrapper.css({width:settings.width+"px",height:settings.height+"px",marginTop:settings.marginTop+"px",marginLeft:settings.marginLeft+"px"}).show();elts.loading.fadeOut(200,callback);}});}function hideContent(elts,settings,callback){elts.contentWrapper.animate({height:"50px",width:"50px",marginTop:(-(25+settings.borderH)/2+settings.marginScrollTop)+"px",marginLeft:(-(25+settings.borderW)/2+settings.marginScrollLeft)+"px"},{duration:350,complete:function(){elts.contentWrapper.hide();callback();}});}function showTransition(elts,settings,callback){elts.loading.css({marginTop:elts.contentWrapper.css("marginTop"),marginLeft:elts.contentWrapper.css("marginLeft"),height:elts.contentWrapper.css("height"),width:elts.contentWrapper.css("width"),opacity:0}).show().fadeTo(400,1,function(){elts.contentWrapper.hide();callback();});}function hideTransition(elts,settings,callback){elts.contentWrapper.hide().css({width:settings.width+"px",marginLeft:settings.marginLeft+"px",height:settings.height+"px",marginTop:settings.marginTop+"px",opacity:1});elts.loading.animate({width:settings.width+"px",marginLeft:settings.marginLeft+"px",height:settings.height+"px",marginTop:settings.marginTop+"px"},{complete:function(){elts.contentWrapper.show();elts.loading.fadeOut(400,function(){elts.loading.hide();callback();});},duration:350});}function resize(elts,settings,callback){elts.contentWrapper.animate({width:settings.width+"px",marginLeft:settings.marginLeft+"px",height:settings.height+"px",marginTop:settings.marginTop+"px"},{complete:callback,duration:400});}function updateBgColor(elts,settings,callback){if(!$.fx.step.backgroundColor){elts.bg.css({backgroundColor:settings.bgColor});callback();}else{elts.bg.animate({backgroundColor:settings.bgColor},{complete:callback,duration:400});}}$($.fn.nyroModal.settings.openSelector).nyroModal();});function nyroModalDebug(msg,elts,settings){console.log(msg);if(elts.full){elts.bg.prepend(msg+"<br />");}}jQuery(function($){$.fn.nyroModal.settings.showBackground=function(elts,settings,callback){elts.bg.css({opacity:0.75});callback();};$.fn.nyroModal.settings.hideBackground=function(elts,settings,callback){elts.bg.hide();callback();};$.fn.nyroModal.settings.showContent=function(elts,settings,callback){elts.contentWrapper.css({width:settings.width+"px",marginLeft:(settings.marginLeft)+"px",height:settings.height+"px",marginTop:(settings.marginTop)+"px"}).show();callback();};$.fn.nyroModal.settings.hideContent=function(elts,settings,callback){elts.contentWrapper.hide();callback();};$.fn.nyroModal.settings.showLoading=function(elts,settings,callback){elts.loading.css({marginTop:settings.marginTopLoading+"px",marginLeft:settings.marginLeftLoading+"px"}).show();callback();};$.fn.nyroModal.settings.hideLoading=function(elts,settings,callback){elts.loading.hide();callback();};$.fn.nyroModal.settings.showTransition=function(elts,settings,callback){elts.loading.css({marginTop:elts.contentWrapper.css("marginTop"),marginLeft:elts.contentWrapper.css("marginLeft"),height:elts.contentWrapper.css("height"),width:elts.contentWrapper.css("width")}).show();elts.contentWrapper.hide();callback();};$.fn.nyroModal.settings.hideTransition=function(elts,settings,callback){elts.contentWrapper.css({width:settings.width+"px",marginLeft:settings.marginLeft+"px",height:settings.height+"px",marginTop:settings.marginTop+"px"}).show();elts.loading.hide();callback();};$.fn.nyroModal.settings.resize=function(elts,settings,callback){elts.contentWrapper.css({width:settings.width+"px",marginLeft:settings.marginLeft+"px",height:settings.height+"px",marginTop:settings.marginTop+"px"});callback();};$.fn.nyroModal.settings.updateBgColor=function(elts,settings,callback){elts.bg.css({backgroundColor:settings.bgColor});callback();};});}catch (ex){}



/************ File: jquery.jfeed.js ************/
try { jQuery.getFeed=function(options){options=jQuery.extend({url:null,data:null,success:null},options);if(options.url){$.ajax({type:"GET",url:options.url,data:options.data,dataType:"xml",success:function(xml){var feed=new JFeed(xml);if(jQuery.isFunction(options.success)){options.success(feed);}}});}};function JFeed(xml){if(xml){this.parse(xml);}}JFeed.prototype={type:"",version:"",title:"",link:"",description:"",parse:function(xml){if(jQuery("channel",xml).length==1){this.type="rss";var feedClass=new JRss(xml);}else{if(jQuery("feed",xml).length==1){this.type="atom";var feedClass=new JAtom(xml);}}if(feedClass){jQuery.extend(this,feedClass);}}};function JFeedItem(){}JFeedItem.prototype={title:"",link:"",description:"",updated:"",id:"",enclosure:""};function JAtom(xml){this._parse(xml);}JAtom.prototype={_parse:function(xml){var channel=jQuery("feed",xml).eq(0);this.version="1.0";this.title=jQuery(channel).find("title:first").text();this.link=jQuery(channel).find("link:first").attr("href");this.description=jQuery(channel).find("subtitle:first").text();this.language=jQuery(channel).attr("xml:lang");this.updated=jQuery(channel).find("updated:first").text();this.items=new Array();var feed=this;jQuery("entry",xml).each(function(){var item=new JFeedItem();item.title=jQuery(this).find("title").eq(0).text();item.link=jQuery(this).find("link").eq(0).attr("href");item.description=jQuery(this).find("content").eq(0).text();item.updated=jQuery(this).find("updated").eq(0).text();item.id=jQuery(this).find("id").eq(0).text();feed.items.push(item);});}};function JRss(xml){this._parse(xml);}JRss.prototype={_parse:function(xml){if(jQuery("rss",xml).length==0){this.version="1.0";}else{this.version=jQuery("rss",xml).eq(0).attr("version");}var channel=jQuery("channel",xml).eq(0);this.title=jQuery(channel).find("title:first").text();this.link=jQuery(channel).find("link:first").text();this.description=jQuery(channel).find("description:first").text();this.language=jQuery(channel).find("language:first").text();this.updated=jQuery(channel).find("lastBuildDate:first").text();this.items=new Array();var feed=this;jQuery("item",xml).each(function(){var item=new JFeedItem();item.title=jQuery(this).find("title").eq(0).text();item.link=jQuery(this).find("link").eq(0).text();item.description=$("<div>"+jQuery(this).find("description").eq(0).text()+"</div>").text();item.updated=jQuery(this).find("pubDate").eq(0).text();item.id=jQuery(this).find("guid").eq(0).text();item.enclosure={};item.enclosure.url=jQuery(this).find("enclosure").eq(0).attr("url");item.enclosure.type=jQuery(this).find("enclosure").eq(0).attr("type");feed.items.push(item);});}};}catch (ex){}



/************ File: jquery.jForm.js ************/
try { (function($){var vtt;jQuery.fn.jForm=function(options){$this=this;return new function(){jQuery.extend(this,new jForm($this,options));};};function jForm(el,options){this.form=el[0];this.el=el;this.flag=new Array();}jForm.prototype={datatype:function(){var _datatype=this.el.attr("datatype");return(_datatype==null)?"":_datatype.toLowerCase();},init:function(){vtt=$("#VTT");with(this.form){for(var i=0;i<elements.length;i++){var el=$(elements[i]);el.bind("ShowToolTip",function(e,bTimeout,message){$(this).jField().ShowToolTip(bTimeout,message);});el.bind("HideToolTip",function(e){$(this).jField().HideToolTip();});if(el.attr("invalid")=="true"){if(el.attr("originalmessage")!=null){el.attr("originalvalue",el.val());el.jField().setInvalid();}}}}},submit:function(){if(this.validate()){this.form.submit();}},buildAlternativeUserName:function(alternative){var alternativeHtml="";for(var i=0;i<alternative.length;i++){alternativeHtml+='<div><input id="AlternateUserName" type="radio" name="AlternateUserName" onclick="document.getElementById(\'UserName\').value = this.value;RevealUserOptions();" value="'+alternative[i]+'" />'+alternative[i]+"</div>";}$("#alterUserNamesOptions").html(alternativeHtml);},validate:function(){if(this.form==null){return false;}var result=true;var oField=null;var oAvailabilityCheck=null;with(this.form){var passwordCounter,passwordField;for(var i=0;i<elements.length;i++){var jF=$(elements[i]).jField();jF.el.val($.trim(jF.el.val()));if(jF.datatype()==""&&jF.datatype()==false){continue;}if(!jF.validate()){result=false;jF.setInvalid();continue;}if((jF.type()=="password"||jF.datatype()=="password")&&jF.datatype()!="passwordrepeat"&&passwordCounter==0){passwordCounter++;passwordField=el;}else{if((jF.type()=="password"||jF.datatype()=="password")&&jF.datatype()!="passwordrepeat"&&passwordCounter==1){if(passwordField.value!=jF.el.val()){result=false;passwordField.value="";continue;}}}jF.setValid();}}jF=null;return result;}};jQuery.fn.jField=function(setvalidity){$this=this;return new function(){jQuery.extend(this,new jField($this,setvalidity));};};function jField(el,setvalidity){this.el=el;this.form=$(el[0].form);this.jForm=this.form.jForm();if(setvalidity!=undefined){this.setvalidity=setvalidity;}}jField.prototype={el:null,form:null,jForm:null,setvalidity:true,available:function(){var responseText=null;var oResult={result:false};switch(this.datatype()){case"username":try{responseText=$.ajax({type:"POST",cache:false,async:false,dataType:"text",url:"/Form.asp",data:"s=200&pid=48&UserName="+this.el.val()}).responseText;}catch(ex){return oResult;}break;case"nickname":try{responseText=$.ajax({type:"POST",cache:false,async:false,dataType:"text",url:"/Form.asp",data:"s=201&pid=48&NickName="+escape(this.el.val())}).responseText;}catch(ex){return oResult;}break;default:}try{$.extend(oResult,JSON.parse(responseText));}catch(ex){}return oResult;},valid:{errortype:null,ContainsValidCharsOnly:function(Value,ValidChars){for(var i=0;i<Value.length;i++){if(ValidChars.indexOf(Value.charAt(i))==-1){return false;}}return true;},ContainsInValidChars:function(Value,InValidChars){for(var i=0;i<Value.length;i++){if(InValidChars.indexOf(Value.charAt(i))!=-1){return true;}}return false;},email:function(sEmail){if(sEmail.indexOf(document.getElementById("UserName").value+"@nana10.co.il")>-1){this.errortype="notSameAvailable";return false;}if(this.ContainsInValidChars(sEmail,"!#$'%^&*()+=<>?/,|~`\"[]")||sEmail.indexOf("@")<=1||(sEmail.lastIndexOf(".")<sEmail.indexOf("@")+2)){this.errortype="invalidchars";return false;}return true;},phone:function(sPhone){if(sPhone.length<6||sPhone.length>15){this.errortype="invalidlength";return false;}if(!this.ContainsValidCharsOnly(sPhone,"0123456789()-+ ")){this.errortype="invalidchars";return false;}return true;},username:function(sUserName){if(sUserName.length<4||sUserName.length>15){this.errortype="invalidlength";return false;}var leftChar=String(sUserName).substring(0,1);if(leftChar=="_"||leftChar=="."||leftChar=="-"||!this.ContainsValidCharsOnly(sUserName,"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890._-")){this.errortype="invalidchars";return false;}return true;},nickname:function(sNickName){if(sNickName.length<4||sNickName.length>15){this.errortype="invalidlength";return false;}if(!this.ContainsValidCharsOnly(sNickName,"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890אבגדהוזחטיךכלםמןנסעףפץצקרשת._- ")){this.errortype="invalidchars";return false;}return true;},numeric:function(sNumber,bFloat){if(!this.ContainsValidCharsOnly(sNumber,"0123456789"+bFloat?".":"")){this.errortype="invalidchars";return false;}return true;},humanname:function(sName){if(this.ContainsInValidChars(sName,'0123456789!@#$%^&*()_+=<>?/.,|~`"[]')){this.errortype="invalidchars";return false;}return true;},password:function(sPassword){if(sPassword.length<6||sPassword.length>12){this.errortype="invalidlength";return false;}if(this.ContainsInValidChars(sPassword,'!#@$%^&*()_+=<>?/,|~`"[]')){this.errortype="invalidchars";return false;}return true;}},mandatory:function(){var _mandatory=this.el.attr("mandatory");return(_mandatory==null)?false:((_mandatory.toLowerCase()=="true")?true:false);},datatype:function(){var _datatype=this.el.attr("datatype");return(_datatype==null)?"":_datatype.toLowerCase();},minlength:function(){var _minlength=this.el.attr("minlength");return(_minlength==null)?0:_minlength;},maxlength:function(){var _maxlength=this.el.attr("maxlength");return(_maxlength==null)?"":_maxlength.toLowerCase();},empty:function(){return $.trim(this.el.val())!=""?true:false;},message:function(val){if(val!=undefined){this.el.attr("message",val);}else{return this.el.attr("message");}},originalmessage:function(){return this.el.attr("originalmessage");},originalvalue:function(){return this.el.attr("originalvalue");},type:function(){var _type=this.el[0].type;return(_type==null)?"":_type.toLowerCase();},setValid:function(){this.el.removeAttr("invalid");if(this.type()=="checkbox"){this.el.parent().removeClass("InvalidCheckBoxValue");}else{this.el.removeClass("InvalidFieldValue");}this.el.unbind("focus");this.el.unbind("blur");this.el.unbind("mouseover");this.el.unbind("mouseout");},setInvalid:function(){this.el.attr("invalid","true");if(this.type()=="checkbox"){this.el.parent().addClass("InvalidCheckBoxValue");}else{this.el.addClass("InvalidFieldValue");}this.el.bind("focus",{ff:this.el},function(e){$(this).trigger("HideToolTip",{timeout:true});$(this).jField().setValid();});this.el.bind("blur",{ff:this.el},function(e){$(this).trigger("HideToolTip");});this.el.bind("mouseover",{ff:this.el},function(e){$(this).trigger("ShowToolTip");});this.el.bind("mouseout",{ff:this.el},function(e){$(this).trigger("HideToolTip");});},messages:{username:{empty:"בחר שם משתמש",invalidlength:"שם משתמש חייב להכיל 15-4 תווים",invalidchars:"שם המשתמש יכול להכיל אותיות באנגלית, מספרים, נקודה, מקף תחתון ואמצעי בלבד, ואינו יכול להתחיל בסימן פיסוק",notavailable:"שם המשתמש שבחרת תפוס. נסה שם משתמש אחר",error:"שגיאה"},nickname:{empty:"בחר כינוי",invalidlength:"כינוי חייב להכיל 15-4 תווים",invalidchars:"הכינוי יכול להכיל אותיות באנגלית/עברית, מספרים, נקודה, מקף תחתון ואמצעי בלבד",notavailable:"הכינוי שבחרת תפוס. נסה כינוי אחר",error:"שגיאה"},email:{empty:"שדה מייל הינו שדה חובה",invalidlength:"שגיאה",invalidchars:"המייל שהזנת אינו תקין",notavailable:"דואר חלופי משמש לאזכור סיסמה. אין להשתמש בכתובת דואר נענע למטרה זו",notSameAvailable:"דואר חלופי משמש לאזכור סיסמה. יש להשתמש בכתובת דואר אחרת"},password:{empty:"בחר סיסמה",invalidlength:"סיסמה חייבת להכיל 12-6 תווים",invalidchars:"סיסמה חייבת להכיל שילוב של ספרות ואותיות באנגלית"},codex:{empty:"יש לאשר את התקנון",invalidlength:"שגיאה",invalidchars:"יש לאשר את התקנון"},captcha:{empty:"יש להקליד את הכיתוב המופיע בתיבה",invalidchars:"אבטחת הרשמה - נא בדוק אהערך שהזנת"},general:{empty:"שדה זה הינו שדה חובה",invalidlength:"הערך שהזנת אינו תקין",invalidchars:"הערך שהזנת אינו תקין",notavailable:"הערך שבחרת תפוס. נסה ערך אחר"}},showAlternativeValues:function(){},hideAlternativeValues:function(){},validate:function(){this.errortype=null;this.el.val($.trim(this.el.val()));if(this.type()!="checkbox"&&this.originalvalue()!=null&&!this.empty()&&this.originalvalue()==this.el.val()){this.message(this.originalmessage());if(this.setvalidity){this.setInvalid();}return false;}if(this.mandatory()&&(this.el.val().length==0||(this.type()=="checkbox"&&!this.el.is(":checked")))){this.message((this.messages[this.datatype()]==undefined)?this.messages.general.empty:this.messages[this.datatype()].empty);if(this.setvalidity){this.setInvalid();}return false;}var result=false;var setMessage=true;switch(this.datatype()){case"username":$("#IsErrorClub").hide();$("#IsFreeClub").hide();$("#IsTakenClub").hide();result=this.valid.username(this.el.val());if(result&&this.jForm.datatype()=="registration"){var oAvailabilityCheck=this.available();if(!oAvailabilityCheck.result||!oAvailabilityCheck.available){result=false;this.setInvalid();if(!oAvailabilityCheck.result||oAvailabilityCheck.errortype=="hun"){this.valid.errortype="error";$("#IsErrorClub").show();$("#IsFreeClub").hide();$("#IsTakenClub").hide();}else{if(!oAvailabilityCheck.valid){this.valid.errortype=oAvailabilityCheck.errortype;$("#IsErrorClub").hide();$("#IsFreeClub").hide();$("#IsTakenClub").hide();}else{if(!oAvailabilityCheck.available){this.valid.errortype="notavailable";this.jForm.buildAlternativeUserName(oAvailabilityCheck.alternative);$("#IsErrorClub").hide();$("#IsFreeClub").hide();$("#IsTakenClub").show();}}}}else{$("#IsErrorClub").hide();$("#IsFreeClub").show();$("#IsTakenClub").hide();}}break;case"nickname":$("#IsErrorNick").hide();$("#IsFreeNick").hide();$("#IsTakenNick").hide();result=this.valid.nickname(this.el.val());if(result&&this.jForm.datatype()=="registration"){var oAvailabilityCheck=this.available();if(!oAvailabilityCheck.result||!oAvailabilityCheck.available){result=false;this.setInvalid();if(!oAvailabilityCheck.result){this.valid.errortype="error";$("#IsErrorNick").show();$("#IsFreeNick").hide();$("#IsTakenNick").hide();}if(!oAvailabilityCheck.available){this.valid.errortype="notavailable";$("#IsErrorNick").hide();$("#IsFreeNick").hide();$("#IsTakenNick").show();}}else{$("#IsErrorNick").hide();$("#IsFreeNick").show();$("#IsTakenNick").hide();}}break;case"password":case"passwordrepeat":result=this.valid.password(this.el.val());break;case"email":result=this.valid.email(this.el.val());break;case"phone":case"fax":case"mobilephone":case"cellphone":result=this.valid.phone(this.el.val());break;case"numeric":result=this.valid.numeric(this.el.val());break;case"firstname":case"fullname":case"lastname":case"middlename":result=this.valid.humanname(this.el.val());break;default:result=true;}if(!result){this.el.attr("message",(this.messages[this.datatype()]==undefined)?this.messages.general[this.valid.errortype]:this.messages[this.datatype()][this.valid.errortype]);if(this.setvalidity){this.setInvalid();}}else{if(this.setvalidity){this.setValid();}}return result;},ShowToolTip:function(options){if(this.el.attr("invalid")!="true"&&options.message==undefined){return ;}if(vtt==undefined){return ;}var vttPosition=this.el.position();var vttRightMargin=vtt.outerWidth()+5;vtt.css("top",vttPosition.top+"px");vtt.css("left",(vttPosition.left-vttRightMargin)+"px");vtt.css("height","21px");if(options!=undefined&&options.message!=undefined&&options.message!=null){$("div",vtt).text(options.message);}else{if(this.originalmessage()!=null&&this.originalmessage().length>0&&(this.el.val()==this.originalvalue())){$("div",vtt).text(this.originalmessage());}else{if(this.message()!=null){$("div",vtt).text(this.message());}else{$("div",vtt).text((this.messages[this.datatype()]==undefined)?this.messages.general.invalidchars:this.messages[this.datatype()].invalidchars);}}}if(options==undefined||options.timeout==undefined||!options.timeout){vtt.show();}else{var f=this.el;vtt.show();setTimeout(function(){f.jField().hideToolTip(this.el,vtt);},3000);}},HideToolTip:function(){if(vtt!=undefined){vtt.hide();}}};})(jQuery);}catch (ex){}



/************ File: jquery-jtemplates_uncompressed.js ************/
try { if(window.jQuery&&!window.jQuery.createTemplate){(function(jQuery){var Template=function(s,includes,settings){this._tree=[];this._param={};this._includes=null;this._templates={};this._templates_code={};this.settings=jQuery.extend({disallow_functions:false,filter_data:true,filter_params:false,runnable_functions:false,clone_data:true,clone_params:true},settings);this.f_cloneData=(this.settings.f_cloneData!==undefined)?(this.settings.f_cloneData):(TemplateUtils.cloneData);this.f_escapeString=(this.settings.f_escapeString!==undefined)?(this.settings.f_escapeString):(TemplateUtils.escapeHTML);this.splitTemplates(s,includes);if(s){this.setTemplate(this._templates_code.MAIN,includes,this.settings);}this._templates_code=null;};Template.prototype.version="0.7.8";Template.DEBUG_MODE=true;Template.prototype.splitTemplates=function(s,includes){var reg=/\{#template *(\w*?)( .*)*\}/g;var iter,tname,se;var lastIndex=null;var _template_settings=[];while((iter=reg.exec(s))!=null){lastIndex=reg.lastIndex;tname=iter[1];se=s.indexOf("{#/template "+tname+"}",lastIndex);if(se==-1){throw new Error('jTemplates: Template "'+tname+'" is not closed.');}this._templates_code[tname]=s.substring(lastIndex,se);_template_settings[tname]=TemplateUtils.optionToObject(iter[2]);}if(lastIndex===null){this._templates_code.MAIN=s;return ;}for(var i in this._templates_code){if(i!="MAIN"){this._templates[i]=new Template();}}for(var i in this._templates_code){if(i!="MAIN"){this._templates[i].setTemplate(this._templates_code[i],jQuery.extend({},includes||{},this._templates||{}),jQuery.extend({},this.settings,_template_settings[i]));this._templates_code[i]=null;}}};Template.prototype.setTemplate=function(s,includes,settings){if(s==undefined){this._tree.push(new TextNode("",1,this));return ;}s=s.replace(/[\n\r]/g,"");s=s.replace(/\{\*.*?\*\}/g,"");this._includes=jQuery.extend({},this._templates||{},includes||{});this.settings=new Object(settings);var node=this._tree;var op=s.match(/\{#.*?\}/g);var ss=0,se=0;var e;var literalMode=0;var elseif_level=0;for(var i=0,l=(op)?(op.length):(0);i<l;++i){var this_op=op[i];if(literalMode){se=s.indexOf("{#/literal}");if(se==-1){throw new Error("jTemplates: No end of literal.");}if(se>ss){node.push(new TextNode(s.substring(ss,se),1,this));}ss=se+11;literalMode=0;i=jQuery.inArray("{#/literal}",op);continue;}se=s.indexOf(this_op,ss);if(se>ss){node.push(new TextNode(s.substring(ss,se),literalMode,this));}var ppp=this_op.match(/\{#([\w\/]+).*?\}/);var op_=RegExp.$1;switch(op_){case"elseif":++elseif_level;node.switchToElse();case"if":e=new opIF(this_op,node);node.push(e);node=e;break;case"else":node.switchToElse();break;case"/if":while(elseif_level){node=node.getParent();--elseif_level;}case"/for":case"/foreach":node=node.getParent();break;case"foreach":e=new opFOREACH(this_op,node,this);node.push(e);node=e;break;case"for":e=opFORFactory(this_op,node,this);node.push(e);node=e;break;case"continue":case"break":node.push(new JTException(op_));break;case"include":node.push(new Include(this_op,this._includes));break;case"param":node.push(new UserParam(this_op));break;case"cycle":node.push(new Cycle(this_op));break;case"ldelim":node.push(new TextNode("{",1,this));break;case"rdelim":node.push(new TextNode("}",1,this));break;case"literal":literalMode=1;break;case"/literal":if(Template.DEBUG_MODE){throw new Error("jTemplates: Missing begin of literal.");}break;default:if(Template.DEBUG_MODE){throw new Error("jTemplates: unknown tag: "+op_+".");}}ss=se+this_op.length;}if(s.length>ss){node.push(new TextNode(s.substr(ss),literalMode,this));}};Template.prototype.get=function(d,param,element,deep){++deep;var $T=d,_param1,_param2;if(this.settings.clone_data){$T=this.f_cloneData(d,{escapeData:(this.settings.filter_data&&deep==1),noFunc:this.settings.disallow_functions},this.f_escapeString);}if(!this.settings.clone_params){_param1=this._param;_param2=param;}else{_param1=this.f_cloneData(this._param,{escapeData:(this.settings.filter_params),noFunc:false},this.f_escapeString);_param2=this.f_cloneData(param,{escapeData:(this.settings.filter_params&&deep==1),noFunc:false},this.f_escapeString);}var $P=jQuery.extend({},_param1,_param2);var $Q=(element!=undefined)?(element):({});$Q.version=this.version;var ret="";for(var i=0,l=this._tree.length;i<l;++i){ret+=this._tree[i].get($T,$P,$Q,deep);}--deep;return ret;};Template.prototype.setParam=function(name,value){this._param[name]=value;};TemplateUtils=function(){};TemplateUtils.escapeHTML=function(txt){return txt.replace(/&/g,"&amp;").replace(/>/g,"&gt;").replace(/</g,"&lt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;");};TemplateUtils.cloneData=function(d,filter,f_escapeString){if(d==null){return d;}switch(d.constructor){case Object:var o={};for(var i in d){o[i]=TemplateUtils.cloneData(d[i],filter,f_escapeString);}if(!filter.noFunc){if(d.hasOwnProperty("toString")){o.toString=d.toString;}}return o;case Array:var o=[];for(var i=0,l=d.length;i<l;++i){o[i]=TemplateUtils.cloneData(d[i],filter,f_escapeString);}return o;case String:return(filter.escapeData)?(f_escapeString(d)):(d);case Function:if(filter.noFunc){if(Template.DEBUG_MODE){throw new Error("jTemplates: Functions are not allowed.");}else{return undefined;}}default:return d;}};TemplateUtils.optionToObject=function(optionText){if(optionText===null||optionText===undefined){return{};}var o=optionText.split(/[= ]/);if(o[0]===""){o.shift();}var obj={};for(var i=0,l=o.length;i<l;i+=2){obj[o[i]]=o[i+1];}return obj;};var TextNode=function(val,literalMode,template){this._value=val;this._literalMode=literalMode;this._template=template;};TextNode.prototype.get=function(d,param,element,deep){var __t=this._value;if(!this._literalMode){var __template=this._template;var $T=d;var $P=param;var $Q=element;__t=__t.replace(/\{(.*?)\}/g,function(__0,__1){try{var __tmp=eval(__1);if(typeof __tmp=="function"){if(__template.settings.disallow_functions||!__template.settings.runnable_functions){return"";}else{__tmp=__tmp($T,$P,$Q);}}return(__tmp===undefined)?(""):(String(__tmp));}catch(e){if(Template.DEBUG_MODE){if(e instanceof JTException){e.type="subtemplate";}throw e;}return"";}});}return __t;};var opIF=function(oper,par){this._parent=par;oper.match(/\{#(?:else)*if (.*?)\}/);this._cond=RegExp.$1;this._onTrue=[];this._onFalse=[];this._currentState=this._onTrue;};opIF.prototype.push=function(e){this._currentState.push(e);};opIF.prototype.getParent=function(){return this._parent;};opIF.prototype.switchToElse=function(){this._currentState=this._onFalse;};opIF.prototype.get=function(d,param,element,deep){var $T=d;var $P=param;var $Q=element;var ret="";try{var tab=(eval(this._cond))?(this._onTrue):(this._onFalse);for(var i=0,l=tab.length;i<l;++i){ret+=tab[i].get(d,param,element,deep);}}catch(e){if(Template.DEBUG_MODE||(e instanceof JTException)){throw e;}}return ret;};opFORFactory=function(oper,par,template){if(oper.match(/\{#for (\w+?) *= *(\S+?) +to +(\S+?) *(?:step=(\S+?))*\}/)){oper="{#foreach opFORFactory.funcIterator as "+RegExp.$1+" begin="+(RegExp.$2||0)+" end="+(RegExp.$3||-1)+" step="+(RegExp.$4||1)+" extData=$T}";return new opFOREACH(oper,par,template);}else{throw new Error('jTemplates: Operator failed "find": '+oper);}};opFORFactory.funcIterator=function(i){return i;};var opFOREACH=function(oper,par,template){this._parent=par;this._template=template;oper.match(/\{#foreach (.+?) as (\w+?)( .+)*\}/);this._arg=RegExp.$1;this._name=RegExp.$2;this._option=RegExp.$3||null;this._option=TemplateUtils.optionToObject(this._option);this._onTrue=[];this._onFalse=[];this._currentState=this._onTrue;};opFOREACH.prototype.push=function(e){this._currentState.push(e);};opFOREACH.prototype.getParent=function(){return this._parent;};opFOREACH.prototype.switchToElse=function(){this._currentState=this._onFalse;};opFOREACH.prototype.get=function(d,param,element,deep){try{var $T=d;var $P=param;var $Q=element;var fcount=eval(this._arg);var key=[];var mode=typeof fcount;if(mode=="object"){var arr=[];jQuery.each(fcount,function(k,v){key.push(k);arr.push(v);});fcount=arr;}var extData=(this._option.extData!==undefined)?(eval(this._option.extData)):(($T!=null)?($T):({}));var s=Number(eval(this._option.begin)||0),e;var step=Number(eval(this._option.step)||1);if(mode!="function"){e=fcount.length;}else{if(this._option.end===undefined||this._option.end===null){e=Number.MAX_VALUE;}else{e=Number(eval(this._option.end))+((step>0)?(1):(-1));}}var ret="";var i,l;if(this._option.count){var tmp=s+Number(eval(this._option.count));e=(tmp>e)?(e):(tmp);}if((e>s&&step>0)||(e<s&&step<0)){var iteration=0;var _total=(mode!="function")?(Math.ceil((e-s)/step)):undefined;var ckey,cval;for(;((step>0)?(s<e):(s>e));s+=step,++iteration){ckey=key[s];if(mode!="function"){cval=fcount[s];}else{cval=fcount(s);if(cval===undefined||cval===null){break;}}if((typeof cval=="function")&&(this._template.settings.disallow_functions||!this._template.settings.runnable_functions)){continue;}if((mode=="object")&&(ckey in Object)){continue;}var prevValue=extData[this._name];extData[this._name]=cval;extData[this._name+"$index"]=s;extData[this._name+"$iteration"]=iteration;extData[this._name+"$first"]=(iteration==0);extData[this._name+"$last"]=(s+step>=e);extData[this._name+"$total"]=_total;extData[this._name+"$key"]=(ckey!==undefined&&ckey.constructor==String)?(this._template.f_escapeString(ckey)):(ckey);extData[this._name+"$typeof"]=typeof cval;for(i=0,l=this._onTrue.length;i<l;++i){try{ret+=this._onTrue[i].get(extData,param,element,deep);}catch(ex){if(ex instanceof JTException){switch(ex.type){case"continue":i=l;break;case"break":i=l;s=e;break;default:throw e;}}else{throw e;}}}delete extData[this._name+"$index"];delete extData[this._name+"$iteration"];delete extData[this._name+"$first"];delete extData[this._name+"$last"];delete extData[this._name+"$total"];delete extData[this._name+"$key"];delete extData[this._name+"$typeof"];delete extData[this._name];extData[this._name]=prevValue;}}else{for(i=0,l=this._onFalse.length;i<l;++i){ret+=this._onFalse[i].get($T,param,element,deep);}}return ret;}catch(e){if(Template.DEBUG_MODE||(e instanceof JTException)){throw e;}return"";}};var JTException=function(type){this.type=type;};JTException.prototype=Error;JTException.prototype.get=function(d){throw this;};var Include=function(oper,includes){oper.match(/\{#include (.*?)(?: root=(.*?))?\}/);this._template=includes[RegExp.$1];if(this._template==undefined){if(Template.DEBUG_MODE){throw new Error("jTemplates: Cannot find include: "+RegExp.$1);}}this._root=RegExp.$2;};Include.prototype.get=function(d,param,element,deep){var $T=d;var $P=param;try{return this._template.get(eval(this._root),param,element,deep);}catch(e){if(Template.DEBUG_MODE||(e instanceof JTException)){throw e;}}return"";};var UserParam=function(oper){oper.match(/\{#param name=(\w*?) value=(.*?)\}/);this._name=RegExp.$1;this._value=RegExp.$2;};UserParam.prototype.get=function(d,param,element,deep){var $T=d;var $P=param;var $Q=element;try{param[this._name]=eval(this._value);}catch(e){if(Template.DEBUG_MODE||(e instanceof JTException)){throw e;}param[this._name]=undefined;}return"";};var Cycle=function(oper){oper.match(/\{#cycle values=(.*?)\}/);this._values=eval(RegExp.$1);this._length=this._values.length;if(this._length<=0){throw new Error("jTemplates: cycle has no elements");}this._index=0;this._lastSessionID=-1;};Cycle.prototype.get=function(d,param,element,deep){var sid=jQuery.data(element,"jTemplateSID");if(sid!=this._lastSessionID){this._lastSessionID=sid;this._index=0;}var i=this._index++%this._length;return this._values[i];};jQuery.fn.setTemplate=function(s,includes,settings){if(s.constructor===Template){return jQuery(this).each(function(){jQuery.data(this,"jTemplate",s);jQuery.data(this,"jTemplateSID",0);});}else{return jQuery(this).each(function(){jQuery.data(this,"jTemplate",new Template(s,includes,settings));jQuery.data(this,"jTemplateSID",0);});}};jQuery.fn.setTemplateURL=function(url_,includes,settings){var s=jQuery.ajax({url:url_,async:false}).responseText;return jQuery(this).setTemplate(s,includes,settings);};jQuery.fn.setTemplateElement=function(elementName,includes,settings){var s=jQuery("#"+elementName).val();if(s==null){s=jQuery("#"+elementName).html();s=s.replace(/&lt;/g,"<").replace(/&gt;/g,">");}s=jQuery.trim(s);s=s.replace(/^<\!\[CDATA\[([\s\S]*)\]\]>$/im,"$1");s=s.replace(/^<\!--([\s\S]*)-->$/im,"$1");return jQuery(this).setTemplate(s,includes,settings);};jQuery.fn.hasTemplate=function(){var count=0;jQuery(this).each(function(){if(jQuery.getTemplate(this)){++count;}});return count;};jQuery.fn.removeTemplate=function(){jQuery(this).processTemplateStop();return jQuery(this).each(function(){jQuery.removeData(this,"jTemplate");});};jQuery.fn.setParam=function(name,value){return jQuery(this).each(function(){var t=jQuery.getTemplate(this);if(t===undefined){if(Template.DEBUG_MODE){throw new Error("jTemplates: Template is not defined.");}else{return ;}}t.setParam(name,value);});};jQuery.fn.processTemplate=function(d,param){return jQuery(this).each(function(){var t=jQuery.getTemplate(this);if(t===undefined){if(Template.DEBUG_MODE){throw new Error("jTemplates: Template is not defined.");}else{return ;}}jQuery.data(this,"jTemplateSID",jQuery.data(this,"jTemplateSID")+1);jQuery(this).html(t.get(d,param,this,0));});};jQuery.fn.processTemplateURL=function(url_,param,options){var that=this;options=jQuery.extend({type:"GET",async:true,cache:false},options);jQuery.ajax({url:url_,type:options.type,data:options.data,dataFilter:options.dataFilter,async:options.async,cache:options.cache,timeout:options.timeout,dataType:"json",success:function(d){var r=jQuery(that).processTemplate(d,param);if(options.on_success){options.on_success(r);}},error:options.on_error,complete:options.on_complete});return this;};var Updater=function(url,param,interval,args,objs,options){this._url=url;this._param=param;this._interval=interval;this._args=args;this.objs=objs;this.timer=null;this._options=options||{};var that=this;jQuery(objs).each(function(){jQuery.data(this,"jTemplateUpdater",that);});this.run();};Updater.prototype.run=function(){this.detectDeletedNodes();if(this.objs.length==0){return ;}var that=this;jQuery.getJSON(this._url,this._args,function(d){var r=jQuery(that.objs).processTemplate(d,that._param);if(that._options.on_success){that._options.on_success(r);}});this.timer=setTimeout(function(){that.run();},this._interval);};Updater.prototype.detectDeletedNodes=function(){this.objs=jQuery.grep(this.objs,function(o){if(jQuery.browser.msie){var n=o.parentNode;while(n&&n!=document){n=n.parentNode;}return n!=null;}else{return o.parentNode!=null;}});};jQuery.fn.processTemplateStart=function(url,param,interval,args,options){return new Updater(url,param,interval,args,this,options);};jQuery.fn.processTemplateStop=function(){return jQuery(this).each(function(){var updater=jQuery.data(this,"jTemplateUpdater");if(updater==null){return ;}var that=this;updater.objs=jQuery.grep(updater.objs,function(o){return o!=that;});jQuery.removeData(this,"jTemplateUpdater");});};jQuery.extend({createTemplate:function(s,includes,settings){return new Template(s,includes,settings);},createTemplateURL:function(url_,includes,settings){var s=jQuery.ajax({url:url_,async:false}).responseText;return new Template(s,includes,settings);},getTemplate:function(element){return jQuery.data(element,"jTemplate");},processTemplateToText:function(template,data,parameter){return template.get(data,parameter,undefined,0);},jTemplatesDebugMode:function(value){Template.DEBUG_MODE=value;}});})(jQuery);}}catch (ex){}



/************ File: jquery.gcomplete.0.1.2.js ************/
try { (function($){var _intval;$.fn.extend({gcompleteStop:function(){clearInterval(_intval);$.browser.mozilla?$(this).unbind("keypress"):$(this).unbind("keydown");$(this).unbind("focus");$(this).unbind("blur");$(".gcompleteWin").hide();if(typeof ($(this).mousewheel)=="function"){$(this).unbind("mousedown");$(window).unbind("mousewheel");}},gcomplete:function(option){var _self=$(this);var _tag=_self.get(0).tagName.toLowerCase();if(_tag=="input"&&_self.attr("type")=="text"){var _opt,_win;var _prefix="gcomplete-";var def_option={style:"default",url:"http://google.com/complete/search",query_key:"q",param:{output:"json"},limit:10,cycle:500,effect:false,oneword:false,callbackUseOnlyString:false,parseFunc:function(result){return result[1];}};function cycleStart(){_intval=setInterval(cycleEngine,getOption("cycle"));$.browser.mozilla?_self.bind("keypress",keyPress):_self.bind("keydown",keyPress);if(typeof (_self.mousewheel)=="function"){_self.mousedown(mouseDown);$(window).mousewheel(mouseWheel);}}function cycleStop(){clearInterval(_intval);_opt.param[_opt.query_key]="";hideWindow();$.browser.mozilla?_self.unbind("keypress",keyPress):_self.unbind("keydown",keyPress);if(typeof (_self.mousewheel)=="function"){_self.unbind("mousedown",mouseDown);$(window).unbind("mousewheel",mouseWheel);}}function cycleEngine(){var str=_self.val();if(str.length>0&&str.replace(/ +$/,"")!=_opt.param[_opt.query_key].replace(/ +$/,"")){request(str);}else{if(str.length<=0){hideWindow();}}}function request(query){var param={};_opt.param[_opt.query_key]=query;for(var i in _opt.param){param[i]=_opt.param[i];}if(getOption("oneword")){param[_opt.query_key]=query.split(" ").pop();if(!param[_opt.query_key]){hideWindow();return false;}}if(getOption("callbackUseOnlyString")){var script=$("#__gcompleteaccess");var key="gcompletef"+getUniqueString();param.callback=key;window[key]=callBack;if(script.size()>0){script.attr("src",_opt.url+"?"+$.param(param));}else{$("<script />").attr("type","text/javascript").attr("id","__gcompleteaccess").attr("src",_opt.url+"?"+$.param(param)).appendTo("body");}}else{$.get(_opt.url,param,callBack,"jsonp");}}function getUniqueString(){var arr=[];var list="abcdefghij".split("");var time=(new Date()).getTime().toString().split("");arr.push(list[Math.floor(Math.random()*list.length)]);for(var i=0,imax=time.length;i<imax;i++){arr.push(list[time[i]]);}return arr.join("");}function callBack(data){try{var list=getOption("parseFunc")(data);if(list.length>0){showWindow(list);}else{hideWindow();}}catch(e){cycleStop();}}function showWindow(list){if(list){_win.empty();if(getOption("winWidth")!==null){_win.css("width",getOption("winWidth")+"px");}var dl,numMax=getOption("limit");for(var i=0,imax=Math.min(list.length,numMax);i<imax;i++){dl=$("<dl />").appendTo(_win);if(typeof (list[i])=="string"){dl.append($("<dt />").text(list[i]));dl.data("text",list[i]);}else{dl.append($("<dt />").text(list[i][0]));dl.append($("<dd />").text(list[i][1]));dl.data("text",list[i][0]);}dl.hover(function(e){focusList(this);},function(e){blurList(this);}).mousedown(function(){focusList(this);selectList();});}}if(getOption("effect")&&_win.css("display")=="none"){_win.fadeIn(300);}else{_win.show();}}function hideWindow(){if(getOption("effect")){_win.fadeOut(100);}else{_win.hide();}}function focusList(item){blurList(_win.find("dl"));$(item).addClass("over").attr("rel","select");}function blurList(item){$(item).removeClass("over").removeAttr("rel");}function selectList(){var s=_win.find("dl[rel=select]");if(s.size()){if(getOption("oneword")){var words=_self.val().split(" ");words.pop();words.push(s.data("text"));words.push("");_self.val(words.join(" "));}else{_self.val(s.data("text"));}return true;}return false;}function initOption(option){_opt=option||{};for(var i in def_option){if(!_opt.hasOwnProperty(i)){_opt[i]=def_option[i];}}_opt.param[_opt.query_key]="";_self.data("_gcomp",_opt);}function initWindow(){_win=$('<div class="gcompleteWin"/>').addClass(_prefix+getOption("style")+"-box").css({position:"absolute",left:getLeftPos(),top:getTopPos(),"z-index":"9999"}).insertAfter(_self);_win.hide();}function getLeftPos(){return _self.position().left;}function getTopPos(){var tp=_self.position().top+_self.height();tp+=str2num(_self.css("margin-top"))+str2num(_self.css("padding-top"))+str2num(_self.css("border-top-width"))+str2num(_self.css("padding-bottom"))+str2num(_self.css("border-bottom-width"));return tp;}function str2num(str){if(typeof (str)=="undefined"){return 1;}var num=Number(str.replace("px",""));return isNaN(str)?1:num;}function getOption(key){if(_opt.hasOwnProperty(key)){return _opt[key];}return null;}function mouseDown(e){switch(e.button){case 1:if(!$.browser.msie&&selectList()){return false;}break;case 4:if($.browser.msie&&selectList()){return false;}break;default:break;}return true;}function keyPress(e){var s=_win.find("dl[rel=select]");switch(e.keyCode){case 27:cycleStop();break;case 38:focusList(s.prev().size()?s.prev():_win.find("dl:last"));return false;break;case 40:focusList(s.next().size()?s.next():_win.find("dl:first"));return false;break;case 13:if(selectList()){return false;}break;default:break;}return true;}function mouseWheel(e,delta){if(_win.find("dl").size()){var s=_win.find("dl[rel=select]");var type=delta<0;if(s.size()){focusList(type?(s.next().size()?s.next():_win.find("dl:first")):(s.prev().size()?s.prev():_win.find("dl:last")));}else{focusList(type?_win.find("dl:first"):_win.find("dl:last"));}}return false;}initOption(option);initWindow();_self.bind("focus",function(){cycleStart();});_self.bind("blur",function(){cycleStop();});}return _self;}});})(jQuery);}catch (ex){}



/************ File: xhr.js ************/
try { (function($){var xhrProxy;jQuery.extend({xhrInit:function(){if(xhrProxy==undefined){oIF=document.createElement("IFRAME");oIF.setAttribute("src","http://xhr"+sEnvironment+".nana10.co.il/blank.html");oIF.style.width=0+"px";oIF.style.height=0+"px";oIF.style.display="none";xhrProxy=($(oIF).prependTo("body"))[0];oIF=null;}}});jQuery.extend({xhr:function(options){if(options.url==undefined){return ;}var sXhrUrl="/common/xhr.ashx?";if(options.tud==true){sXhrUrl+="tud=1&";}if(options.ucm==false){sXhrUrl+="ucm=0&";}if(options.rsstop!=undefined){sXhrUrl+="rsstop="+options.rsstop+"&";}if(options.charset!=undefined){sXhrUrl+="charset="+options.charset+"&";}if(options.tax==undefined||options.tax==true){sXhrUrl+="tax=1&";}else{sXhrUrl+="tax=0&";}$.xhrInit();$.ajax({url:(options.url.substring(0,1)=="/")?escape(options.url):sXhrUrl+"url="+escape(options.url),type:"GET",dataType:"text",global:false,async:true,error:(options.onError==undefined)?function(request,error,ex){}:options.onError,complete:function(request,status){if(status=="success"&&request.responseText=="[307 Temporary Redirect]"){options.url=request.getResponseHeader("Location");$.xhrRedirect(options);}else{if(status=="success"&&options.onSuccess!=undefined){options.onSuccess(request);}}}});}});jQuery.extend({xhrExternal:function(options){$.ajax({url:options.url,type:"GET",dataType:"text",global:false,async:true,error:(options.onError==undefined)?function(request,error,ex){}:options.onError,complete:function(request,status){if(status=="success"&&options.onSuccess!=undefined){options.onSuccess(request);}}});}});jQuery.extend({xhrRedirect:function(options){if((jQuery.browser.msie&&xhrProxy.readyState!="complete")||(xhrProxy.contentWindow.readyState!="complete")){setTimeout(function(){$.xhrRedirect(options);},50);return ;}xhrProxy.contentWindow.jQuery.xhrExternal(options);}});})(jQuery);}catch (ex){}



/************ File: Banners.js ************/
try { function StartBannerRefreshJob(){if(typeof (oBRL)!="undefined"){var oDate=new Date();for(var br in oBRL){if(oBRL.hasOwnProperty(br)){if(document.getElementById("CM8ShowAd_"+br)){oBRL[br].lastRefreshTime=oDate.valueOf();oBRL[br].Interval=parseInt(oBRL[br].Interval,10)*1000;}else{delete oBRL[br];}}}window.setTimeout(ProcessBannerRefreshList,5000);}}function ProcessBannerRefreshList(){var oDate=(new Date()).valueOf();if(typeof CM8AjaxRefresh!="function"){return ;}for(var br in oBRL){if(oBRL.hasOwnProperty(br)){if((oBRL[br].lastRefreshTime+oBRL[br].Interval)<oDate){if(typeof ebClose!="undefined"){try{ebClose();}catch(ex){}}if(typeof RemoveNanaRich!="undefined"){try{RemoveNanaRich(br);}catch(ex){}}var oTargetDiv=$("#CM8ShowAd_"+br);oTargetDiv.html($("<div></div>").css({width:oTargetDiv.width(),height:oTargetDiv.height()}));CM8AjaxRefresh(br,CM8Profile);oBRL[br].lastRefreshTime=oDate;}}}window.setTimeout(ProcessBannerRefreshList,5000);}function UpdateUserDataCookie(oData){if(typeof oData=="object"){if(oData.hasOwnProperty("source")&&oData.source!==""&&oData.source!==null){var oCookie=(new Cookie("naUDC"));var oUDC=oCookie.getCookie();if(oUDC===undefined){oUDC="{}";}oUDC=JSON.parse(oUDC);oUDC[oData.source]={};if(!oData.hasOwnProperty("sex")||oData.sex===""||oData.sex===null){oData.sex=0;}if(!oData.hasOwnProperty("age_code")||oData.age_code===""||oData.age_code===null){if(!oData.hasOwnProperty("age")||oData.age===""||oData.age===null){oData.age=0;}oData.age_code=GetAgecodeByAge(oData.age);}oUDC[oData.source].sex=parseInt(oData.sex);oUDC[oData.source].age=parseInt(oData.age_code);oCookie.setCookie(JSON.stringify(oUDC),525600,"nana10.co.il","/");}}}function GetAgecodeByAge(nAge){var nAgeCode=0;if(13<=nAge&&nAge<=15){nAgeCode=2;}else{if(16<=nAge&&nAge<=17){nAgeCode=3;}else{if(18<=nAge&&nAge<=20){nAgeCode=4;}else{if(21<=nAge&&nAge<=24){nAgeCode=5;}else{if(25<=nAge&&nAge<=29){nAgeCode=6;}else{if(30<=nAge&&nAge<=34){nAgeCode=7;}else{if(35<=nAge&&nAge<=39){nAgeCode=8;}else{if(40<=nAge&&nAge<=49){nAgeCode=9;}else{if(50<=nAge&&nAge<=64){nAgeCode=10;}else{if(65<=nAge){nAgeCode=11;}}}}}}}}}}return nAgeCode;}function GetUserProfileByType(sType){var oUDC=(new Cookie("naUDC")).getCookie();oUDC=JSON.parse(oUDC);if(oUDC){oUD=oUDC[sType];if(typeof oUD!="undefined"&&oUD.sex&&oUD.age&&(oUD.sex!=0||oUD.age!=0)){return oUD;}}return false;}function GetUserProfile(){var oUDCCookie=(new Cookie("naUDC"));var oClubSexCookie=(new Cookie("naSex"));var oClubAgeCookie=(new Cookie("naAge"));var nClubSex=oClubSexCookie.getCookie();var nClubAge=oClubAgeCookie.getCookie();if(nClubSex==0){nClubSex=2;}else{if(nClubSex==1){nClubSex=3;}else{nClubSex=0;}}UpdateUserDataCookie({source:"cl",age:nClubAge,sex:nClubSex});var oUDC=oUDCCookie.getCookie();if(oUDC){oUDC=JSON.parse(oUDC);var Sources=["lm","cl","vi","is","ae","fb"];var nSex=0,nAge=0;for(i=0;i<Sources.length;i++){oUD=oUDC[Sources[i]];if(typeof oUD!="undefined"){if(typeof oUD.sex!="undefined"&&typeof oUD.age!="undefined"){if(oUD.sex&&oUD.age&&oUD.sex!=0&&oUD.age!=0){return oUD;}if(oUD.sex&&oUD.sex!=0&&nSex==0){nSex=oUD.sex;}if(oUD.age&&oUD.age!=0&&nAge==0){nAge=oUD.age;}}}}return{sex:nSex,age:nAge};}return{sex:0,age:0};}function BuildUserProfile(oUD){return"CA="+oUD.age+"&CG="+oUD.sex;}var LeftBar={nSideBarInterval:0,oLeftBar:null,adjustSideBarHorizontalAll:function(){var hs=getScrollXY()[0];var ww=GetWindowWidth();var cw=$("#mainContainer").width();var left=0;if(ww<cw){left=hs*(-1);}else{left=(ww-cw)/2-200;if(left<0){left=0;}}LeftBar.oLeftBar.css({left:(left+"px"),position:"fixed",top:"0px","float":"none"});},adjustSideBarHorizontalIE6:function(){var hs=getScrollXY()[0];var vs=getScrollXY()[1];var ww=GetWindowWidth();var cw=$("#mainContainer").width();if(ww<cw){left="0";}else{left=(ww-cw)/2;}LeftBar.oLeftBar.css({position:"absolute",top:(vs+"px"),left:(left+"px"),"float":"none"});},setTowerBannerScrolling:function(){LeftBar.oLeftBar=$("#sideBarContainer");if(!($.browser.msie&&$.browser.version<7)){this.adjustSideBarHorizontalAll();$(window).bind("scroll",this.adjustSideBarHorizontalAll);$(window).bind("resize",this.adjustSideBarHorizontalAll);}else{LeftBar.adjustSideBarHorizontalIE6();$(window).bind("resize",this.adjustSideBarHorizontalIE6);$(window).bind("scroll",function(){window.clearInterval(LeftBar.nSideBarInterval);LeftBar.oLeftBar.nSideBarInterval=window.setTimeout(function(){LeftBar.adjustSideBarHorizontalIE6();},300);});}}};}catch (ex){}



/************ File: JHeader.js ************/
try { var IsMobile=((new Cookie("mobile")).getCookie()=="1");var HeaderLogin={username:"",clubGUID:"",showLoginPopup:function(event){if(ServiceID==120){cr(event,"ClickHeadline",956354);}OpenClubPopup({type:"login",onLoginSuccess:function(){if(typeof bReloadOnLogin!="undefined"&&bReloadOnLogin){document.location.reload();}else{HeaderLogin.onLoginSuccess();}}});},showExpiredPasswordPopup:function(event,onPasswordChange){OpenClubPopup({type:"password_expired",onLoginSuccess:function(){if(onPasswordChange){onPasswordChange();}}});},onLoginSuccess:function(){HeaderLogin.getNMC();$.nyroModalRemove();$("#HeaderUsername,#HeaderPassword").val("");var sNickName=(new Cookie("Netvision_name")).getCookie();$("#headerUserName").html((typeof sNickName=="undefined"||sNickName==="")?(new Cookie("Netvision_user")).getCookie():utf8_decode(sNickName.replace("+"," ")));$("#HeaderAnonymous").hide();$("#HeaderLoggedIn").show();HeaderLogin.reloadForumsSearch();},onLoginFailure:function(){$("#HeaderAnonymous").show();$("#headerNMC").html(0);$("#HeaderLoggedIn").hide();HeaderLogin.reloadForumsSearch();},reloadForumsSearch:function(){var searchForumsIframe=document.getElementById("searchForumsIframe");if(searchForumsIframe!==null){searchForumsIframe.src=searchForumsIframe.src;}},isLoggedIn:function(){if(typeof (new Cookie("ClubGuidID")).getCookie()!="undefined"&&typeof (new Cookie("Netvision_user")).getCookie()!="undefined"){this.onLoginSuccess();}else{this.onLoginFailure();}},goToMail:function(event){if(ServiceID==120){cr(event,"ClickHeadline",956356);}},disconnect:function(){if(ServiceID==120){cr(event,"ClickHeadline",956355);}$.ajax({type:"GET",cache:false,url:"/Common/GeneralModules/Club/ClubDisconnect.asp?IsPersonalBar=1",success:function(){if(typeof bReloadOnLogin!="undefined"&&bReloadOnLogin){document.location.reload();}else{HeaderLogin.onLoginFailure();}},error:function(){},data:{p:48}});},getNMC:function(){var sScriptURL="http://www"+sEnvironment+".nana10.co.il/Includes/CheckNewMail.asp?GetJSon=1&callback=HeaderLogin.printNMC";$.requireJs({url:sScriptURL,id:"getMailCount",callback:null});},printNMC:function(data){if(typeof (data)!="undefined"&&data.nmc>0){$("#headerNMC").html("("+data.nmc+")").show();$("#headerNMCEnv").show();}},ajaxLogin:function(){var usrname=$("#HeaderUsername").val().trim();var pwd=$("#HeaderPassword").val().trim();if(usrname&&pwd){document.forms.HeaderLoginForm.submit();window.onClubLoginSuccess=HeaderLogin.onLoginSuccess;}},ajaxLoginError:function(){}};function OpenClubPopup(oSettings){var sURL="";if(typeof oSettings!="undefined"){if(typeof oSettings.type!="undefined"){sURL="http://common"+sEnvironment+".nana10.co.il";switch(oSettings.type){case"login":sTitle="רישום / כניסה";sIframeUrl="http://club"+sEnvironment+".nana10.co.il/form.asp?s=8&popup=1";sURL+="/Club/NyroPopup.asp?width=230&height=270&title="+escape(sTitle);if(typeof oSettings.onLoginSuccess=="function"){onClubLoginSuccess=oSettings.onLoginSuccess;}break;case"pwd_reminder":sTitle="שיחזור סיסמה";sIframeUrl="http://club"+sEnvironment+".nana10.co.il/form.asp?s=7&popup=1";sURL+="/Club/NyroPopup.asp?width=230&height=270&title="+sTitle;break;case"password_expired":sTitle="החלפת סיסמה";sUsername=RequestQueryString("Username");sIframeUrl="http://club"+sEnvironment+".nana10.co.il/form.asp?s=13";if(typeof (sUsername)!="undefined"&&sUsername!=""){sIframeUrl+="&Username="+sUsername;}sURL+="/Club/NyroPopup.asp?width=230&height=270&title="+sTitle;if(typeof oSettings.onLoginSuccess=="function"){window.onClubLoginSuccess=oSettings.onLoginSuccess;}break;}}else{if(typeof oSettings.url!="undefined"){sURL=oSettings.url;}}if(typeof oSettings.returnurl!="undefined"){(new Cookie("ReturnURL")).setCookie(oSettings.returnurl,60,"nana10.co.il");}sURL+="&target="+escape(sIframeUrl);jQuery.nyroModalManual({modal:true,ltr:false,padding:0,width:232,height:321,type:"iframe",url:sURL,bgColor:"#FFFFFF",endRemove:(typeof oSettings.onClosePopup=="function")?oSettings.onClosePopup:null});}}function onClubLoginSuccess(){}function ShowHideRememberMeText(DivID){$("#"+DivID).toggle();}function SearchImageFlip(oSearchOption,nFbs,isGoogleSearch){oSearchOption=$(oSearchOption);var currImg=$(".SearchByImg",oSearchOption);if(currImg.length>0){if(typeof sFormId=="undefined"){sFormId="HeaderSearchBar";}var SearchForm=document.getElementById(sFormId);SearchForm.action=oSearchOption.attr("href");$(".SearchByImg",SearchForm).removeClass("HeaderRadioOn");$(".SearchByImg",SearchForm).addClass("HeaderRadioOff");currImg.removeClass("HeaderRadioOff");currImg.addClass("HeaderRadioOn");if(isGoogleSearch==1){$("#q").attr("autocomplete","off");$("#q").gcomplete({winWidth:231});}else{$("#q").gcompleteStop();$("#q").attr("autocomplete","on");$("#q").bind("blur",function(){HeaderSearch_OnBlur($("#q"));});$("#q").bind("focus",function(){HeaderSearch_OnFocus($("#q"));});$("#q").bind("keypress",function(){HeaderSearch_OnKeypress($("#q"));});}$("#fbs").val(nFbs);}return false;}function SubmitHeaderSearch(oForm){var oSearchField=$(".TopSearchTextInput",oForm);if(oSearchField.length>0){CleanKeywords(oSearchField[0]);if(oSearchField.val()<2){alert("מילת חיפוש צריכה להכיל לפחות 2 תווים חוקיים");return false;}return true;}else{return false;}}function HeaderSearch_OnFocus(el){if($(el).attr("DefaultCleaned")!="1"){el.value="";$(el).attr("DefaultCleaned","1");}}function HeaderSearch_OnBlur(el){if(el.value===""){el.value="חיפוש";$(el).attr("DefaultCleaned","0");}}function HeaderSearch_OnKeypress(el){if(event.keyCode==13&&$(el).val().length>2&&$(el).val()!="חיפוש"){document.getElementById("HeaderSearchBar").submit();}}function CheckNanaInIFrame(){var bRedirect=false;if(window!=window.top){try{var sHost=window.top.document.location.host;var sNanaDomain=document.domain;if(sHost.substring(sHost.length-sNanaDomain.length)!=sNanaDomain){bRedirect=true;}}catch(ex){bRedirect=true;}}if(bRedirect){document.location.href="/common/Messages/NanaInIframe.asp?url="+escape(document.location.href);}}function setAsHomePage(){document.body.style.behavior="url(#default#homepage)";document.body.setHomePage(window.location.href);}var oLook={sColorCookieName:"naColor",sCSSLinkID:"CustomCSS",defaultColor:"b5130e",getCssPersonalization:function(sColor,bForceColorReport){if(typeof sPermanentPersonalizationColor!="undefined"){sColor=sPermanentPersonalizationColor;}if(!sColor){sColor=(new Cookie(this.sColorCookieName)).getCookie();}if(sColor){this.loadCSS(sColor);this.reportColorChoice(sColor,bForceColorReport);}else{this.reportColorChoice(this.defaultColor,bForceColorReport);}},reportColorChoice:function(sColor,bForceColorReport){var sReportStatusCookie="naColorsReported";if(IsCookiesEnabled()){var sGUID=getPersonalizationGUID();var sReportCookie=new Cookie(sReportStatusCookie);if(sGUID&&(!sReportCookie.getCookie()||bForceColorReport)){var dNow=new Date();var oImage=new Image();oImage.src=naSTATISTICS_COLLECT_URL+"ObjectName=NanaColors&Color="+sColor+"&UserGUID="+sGUID+"&Date="+dNow.toString();delete oImage;sReportCookie.setCookie(1,1440,"nana10.co.il","/");}}},setCssPersonalization:function(sColor){if(sColor==this.defaultColor){(new Cookie(this.sColorCookieName)).setCookie("",-1,"nana10.co.il");}else{(new Cookie(this.sColorCookieName)).setCookie(sColor,525600,"nana10.co.il");}this.getCssPersonalization(sColor,true);},loadCSS:function(sColor){var oOldCSS=$("#"+this.sCSSLinkID).attr("id","");var sLink=(sEnvironment=="")?ImagesFQDN:("http://stylesroot"+sEnvironment+".nana10.co.il");sLink+="/Partner48/Common/Styles/Personalization/"+sColor+".css";var fileref=document.createElement("link");fileref.setAttribute("rel","stylesheet");fileref.setAttribute("type","text/css");fileref.setAttribute("href",sLink);fileref.setAttribute("id",this.sCSSLinkID);$("head").append(fileref);oOldCSS.remove();}};function InitHeader(){$(document).ready(function(){var searchScopeParam="1";if(location.href.indexOf("DefaultUTF8")>-1){searchScopeParam="2";}else{if(location.href.indexOf("GoogleUTF8")>-1){searchScopeParam="3";}}var sSearchOptionID="SearchOption_"+searchScopeParam;$("#"+sSearchOptionID).click();StartBannerRefreshJob();HeaderLogin.isLoggedIn();if($.browser.msie&&$.browser.version<7){CorrectAllPNG();}});}function test(){alert(window.pageTracker);}function onError(){}function ResizeContainer(){}function ShowEar(){}function IE8DownloadSuggest(){return false;if($.browser.msie&&parseInt(jQuery.browser.version,10)<8){$("#IEDownloadStripContainer").hide();var oIECookie=new Cookie("ie8");if(typeof oIECookie.getCookie()=="undefined"){oIECookie.setCookie("1",60*24*7,"nana10.co.il");}}return false;}}catch (ex){}



/************ File: AC_RunActiveContent.js ************/
try { function AC_AddExtension(src,ext){if(src.substring(src.length-4)==ext){return src;}else{if(src.indexOf("?")!=-1){return src.replace(/\?/,ext+"?");}else{return src+ext;}}}function AC_Generateobj(objAttrs,params,embedAttrs){var str="<object ";for(var i in objAttrs){str+=i+'="'+objAttrs[i]+'" ';}str+=">";for(var i in params){str+='<param name="'+i+'" value="'+params[i]+'" /> ';}str+="<embed ";for(var i in embedAttrs){str+=i+'="'+embedAttrs[i]+'" ';}str+=" ></embed></object>";document.write(str);}function AC_FL_RunContent(){var ret=AC_GetArgs(arguments,".swf","movie","clsid:d27cdb6e-ae6d-11cf-96b8-444553540000","application/x-shockwave-flash");AC_Generateobj(ret.objAttrs,ret.params,ret.embedAttrs);}function AC_SW_RunContent(){var ret=AC_GetArgs(arguments,".dcr","src","clsid:166B1BCA-3F9C-11CF-8075-444553540000",null);AC_Generateobj(ret.objAttrs,ret.params,ret.embedAttrs);}function AC_GetArgs(args,ext,srcParamName,classid,mimeType){var ret=new Object();ret.embedAttrs=new Object();ret.params=new Object();ret.objAttrs=new Object();for(var i=0;i<args.length;i=i+2){var currArg=args[i].toLowerCase();switch(currArg){case"classid":break;case"pluginspage":ret.embedAttrs[args[i]]=args[i+1];break;case"src":case"movie":args[i+1]=AC_AddExtension(args[i+1],ext);ret.embedAttrs.src=args[i+1];ret.params[srcParamName]=args[i+1];break;case"onafterupdate":case"onbeforeupdate":case"onblur":case"oncellchange":case"onclick":case"ondblClick":case"ondrag":case"ondragend":case"ondragenter":case"ondragleave":case"ondragover":case"ondrop":case"onfinish":case"onfocus":case"onhelp":case"onmousedown":case"onmouseup":case"onmouseover":case"onmousemove":case"onmouseout":case"onkeypress":case"onkeydown":case"onkeyup":case"onload":case"onlosecapture":case"onpropertychange":case"onreadystatechange":case"onrowsdelete":case"onrowenter":case"onrowexit":case"onrowsinserted":case"onstart":case"onscroll":case"onbeforeeditfocus":case"onactivate":case"onbeforedeactivate":case"ondeactivate":case"type":case"codebase":ret.objAttrs[args[i]]=args[i+1];break;case"width":case"height":case"align":case"vspace":case"hspace":case"class":case"title":case"accesskey":case"name":case"id":case"tabindex":ret.embedAttrs[args[i]]=ret.objAttrs[args[i]]=args[i+1];break;default:ret.embedAttrs[args[i]]=ret.params[args[i]]=args[i+1];}}ret.objAttrs.classid=classid;if(mimeType){ret.embedAttrs.type=mimeType;}return ret;}function RewriteObjectElement(oElement){try{if(oElement){oElement.outerHTML=oElement.outerHTML;}}catch(ex){}}}catch (ex){}



/************ File: pngfix.js ************/
try { function CorrectAllPNG(){for(var i=0;i<document.images.length;i++){var img=document.images[i];var imgName=img.src.toUpperCase();if(imgName.substring(imgName.length-3,imgName.length)=="PNG"){CorrectSinglePng(img);i=i-1;}}}function CorrectSinglePng(oImg){var imgName=oImg.src.toUpperCase();if(imgName==null){return ;}var oTempImg=new Image();oTempImg.src=oImg.src;var imgID=(oImg.id)?oImg.id:"";var imgClass=(oImg.className)?oImg.className:"";var imgTitle=(oImg.title)?oImg.title:oImg.alt;var imgStyle="display:inline-block;"+oImg.style.cssText;var imgOnclick=oImg.onclick;if(oImg.align=="left"){imgStyle="float:left;"+imgStyle;}if(oImg.align=="right"){imgStyle="float:right;"+imgStyle;}if(oImg.parentElement!=null){if(oImg.parentElement.href){imgStyle="cursor:hand;"+imgStyle;}}var oNewImage=document.createElement("span");oNewImage.onclick=imgOnclick;oNewImage.id=imgID;oNewImage.className=imgClass;oNewImage.title=imgTitle;oNewImage.style.cssText="width:"+oTempImg.getAttribute("width")+"px; height:"+oTempImg.getAttribute("height")+"px;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+oImg.src+"', sizingMethod='scale');"+imgStyle;oImg.replaceNode(oNewImage);}}catch (ex){}



/************ File: JSlider.js ************/
try { var JSlider={sliderShowNext:function(sID,count){stepcarousel.stepBy(sID,count);},sliderShowPrevious:function(sID,count){stepcarousel.stepBy(sID,0-count);},SetLeftDirection:function(variable,bAllow){if(variable!=null){variable=bAllow;}},sliderDrawNavigateControls:function(totalPages,iCurPage,imgMoveRight,imgMoveLeft){if(iCurPage>0){imgMoveRight.src=imgMoveRight.src.replace(/scroll_right_disabled/i,"scroll_right_enabled");}else{imgMoveRight.src=imgMoveRight.src.replace(/scroll_right_enabled/i,"scroll_right_disabled");}if(iCurPage<(totalPages-1)){imgMoveLeft.src=imgMoveLeft.src.replace(/scroll_left_disabled/i,"scroll_left_enabled");}else{imgMoveLeft.src=imgMoveLeft.src.replace(/scroll_left_enabled/i,"scroll_left_disabled");}},sliderSetDotsSrc:function(sID,sSender,iCurPage,totalPages){try{for(i=0;i<=totalPages;i++){if(i==whitePos){document.getElementById(sID+"_dot_"+i).src=document.getElementById(sID+"_dot_"+i).src.replace(/black_dot/i,"white_dot");}else{document.getElementById(sID+"_dot_"+i).src=document.getElementById(sID+"_dot_"+i).src.replace(/white_dot/i,"black_dot");}}}catch(e){}},sliderSetScrollers:function(sID,sSender,iDisplay,elmPositionID,elmTotalID,imgMoveRight,imgMoveLeft,elmCurPage){var totalPages=0;var tmp;var iPosition=parseInt(elmPositionID.innerHTML);var iTotal=parseInt(elmTotalID.innerHTML);var iCurPage=parseInt(elmCurPage.innerHTML);totalPages=parseInt(iTotal/iDisplay);totalPages+=((iTotal%iDisplay)!=0)?1:0;if((iCurPage==(totalPages-1)&&sSender=="left")||(iCurPage==0&&sSender=="right")){return false;}if(iCurPage!=null){if(sSender=="left"&&iCurPage<totalPages){whitePos=parseInt(elmCurPage.innerHTML)+1;}else{if(sSender=="right"&&iCurPage>0){whitePos=parseInt(elmCurPage.innerHTML)-1;}else{return false;}}}whitePos=(whitePos>totalPages)?totalPages:whitePos;whitePos=(whitePos<0)?0:whitePos;elmCurPage.innerHTML=whitePos;if(sSender=="right"){if(iPosition+(2*iDisplay)<iTotal){JSlider.sliderShowNext(sID,iDisplay);iTotal=parseInt(elmTotalID.innerHTML);iCurPage=whitePos;JSlider.sliderSetDotsSrc(sID,sSender,iCurPage,totalPages);JSlider.sliderDrawNavigateControls(totalPages,iCurPage,imgMoveRight,imgMoveLeft);}else{tmp=iTotal-(iPosition+iDisplay-1);tmp=(tmp>iDisplay)?iDisplay:tmp;JSlider.sliderShowNext(sID,tmp);iTotal=parseInt(elmTotalID.innerHTML);iCurPage=whitePos;JSlider.sliderSetDotsSrc(sID,sSender,iCurPage,totalPages);JSlider.sliderDrawNavigateControls(totalPages,iCurPage,imgMoveRight,imgMoveLeft);}}else{if(sSender=="left"){if(iPosition-iDisplay>0){JSlider.sliderShowPrevious(sID,iDisplay);iTotal=parseInt(elmTotalID.innerHTML);iCurPage=whitePos;JSlider.sliderSetDotsSrc(sID,sSender,iCurPage,totalPages);JSlider.sliderDrawNavigateControls(totalPages,iCurPage,imgMoveRight,imgMoveLeft);}else{if(iPosition!=1){JSlider.sliderShowPrevious(sID,iPosition);iTotal=parseInt(elmTotalID.innerHTML);iCurPage=whitePos;JSlider.sliderSetDotsSrc(sID,sSender,iCurPage,totalPages);JSlider.sliderDrawNavigateControls(totalPages,iCurPage,imgMoveRight,imgMoveLeft);}}}}}};var oNanaSlider={sliders:[],slide:function(instanceId,iDirection){if(typeof (this.sliders[instanceId])=="undefined"){this.init(instanceId);}if(this.sliders[instanceId].working==true){return ;}var sSliderId="slider"+instanceId;var oSlider=this.sliders[instanceId];var oCfg=oSlider.cfg;var iDelta=oCfg.length*((1+iDirection)/2)-oCfg.position*iDirection-oCfg.frameLength*((1-iDirection)/2);var iPanels2Scroll=(iDelta<oCfg.frameLength)?iDelta:oCfg.frameLength;oCfg.position+=iPanels2Scroll*iDirection;var sNewRight=(parseInt(oSlider.strip.css("right"))+(iDirection*iPanels2Scroll*oCfg.itemWidth*(-1)))+"px";this.sliders[instanceId].working=true;var that=this;oSlider.strip.animate({right:sNewRight},"slow",function(){that.sliders[instanceId].working=false;oSlider.strip.css("right",sNewRight);});oSlider.frameposition+=iDirection;var CurrDot=$("#"+instanceId+"_dot_"+oSlider.frameposition);var PrevDot=$("#"+instanceId+"_dot_"+(oSlider.frameposition-iDirection));if(CurrDot.length>0){CurrDot.attr("src",CurrDot.attr("src").replace(/black_dot/g,"white_dot"));}if(PrevDot.length>0){PrevDot.attr("src",CurrDot.attr("src").replace(/white_dot/g,"black_dot"));}if((oCfg.position-oCfg.frameLength)==0){$("#"+sSliderId+" ."+oCfg.rightArrowClass).hide();$("#"+sSliderId+" ."+oCfg.rightDArrowClass).show();}else{$("#"+sSliderId+" ."+oCfg.rightArrowClass).show();$("#"+sSliderId+" ."+oCfg.rightDArrowClass).hide();}if(iDirection>0&&(oCfg.length-oCfg.position)<=0){$("#"+sSliderId+" ."+oCfg.leftArrowClass).hide();$("#"+sSliderId+" ."+oCfg.leftDArrowClass).show();}else{$("#"+sSliderId+" ."+oCfg.leftArrowClass).show();$("#"+sSliderId+" ."+oCfg.leftDArrowClass).hide();}},init:function(instanceId){var oSlider=new m_slider(instanceId,eval("oSliderCfg"+instanceId));var oCfg=oSlider.cfg;var sSliderId="slider"+instanceId;var oPanels=$("#"+sSliderId+" ."+oCfg.panelClass);oSlider.strip=$("#strip"+instanceId);if(oCfg.initImages){$("img",oSlider.strip).each(function(){if(this.src=="about:blank"){this.src=this.title;this.title="";}});}oCfg.length=oPanels.length;oCfg.width=parseInt($("#"+sSliderId).attr("offsetWidth"));oCfg.itemWidth=parseInt(oPanels.attr("offsetWidth"));if(oCfg.frameLength<1){oCfg.frameLength=parseInt(oCfg.width/oCfg.itemWidth);}oCfg.position=oCfg.frameLength;oSlider.strip.css("width",(oCfg.length*oCfg.itemWidth)+"px");oNanaSlider.sliders[instanceId]=oSlider;}};function m_slider(instanceId,oSliderCfg){this.instanceId=instanceId;this.strip=null;this.frameposition=0;this.cfg={length:0,frameLength:0,width:400,itemWidth:100,position:4,panelClass:"sldpnl",stripClass:"sldstrip",leftArrowClass:"sldleft",leftDArrowClass:"sldleftd",rightArrowClass:"sldright",rightDArrowClass:"sldrightd",initImages:false};$.extend(this.cfg,oSliderCfg);}}catch (ex){}



/************ File: General.js ************/
try { var NanaFB={silhouette_path:"http://static.ak.fbcdn.net/pics/q_silhouette.gif",naFBC:"naFB",setConnectedCookie:function(nStatus){var oCookie=new Cookie(NanaFB.naFBC);oCookie.setCookie(nStatus,60*24*365,"nana10.co.il");},fbUserDetails:{Sex:0,Age:0,Name:"",Pic:"",PicSquare:"",PicBig:"",PicSmall:""},storeUserDetails:function(){if(typeof (UpdateUserDataCookie)!="undefined"){UpdateUserDataCookie({source:"fb",age:NanaFB.fbUserDetails.Age,sex:NanaFB.fbUserDetails.Sex});}},getUserPicture:function(size){if(typeof (size)=="undefined"){size=0;}switch(size){case 0:return NanaFB.fbUserDetails.PicSquare;break;case 1:return NanaFB.fbUserDetails.PicSmall;break;case 2:return NanaFB.fbUserDetails.Pic;break;case 3:return NanaFB.fbUserDetails.PicBig;break;default:return NanaFB.fbUserDetails.PicSquare;}},ifConnected:function(OnConnectedCallback,OnDisconnectedCallback){FB.Connect.ifUserConnected(function(OnConnectedCallback){return function(uid){if(typeof (uid)=="undefined"||uid==null){OnDisconnectedCallback();}NanaFB.setConnectedCookie(1);FB.JSON.parse=function(text,reviver){var j;function walk(a,c){var b,d,e=a[c];if(e&&typeof e==="object"){for(b in e){if(Object.hasOwnProperty.call(e,b)){d=walk(e,b);if(d!==undefined){e[b]=d;}else{delete e[b];}}}}return reviver.call(a,c,e);}var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;cx.lastIndex=0;if(cx.test(text)){text=text.replace(cx,function(a){return"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4);});}var replacedText=text.replace(/\\\'/g,"'");replacedText=replacedText.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"");if(/^[\],:{}\s]*$/.test(replacedText)){j=eval("("+text+")");return typeof reviver==="function"?walk({"":j},""):j;}throw new SyntaxError("JSON.parse");};try{var fql="SELECT birthday_date, sex, pic, pic_square, pic_big, pic_small, name FROM user WHERE uid  = "+uid;FB.Facebook.apiClient.fql_query(fql,function(user_info){if(typeof (user_info)!="undefined"&&user_info!=null&&user_info.length==1){NanaFB.fbUserDetails.PicSquare=user_info[0].pic_square;NanaFB.fbUserDetails.PicBig=user_info[0].pic_big;NanaFB.fbUserDetails.PicSmall=user_info[0].pic_small;NanaFB.fbUserDetails.Pic=user_info[0].pic;NanaFB.fbUserDetails.Name=user_info[0].name;var uSex=user_info[0].sex;var ubirthday=user_info[0].birthday_date;try{if(typeof (uSex)!="undefined"&&uSex!=null){if(uSex.toLowerCase()=="male"){NanaFB.fbUserDetails.Sex=3;}if(uSex.toLowerCase()=="female"){NanaFB.fbUserDetails.Sex=2;}}}catch(err){}try{if(typeof (ubirthday)!="undefined"&&ubirthday!=null){var tmpDate=new Date(ubirthday);if(tmpDate!=NaN){NanaFB.fbUserDetails.Age=Math.floor((new Date().valueOf()-tmpDate.valueOf())/1000/60/60/24/365);}}}catch(err){}}NanaFB.storeUserDetails();});}catch(err){NanaFB.storeUserDetails();}OnConnectedCallback(uid);};}(OnConnectedCallback),function(OnDisconnectedCallback){return function(){NanaFB.setConnectedCookie(0);OnDisconnectedCallback();};}(OnDisconnectedCallback));},api_key:"9d62860584ba3de12449ea1920102daa",channel_path:"http://common"+sEnvironment+".nana10.co.il/PersonalBar/Widget/Facebook/xd_receiver.htm",ShareCurrentUrl:function(){FB_RequireFeatures(["Api"],function(){FB.Facebook.init(NanaFB.api_key,NanaFB.channel_path);NanaFB.ifConnected(NanaFB.ShowShareCurrentUrlPopUp,function(){FB.Connect.requireSession(function(exeption){if(typeof (exeption)=="undefined"){NanaFB.ShowShareCurrentUrlPopUp();}});});});},ShowShareCurrentUrlPopUp:function(id,Allowed){var actorid=RequestQueryString("actorid");var currentUrl=document.location.href.replace(/(&|\?)fbshare=true/gi,"");if(actorid!=null&&actorid.length>0){var rex=new RegExp("(&|\\?)actorid="+actorid,"gi");currentUrl=currentUrl.replace(rex,"");}var ShareItUrl=currentUrl+((currentUrl.indexOf("?")==-1)?"?fbshare=true":"&fbshare=true");var attachment={href:currentUrl,category:{text:HebrewServiceName,href:ServiceUrl},properties:{"קטגוריה":{text:HebrewServiceName,href:ServiceUrl}},media:new Array()};var m=document.getElementsByTagName("meta");for(var i in m){if(m[i].name!=null&&m[i].name.toLowerCase()=="title"){attachment.name=m[i].content;}if(m[i].name!=null&&m[i].name.toLowerCase()=="description"){attachment.description=m[i].content;}}var l=document.getElementsByTagName("link");for(var i in l){if(l[i].rel!=null&&l[i].rel.toLowerCase()=="image_src"){attachment.media.push({type:"image",src:l[i].href,href:currentUrl});}}if(actorid!=null&&actorid.length>0){FB.Connect.streamPublish("",attachment,[{text:"Share it",href:ShareItUrl}],"","",null,false,actorid);}else{FB.Connect.streamPublish("",attachment,[{text:"Share it",href:ShareItUrl}]);}}};if(RequestQueryString("fbshare")=="true"){window.bRequireFacebook=true;$(function(){NanaFB.ShareCurrentUrl();});}}catch (ex){}



/************ File: JsonParse.js ************/
try { if(!this.JSON){JSON=function(){function f(n){return n<10?"0"+n:n;}Date.prototype.toJSON=function(key){return this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z";};var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapeable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},rep;function quote(string){escapeable.lastIndex=0;return escapeable.test(string)?'"'+string.replace(escapeable,function(a){var c=meta[a];if(typeof c==="string"){return c;}return"\\u"+("0000"+(+(a.charCodeAt(0))).toString(16)).slice(-4);})+'"':'"'+string+'"';}function str(key,holder){var i,k,v,length,mind=gap,partial,value=holder[key];if(value&&typeof value==="object"&&typeof value.toJSON==="function"){value=value.toJSON(key);}if(typeof rep==="function"){value=rep.call(holder,key,value);}switch(typeof value){case"string":return quote(value);case"number":return isFinite(value)?String(value):"null";case"boolean":case"null":return String(value);case"object":if(!value){return"null";}gap+=indent;partial=[];if(typeof value.length==="number"&&!(value.propertyIsEnumerable("length"))){length=value.length;for(i=0;i<length;i+=1){partial[i]=str(i,value)||"null";}v=partial.length===0?"[]":gap?"[\n"+gap+partial.join(",\n"+gap)+"\n"+mind+"]":"["+partial.join(",")+"]";gap=mind;return v;}if(rep&&typeof rep==="object"){length=rep.length;for(i=0;i<length;i+=1){k=rep[i];if(typeof k==="string"){v=str(k,value,rep);if(v){partial.push(quote(k)+(gap?": ":":")+v);}}}}else{for(k in value){if(Object.hasOwnProperty.call(value,k)){v=str(k,value,rep);if(v){partial.push(quote(k)+(gap?": ":":")+v);}}}}v=partial.length===0?"{}":gap?"{\n"+gap+partial.join(",\n"+gap)+"\n"+mind+"}":"{"+partial.join(",")+"}";gap=mind;return v;}}return{stringify:function(value,replacer,space){var i;gap="";indent="";if(space){if(typeof space==="number"){for(i=0;i<space;i+=1){indent+=" ";}}else{if(typeof space==="string"){indent=space;}}}rep=replacer;if(replacer&&typeof replacer!=="function"&&(typeof replacer!=="object"||typeof replacer.length!=="number")){throw new Error("JSON.stringify");}return str("",{"":value});},parse:function(text,reviver){var j;function walk(holder,key){var k,v,value=holder[key];if(value&&typeof value==="object"){for(k in value){if(Object.hasOwnProperty.call(value,k)){v=walk(value,k);if(v!==undefined){value[k]=v;}else{delete value[k];}}}}return reviver.call(holder,key,value);}cx.lastIndex=0;if(cx.test(text)){text=text.replace(cx,function(a){return"\\u"+("0000"+(+(a.charCodeAt(0))).toString(16)).slice(-4);});}if(/^[\],:{}\s]*$/.test(text.replace(/\\["\\\/bfnrtu]/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,""))){j=eval("("+text+")");return typeof reviver==="function"?walk({"":j},""):j;}throw new SyntaxError("JSON.parse");}};}();}}catch (ex){}


