jQuery.fn.flywindow = function () {
	var flyboss   = this;
	    flyWindow  = this.children('.flywindow');
	    flyClick1 = flyWindow.children('.click1'),
	    flyClick2 = flyWindow.children('.click2');
		flyCorn  = this.children('.CornLeft');
		
		
	$(flyClick1)
		.click(function () {
			$(this).css({display:'none'});
			$(flyWindow).animate({width: 780}, 1000 );
			$(flyClick2).css({display:'block'});
			$(flyCorn).animate({left: -525}, 1000 );
		})
		.hover(
			function(){$(this).css({
				'cursor' :'pointer',
				'text-decoration' :'none'
				})},
		  	function(){$(this).css({
				'text-decoration' :'underline'
				})});	
	$(flyClick2)
		.click(function () {
			$(this).css({display:'none'});
			$(flyWindow).animate({width: 258}, 1000 );
			$(flyClick1).css({display:'block'});
			$(flyCorn).animate({left: -3}, 1000 );
		})
		.hover(
			function(){$(this).css({
				'cursor' :'pointer',
				'text-decoration' :'none'
				})},
		  	function(){$(this).css({
				'text-decoration' :'underline'
				})});	
}