real_path=""
        for i in range (0, len(temp1)-1):
            real_path+="/"+temp1[i]
        #print "real_path="+real_path
        inc_file=str(real_path)+"/"+str(inc_file)
	print "Найден подключаемый файл", inc_file
        
	dom1=None
	try:
	    doc1=FromXmlFile(inc_file)
    	    dom1=doc1.documentElement
	except Exception, msg:
	    print "WARNING: ", msg
	    
	if dom1!=None:        
    	    includedNode=SVGDocument.importNode(dom1,1)
    	    SVGDom.appendChild(includedNode)
        
    
    gs=SVGDocument.getElementsByTagName("g")

    strelki=[]

    paireds=[]

    for g in gs:
	if g.getAttribute("class")=="strelka":
	    strelki.append(g.getAttribute("id"))


    for g in gs: