﻿$(document).ready(function(){
		$('div#mainDiv').pngFix( );
		
		$("#fbBtn02").hide();	
		$("#hideShowChecker").hide();	
		$('.leftSideContentDiv').animate({marginLeft: "-700px"});
		$('.leftSideContentButton').click(function(){	
				if($("#hideShowChecker").is(":hidden")){
					$('.leftSideContentDiv').animate({	
						marginLeft: "00px",			
					},500);				
					$("#hideShowChecker").show();
					$("#fbBtn01").fadeOut();
					$("#fbBtn02").fadeIn();
				}else{
					$('.leftSideContentDiv').animate({		
						marginLeft: "-700px",		
					},500);		
					$("#hideShowChecker").hide();	
					$("#fbBtn01").fadeIn();
					$("#fbBtn02").fadeOut();
				}
		});
});

/*-----------------------------tool tip-----------------------------------*/

this.vtip = function() {    
    this.xOffset = -10; // x distance from mouse
    this.yOffset = 10; // y distance from mouse       
    
    $(".vtip").unbind().hover(    
        function(e) {
            this.t = this.title;
            this.title = ''; 
            this.top = (e.pageY + yOffset); this.left = (e.pageX + xOffset);
            
            $('body').append( '<p id="vtip"><img id="vtipArrow" />' + this.t + '</p>' );
                        
            $('p#vtip #vtipArrow').attr("src", 'images/vtip_arrow.png');
            $('p#vtip').css("top", this.top+"px").css("left", this.left+"px").fadeIn("slow");
            
        },
        function() {
            this.title = this.t;
            $("p#vtip").fadeOut("slow").remove();
        }
    ).mousemove(
        function(e) {
            this.top = (e.pageY + yOffset);
            this.left = (e.pageX + xOffset);
                         
            $("p#vtip").css("top", this.top+"px").css("left", this.left+"px");
        }
    );            
    
};

jQuery(document).ready(function($){vtip();}) 

/*-------------------------------tool tip ends----------------------------------*/

/*------------------------------------float menu-------------------------------------------*/

var name = "#floatMenu";
	var menuYloc = null;
	
		$(document).ready(function(){
			menuYloc = parseInt($(name).css("top").substring(0,$(name).css("top").indexOf("px")))
			$(window).scroll(function () { 
				offset = menuYloc+$(document).scrollTop()+"px";
				$(name).animate({top:offset},{duration:600,queue:false});
			});
		}); 


/*-------------------------------------INIT---------------------------------------------*/

function init()
{	
	document.frmLogin.user_id.value = "Username";
	/*document.frmLogin.user_pwd.value = "Password";*/
	//document.frmLogin.user_pwd.type = "password";
	
}
function focusTextuserid()
{
	if(document.frmLogin.user_id.value == "Username")
	{
		document.frmLogin.user_id.value = "";		
	}		
}
function blurTextuserid()
{
	if(document.frmLogin.user_id.value == "")
	{
		document.frmLogin.user_id.value = "Username";		

	}	
	
	
}
/*

function focusTextpassword()
{
	if(document.frmLogin.user_pwd.value == "Password")
	{
		document.frmLogin.user_pwd.value = "";		
	}	
	document.frmLogin.user_pwd.type = "password";
}
function blurTextpassword()
{
	if(document.frmLogin.user_pwd.value == "")
	{
		document.frmLogin.user_pwd.value = "Password";
		document.frmLogin.user_pwd.type = "text";

	}	
	else{
		document.frmLogin.user_pwd.type = "text";
	}
	
}

*/



/*

<form name="registrationForm">
<input class="textbox" name="fnameText" type="text" title="First Name" style="width:80px;" onfocus="focusTextFname()" onblur="blurTextFname()" visible="true" />
<input id="lname" class="textbox" name="lastNameText" type="text" title="Last Name" value="Last Name"  style="width:80px; height: 13px;" onfocus="focusTextLname()" onblur="blurTextLname()" />
</form>


*/

/*-----------------------------------------------Zoom Window------------------------------------------------------------------------------*/
//Larger thumbnail preview 

//Swap Image on Click
/*

$("ul.thumb li").hover(function() {
	$(this).css({'z-index' : '10'});
	$(this).find('img').addClass("hover").stop()
		.animate({
			marginTop: '0px', 
			marginLeft: '0px', 
			top: '-5px', 
			left: '-15px', 
			width: '270px', 
			height: '101px',
			padding: '0px' 
		}, 200);
	
	} , function() {
	$(this).css({'z-index' : '0'});
	$(this).find('img').removeClass("hover").stop()
		.animate({
			marginTop: '0', 
			marginLeft: '0',
			top: '0', 
			left: '0', 
			width: '243px', 
			height: '91px', 
			padding: '0px'
		}, 400);
});


	$("ul.thumb li a").click(function() {
		
		var mainImage = $(this).attr("href"); //Find Image Name
		$("#main_view img").attr({ src: mainImage });
		return false;		
	});
 
});
*/


