// JavaScript Document

 $(document).ready(function() {
   // do stuff when DOM is ready

	function activatemodal(id){
    
		jQuery('html, body').animate({scrollTop:0}, 'slow');
        //Get the screen height and width
        var maskHeight = jQuery(document).height();
        var maskWidth = jQuery(window).width();
     
        //Set height and width to mask to fill up the whole screen
        jQuery('#mask').css({'width':maskWidth,'height':maskHeight});
        jQuery('#mask').css('top',  0);
        jQuery('#mask').css('left', 0); 
        //transition effect    
        jQuery('#mask').fadeIn(1000);   
        jQuery('#mask').fadeTo("slow",0.8); 
     
        //Get the window height and width
        var winH = jQuery(window).height();
        var winW = jQuery(window).width();
               
        //Set the popup window to center
		jQuery(id).css('top',  winH/2 - 203);
        jQuery(id).css('left', winW/2 - 800/2);
     
        //transition effect
        jQuery(id).fadeIn(2000);
  	}

	jQuery('a[name=titleop]').click(function(e) {
        //Cancel the link behavior
        e.preventDefault();
        //Get the A tag		
        var id = jQuery(this).attr('href');     	
		activatemodal(id);
     
    });
	jQuery('a[name=keywords]').click(function(e) {
        //Cancel the link behavior
        e.preventDefault();
        //Get the A tag		
        var id = jQuery(this).attr('href');     	
		activatemodal(id);
     
    });
	jQuery('a[name=abstractsab]').click(function(e) {
        //Cancel the link behavior
        e.preventDefault();
        //Get the A tag		
        var id = jQuery(this).attr('href');     	
		activatemodal(id);
     
    });
	jQuery('a[name=piitg]').click(function(e) {
        //Cancel the link behavior
        e.preventDefault();
        //Get the A tag		
        var id = jQuery(this).attr('href');     	
		activatemodal(id);
     
    });
	jQuery('a[name=references]').click(function(e) {
        //Cancel the link behavior
        e.preventDefault();
        //Get the A tag		
        var id = jQuery(this).attr('href');     	
		activatemodal(id);
     
    });
	jQuery('a[name=dac]').click(function(e) {
        //Cancel the link behavior
        e.preventDefault();
        //Get the A tag		
        var id = jQuery(this).attr('href');     	
		activatemodal(id);
     
    });
	jQuery('a[name=acknowledgements]').click(function(e) {
        //Cancel the link behavior
        e.preventDefault();
        //Get the A tag		
        var id = jQuery(this).attr('href');     	
		activatemodal(id);
     
    });
	
  	jQuery('a[name=modal]').click(function(e) {
        //Cancel the link behavior
        e.preventDefault();
        //Get the A tag		
        var id = jQuery(this).attr('href');     	
		activatemodal(id);
     
    });
	
	jQuery('a[name=issue1]').click(function(e) {
        //Cancel the link behavior
        e.preventDefault();
        //Get the A tag		
        var id = jQuery(this).attr('href');     	
		activatemodal(id);
    });
	
	jQuery('a[name=issue1abstract]').click(function(e) {
        //Cancel the link behavior
        e.preventDefault();
        //Get the A tag		
        var id = jQuery(this).attr('href');     	
		activatemodal(id);
    });

	jQuery('a[name=issue2]').click(function(e) {
        //Cancel the link behavior
        e.preventDefault();
        //Get the A tag		
        var id = jQuery(this).attr('href');     	
		activatemodal(id);
    });
	jQuery('a[name=issue2abstract]').click(function(e) {
        //Cancel the link behavior
        e.preventDefault();
        //Get the A tag		
        var id = jQuery(this).attr('href');     	
		activatemodal(id);
    });
	
	jQuery('a[name=issue3]').click(function(e) {
        //Cancel the link behavior
        e.preventDefault();
        //Get the A tag		
        var id = jQuery(this).attr('href');     	
		activatemodal(id);
    });
	jQuery('a[name=issue3abstract]').click(function(e) {
        //Cancel the link behavior
        e.preventDefault();
        //Get the A tag		
        var id = jQuery(this).attr('href');     	
		activatemodal(id);
    });
	
	jQuery('a[name=issue4]').click(function(e) {
        //Cancel the link behavior
        e.preventDefault();
        //Get the A tag		
        var id = jQuery(this).attr('href');     	
		activatemodal(id);
    });
	jQuery('a[name=issue4abstract]').click(function(e) {
        //Cancel the link behavior
        e.preventDefault();
        //Get the A tag		
        var id = jQuery(this).attr('href');     	
		activatemodal(id);
    });
	
	jQuery('a[name=issue5]').click(function(e) {
        //Cancel the link behavior
        e.preventDefault();
        //Get the A tag		
        var id = jQuery(this).attr('href');     	
		activatemodal(id);
    });
	jQuery('a[name=issue5abstract]').click(function(e) {
        //Cancel the link behavior
        e.preventDefault();
        //Get the A tag		
        var id = jQuery(this).attr('href');     	
		activatemodal(id);
    });
	jQuery('a[name=issue6]').click(function(e) {
        //Cancel the link behavior
        e.preventDefault();
        //Get the A tag		
        var id = jQuery(this).attr('href');     	
		activatemodal(id);
    });
	jQuery('a[name=issue6abstract]').click(function(e) {
        //Cancel the link behavior
        e.preventDefault();
        //Get the A tag		
        var id = jQuery(this).attr('href');     	
		activatemodal(id);
    });
	jQuery('a[name=issue7]').click(function(e) {
        //Cancel the link behavior
        e.preventDefault();
        //Get the A tag		
        var id = jQuery(this).attr('href');     	
		activatemodal(id);
    });
	jQuery('a[name=issue7abstract]').click(function(e) {
        //Cancel the link behavior
        e.preventDefault();
        //Get the A tag		
        var id = jQuery(this).attr('href');     	
		activatemodal(id);
    });
	jQuery('a[name=issue8]').click(function(e) {
        //Cancel the link behavior
        e.preventDefault();
        //Get the A tag		
        var id = jQuery(this).attr('href');     	
		activatemodal(id);
    });
	jQuery('a[name=issue8abstract]').click(function(e) {
        //Cancel the link behavior
        e.preventDefault();
        //Get the A tag		
        var id = jQuery(this).attr('href');     	
		activatemodal(id);
    });
	jQuery('a[name=issue9]').click(function(e) {
        //Cancel the link behavior
        e.preventDefault();
        //Get the A tag		
        var id = jQuery(this).attr('href');     	
		activatemodal(id);
    });
	jQuery('a[name=issue9abstract]').click(function(e) {
        //Cancel the link behavior
        e.preventDefault();
        //Get the A tag		
        var id = jQuery(this).attr('href');     	
		activatemodal(id);
    });
	jQuery('a[name=issue10]').click(function(e) {
        //Cancel the link behavior
        e.preventDefault();
        //Get the A tag		
        var id = jQuery(this).attr('href');     	
		activatemodal(id);
    });
	jQuery('a[name=issue10abstract]').click(function(e) {
        //Cancel the link behavior
        e.preventDefault();
        //Get the A tag		
        var id = jQuery(this).attr('href');     	
		activatemodal(id);
    });
	jQuery('a[name=issue11]').click(function(e) {
        //Cancel the link behavior
        e.preventDefault();
        //Get the A tag		
        var id = jQuery(this).attr('href');     	
		activatemodal(id);
    });
	jQuery('a[name=issue11abstract]').click(function(e) {
        //Cancel the link behavior
        e.preventDefault();
        //Get the A tag		
        var id = jQuery(this).attr('href');     	
		activatemodal(id);
    });
	jQuery('a[name=issue12]').click(function(e) {
        //Cancel the link behavior
        e.preventDefault();
        //Get the A tag		
        var id = jQuery(this).attr('href');     	
		activatemodal(id);
    });
	jQuery('a[name=issue12abstract]').click(function(e) {
        //Cancel the link behavior
        e.preventDefault();
        //Get the A tag		
        var id = jQuery(this).attr('href');     	
		activatemodal(id);
    });
	jQuery('a[name=issue13]').click(function(e) {
        //Cancel the link behavior
        e.preventDefault();
        //Get the A tag		
        var id = jQuery(this).attr('href');     	
		activatemodal(id);
    });
	jQuery('a[name=issue13abstract]').click(function(e) {
        //Cancel the link behavior
        e.preventDefault();
        //Get the A tag		
        var id = jQuery(this).attr('href');     	
		activatemodal(id);
    });
	jQuery('a[name=issue14]').click(function(e) {
        //Cancel the link behavior
        e.preventDefault();
        //Get the A tag		
        var id = jQuery(this).attr('href');     	
		activatemodal(id);
    });
	jQuery('a[name=issue14abstract]').click(function(e) {
        //Cancel the link behavior
        e.preventDefault();
        //Get the A tag		
        var id = jQuery(this).attr('href');     	
		activatemodal(id);
    });
	jQuery('a[name=issue15]').click(function(e) {
        //Cancel the link behavior
        e.preventDefault();
        //Get the A tag		
        var id = jQuery(this).attr('href');     	
		activatemodal(id);
    });
	jQuery('a[name=issue15abstract]').click(function(e) {
        //Cancel the link behavior
        e.preventDefault();
        //Get the A tag		
        var id = jQuery(this).attr('href');     	
		activatemodal(id);
    });
	jQuery('a[name=issue16]').click(function(e) {
        //Cancel the link behavior
        e.preventDefault();
        //Get the A tag		
        var id = jQuery(this).attr('href');     	
		activatemodal(id);
    });
	jQuery('a[name=issue16abstract]').click(function(e) {
        //Cancel the link behavior
        e.preventDefault();
        //Get the A tag		
        var id = jQuery(this).attr('href');     	
		activatemodal(id);
    });
	jQuery('a[name=issue17]').click(function(e) {
        //Cancel the link behavior
        e.preventDefault();
        //Get the A tag		
        var id = jQuery(this).attr('href');     	
		activatemodal(id);
    });
	jQuery('a[name=issue17abstract]').click(function(e) {
        //Cancel the link behavior
        e.preventDefault();
        //Get the A tag		
        var id = jQuery(this).attr('href');     	
		activatemodal(id);
    });
	jQuery('a[name=issue18]').click(function(e) {
        //Cancel the link behavior
        e.preventDefault();
        //Get the A tag		
        var id = jQuery(this).attr('href');     	
		activatemodal(id);
    });
	jQuery('a[name=issue18abstract]').click(function(e) {
        //Cancel the link behavior
        e.preventDefault();
        //Get the A tag		
        var id = jQuery(this).attr('href');     	
		activatemodal(id);
    });
	jQuery('a[name=issue19]').click(function(e) {
        //Cancel the link behavior
        e.preventDefault();
        //Get the A tag		
        var id = jQuery(this).attr('href');     	
		activatemodal(id);
    });
	jQuery('a[name=issue19abstract]').click(function(e) {
        //Cancel the link behavior
        e.preventDefault();
        //Get the A tag		
        var id = jQuery(this).attr('href');     	
		activatemodal(id);
    });
	jQuery('a[name=issue20]').click(function(e) {
        //Cancel the link behavior
        e.preventDefault();
        //Get the A tag		
        var id = jQuery(this).attr('href');     	
		activatemodal(id);
    });
	jQuery('a[name=issue20abstract]').click(function(e) {
        //Cancel the link behavior
        e.preventDefault();
        //Get the A tag		
        var id = jQuery(this).attr('href');     	
		activatemodal(id);
    });
	jQuery('a[name=issue21]').click(function(e) {
        //Cancel the link behavior
        e.preventDefault();
        //Get the A tag		
        var id = jQuery(this).attr('href');     	
		activatemodal(id);
    });
	jQuery('a[name=issue21abstract]').click(function(e) {
        //Cancel the link behavior
        e.preventDefault();
        //Get the A tag		
        var id = jQuery(this).attr('href');     	
		activatemodal(id);
    });
	jQuery('a[name=issue22]').click(function(e) {
        //Cancel the link behavior
        e.preventDefault();
        //Get the A tag		
        var id = jQuery(this).attr('href');     	
		activatemodal(id);
    });
	jQuery('a[name=issue22abstract]').click(function(e) {
        //Cancel the link behavior
        e.preventDefault();
        //Get the A tag		
        var id = jQuery(this).attr('href');     	
		activatemodal(id);
    });
	jQuery('a[name=issue23]').click(function(e) {
        //Cancel the link behavior
        e.preventDefault();
        //Get the A tag		
        var id = jQuery(this).attr('href');     	
		activatemodal(id);
    });
	jQuery('a[name=issue23abstract]').click(function(e) {
        //Cancel the link behavior
        e.preventDefault();
        //Get the A tag		
        var id = jQuery(this).attr('href');     	
		activatemodal(id);
    });
	jQuery('a[name=issue24]').click(function(e) {
        //Cancel the link behavior
        e.preventDefault();
        //Get the A tag		
        var id = jQuery(this).attr('href');     	
		activatemodal(id);
    });
	jQuery('a[name=issue24abstract]').click(function(e) {
        //Cancel the link behavior
        e.preventDefault();
        //Get the A tag		
        var id = jQuery(this).attr('href');     	
		activatemodal(id);
    });
	jQuery('a[name=issue25]').click(function(e) {
        //Cancel the link behavior
        e.preventDefault();
        //Get the A tag		
        var id = jQuery(this).attr('href');     	
		activatemodal(id);
    });
	jQuery('a[name=issue25abstract]').click(function(e) {
        //Cancel the link behavior
        e.preventDefault();
        //Get the A tag		
        var id = jQuery(this).attr('href');     	
		activatemodal(id);
    });
	jQuery('a[name=issue26]').click(function(e) {
        //Cancel the link behavior
        e.preventDefault();
        //Get the A tag		
        var id = jQuery(this).attr('href');     	
		activatemodal(id);
    });
	jQuery('a[name=issue26abstract]').click(function(e) {
        //Cancel the link behavior
        e.preventDefault();
        //Get the A tag		
        var id = jQuery(this).attr('href');     	
		activatemodal(id);
    });
	jQuery('a[name=issue27]').click(function(e) {
        //Cancel the link behavior
        e.preventDefault();
        //Get the A tag		
        var id = jQuery(this).attr('href');     	
		activatemodal(id);
    });
	jQuery('a[name=issue27abstract]').click(function(e) {
        //Cancel the link behavior
        e.preventDefault();
        //Get the A tag		
        var id = jQuery(this).attr('href');     	
		activatemodal(id);
    });
	jQuery('a[name=issue28]').click(function(e) {
        //Cancel the link behavior
        e.preventDefault();
        //Get the A tag		
        var id = jQuery(this).attr('href');     	
		activatemodal(id);
    });
	jQuery('a[name=issue28abstract]').click(function(e) {
        //Cancel the link behavior
        e.preventDefault();
        //Get the A tag		
        var id = jQuery(this).attr('href');     	
		activatemodal(id);
    });
    //if close button is clicked
    jQuery('.window .close').click(function (e) {
        //Cancel the link behavior
        e.preventDefault();
        jQuery('#mask, .window').hide();
    });    
     
    //if mask is clicked
    jQuery('#mask').click(function () {
        jQuery(this).hide();
        jQuery('.window').hide();
    });      
  
 });

