function popup(mylink, windowname, width, height, scroll)
{
        if (! window.focus)return true;
        var href;
        if (typeof(mylink) == 'string')
        href=mylink;
        else
        href=mylink.href;
        if (scroll==1)
        window.open(href, windowname, 'scrollbars=yes,status=no,width='+width+',height='+height);
        else
        window.open(href, windowname, 'scrollbars=no,status=no,width='+width+',height='+height);
        return false;
} 

//link back to the product page
function linkToProduct(url){
	window.opener.location=url;
	window.close();
	return false;
}


// Add bookmark for both browser engines...
function addBookmark(title,url) {
  if (window.sidebar) {
    window.sidebar.addPanel(title, url,"");
  } else if( document.all ) {
    window.external.AddFavorite( url, title);
  } else if( window.opera && window.print ) {
    return true;
  }
} 
//declare the last var and set an initial state (to stop errors)
last = '1';

function activateTip(which){
        //remove any existing highlight
        toTheTop();
        
        //apply the new highlight
		document.getElementById('faqDiv'+which).className = 'active';   
		
		//apply the new highlight on the faq menu
		document.getElementById('faqMenu'+which).className = 'active';   

        //set the last tag so we know which to remove next time
        last = which;
}

function toTheTop(){
        //reset the background image on the faq
		document.getElementById('faqDiv'+last).className = '';   

        //reset the background image on the faq menu
		document.getElementById('faqMenu'+last).className = '';      
        }

