var httpAjaxAlbum = false; 

    function doTheThingAlbum (url, obj) { 

	
	
        httpAjaxAlbum = false; 
        handler = false; 
        if (window.XMLHttpRequest) { 
            httpAjaxAlbum = new XMLHttpRequest(); 
            if (httpAjaxAlbum.overrideMimeType) { 
                httpAjaxAlbum.overrideMimeType('text/xml'); 
            } 
        } else if (window.ActiveXObject) { 
            try { 
                httpAjaxAlbum = new ActiveXObject("Msxml2.XMLHTTP"); 
            } catch (e) { 
                try { 
                    httpAjaxAlbum = new ActiveXObject("Microsoft.XMLHTTP"); 
                } catch (e) { 
                    alert("Couldn´t build an AJAX instance."); 
                    return false; 
                } 
            } 
        } 
        try { 
            httpAjaxAlbum.onreadystatechange = getPageAlbum; 
        } catch (e) { 
            alert("onreadystatechange didn´t go well!"); 
            return false; 
        } 
        try { 
            httpAjaxAlbum.open('GET', url, true); 
        } catch (e) { 
            alert("Couldn´t open url."); 
            return false; 
        } 
        try { 
            httpAjaxAlbum.send(null); 
        } catch (e) { 
            alert("Couldn´t send request."); 
            return false; 
        } 
            return true; 

function getPageAlbum() {
 if(httpAjaxAlbum.readyState == 4){ 
 

 
            document.getElementById(obj).innerHTML = httpAjaxAlbum.responseText; 
			
	/*		     sIFR.replace(rockwell, {
	wmode: 'transparent',
      selector: 'h2.resmalrubrik'
      ,css: [
        '.sIFR-root { color: #bed5d7c; leading: 0; letter-spacing:0.7; text-transform:uppercase; background-color:#7fb4bd }'
        ,'a { text-decoration: none; }'
        ,'a:link { color: #bed5d7; }'
        ,'a:hover { color: #FFFFFF; text-decoration: underline; }'
      ]
    });
	*/
	
	
			Cufon.replace('h2', 
{
				hover:true
			}); // Requires a selector engine for IE 6-7, see above
	
	
			
            return true; 
        } else { 
            document.getElementById(obj).innerHTML = "<div align='center' style='padding-top:50px'><img src='http://www.almers.nu/ajax-loader.gif' width='24' height='24' /></div>"; 
			
			
        } 
}



	

} 




