function popSlide(URL){
	var win = window.open(URL,'Popup','width=500,height=480,left=200,top=220,scrollbars=yes');
	win.focus();
	
	}
	
	function popPrint(URL){
	
	var win = window.open(URL,'Popup','width=500,height=480,left=200,top=220,scrollbars=yes,menubar=yes');
	win.focus();
	}
	

var page=document.location.href;
var functionPage=page.match(/functions/);

var inhalerPop="";
var  practicePop="";
function popInhaler(URL){ 
	if (practicePop){
		practicePop.close();
		document.popPractice.src="http://experts.respimat.com/Images/common/s.gif";
	}
    	inhalerPop= window.open(URL,'inhaler','width=510,height=680,left=200,top=120');
	inhalerPop.focus();

    if (functionPage){
      document.popInhaler.src="http://experts.respimat.com/Images/common/subnav_bullet.gif";
     } 
 }    
function popPractice(URL){  
	if (inhalerPop){
		inhalerPop.close();
		document.popInhaler.src="http://experts.respimat.com/Images/common/s.gif";
	}
	 practicePop = window.open(URL,'practice','width=480,height=430,left=200,top=220');
         practicePop.focus();  

      if (functionPage){
       document.popPractice.src="http://experts.respimat.com/Images/common/subnav_bullet.gif";  
     } 
}

function closeInhaler(){   
var baseURL=opener.document.location.href;  
var openerPage=baseURL.match(/functions/);
    self.close();
    if (openerPage){      
    opener.document.popInhaler.src="http://experts.respimat.com/Images/common/s.gif";
	}
     
}
    
function closePractice(){
     self.close();
     var baseURL=opener.document.location.href; 
     var openerPage=baseURL.match(/functions/);
      if (openerPage){
     	opener.document.popPractice.src="http://experts.respimat.com/Images/common/s.gif";
     }
}
    
	
function  popDisclaimer(URL){
	var win = window.open(URL,'Popup','width=500,height=380,left=200,top=220');
	win.focus();
	}

function popSmall(URL){
	var win = window.open(URL,'Popup','width=500,height=480,left=200,top=220,scrollbars=yes');
	win.focus();
	}
	
function popLarge(URL){
	var win = window.open(URL,'Popup','width=678,height=470,left=200,top=220');
	win.focus();
	}
	
var tickertext = "+++ Now free of charge: order new studies and dowload posters +++";
/*+++ Available for download: Get a range of abstracts, posters on Respimat® SMI presented at the ERS congress 2006 in Munich +++*/
/*+++ Join the discussion: new article at the forum +++ Order free of charge: periodical \“European Respiratory Review\” dealing with improving inhaler use in COPD and the role of patient preference +++ Join the discussion: new article at the forum +++ Order free of charge: periodical \“European Respiratory Review\” dealing with improving inhaler use in COPD and the role of patient preference */
var start = 0;
var stop = tickertext.length;

function ticker() {
document.ticker.ticker.value = "" + tickertext.substring(start,stop) + " " + tickertext.substring(0,start);
start++;
if(start >= stop) { start = 0; }
setTimeout("ticker()", 185);
}