jQuery(document).ready(function(){
	$("#hidePanel").click(function(){
		$("#panel").animate({marginLeft:"-250px"}, 500 );
		$("#colleft").animate({width:"0px", opacity:0}, 400 );
		$("#showPanel").show("normal").animate({width:"10px", opacity:1}, 200);
		$("#colright").animate({marginLeft:"0px"}, 500);
	});
	$("#showPanel").click(function(){
		$("#colright").animate({marginLeft:"250px"}, 200);
		$("#panel").animate({marginLeft:"0px"}, 400 );
		$("#colleft").animate({width:"250px", opacity:1}, 400 );
		$("#showPanel").animate({width:"0px", opacity:0}, 600).hide("slow");
	});
});

document.onclick=check;
function check(a){
var target = (a && a.target) || (event && event.srcElement);
var Crm = document.getElementById('Crm');
var Ret = document.getElementById('Ret');
var obj = document.getElementById('startmenu');
var obj2 = document.getElementById('SmB');
if (target!=Crm&&target!=Ret) {
if(target!=obj&&target!=obj2){obj.style.display='none'}
else if(target==obj2){(obj.style.display=='block') ? obj.style.display="none" : obj.style.display="block"  }
}
}

$(document).ready(function(){
$("img.a").hover(
function() {
$(this).stop().animate({"opacity": "0"}, "slow");
},
function() {
$(this).stop().animate({"opacity": "1"}, "slow");
});
 
});
