var domen = "http://www.docs.anima-tech.com/animashooter/docs/";
var links = new Array();
    links = ["Главная:http://www.shooter.anima-tech.com","Capture:capture","Pioneer:pioneer","AntiFlicker:antiflicker","Light-EQ:lighteq"];

function addNav(id){
    if(document.getElementById(id)!=null){
        for(i=0;i<links.length;i++){
            var el = document.createElement("a");
            var linkText = String(links[i]).substring(0,String(links[i]).indexOf(":"));
            var linkAdress = String(links[i]).substring(String(links[i]).indexOf(":")+1,String(links[i]).length);
            var elText = document.createTextNode(linkText);
            var slash = "";
                if(linkAdress.length>0){slash = "/"}
                var href = "";
	        if(linkAdress.substring(0,4) != "http"){
	    		href = domen + linkAdress + slash;
		}
		else{ href = linkAdress;}
                el.setAttribute("href",href);
                el.setAttribute("target","_blank");
                el.appendChild(elText); 
                document.getElementById(id).appendChild(el);
        }
    
	addAlert(id);
    }
}        

function addAlert(id){
        var em = document.createElement("a");
	em.setAttribute("target","_blank");
	em.setAttribute("href","http://www.shooter.anima-tech.com/index.php?option=com_phocadownload&view=sections&Itemid=66");
	em.setAttribute("style","display:block;position:absolute;top:0px;left:0px;width:107px;height:107px;border:solid 0px #FF9900;background:transparent url('http://www.shooter.anima-tech.com/templates/shooter_new/images/alert_stripe.png') no-repeat top left;");	
        document.body.appendChild(em);	
}

function changeD(){
	var alllinks = document.getElementsByTagName('link');
	alllinks[0].setAttribute("href","http://www.docs.anima-tech.com/animashooter/docs/capture/25/images/favicon.ico");
       //alert(alllinks[0].href);

}