$(document).ready(function(){
	
	if(document.location.href.indexOf("/" + countrySite + "/support/") == -1){
		
	
         var ext_arr=["https://www.cisco.com/autho/logout.html?ReturnUrl=http://www.cisco.com/web/fw/lo/logout.html?locale=ru_RU","http://tools.cisco.com/RPF/register/register.do?locale=ru_RU","http://www.cisco.com/web/siteassets/legal/global/privacy_statement_ru.html#cookies","http://www.cisco.com/web/siteassets/legal/global/privacy_statement_ru.html","http://ecmx-wip.cisco.com/web/siteassets/legal/global/privacy_statement_ru.html#cookies","http://ecmx-wip.cisco.com/web/siteassets/legal/global/privacy_statement_ru.html","https://tools.cisco.com/gdrp/coiga/showsurvey.do?surveyCode=4217&keyCode=195754_8","https://tools.cisco.com/gdrp/coiga/showsurvey.do?surveyCode=4217&keyCode=195751_8",
"https://apps.cisco.com/gdrp/coiga/showsurvey.do?surveyCode=4217&keyCode=195751_8",
"https://apps.cisco.com/gdrp/coiga/showsurvey.do?surveyCode=4218&keyCode=195754_8",
"http://cisco.com/cisco/psn/web/workspace",
"http://wwwin.cisco.com/marketing/collaboration/docs/wintheworkspace/RU_top_ten_WP.pdf" ];
$('a').hover(function(event){
    if(this.getElementsByTagName("img").length<1 ){
     var exttest_var=0;var ext_len=ext_arr.length;
     
     for(ext_var=0;ext_var<ext_len;ext_var++)
     {  
      if(this.href.indexOf(ext_arr[ext_var]) ==0){exttest_var=1; break; }     
      }
     if(this.href.indexOf("cisco.com") >= 0) {
 
   // exclude links containing reference to local country
     if(this.href.indexOf("/" + countrySite + "/") == -1) {    
      if(this.href.indexOf("/web/" + countrySite + "/") == -1 && this.href.indexOf("mailto:") == -1 && this.href.indexOf("/offer/urls/") == -1 )
       {
        if(this.href.indexOf("/" + countrySite.toLowerCase() + "/") == -1) {
        $(this).addClass('ins');}
        if(exttest_var!=1){               
         x1=event.pageX ;y1=event.pageY;  
         $("#img1").css({'visibility' :'visible'});
         x=x1;y=y1+20;
         $("#img1").css( { "left": x + "px", "top":y + "px" } );
         $("#img1").show();
         $("#img1").css('z-index','1000');
        }
       }
      }
     }
      }
    }
   ,function(){
    if($(this).hasClass('ins')){
     $(this).removeClass('ins');
     $("#img1").css({'visibility' :'hidden'});
     $("#img1").css('z-index','100');
     }
    }).mousemove(function(event){
       if(this.getElementsByTagName("img").length<1 ){
       var exttest_var=0;var ext_len=ext_arr.length;
     
     for(ext_var=0;ext_var<ext_len;ext_var++)
     {  
      if(this.href.indexOf(ext_arr[ext_var]) == 0){exttest_var=1;break;}     
      }
     if(this.href.indexOf("cisco.com") >= 0) {
      // exclude links containing reference to local country
      if(this.href.indexOf("/" + countrySite + "/") == -1) {
       if(this.href.indexOf("/" + countrySite.toLowerCase() + "/") == -1) {
        if(this.href.indexOf("/web/" + countrySite + "/") == -1  && this.href.indexOf("/support/" + countrySite + "/") == -1 && this.href.indexOf("mailto:") == -1 && this.href.indexOf("/offer/urls/") == -1 )
       {
        if(exttest_var!=1){
        lft=event.pageX; rgt=event.pageY;
        lf=lft; rg=rgt+20;
        $("#img1").css( { "left": lf + "px", "top":rg + "px" } );
        $("#img1").show();
        }
        }
       }
       }
      }
    }
 });
 }
 
 });

