//v1.0
//Copyright 2006 Adobe Systems, Inc. All rights reserved.
function AC_AddExtension(src, ext)
{
  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 MWJ_findObj( oName, oFrame, oDoc ) {
	if( !oDoc ) {
        if( oFrame ) {
            oDoc = oFrame.document;
        } else {
            oDoc = window.document;
        }
    }
    
	if( oDoc[oName] ) {
        return oDoc[oName];
    }
    
    if( oDoc.all && oDoc.all[oName] ) {
        return oDoc.all[oName];
    }
    
	if( oDoc.getElementById && oDoc.getElementById(oName) ) {
        return oDoc.getElementById(oName);
    }
    
	for( var x = 0; x < oDoc.forms.length; x++ ) {
        if( oDoc.forms[x][oName] ) {
            return oDoc.forms[x][oName];
        }
    }
    
	for( var x = 0; x < oDoc.anchors.length; x++ ) {
        if( oDoc.anchors[x].name == oName ) {
            return oDoc.anchors[x];
        }
    }
    
	for( var x = 0; document.layers && x < oDoc.layers.length; x++ ) {
		var theOb = MWJ_findObj( oName, null, oDoc.layers[x].document );
        if( theOb ) {
            return theOb;
        }
    }
    
	if( !oFrame && window[oName] ) {
        return window[oName];
    }
    
    if( oFrame && oFrame[oName] ) {
        return oFrame[oName];
    }
    
	for( var x = 0; oFrame && oFrame.frames && x < oFrame.frames.length; x++ ) {
		var theOb = MWJ_findObj( oName, oFrame.frames[x], oFrame.frames[x].document );
    
        if( theOb ) {
            return theOb;
        }
    }
	
    return null;
}

function koobi4_toggleImage(oId, path) {
    var image = MWJ_findObj(oId);
    var imagePath = image.src.slice(0, image.src.lastIndexOf('/')+1);
    var imageName = image.src.slice(image.src.lastIndexOf('/')+1, image.src.length);
    
    if (imageName == 'minus.gif') {
        image.src = imagePath + 'plus.gif';
    } else {
        image.src = imagePath + 'minus.gif';
    }
}

function koobi4_getCookie(name){
   var i=0  //Suchposition im Cookie
   var suche = name+"="
   while (i<document.cookie.length){
      if (document.cookie.substring(i, i+suche.length)==suche){
         var ende = document.cookie.indexOf(";", i+suche.length)
         ende = (ende>-1) ? ende : document.cookie.length
         var cook = document.cookie.substring(i+suche.length, ende)
         return unescape(cook)
      }
      i++
   }
   return null
}

function MWJ_changeVisibility( oName, oVis, oFrame ) {
	var theDiv = MWJ_findObj( oName, oFrame );
    
    if( !theDiv ) { return; }
	
    if( theDiv.style ) {
        theDiv.style.visibility = oVis ? 'visible' : 'hidden';
    } else {
        theDiv.visibility = oVis ? 'show' : 'hide';
    }
}

function MWJ_changePosition( oName, oXPos, oYPos, oRel, oFrame ) {
	var theDiv = MWJ_findObj( oName, oFrame ); if( !theDiv ) { return; }
	if( theDiv.style ) { theDiv = theDiv.style; } var oPix = document.childNodes ? 'px' : 0;
	if( typeof( oXPos ) == 'number' ) { theDiv.left = ( oXPos + ( oRel ? 0 : parseInt( theDiv.left ) ) ) + oPix; }
	if( typeof( oYPos ) == 'number' ) { theDiv.top = ( oYPos + ( oRel ? 0 : parseInt( theDiv.top ) ) ) + oPix; }
}

function MWJ_changeZIndex( oName, ozInd, oFrame ) {
	var theDiv = MWJ_findObj( oName, oFrame ); if( !theDiv ) { return; }
	if( theDiv.style ) { theDiv = theDiv.style; } theDiv.zIndex = ozInd;
}

function MWJ_changeBackground( oName, oColour, oFrame ) {
	var theDiv = MWJ_findObj( oName, oFrame ); if( !theDiv ) { return; }
	if( theDiv.style ) { theDiv = theDiv.style; } if( typeof( theDiv.bgColor ) != 'undefined' ) {
		theDiv.bgColor = oColour; } else if( theDiv.backgroundColor ) { theDiv.backgroundColor = oColour; }
	else { theDiv.background = oColour; }
}

function MWJ_changeDisplay( oName, oDisp, oFrame ) {
	var theDiv = MWJ_findObj( oName, oFrame );
    
    if( !theDiv ) { return; }
	
    if( theDiv.style ) {
        theDiv = theDiv.style;
    }
    
    if( typeof( oDisp ) == 'string' ) {
        oDisp = oDisp.toLowerCase();
    }
	
    theDiv.display = ( oDisp == 'none' ) ? 'none' : ( oDisp == 'block' ) ? 'block' : ( oDisp == 'inline' ) ? 'inline' : '';
}

function MWJ_changeSize( oName, oWidth, oHeight, oFrame ) {
	var theDiv = MWJ_findObj( oName, oFrame ); if( !theDiv ) { return; }
	if( theDiv.style ) { theDiv = theDiv.style; } var oPix = document.childNodes ? 'px' : 0;
	if( theDiv.resizeTo ) { theDiv.resizeTo( oWidth, oHeight ); }
	theDiv.width = oWidth + oPix; theDiv.pixelWidth = oWidth;
	theDiv.height = oHeight + oPix; theDiv.pixelHeight = oHeight;
}

function MWJ_changeClip( oName, oLeft, oTop, oBottom, oRight, oFrame ) {
	var theDiv = MWJ_findObj( oName, oFrame ); if( !theDiv ) { return; }
	if( theDiv.clip ) { theDiv = theDiv.clip; theDiv.top = oTop; theDiv.right = oRight; theDiv.bottom = oBottom; theDiv.left = oLeft; }
	if( theDiv.style ) { theDiv.style.clip = 'rect('+oTop+'px '+oRight+'px '+oBottom+'px '+oLeft+'px)'; }
}

function MWJ_changeContents( oName, oContents, oIframe, oFrame ) {
	var theDiv = MWJ_findObj( oName, oFrame );
    
    if( !theDiv ) {
        theDiv = new Object();
    }

    if( !oFrame ) {
        oFrame = window;
    }
    
	if( typeof( theDiv.innerHTML ) != 'undefined' ) {
        theDiv.innerHTML = oContents;
    } else if( theDiv.document && theDiv.document != oFrame.document ) {
		theDiv = theDiv.document;
        theDiv.open();
        theDiv.write( oContents );
        theDiv.close();
    } else if( oIframe && oFrame.frames && oFrame.frames.length && oFrame.frames[oIframe] ) {
		theDiv = oFrame.frames[oIframe].window.document;
        theDiv.open();
        theDiv.write( oContents );
        theDiv.close();
    }
}

function MWJ_createNew( oName, oWidth, oNewID, oFrame ) {
	if( document.layers && window.Layer ) {
		var theOldLayer = oName ? MWJ_findObj( oName, oFrame ) : oFrame ? oFrame : window; if( !theOldLayer ) { return; }
		theOldLayer.document.layers[oNewID] = new Layer( oWidth, theOldLayer );
	} else {
		var theOldLayer = oName ? MWJ_findObj( oName, oFrame ) : oFrame ? oFrame.document.body : document.body; if( !theOldLayer ) { return; }
		var theString = '<div id="'+oNewID+'" style="position:absolute;width:'+oWidth+'px;visibility:hidden;"></div>';
		if( theOldLayer.insertAdjacentHTML ) { theOldLayer.insertAdjacentHTML('beforeEnd',theString);
		} else if( typeof( theOldLayer.innerHTML ) != 'undefined' ) { theOldLayer.innerHTML += theString; }
	}
}

function MWJ_getStyle( oName, oStyle, oFrame ) {
	
    if( oName == 'document' ) {
		var theBody = oFrame ? oFrame.document : window.document;
		
        if( theBody.documentElement && theBody.documentElement.style && theBody.documentElement.style.backgroundColor ) {
            return theBody.documentElement.style.backgroundColor;
        }
		
        if( theBody.body && theBody.body.style && theBody.body.style.backgroundColor ) {
            return theBody.body.style.backgroundColor;
        }
		
        if( theBody.documentElement && theBody.documentElement.style && theBody.documentElement.style.background ) {
            return theBody.documentElement.style.background;
        }
		
        if( theBody.body && theBody.body.style && theBody.body.style.background ) {
            return theBody.body.style.background;
        }
        
		if( theBody.bgColor ) {
            return theBody.bgColor;
        }
		
        return '#ffffff';
	}
    
	var theDiv = MWJ_findObj( oName, oFrame );
    
    if( !theDiv ) {
        return null;
    }
    
    if( theDiv.style && oStyle != 'clip' ) {
        theDiv = theDiv.style;
    }
	
    switch( oStyle ) {
		case 'visibility':
            return ( ( theDiv.visibility && !( theDiv.visibility.toLowerCase().indexOf( 'hid' ) + 1 ) ) ? true : false );
		case 'left':
			return ( parseInt( theDiv.left ) ? parseInt( theDiv.left ) : 0 );
		case 'top':
			return ( parseInt( theDiv.top ) ? parseInt( theDiv.top ) : 0 );
		case 'zIndex':
			return ( isNaN( theDiv.zIndex ) ? 0 : theDiv.zIndex );
		case 'background':
			return ( theDiv.bgColor ? theDiv.bgColor : theDiv.background-color ? theDiv.background-color : theDiv.background );
		case 'display':
            return ( theDiv.display ? theDiv.display : '' );
		case 'size':
			if( typeof( theDiv.pixelWidth ) != 'undefined' ) { return [theDiv.pixelWidth,theDiv.pixelHeight]; }
			if( typeof( theDiv.width ) != 'undefined' ) { return [parseInt(theDiv.width),theDiv.parseInt(height)]; }
			if( theDiv.clip && typeof( theDiv.clip.bottom ) == 'number' ) { return [theDiv.clip.right,theDiv.clip.bottom]; }
			return [0,0];
		case 'clip':
			if( theDiv.clip ) { return theDiv.clip; }
			theDiv = ( theDiv.style && theDiv.style.clip ) ? theDiv.style.clip : 'rect()';
			theDiv = theDiv.substr( theDiv.indexOf( '(' ) + 1 ); var theClip = new Object();
			for( var x = 0, y = ['top','right','bottom','left']; x < 4; x++ ) {
				theClip[y[x]] = parseInt( theDiv ); if( isNaN( theClip[y[x]] ) ) { theClip[y[x]] = 0; }
				theDiv = theDiv.substr( theDiv.indexOf( ( theDiv.indexOf( ' ' ) + 1 ) ? ' ' : ( theDiv.indexOf( '	' ) + 1 ) ? '	' : ',' ) + 1 );
			} return theClip;
		default:
			return null;
	}
}

function MWJ_changeBody( oColour, oFrame ) { if( !oFrame ) { oFrame = window; }
	if( document.documentElement && document.documentElement.style ) {
		oFrame.document.documentElement.style.backgroundColor = oColour; }
	if( document.body && document.body.style ) { oFrame.document.body.style.backgroundColor = oColour; }
	oFrame.document.bgColor = oColour;
}

function MWJ_getPosition( oLink ) {
	if( oLink.offsetParent ) { for( var posX = 0, posY = 0; oLink.offsetParent; oLink = oLink.offsetParent ) {
		posX += oLink.offsetLeft; posY += oLink.offsetTop; } return [ posX, posY ];
	} else { if( !oLink.x && !oLink.y ) { return [0,0]; } else { return [ oLink.x, oLink.y ]; } }
}

function MWJ_getSize( oFrame ) {
	if( !oFrame ) { oFrame = window; } var myWidth = 0, myHeight = 0;
	if( typeof( oFrame.innerWidth ) == 'number' ) { myWidth = oFrame.innerWidth; myHeight = oFrame.innerHeight; }
	else if( oFrame.document.documentElement && ( oFrame.document.documentElement.clientWidth || oFrame.document.documentElement.clientHeight ) ) {
		myWidth = oFrame.document.documentElement.clientWidth; myHeight = oFrame.document.documentElement.clientHeight; }
	else if( oFrame.document.body && ( oFrame.document.body.clientWidth || oFrame.document.body.clientHeight ) ) {
		myWidth = oFrame.document.body.clientWidth; myHeight = oFrame.document.body.clientHeight; }
	return [myWidth,myHeight];
}

function MWJ_getScroll( oFrame ) {
	if( !oFrame ) { oFrame = window; } var scrOfX = 0, scrOfY = 0;
	if( typeof( oFrame.pageYOffset ) == 'number' ) { scrOfY = oFrame.pageYOffset; scrOfX = oFrame.pageXOffset; }
	else if( oFrame.document.documentElement && ( oFrame.document.documentElement.scrollLeft || oFrame.document.documentElement.scrollTop ) ) {
		scrOfY = oFrame.document.documentElement.scrollTop; scrOfX = oFrame.document.documentElement.scrollLeft; }
	else if( oFrame.document.body && ( oFrame.document.body.scrollLeft || oFrame.document.body.scrollTop ) ) {
		scrOfY = oFrame.document.body.scrollTop; scrOfX = oFrame.document.body.scrollLeft; }
	return [scrOfX,scrOfY];
}

function MWJ_monitorMouse(oFunc) {
	if( document.captureEvents && Event.MOUSEMOVE ) { document.captureEvents( Event.MOUSEMOVE ); }
	window.MWJ_getMouse = [0,0]; window.MWJstoreFunc = oFunc;
	document.onmousemove = function (e) { window.MWJ_getMouse = MWJ_getMouseCoords(e); if( window.MWJstoreFunc ) { window.MWJstoreFunc(); } };
}

function MWJ_getMouseCoords(e) {
	if( !e ) { e = window.event; } if( !e || ( typeof( e.pageX ) != 'number' && typeof( e.clientX ) != 'number' ) ) { return[0,0]; }
	if( typeof( e.pageX ) == 'number' ) { var xcoord = e.pageX; var ycoord = e.pageY; } else {
		var xcoord = e.clientX; var ycoord = e.clientY;
		if( !( ( window.navigator.userAgent.indexOf( 'Opera' ) + 1 ) || ( window.ScriptEngine && ScriptEngine().indexOf( 'InScript' ) + 1 ) || window.navigator.vendor == 'KDE' ) ) {
			if( document.documentElement && ( document.documentElement.scrollTop || document.documentElement.scrollLeft ) ) {
				xcoord += document.documentElement.scrollLeft; ycoord += document.documentElement.scrollTop;
			} else if( document.body && ( document.body.scrollTop || document.body.scrollLeft ) ) {
				xcoord += document.body.scrollLeft; ycoord += document.body.scrollTop;
			} } } return [xcoord,ycoord];
}

function MWJ_monitorKey( oOb, oEvent, oHandler ) {
	if( oOb.captureEvents && Event[oEvent.toUpperCase()] ) { oOb.captureEvents( Event[oEvent.toUpperCase()] ); }
	oOb['on'+oEvent.toLowerCase()] = function (e) { if( !e ) { e = window.event; }
		if( !e ) { return; } var oHandler = this['MWJ_'+e.type.toLowerCase()];
		e = ( typeof( e.which ) == 'number' ) ? e.which : ( ( typeof( e.keyCode ) == 'number' ) ? e.keyCode : ( ( typeof( e.charCode ) == 'number' ) ? e.charCode : 0 ) );
		if( oHandler ) { oHandler( arguments[0], e, String.fromCharCode( e ), this ); }
	}; oOb['MWJ_'+oEvent.toLowerCase()] = oHandler;
}

function MWJ_monitorButton( oOb, oEvent, oHandler ) {
	if( oOb.captureEvents && Event[oEvent.toUpperCase()] ) { oOb.captureEvents( Event[oEvent.toUpperCase()] ); }
	oOb['on'+oEvent.toLowerCase()] = function (e) { if( !e ) { e = window.event; }
		if( !e ) { return; } var oHandler = this['MWJ_'+e.type.toLowerCase()];
		if( typeof( e.which ) == 'number' ) { e = e.which; } else { e = e.button; }
		if( oHandler ) { oHandler( arguments[0], e, ( ( e < 2 ) ? 'left' : 'right' ), this ); }
	}; oOb['MWJ_'+oEvent.toLowerCase()] = oHandler;
}
function clearPreloadPage() { 
if (document.getElementById){
document.getElementById('loading').style.visibility='hidden';
}else{
if (document.layers){ 
document.loading.visibility = 'hidden'; }
else { 
document.all.loading.style.visibility = 'hidden'; }
	}
}
/*
url = document.location.href;

if(self!=top){if(document.images)
top.location.replace(window.location.href);else
top.location.href=window.location.href;}
if(top!=self){top.location=self.location;}
*/
var bustcachevar=1
var loadstatustext="<img src='/templates/standard_blau/img/page/loading.gif' />"
var loadedobjects=""
var defaultcontentarray=new Object()
var bustcacheparameter=""

function ajaxpage(url,containerid,targetobj){var page_request=false
if(window.XMLHttpRequest)
page_request=new XMLHttpRequest()
else if(window.ActiveXObject){try{page_request=new ActiveXObject("Msxml2.XMLHTTP")}
catch(e){try{page_request=new ActiveXObject("Microsoft.XMLHTTP")}
catch(e){}}}
else
return false
var ullist=targetobj.parentNode.parentNode.getElementsByTagName("li")
for(var i=0;i<ullist.length;i++)
ullist[i].className=""  
targetobj.parentNode.className="selected"  
if(url.indexOf("#default")!=-1){ 
document.getElementById(containerid).innerHTML=defaultcontentarray[containerid]
return}
document.getElementById(containerid).innerHTML=loadstatustext
page_request.onreadystatechange=function(){loadpage(page_request,containerid)}
if(bustcachevar)
bustcacheparameter=(url.indexOf("?")!=-1)? "&"+new Date().getTime() : "?"+new Date().getTime()
page_request.open('GET',url+bustcacheparameter,true)
page_request.send(null)}
function loadpage(page_request,containerid){if(page_request.readyState==4&&(page_request.status==200||window.location.href.indexOf("http")==-1))
document.getElementById(containerid).innerHTML=page_request.responseText}
function loadobjs(revattribute){if(revattribute!=null&&revattribute!=""){ 
var objectlist=revattribute.split(/\s*,\s*/)
for(var i=0;i<objectlist.length;i++){var file=objectlist[i]
var fileref=""
if(loadedobjects.indexOf(file)==-1){if(file.indexOf(".js")!=-1){
fileref=document.createElement('script')
fileref.setAttribute("type","text/javascript");
fileref.setAttribute("src", file);}
else if(file.indexOf(".css")!=-1){ 
fileref=document.createElement("link")
fileref.setAttribute("rel", "stylesheet");
fileref.setAttribute("type", "text/css");
fileref.setAttribute("href", file);}}
if(fileref!=""){
document.getElementsByTagName("head").item(0).appendChild(fileref)
loadedobjects+=file+" " }}}}
function savedefaultcontent(contentid){if(typeof defaultcontentarray[contentid]=="undefined") 
defaultcontentarray[contentid]=document.getElementById(contentid).innerHTML}
function startajaxtabs(){for(var i=0;i<arguments.length;i++){var ulobj=document.getElementById(arguments[i])
var ulist=ulobj.getElementsByTagName("li") 
for(var x=0;x<ulist.length;x++){var ulistlink=ulist[x].getElementsByTagName("a")[0]
if(ulistlink.getAttribute("rel")){
var modifiedurl=ulistlink.getAttribute("href").replace(/^http:\/\/[^\/]+\//i, "http://"+window.location.hostname+"/")
ulistlink.setAttribute("href", modifiedurl)
savedefaultcontent(ulistlink.getAttribute("rel")) 
ulistlink.onclick=function(){ajaxpage(this.getAttribute("href"), this.getAttribute("rel"), this)
loadobjs(this.getAttribute("rev"))
return false}
if(ulist[x].className=="selected"){
ajaxpage(ulistlink.getAttribute("href"), ulistlink.getAttribute("rel"), ulistlink) 
loadobjs(ulistlink.getAttribute("rev")) }}}}}
function resize_iframe(){var height=window.innerWidth;if(document.body.clientHeight){height=document.body.clientHeight;}
document.getElementById("glu").style.height=parseInt(height-
document.getElementById("glu").offsetTop-8)+"px";}
window.onresize=resize_iframe;function checkUsername(username){document.getElementById('message').innerHTML='Проверка...';var xmlhttp=false;try{xmlhttp=new ActiveXObject('Msxml2.XMLHTTP');}catch(e){try{xmlhttp=new
ActiveXObject('Microsoft.XMLHTTP');}catch(E){xmlhttp=false;}}
if(!xmlhttp&&typeof XMLHttpRequest!='undefined'){xmlhttp=new XMLHttpRequest();}
var url='checkuname.php?username='+username;xmlhttp.open('GET',url,true);xmlhttp.onreadystatechange=function(){if(xmlhttp.readyState==4){var content=xmlhttp.responseText;if(content){switch(content){case "1":document.getElementById('message').innerHTML = "<span style='color:red'>Избраното от Вас потребителско име е заето. Моля изберете друго.</span>"; break;
case "2":document.getElementById('message').innerHTML = "<span style='color:green'>Потребителското име, което сте избрали е достъпно!</span>"; break;
default:document.getElementById('message').innerHTML=""; break;}}}}
xmlhttp.send(null)
return;}
function Start(page){OpenWin=this.open(page,"CtrlWindow", "toolbar=yes,menubar=yes,location=yes,scrollbars=yes,resizable=yes");}
function MM_jumpMenu(targ,selObj,restore){eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if(restore)selObj.selectedIndex=0;}
function verifyCompatibleBrowser(){this.ver=navigator.appVersion
this.dom=document.getElementById?1:0
this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0; 
this.ie4=(document.all&&!this.dom)?1:0;this.ns5=(this.dom&&parseInt(this.ver)>=5)?1:0;this.ns4=(document.layers&&!this.dom)?1:0;this.bw=(this.ie5||this.ie4||this.ns4||this.ns5)
return this}
bw=new verifyCompatibleBrowser()
var speed=50
var loop,timer
function ConstructObject(obj,nest){nest=(!nest)?'':'document.'+nest+'.'
this.el=bw.dom?document.getElementById(obj):bw.ie4?document.all[obj]:bw.ns4?eval(nest+'document.'+obj):0;this.css=bw.dom?document.getElementById(obj).style:bw.ie4?document.all[obj].style:bw.ns4?eval(nest+'document.'+obj):0;this.scrollWidth=bw.ns4?this.css.document.width:this.el.offsetWidth
this.clipWidth=bw.ns4?this.css.clip.width:this.el.offsetWidth
this.left=MoveAreaLeft;this.right=MoveAreaRight;this.MoveArea=MoveArea;this.x;this.y;this.obj=obj+"Object" 
eval(this.obj+"=this") 
return this}
function MoveArea(x,y){this.x=x;this.y=y
this.css.left=this.x+"px";
this.css.top=this.y+"px";}
function MoveAreaRight(move){if(this.x>-this.scrollWidth+objContainer.clipWidth){this.MoveArea(this.x-move,0)
if(loop)setTimeout(this.obj+".right("+move+")",speed) }}
function MoveAreaLeft(move){if(this.x<0){this.MoveArea(this.x-move,0)
if(loop)setTimeout(this.obj+".left("+move+")",speed) }}
function PerformScroll(speed){if(initialised){loop=true;if(speed>0)objScroller.right(speed)
else objScroller.left(speed)}}
function CeaseScroll(){loop=false
if(timer)clearTimeout(timer)}
var initialised;function InitialiseScrollableArea(divContainer,divContent){objContainer=new ConstructObject(divContainer)
objScroller=new ConstructObject(divContent,divContainer)
objScroller.MoveArea(0,0)
objContainer.css.visibility='visible'
initialised=true;}
function ReloadWin(){var ns4=(document.layers&&!this.dom)?1:0;if(ns4){self.location.reload();}else{return false;}}
imgArr=new Image;imgAro=new Image;imgUp=new Image;imgUpo=new Image;imgArr.src="http://www.pyce.info/i/arr.gif";
imgAro.src="http://www.pyce.info/i/arr_o.gif";
imgUp.src="http://www.pyce.info/i/up.gif";
imgUpo.src="http://www.pyce.info/i/up_o.gif";
function img_over(img){if(img.name.substring(0,3)=="arr") img.src = "http://www.pyce.info/i/arr_o.gif";
else img.src="/i/" + img.name + "_o.gif";}
function img_out(img){if(img.name.substring(0,3)=="arr") img.src = "http://www.pyce.info/i/arr.gif";
else img.src="/i/" + img.name + ".gif";}
function SymError(){return true;}
window.onerror=SymError;function drucke(id,theme){var html=document.getElementById(id).innerHTML;html=html.replace(/src="/gi,'src="../' );
html=html.replace(/&lt;/gi,'<');html=html.replace(/&gt;/gi,'>');var pFenster=window.open('',null,'height=600,width=780,toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes');var HTML='<html><head></head><body style="font-family:arial,verdana;font-size:12px" onload="window.print()">' + html + '</body></html>' ;
pFenster.document.write(HTML);pFenster.document.close();}
function showhide(id,id2,text,text2){if(document.getElementById(id).style.display=="none"){
document.getElementById(id).style.display="";
document.getElementById(id2).innerHTML=text;}else{document.getElementById(id).style.display="none";
document.getElementById(id2).innerHTML=text2;}
return true;}
function getFile(area,id){var winWidth=500;var winHeight=400;var w=(screen.width-winWidth)/2;var h=(screen.height-winHeight)/2-60;var url='index.php?do=dl&p=downloadfile&area='+area+'&fileid='+id;var name='id';var features='menubar=yes,scrollbars=yes,toolbar=yes,resizable=yes,status=no,location=no,width='+winWidth+',height='+winHeight+',top='+h+',left='+w;window.open(url,name,features);}
function getLink(area,id){var winWidth=800;var winHeight=600;var w=(screen.width-winWidth)/2;var h=(screen.height-winHeight)/2-60;var url='index.php?do=dl&p=golink&area='+area+'&id='+id;var name='id';var features='menubar=yes,scrollbars=yes,toolbar=yes,resizable=yes,status=yes,location=yes,width='+winWidth+',height='+winHeight+',top='+h+',left='+w;window.open(url,name,features);}
function helpwin(title,msg){var width="300", height="125";
var left=(screen.width/2)-width/2;var top=(screen.height/2)-height/2;var styleStr='toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbar=no,resizable=no,copyhistory=yes,width='+width+',height='+height+',left='+left+',top='+top+',screenX='+left+',screenY='+top;var msgWindow=window.open("","msgWindow", styleStr);
var head='<head><title>'+title+'</title></head>';var body='<center>'+msg+'<br><p><form><input type="button" value="   Done   " onClick="self.close()"></form>';
msgWindow.document.write(head+body);}
function popex(url,name,width,height,center,resize,scroll,posleft,postop){if(posleft!=0){x=posleft}
if(postop!=0){y=postop}
if(!scroll){scroll=1}
if(!resize){resize=1}
if((parseInt(navigator.appVersion)>=4)&&(center)){X=(screen.width-width)/2;Y=(screen.height-height)/2;}
if(scroll!=0){scroll=1}
var Win=window.open(url,name,'width='+width+',height='+height+',top='+Y+',left='+X+',resizable='+resize+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no');}
function popup(datei,name,breite,hoehe,srcoll){var posX=10;var posY=10;var scrolly=srcoll;var id=name;window.open(datei,name,"resizable=yes,scrollbars=" + scrolly + " ,width=" + breite + ",height=" + hoehe + "screenX=" + posX + ",screenY=" + posY + ",left=" + posX + ",top=" + posY + "");}
function enzypop(datei){var posX=10;var posY=10;var h=450;var w=500;window.open(datei,name,"resizable=yes,scrollbars=yes,width=" + w + ",height=" + h + "screenX=" + posX + ",screenY=" + posY + ",left=" + posX + ",top=" + posY + "");}
function msgpop(datei,name,breite,hoehe,srcoll){var posX=(screen.availWidth-breite)/2;var posY=(screen.availHeight-hoehe)/2;var scrolly=srcoll;var id=name;window.open(datei,name,"scrollbars=" + scrolly + ",resizable=yes, width=" + breite + ",height=" + hoehe + "screenX=" + posX + ",screenY=" + posY + ",left=" + posX + ",top=" + posY + "");}
function gbild(img_id,galid,area,ascdesc){var winWidth=640;var winHeight=480;var w=(screen.width-winWidth)/2;var h=(screen.height-winHeight)/2-60;var url='index.php?p=gallerypic&img_id='+img_id+'&galid='+galid+'&area='+area+'&ascdesc='+ascdesc+'#'+img_id;var name='name';var features='scrollbars=yes,resizable=yes,toolbar=yes,width='+winWidth+',height='+winHeight+',top='+h+',left='+w;window.open(url,name,features);}
function inline_popup(img_id){var winWidth=640;var winHeight=480;var w=(screen.width-winWidth)/2;var h=(screen.height-winHeight)/2-60;var url='index.php?p=misc&do=inlineshots&img_id='+img_id;var name='name';var features='scrollbars=yes,resizable=yes,toolbar=yes,width='+winWidth+',height='+winHeight+',top='+h+',left='+w;window.open(url,name,features);}
tags=new Array();function getarraysize(thearray){for(i=0;i<thearray.length;i++){if((thearray[i]=="undefined") || (thearray[i] == "") || (thearray[i] == null)) return i;}
return thearray.length;}
function arraypush(thearray,value){thearraysize=getarraysize(thearray);thearray[thearraysize]=value;}
function arraypop(thearray){thearraysize=getarraysize(thearray);retval=thearray[thearraysize-1];delete thearray[thearraysize-1];return retval;}
function setmode(modevalue){document.cookie="cmscodemode="+modevalue+"; path=/; expires=Wed, 1 Jan 2100 00:00:00 GMT;";}
function normalmode(theform){return true;}
function stat(thevalue){document.bbform.status.value=eval(thevalue+"_text");}
function setfocus(theform){theform.text.focus();}
var selectedText="";
AddTxt="";
function getActiveText(msg){selectedText=(document.all)?document.selection.createRange().text:window.getSelection();if(msg.createTextRange)msg.caretPos=document.selection.createRange().duplicate();return true;}
function AddText(NewCode,theform){if(theform.text.createTextRange&&theform.text.caretPos){var caretPos=theform.text.caretPos;caretPos.text=caretPos.text.charAt(caretPos.text.length-1)==' '?NewCode+' ':NewCode;}else theform.text.value+=NewCode
AddTxt="";setfocus(theform);}
function smilie(thesmilie){var ie=document.all?1:0;if(!ie){document.f.text.value+=' '+thesmilie+' '}else{AddSmile=" "+thesmilie+" ";
theform=f;AddText(AddSmile,theform);}}
function unametofield(theuser){opener.document.f.tofromname.value=''+theuser+'';window.close();}
var MessageMax="";
var Override="";
MessageMax=parseInt(MessageMax);if(MessageMax<0){MessageMax=0;}
var B_open=0;var I_open=0;var U_open=0;var QUOTE_open=0;var CODE_open=0;var PHP_open=0;var ktags=new Array();var myAgent=navigator.userAgent.toLowerCase();var myVersion=parseInt(navigator.appVersion);var is_ie=((myAgent.indexOf("msie") != -1)  && (myAgent.indexOf("opera") == -1));
var is_nav=((myAgent.indexOf('mozilla')!=-1)&&(myAgent.indexOf('spoofer')==-1)&&(myAgent.indexOf('compatible')==-1)&&(myAgent.indexOf('opera')==-1)&&(myAgent.indexOf('webtv')==-1)&&(myAgent.indexOf('hotjava')==-1));var is_win=((myAgent.indexOf("win")!=-1) || (myAgent.indexOf("16bit")!=-1));
var is_mac=(myAgent.indexOf("mac")!=-1);
var allcookies=document.cookie;var pos=allcookies.indexOf("kmode=");
prep_mode();
function prep_mode() {
	if(pos!=1){
		var cstart=pos+7;
		var cend=allcookies.indexOf(";", cstart);
	if(cend==-1){
		cend=allcookies.length;
	}
	cvalue=allcookies.substring(cstart,cend);
	if(cvalue=='helpmode'){
		document.f.kmode[0].checked=true;
	}
	else {
		document.f.kmode[1].checked=true;
		}
	}
else{
	document.f.kmode[1].checked=true;
	}
}
function setmode(mVal){document.cookie="kmode="+mVal+"; path=/; expires=Wed, 1 Dez 2040 00:00:00 GMT;";}
function normmodestat(){if(document.f.kmode[0].checked){return true;}
else{return false;}}
function khelp(msg){document.f.khelp_msg.value=eval("khelp_" + msg );}
function stacksize(thearray){for(i=0;i<thearray.length;i++){if((thearray[i]=="") || (thearray[i] == null) || (thearray == 'undefined') ) {
return i;}}
return thearray.length;}
function pushstack(thearray,newval){arraysize=stacksize(thearray);thearray[arraysize]=newval;}
function popstack(thearray){arraysize=stacksize(thearray);theval=thearray[arraysize-1];delete thearray[arraysize-1];return theval;}
function closeall(){if(ktags[0]){while(ktags[0]){tagRemove=popstack(ktags)
document.f.text.value+="[/" + tagRemove + "]";
if((tagRemove!='FONT')&&(tagRemove!='SIZE')&&(tagRemove!='COLOR')){eval("document.f." + tagRemove + ".value = ' " + tagRemove + " '");
eval(tagRemove+"_open = 0");}}}
ktags=new Array();document.f.text.focus();}
function add_code(NewCode){document.f.text.value+=NewCode;document.f.text.focus();}
function changefont(theval,thetag){if(theval==0)
return;if(doInsert("[" + thetag + "=" + theval + "]", "[/" + thetag + "]", true))
pushstack(ktags,thetag);document.f.ffont.selectedIndex=0;document.f.fsize.selectedIndex=0;document.f.fcolor.selectedIndex=0;}
function easytag(thetag){var tagOpen=eval(thetag+"_open");
if(normmodestat()){inserttext=prompt(prompt_start+"\n[" + thetag + "]xxx[/" + thetag + "]");
if((inserttext!=null)&&(inserttext!="") ) {
doInsert("[" + thetag + "]" + inserttext + "[/" + thetag + "] ", "", false);}}
else{if(tagOpen==0){if(thetag=="PHP") {
var openphp='<?php ';var closephp=' ?>';}else{var openphp='';var closephp='';}
if(doInsert("[" + thetag + "]"+openphp+"", "[/" + thetag + "]", true)){
eval(thetag+"_open = 1");
eval("document.f." + thetag + ".value += '*'");
pushstack(ktags,thetag);khelp('close');}}
else{lastindex=0;for(i=0;i<ktags.length;i++){if(ktags[i]==thetag){lastindex=i;}}
while(ktags[lastindex]){if(thetag=="PHP") {
var closephp=' ?>';}else{var closephp='';}
tagRemove=popstack(ktags);doInsert(""+closephp+"[/" + tagRemove + "]", "", false)
eval("document.f." + tagRemove + ".value = ' " + tagRemove + " '");
eval(tagRemove+"_open = 0");}}}}
function tag_list(){var listtype=prompt(list_prompt,"");
if((listtype=="a") || (listtype == "1") || (listtype == "i")){
thelist="[LIST=" + listtype + "]\n";}
else{thelist="[LIST]\n";}
var listentry="initial";
while((listentry!="") && (listentry != null)){
listentry=prompt(list_prompt2,"");
if((listentry!="") && (listentry != null)){
thelist=thelist+"[*]" + listentry + "\n";}}
doInsert(thelist+"[/LIST]\n", "", false);}
function tag_url(){var FoundErrors='';var enterURL=prompt(text_enter_url,"http://");
var enterTITLE=prompt(text_enter_url_name,"Webseiten-Name");
if(!enterURL){FoundErrors+=" " + error_no_url;}
if(!enterTITLE){FoundErrors+=" " + error_no_title;}
if(FoundErrors){alert(""+FoundErrors);
return;}
doInsert("[URL="+enterURL+"]"+enterTITLE+"[/URL]", "", false);}
function tag_image(){var FoundErrors='';var enterURL=prompt(text_enter_image,"http://");
if(!enterURL){FoundErrors+=" " + error_no_url;}
if(FoundErrors){alert(""+FoundErrors);
return;}
doInsert("[IMG]"+enterURL+"[/IMG]", "", false);}
function tag_email(){var emailAddress=prompt(text_enter_email,"");
if(!emailAddress){alert(error_no_email);return;}
doInsert("[EMAIL]"+emailAddress+"[/EMAIL]", "", false);}
function doInsert(ktag,kctag,once){var isClose=false;var obj_ta=document.f.text;if((myVersion>=4)&&is_ie&&is_win){if(obj_ta.isTextEdit){obj_ta.focus();var sel=document.selection;var rng=sel.createRange();rng.colapse;if((sel.type=="Text" || sel.type == "None") && rng != null){
if(kctag!="" && rng.text.length > 0)
ktag+=rng.text+kctag;else if(once)
isClose=true;rng.text=ktag;}}
else{if(once)
isClose=true;obj_ta.value+=ktag;}}
else{if(once)
isClose=true;obj_ta.value+=ktag;}
obj_ta.focus();return isClose;}
function pnbox(){var winWidth=580;var winHeight=500;var w=(screen.width-winWidth)/2;var h=(screen.height-winHeight)/2-60;var url='index.php?templateid=pn';var name='id';var features='scrollbars=yes,toolbar=yes,resizable=yes,width='+winWidth+',height='+winHeight+',top='+h+',left='+w;window.open(url,name,features);}
function pnto(ato){var winWidth=580;var winHeight=500;var w=(screen.width-winWidth)/2;var h=(screen.height-winHeight)/2-60;var url='index.php?templateid=pn&action=compose&an='+ato;var name='id';location.href=url;}
function emailto(ato){var winWidth=580;var winHeight=400;var w=(screen.width-winWidth)/2;var h=(screen.height-winHeight)/2-60;var url='index.php?templateid=email&action=compose&an='+ato;var name='id';location.href=url;}
function MM_callJS(jsStr){return eval(jsStr)}
function MWJ_retrieveCookie(cookieName){var cookieJar=document.cookie.split("; " );
for(var x=0;x<cookieJar.length;x++){var oneCookie=cookieJar[x].split("=" );
if(oneCookie[0]==escape(cookieName)){return unescape(oneCookie[1]);}}
return null;}
function koobi4_setCookie(name,value){value=value+'@';var lifeTime=31536000;var currentStr=MWJ_retrieveCookie(name);if(!currentStr){MWJ_setCookie(name,value,lifeTime);}else if(currentStr.indexOf(value)+1){value=new RegExp(value,'');MWJ_setCookie(name,currentStr.replace(value,''),lifeTime);}else{MWJ_setCookie(name,currentStr+value,lifeTime);}}
function MWJ_setCookie(cookieName,cookieValue,lifeTime,path,domain,isSecure){if(!cookieName){return false;}
if(lifeTime=="delete" ) { lifeTime = -10; }
document.cookie=escape(cookieName)+"=" + escape( cookieValue ) +
(lifeTime?";expires=" + ( new Date( ( new Date() ).getTime() + ( 1000 * lifeTime ) ) ).toGMTString() : "" ) +
(path?";path=" + path : "") + ( domain ? ";domain=" + domain : "") + 
(isSecure?";secure" : "");
if(lifeTime<0){if(typeof(MWJ_retrieveCookie(cookieName))=="string" ) { return false; } return true; }
if(typeof(MWJ_retrieveCookie(cookieName))=="string" ) { return true; } return false;}
var ie=document.all?1:0;function high(kselect){if(ie){while(kselect.tagName!="TR"){
kselect=kselect.parentElement;}}
else{while(kselect.tagName!="TR"){
kselect=kselect.parentNode;}}}
function off(kselect){if(ie){while(kselect.tagName!="TR"){
kselect=kselect.parentElement;}}}
function changesel(kselect){if(kselect.checked){high(kselect);}
else{off(kselect);}}
function selall(kselect){var fmobj=document.kform;for(var i=0;i<fmobj.elements.length;i++){var e=fmobj.elements[i];if((e.name!='allbox')&&(e.type=='checkbox')&&(!e.disabled)){e.checked=fmobj.allbox.checked;if(fmobj.allbox.checked){high(e);}
else{off(e);}}}}
function CheckCheckAll(kselect){var fmobj=document.kform;var TotalBoxes=0;var TotalOn=0;for(var i=0;i<fmobj.elements.length;i++){var e=fmobj.elements[i];if((e.name!='allbox')&&(e.type=='checkbox')){TotalBoxes++;if(e.checked){TotalOn++;}}}
if(TotalBoxes==TotalOn){fmobj.allbox.checked=true;}
else{fmobj.allbox.checked=false;}}
function select_read(){var fmobj=document.kform;for(var i=0;i<fmobj.elements.length;i++){var e=fmobj.elements[i];if((e.type=='hidden')&&(e.value==1)&&(!isNaN(e.name))){eval("fmobj.msgid_" + e.name + ".checked=true;");
high(e);}}}
function getNewHttpObject(){var objType=false;try{objType=new ActiveXObject('Msxml2.XMLHTTP');}catch(e){try{objType=new ActiveXObject('Microsoft.XMLHTTP');}catch(e){objType=new XMLHttpRequest();}}
return objType;}
function getAXAH(url,elementContainer){document.getElementById(elementContainer).innerHTML='<blink class="loading"><img src="/templates/standard_blau/img/page/loading.gif" border="0" hspace="6" align="absmiddle"><\/blink>';
var theHttpRequest=getNewHttpObject();theHttpRequest.onreadystatechange=function(){processAXAH(elementContainer);};theHttpRequest.open("GET", url);
theHttpRequest.send(false);function processAXAH(elementContainer){if(theHttpRequest.readyState==4){if(theHttpRequest.status==200){document.getElementById(elementContainer).innerHTML=theHttpRequest.responseText;}else{document.getElementById(elementContainer).innerHTML="<p><span class='redtxt'>Error!<\/span> HTTP request return the following status message:&nbsp;" + theHttpRequest.statusText +"<\/p>";}}}}
function makeRequest(url,myelement){var http_request=false;if(window.XMLHttpRequest){http_request=new XMLHttpRequest();if(http_request.overrideMimeType){http_request.overrideMimeType('text/html');}}else if(window.ActiveXObject){try{http_request=new ActiveXObject("Msxml2.XMLHTTP");}catch(e){try{http_request=new ActiveXObject("Microsoft.XMLHTTP");}catch(e){}}}
if(!http_request){return false;}
var now=new Date();url+='?m='+now.getYear()+now.getMonth()+now.getDate()+now.getHours()+now.getMinutes()+now.getSeconds()+'';http_request.onreadystatechange=function(){alertContents(http_request,myelement);};http_request.open('GET',url,true);http_request.send(null);}
function alertContents(http_request,myelement){if(http_request.readyState==4){if(http_request.status==200){tmp=document.getElementById(myelement);tmp.innerHTML=http_request.responseText;}else{}}}
function makeRequest(url,myelement){var http_request=false;if(window.XMLHttpRequest){http_request=new XMLHttpRequest();if(http_request.overrideMimeType){http_request.overrideMimeType('text/html');}}else if(window.ActiveXObject){try{http_request=new ActiveXObject("Msxml2.XMLHTTP");}catch(e){try{http_request=new ActiveXObject("Microsoft.XMLHTTP");}catch(e){}}}
if(!http_request){return false;}
var now=new Date();url+='?m='+now.getYear()+now.getMonth()+now.getDate()+now.getHours()+now.getMinutes()+now.getSeconds()+'';http_request.onreadystatechange=function(){alertContents(http_request,myelement);};http_request.open('GET',url,true);http_request.send(null);}
function alertContents(http_request,myelement){if(http_request.readyState==4){if(http_request.status==200){tmp=document.getElementById(myelement);tmp.innerHTML=http_request.responseText;}else{}}}

function checkUrl(username){document.getElementById('message').innerHTML='Проверка...';var xmlhttp=false;try{xmlhttp=new ActiveXObject('Msxml2.XMLHTTP');}catch(e){try{xmlhttp=new
ActiveXObject('Microsoft.XMLHTTP');}catch(E){xmlhttp=false;}}
if(!xmlhttp&&typeof XMLHttpRequest!='undefined'){xmlhttp=new XMLHttpRequest();}
var url='checkurl.php?url='+username;xmlhttp.open('GET',url,true);xmlhttp.onreadystatechange=function(){if(xmlhttp.readyState==4){var content=xmlhttp.responseText;if(content){switch(content){case "1":document.getElementById('message').innerHTML = "<span style='color:red'><blink>Този URL вече е добавен и няма да бъде одобрен.</blink></span>"; 
	var but = document.getElementById('sendContactEmail');
	but.style.display = "none";
break;
case "2":document.getElementById('message').innerHTML = "<span style='color:green'>Този URL не е индексиран при нас!</span>"; 
	var but = document.getElementById('sendContactEmail');
	but.style.display = "block";
break;
default:document.getElementById('message').innerHTML=""; break;}}}}
xmlhttp.send(null)
return;}
function clearPreloadPage() { //DOM
if (document.getElementById){
document.getElementById('loading').style.visibility='hidden';
}else{
if (document.layers){ //NS4
document.loading.visibility = 'hidden';
}
else { //IE4
document.all.loading.style.visibility = 'hidden';
}
}
}
url = document.location.href;
xend = url.lastIndexOf("/") + 1;
var base_url = url.substring(0, xend);
var ajax_get_error = false;
function ajax_do (url) {
	if (url.substring(0, 4) != 'http') { url = base_url + url; }
	var jsel = document.createElement('SCRIPT');
	jsel.type = 'text/javascript';
	jsel.src = url;
	document.body.appendChild (jsel);
	return true;
} function ajax_get (url, el) {
	if (typeof(el) == 'string') { el = document.getElementById(el); }
	if (el == null) { return false; }
	if (url.substring(0, 4) != 'http') { url = base_url + url; }
	getfile_url = base_url + 'getfile.php?url=' + escape(url) + '&el=' + escape(el.id);
	ajax_do (getfile_url);
	return true;
}
