//29.06.2010 var AXS_SITE_ROOT='../'; var AXS_PATH_CMS='./'; var AXS_PATH_EXT=false; axs={ SITE_ROOT:'../', PATH_CMS:'./', PATH_EXT:false, init:function() { var b=document.getElementsByTagName('body')[0];// if (b) { b.className=(b.className) ? b.className+' javascript':'javascript'; } }, // addEvent:function(obj,type,fn){//addEvent function from http://www.quirksmode.org/blog/archives/2005/10/_and_the_winner_1.html if (obj.addEventListener) obj.addEventListener(type,fn,false); else if (obj.attachEvent) { obj["e"+type+fn]=fn; obj[type+fn]=function() { obj["e"+type+fn](window.event); } obj.attachEvent("on"+type,obj[type+fn]); } }, links_action:function() {// var links=document.getElementsByTagName('a'); for (var i = 0; i window_open:function() { //Create the new window // Change "_blank" to something like "newWindow" to load all links in the same new window this.window_open_ref=window.open(this.getAttribute('href'), '_blank'); this.window_open_ref.focus(); return false; }, // window_popup:function() { // Change "_blank" to something like "newWindow" to load all links in the same new window //this.window_popup=window.open(this.getAttribute('href'), '_blank'); this.window_popup_ref=window.open(this.getAttribute('href'), 'axs_popup', 'scrollbars=1,location=0,resizable=1,toolbar=0,status=1,width=750,height=500,top=50,left=40'); this.window_popup_ref.focus(); return false; }, // window_resize:function(pad_t, pad_r, pad_b, pad_l, max_width) { //top, right, bottom, left if (window.name!='axs_popup') return; if (pad_l==0) pad_l=pad_r; if (pad_b==0) pad_b=pad_t; window.moveTo(pad_l, pad_t); var w=screen.width-(pad_l+pad_r); if (max_width>0) { if (w>max_width) w=max_width; } window.resizeTo(w, screen.height-(pad_t+pad_b)); }, // style_get:function(el, cssprop) { if (el.currentStyle) return el.currentStyle[cssprop]; //IE else if (document.defaultView && document.defaultView.getComputedStyle) return document.defaultView.getComputedStyle(el, "")[cssprop]; //Firefox else return el.style[cssprop]; //try and get inline style } // } // axs.addEvent(window, 'load', axs.links_action); //23.01.2009