forcej,
<!DOCTYPE HTML>
<html>
<head>
<title>Untitled</title>
<meta charset="utf-8">
<style type="text/css">
</style>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<script>
$(function(){
function Dobj(d_class) {
this.dTitle = $(d_class + " h1");
this.dBody = $(d_class + " p");
this.move = function() {
$(this.dBody).toggle()
}
$(this.dTitle).click(this.move.bind(this))
$(this.dTitle).trigger('click')
}
var d = new Dobj(".d_class")
});
</script>
</head>
<body class="d_class">
<h1>click</h1>
<p>hide</p>
</body>
</html>