var smt2fn={overrideTrackingOptions:function(b,a){for(var c in b){if(a.hasOwnProperty(c)&&a[c]){b[c]=a[c]}}},allowTrackingOnFlashObjects:function(h){var c=h.getElementsByTagName("object");for(var e=0,l=c.length;e<l;++e){var a=h.createElement("param");a.setAttribute("name","wmode");a.setAttribute("value","opaque");c[e].appendChild(a)}var g=h.getElementsByTagName("embed");for(var b=0,k=g.length;b<k;++b){g[b].setAttribute("wmode","opaque");if(!/MSIE/i.test(navigator.userAgent)){var f=g[b].cloneNode(true);g[b].parentNode.replaceChild(f,g[b])}}},log:function(a,b){if(!window.console){return false}switch(a){case"log":console.log(b);break;case"info":console.info(b);break;case"error":console.error(b);break;default:console.log(b);break}},onDOMload:function(c){if(arguments.callee.done){return}arguments.callee.done=true;if(document.addEventListener){document.addEventListener("DOMContentLoaded",c,false)}else{if(document.attachEvent){try{document.write("<script id=__ie_onload defer=true src=//:><\/script>");var a=document.getElementById("__ie_onload");a.onreadystatechange=function(){if(this.readyState==="complete"){c()}}}catch(b){}}else{this.addEvent(window,"load",c)}}},reloadPage:function(){window.location.replace(window.location.href)},doScroll:function(b){var c=this.getWindowOffset();var a=Math.round(b.xpos-b.width)+b.width/4;var d=Math.round(b.ypos-b.height)+b.height/4;window.scrollBy(a-c.x,d-c.y)},getWindowSize:function(){var c=document;var a=(window.innerWidth)?window.innerWidth:(c.documentElement&&c.documentElement.clientWidth)?c.documentElement.clientWidth:(c.body&&c.body.clientWidth)?c.body.clientWidth:0;var b=(window.innerHeight)?window.innerHeight:(c.documentElement&&c.documentElement.clientHeight)?c.documentElement.clientHeight:(c.body&&c.body.clientHeight)?c.body.clientHeight:0;return{width:a,height:b}},getWindowOffset:function(){var b=document;var a=(window.pageXOffset)?window.pageXOffset:(b.documentElement&&b.documentElement.scrollLeft)?b.documentElement.scrollLeft:(b.body&&b.body.scrollLeft)?b.body.scrollLeft:0;var c=(window.pageYOffset)?window.pageYOffset:(b.documentElement&&b.documentElement.scrollTop)?b.documentElement.scrollTop:(b.body&&b.body.scrollTop)?b.body.scrollTop:0;return{x:a,y:c}},getDocumentSize:function(){var c=document;var a=(window.innerWidth&&window.scrollMaxX)?window.innerWidth+window.scrollMaxX:(c.body&&c.body.scrollWidth>c.body.offsetWidth)?c.body.scrollWidth:(c.body&&c.body.offsetWidth)?c.body.offsetWidth:0;var b=(window.innerHeight&&window.scrollMaxY)?window.innerHeight+window.scrollMaxY:(c.body&&c.body.scrollHeight>c.body.offsetHeight)?c.body.scrollHeight:(c.body&&c.body.offsetHeight)?c.body.offsetHeight:0;return{width:a,height:b}},getHardcorePageSize:function(){var d=0,h=0,c=0,g=0,b=0,f=0,a=0,e=0,i=document.documentElement,l=document.body;if(window.innerHeight){d=window.innerWidth;h=window.innerHeight;if(window.scrollMaxY){d+=window.scrollMaxY;h+=window.scrollMaxY}}if(i&&i.offsetHeight){c=i.offsetWidth;g=i.offsetHeight}if(l&&l.scrollHeight){b=l.scrollWidth;f=l.scrollHeight}if(l&&l.offsetWidth){a=l.offsetWidth;e=l.offsetHeight;if(l.offsetLeft){a+=l.offsetLeft;e+=l.offsetTop}}var k=Math.max(h,g,f,e);var j=Math.max(d,c,b,a);return{width:j,height:k}},getViewPort:function(){var b=this.getWindowSize(),a=this.getDocumentSize();return{width:Math.max(b.width,a.width),height:Math.max(b.height,a.height)}},getPageSize:function(){var e=this.getWindowSize(),c=this.getDocumentSize();var a=(c.width<e.width)?e.width:c.width;var b=(c.height<e.height)?e.height:c.height;var f=document.documentElement||document.body;if(b<f.offsetHeight){b=f.offsetHeight}if(a<f.offsetWidth){a=f.offsetWidth}if(b<f.scrollHeight){b=f.scrollHeight}if(a<f.scrollWidth){a=f.scrollWidth}return{width:a,height:b}},getNextHighestDepth:function(g){var f=0;var c=0;var b=[];if(document.getElementsByTagName){b=document.getElementsByTagName("*")}else{if(g.getElementsByTagName){b=document.getElementsByTagName("*")}}for(var d=0,a=b.length;d<a;++d){if(b[d].currentStyle){c=parseFloat(b[d].currentStyle.zIndex)}else{if(window.getComputedStyle){c=parseFloat(document.defaultView.getComputedStyle(b[d],null).getPropertyValue("z-index"))}}if(c>f){f=c}}return f+1},getBase:function(){var a=window.location.href;var b=a.split("/");delete b[b.length-1];return b.join("/")},addEvent:function(c,b,a){if(c.addEventListener){c.addEventListener(b,a,false)}else{if(c.attachEvent){c["e"+b+a]=a;c[b+a]=function(){c["e"+b+a](window.event)};c.attachEvent("on"+b,c[b+a])}}},roundTo:function(a,b){var c=100;return Math.round(c*a)/c},createXMLHTTPObject:function(){var c=false;var a=[function(){return new XMLHttpRequest()},function(){return new ActiveXObject("Msxml2.XMLHTTP")},function(){return new ActiveXObject("Msxml3.XMLHTTP")},function(){return new ActiveXObject("Microsoft.XMLHTTP")}];for(var b=0;b<a.length;++b){try{c=a[b]()}catch(d){continue}break}return c},sendAjaxRequest:function(a){var b=(a.xmlhttp)?a.xmlhttp:this.createXMLHTTPObject();if(!b){return}var c=(a.postdata)?"POST":"GET";b.open(c,a.url,true);if(a.postdata){b.setRequestHeader("Content-Type","application/x-www-form-urlencoded")}b.onreadystatechange=function(){if(this.readyState==4&&typeof a.callback==="function"){a.callback(b.responseText)}};b.send(a.postdata)},widget:{findDOMElement:function(c,d){if(!c){c=window.event}var b=c.target||c.srcElement;var a=(b.id)?this.getID(b):this.getParents(b);if(a){d(a)}},getID:function(a){if(a.nodeName=="HTML"||a.nodeName=="BODY"){return null}return a.nodeName+"#"+a.id},getClass:function(a){if(a.nodeName=="HTML"||a.nodeName=="BODY"){return null}return(a.className)?a.nodeName+"."+a.className.split(" ")[0]:a.nodeName},getParents:function(c){var a=(c.id)?this.getID(c):this.getClass(c);var b=[a];while(c.parentNode){c=c.parentNode;if(c.nodeType==1){if(c.id){a=this.getID(c);b.unshift(a);return b.join(" ")}else{a=this.getClass(c);b.unshift(a)}if(c==parent){return b.join(" ")}}}return b.join(" ")}}};
