
    function getAllLinks(treelocale) {
    	if (treelocale == 'eu' || treelocale == 'de' || treelocale == 'fr' || treelocale == 'it' || treelocale == 'be_en' || treelocale == 'nl' || treelocale == 'es' || treelocale == 'ch' || treelocale == 'ch_fr' || treelocale == 'ch_it' || treelocale == 'tr' || treelocale == 'uk' || treelocale == 'evista' || treelocale == 'evista_at' || treelocale == 'evista_es' || treelocale == 'evista_tr' || treelocale == 'evista_be_fr' || treelocale == 'evista_be_nl' || treelocale == 'evista_nl' || treelocale == 'pt' || treelocale == 'evista_pt') {
    		var allLinks = $('a');
    		$(allLinks).each(function(i) {			
    		    if (treelocale == 'eu' || treelocale == 'de' || treelocale == 'uk' || treelocale == 'nl' || treelocale == 'es' || treelocale == 'be_en' || treelocale == 'ch' || treelocale == 'ch_fr' || treelocale == 'ch_it' || treelocale == 'tr' || treelocale == 'evista' || treelocale == 'evista_at' || treelocale == 'evista_es' || treelocale == 'evista_tr' || treelocale == 'evista_be_fr' || treelocale == 'evista_be_nl' || treelocale == 'evista_nl' || treelocale == 'pt' || treelocale == 'evista_pt') {
    		        if (this.href.indexOf('daiichisankyo.eu') == -1 && this.href.indexOf('daiichi-sankyo-jobs.com') == -1 && this.href.indexOf('daiichisankyo-us.com') == -1 && this.href.indexOf('daiichisankyo.com') == -1 && this.href.indexOf('daiichi-sankyo.eu') == -1 && this.href.indexOf('daiichi-sankyo.de') == -1 && this.href.indexOf('daiichi-sankyo.at') == -1 && this.href.indexOf('daiichi-sankyo.it') == -1 && this.href.indexOf('daiichi-sankyo.es') == -1 && this.href.indexOf('daiichi-sankyo.es') == -1 && this.href.indexOf('daiichi-sankyo.nl') == -1 && this.href.indexOf('daiichi-sankyo.be') == -1 && this.href.indexOf('daiichi-sankyo.ch') == -1 && this.href.indexOf('daiichi-sankyo.fr') == -1 && this.href.indexOf('daiichi-sankyo.pt') == -1 && this.href.indexOf('daiichi-sankyo.com.tr') == -1 && this.href.indexOf('daiichi-sankyo.ie') == -1 && this.href.indexOf('evista.eu') == -1 && this.href.indexOf('evista.at') == -1 && this.href.indexOf('evista.pt') == -1 && this.href.indexOf('osteoporose-doenca.com.pt') == -1 && this.href.indexOf('osteoporosis-disease.eu') == -1 && this.href.indexOf('sevikar.eu') == -1 && this.href.indexOf('efient.de') == -1 && this.href.indexOf('daiichi-sankyo.co.uk') == -1 && this.href.indexOf('evista.eu') == -1 && this.href.indexOf('evista.at') == -1 && this.href.indexOf('osteoporosis-disease.eu') == -1 && this.href.indexOf('osteoporose-krankheit.at') == -1 && this.href.indexOf('daiichi-sankyo.pt') == -1) {
        		        if (document.location.search.indexOf('nodename=search') == -1) {
            				if ((this.href.indexOf('.daiichi') == -1 || this.href.indexOf('sankyo.') == -1 || (this.href.indexOf('/site_' + treelocale) == -1 && this.href.indexOf('/media/') == -1)) && this.href.length != 0 && this.href.indexOf('javascript:') == -1 && this.href.indexOf('mailto:') == -1) {
            					$(this).attr('target', "warningPopup");
            					$(this).bind("click", function(){  				
            		  				openWarningPopup("/warningPopup.php?ref=" + escape(this.href) + "&locale=" + treelocale + "&width=1100&height=600", 'warningPopup', '635', '300'); 
            		  				return false;
            					});
            				}
            			} else {
            				if ((this.href.indexOf('.daiichi') == -1 || this.href.indexOf('sankyo.') == -1 || this.href.indexOf('/site_' + treelocale) == -1) && this.href.length != 0 && this.href.indexOf('javascript:') == -1 && this.href.indexOf('mailto:') == -1) {
            					$(this).attr('target', "warningPopup");
            					$(this).bind("click", function(){  				
            		  				openWarningPopup("/warningPopup.php?ref=" + escape(this.href) + "&locale=" + treelocale + "&width=1100&height=600", 'warningPopup', '635', '300'); 
            		  				return false;
            					});
            				}
            			}
            		}
            		
    		    } else {
    		        if (document.location.search.indexOf('nodename=search') == -1) {
			    if (treelocale != 'it') {
        					if (this.href.indexOf("http://www.daiichi") == -1) {
        						if ((this.href.indexOf('.daiichi') == -1 || this.href.indexOf('sankyo.') == -1 || (this.href.indexOf('/site_' + treelocale) == -1 && this.href.indexOf('/media/') == -1)) && this.href.length != 0 && this.href.indexOf('javascript:') == -1 && this.href.indexOf('mailto:') == -1) {
        							if (this.href.indexOf('http:') != -1) {
        								$(this).attr('target', "warningPopup");
        								$(this).bind("click", function(){
        									openWarningPopup("/warningPopup.php?ref=" + escape(this.href) + "&locale=" + treelocale + "&width=1100&height=600", 'warningPopup', '635', '300');
        									return false;
        								});
        							}
        						}
        					}
        				} else {
                            if (this.href.indexOf("http://www.daiichi-sankyo.it/") == -1) {
                    		    if ((this.href.indexOf('.daiichi') == -1 || this.href.indexOf('sankyo.') == -1 || (this.href.indexOf('/site_' + treelocale) == -1 && this.href.indexOf('/media/') == -1)) && this.href.length != 0 && this.href.indexOf('javascript:') == -1 && this.href.indexOf('mailto:') == -1) {
        							if (this.href.indexOf('http:') != -1) {
        								$(this).attr('target', "warningPopup");
        								$(this).bind("click", function(){
        									openWarningPopup("/warningPopup.php?ref=" + escape(this.href) + "&locale=" + treelocale + "&width=1100&height=600", 'warningPopup', '635', '300');
        									return false;
        								});
        							}
        						}
        					}
                    	}
        			} else {
        				if ((this.href.indexOf('.daiichi') == -1 || this.href.indexOf('sankyo.') == -1 || this.href.indexOf('/site_' + treelocale) == -1) && this.href.length != 0 && this.href.indexOf('javascript:') == -1 && this.href.indexOf('mailto:') == -1) {
        					$(this).attr('target', "warningPopup");
        					$(this).bind("click", function(){  				
        		  				openWarningPopup("/warningPopup.php?ref=" + escape(this.href) + "&locale=" + treelocale + "&width=1100&height=600", 'warningPopup', '635', '300'); 
        		  				return false;
        					});
        				}
        			}
        		}
    		});
    	}
    }
    
    function openWarningPopup(url, name, w, h) {	
    	var left = (screen.width) ? (screen.width-w) / 2 : 0;
    	var top = (screen.height) ? (screen.height-h) / 2 : 0;
    	var settings = 'height=' + h + ', width=' + w + ', top=' + top + ',left=' + left + ', scrollbars=no,resizable=no,menubar=no,toolbar=no,status=no,location=no';
    	window.open(url, name, settings);
    	return false;
    }