$(document).ready(function() {

$("div.panel_button").click(function(){
$("div#panel").animate({
height: "191px"
})
.animate({
height: "171px"
}, "fast");
$("div.panel_button").toggle();
});	

$("div#hide_button").click(function(){
$("div#panel").animate({
height: "7px"
}, "fast");
});	
});
// <![CDATA[
function fixed_top(select,offS){
return Number(offS+document.documentElement.scrollTop+document.body.scrollTop)+'px';
}
function fixed_left(select,offS){
return Number(offS+document.documentElement.scrollLeft+document.body.scrollLeft)+'px';
}
function fixed_bottom(select,offS){
return Number(-offS+document.documentElement.clientHeight-select.offsetHeight+document.documentElement.scrollTop+document.body.scrollTop)+'px';
}
function fixed_right(select,offS){
return Number(-offS+document.documentElement.clientWidth-select.offsetWidth+document.documentElement.scrollLeft+document.body.scrollLeft)+'px';
}
// ]]>
$(document).ready(function() {
$("a.thickbox, a[rel='lightbox']").fancybox({
imageScale : true
}); 
$("a#box_ami").fancybox({
frameWidth : 300,
frameHeight : 200
}); 
$("a.iframe").fancybox({ 
frameWidth :500,
frameHeight :400
});
$("a#box_ml").fancybox({
frameWidth : 650,
frameHeight : 500
}); 
if(document.all){
$("a#box_fav").click(function(){
window.external.AddFavorite(location.href, document.title);
});
}else{
$("a#box_fav").fancybox({ 
'hideOnContentClick': true,
frameWidth : 300,
frameHeight : 100			 
});
}
});
