$(document).ready(function(){

$("a.zoom").fancybox({
	'width'				: '85%',
	'height'			: '85%',
        'autoScale'     	: false,
        'transitionIn'		: 'none',
	'transitionOut'		: 'none',
	'type'				: 'iframe'

                });
//        $("#trial_load").click(function(){
//this.href='';
        //$("#trialframe").load("http://salesforce.sharedvue.net/sharedvue/iframe/?sviresizer=www.ventussolutions.com/sviframeresize.htm",, function() {  alert('Load was performed.');});
//});


        $("#forgotpassword").click(function(){
		
//		alert('value'+document.getElementById('comm_email').value;
//		$("#mail_pass").val(a);
                document.getElementById('mail_pass').value=document.getElementById('comm_email').value;
                $("#mailbox").slideToggle("slow");

        });
	$("a.signin").click(function(){
		$("#loginbox").slideToggle("slow");
		
	});

	$("span.addpost_trigger").click(function(){
		$("#addpost").slideToggle("slow");
	});
	


$(".editbtn").click(function(){
element=document.getElementById("e"+(($(this).attr('id')).substr(7,6)));
oldid=element.id;
    if ( element.nodeName.toLowerCase() == 'div'
         && ( element.className.indexOf( 'editable' ) != -1 ) )
        replaceDiv( element );
$("#f"+element.id+" .ee").css('display','block');


})



})
;
