
function mouseoverLink(obj){obj.style.textDecoration='underline';return true;}
function mouseoutLink(obj){obj.style.textDecoration='';return true;}
function GetXmlHttpObject(){var xmlHttp=null;try{xmlHttp=new XMLHttpRequest();}catch(e){try{xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");}catch(e){xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");}}
return xmlHttp;}
function fullHeight(){var xScroll,yScroll;if(window.innerHeight&&window.scrollMaxY){xScroll=window.innerWidth+window.scrollMaxX;yScroll=window.innerHeight+window.scrollMaxY;}else if(document.body.scrollHeight>document.body.offsetHeight){xScroll=document.body.scrollWidth;yScroll=document.body.scrollHeight;}else{xScroll=document.body.offsetWidth;yScroll=document.body.offsetHeight;}
var windowWidth,windowHeight;if(self.innerHeight){if(document.documentElement.clientWidth){windowWidth=document.documentElement.clientWidth;}else{windowWidth=self.innerWidth;}
windowHeight=self.innerHeight;}else if(document.documentElement&&document.documentElement.clientHeight){windowWidth=document.documentElement.clientWidth;windowHeight=document.documentElement.clientHeight;}else if(document.body){windowWidth=document.body.clientWidth;windowHeight=document.body.clientHeight;}
if(yScroll<windowHeight){pageHeight=windowHeight;}else{pageHeight=yScroll;}
if(xScroll<windowWidth){pageWidth=xScroll;}else{pageWidth=windowWidth;}
return[pageWidth,pageHeight];}
function getScrollOffsets(){return returnOffsets(window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft,window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop);}
function returnOffsets(l,t){var result=[l,t];result.left=l;result.top=t;return result;}
function getHeight(){var b=browserType();return document.body.clientHeight||document.documenElement.clientHeight||window.innerHeight;}
function getWidth(){var b=browserType();return document.body.clientWidth||document.documenElement.clientWidth||window.innerWidth;}
function browserType(){if(!!(window.attachEvent&&!window.opera))
return'IE';if(!!window.opera)
return'Opera';if(navigator.userAgent.indexOf('AppleWebKit/')>-1)
return'Webkti';if(navigator.userAgent.indexOf('Gecko')>-1&&navigator.userAgent.indexOf('KHTML')==-1)
return'Gecko';if(!!navigator.userAgent.match(/Apple.*Mobile.*Safari/))
return'MobileSafari';return'';}
function isChrome(){if(!!navigator.userAgent.match(/Chrome/))
return true;return false;}
function getOS(){if(navigator.appVersion.indexOf("Win")!=-1)return"Windows";if(navigator.appVersion.indexOf("Mac")!=-1)return"MacOS";if(navigator.appVersion.indexOf("X11")!=-1)return"UNIX";if(navigator.appVersion.indexOf("Linux")!=-1)return"Linux";return"Unknown OS";}
function isArray(obj){if(obj.constructor.toString().indexOf("Array")==-1)
return false;else
return true;}
function setCookie(c_name,value,expiredays)
{var exdate=new Date();exdate.setDate(exdate.getDate()+expiredays);document.cookie=c_name+"="+escape(value)+((expiredays==null)?"":";expires="+exdate.toGMTString());}
function getCookie(c_name){if(document.cookie.length>0){c_start=document.cookie.indexOf(c_name+"=");if(c_start!=-1){c_start=c_start+c_name.length+1;c_end=document.cookie.indexOf(";",c_start);if(c_end==-1)c_end=document.cookie.length;return unescape(document.cookie.substring(c_start,c_end));}}
return"";}
function cookieExists(c_name){if(document.cookie.length>0){c_start=document.cookie.indexOf(c_name+"=");if(c_start!=-1){return true;}}
return false;}
function getHash(){if(!location.search)return location.hash.substr(1);var index=location.href.indexOf('#');return(index==-1?'':location.href.substr(index+1));}
function fromStrDay(intStr){var str=intStr+"";str=str.replace("1","Su");str=str.replace("2","M");str=str.replace("3","Tu");str=str.replace("4","W");str=str.replace("5","Th");str=str.replace("6","F");str=str.replace("7","Sa");return str;}
function minToTime(time){var hours=time/60;var hours=Math.floor(hours);var min=time-hours*60;var fin=checkHours(hours)+":"+doubleDigit(min);return fin;}
function doubleDigit(num){if(num>=10)
return num;return"0"+num;}
function checkHours(hour){if(hour<=12)
return hour;return hour-12;}
function formatPrice(p){var num=new Number(p);return num.toFixed(2);}