Magento move cart to header

# xml config
<?xml version="1.0" encoding="UTF-8"?>

# header
./app/design/frontend/default/default/template/page/html/header.phtml
add
<?php echo $this->getChildHtml('topCart')?>

# style
./skin/frontend/default/default/css/styles.css
add
.header .block-cart {
width:195px;
float:right;
margin-bottom:0px;
}

.block-cart .block-content {
border: none;
-moz-box-shadow: 0px 0px 0px #0C0C0C;
background: #E4DFD4;
height: 47px;
}

.block-cart .amount {
color:#000000;
padding-top: 4px;
text-align: center;
}

.block-cart .summary {
background:none repeat scroll 0 0 #E4DFD4;
color:#fff;
padding: 2px 8px 4px;
}

.block-cart .subtotal {
background:none repeat scroll 0 0 #470615;
}

# translation
sed -i 's|,"Zum Warenkorb"|,"Warenkorb anzeigen"|g' ./app/locale/de_DE/Mage_Customer.csv
sed -i 's|,"Vers le panier"|,"Consulter panier"|g' ./app/locale/fr_FR/Mage_Customer.csv
sed -i 's|,"Régler mes achats"|,"Caisse"|g' ./app/locale/fr_FR/Mage_Checkout.csv

# ./app/design/frontend/default/default/template/checkout/cart/topbar.phtml
<?php
/**
* ./app/design/frontend/default/default/template/checkout/cart/topbar.phtml
*
* based on ./app/design/frontend/base/default/template/checkout/cart/sidebar.phtml
*/
?>

execute this:
mkdir -p ./app/design/frontend/default/default/template/checkout/cart
wget http://www.panticz.de/sites/default/files/magento/cart/topbar.phtml -O ./app/design/frontend/default/default/template/checkout/cart/topbar.phtml

# OPTIONAL: HowTo edit Wishlist
mkdir -p code/local/Mage/Wishlist/Block
cp ./app/code/core/Mage/Wishlist/Block/Links.php ./app/code/local/Mage/Wishlist/Block/Links.php

# Links
http://www.magentocommerce.com/boards/viewthread/13046/
http://shamimcse05.wordpress.com/2010/12/23/how-to-get-total-cart-item-and-total-price-in-magento/