//29.11.2011 /*var AXS_SITE_ROOT='/artdepoo/'; var AXS_PATH_CMS='https://www.haus.ee/axiscms/'; var AXS_PATH_EXT='https://www.haus.ee/admin/';*/ function axs(global_name){ this.global_name=global_name; window[this.global_name]=this; var THIS=this; this.SITE_ROOT='/artdepoo/'; this.PATH_CMS='https://www.haus.ee/axiscms/'; this.PATH_EXT='https://www.haus.ee/admin/'; var e=document.getElementsByTagName('html')[0];// if (e) { e.className=(e.className) ? e.className+' javascript':'javascript'; } this.add_event=function(obj,type,fn){//add_event 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]); } }// this.get=function(key,query_string){ if (!query_string) query_string=window.location.href; if (query_string.search(/\?/)) query_string=query_string.slice(query_string.indexOf('?')+1); query_string=query_string.split('&'); var vars=[],hash; for(var i=0; i this.jquery_init=function(load){// if (typeof($)!='function'){ var el=document.createElement('script'); el.type="text/javascript"; el.src="?popup=jquery.js"; document.getElementsByTagName('head')[0].appendChild(el); } /*if (load['jquery-ui']){ var el=document.createElement('script'); el.type="text/javascript"; el.src=this.PATH_CMS+'js/jquery-ui.js'; document.getElementsByTagName('head')[0].appendChild(el); var el=document.createElement('link'); el.type="text/css"; el.rel="stylesheet"; el.href=this.PATH_CMS+'js/jquery-ui.css'; document.getElementsByTagName('head')[0].appendChild(el); }*/ }// this.links_action=function(){// var links=document.getElementsByTagName('a'); for (var i=0; i this.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; }// this.window_popup=function() { //Change "_blank" to something like "newWindow" to load all links in the same new window 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; }// this.window_resize=function(pad_t, pad_r, pad_b, pad_l, max_width) { //top, right, bottom, left var resize=true; if (!window.toolbar || !window.menubar) resize=false; // if (!window.toolbar.visible || !window.menubar.visible) resize=false; if (window.name=='axs_popup') resize=true; if (!resize) 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)); }// this.add_event(window, 'load', window[this.global_name].links_action); }// axs('axs'); //23.01.2009