
function Search(SearchBox) {
    SearchText = document.getElementById(SearchBox).value;
	$.fancybox({ 
		'href' : 'search.aspx?SearchText=' + SearchText,
		'autoScale' : false, 
		'width' : 680,
		'transitionIn' : 'fade', 
		'transitionOut' : 'fade',
		'speedIn' : 200, 
		'speedOut' : 100,
		'hideOnContentClick' : true,
		'hideOnOverlayClick' : true,
		'showCloseButton' : true,
		'overlayShow' : true, 
		'type' : 'iframe'
	}); 
}
function CheckKeypress(e, SearchBox)
{
    var CharCode = e.keyCode? e.keyCode : e.charCode;
    if(CharCode == 13){
        Search(SearchBox);
        return false; 
    } else {
        return true;
    }
}

function LogIn() {

	$.fancybox({ 
		//'href' : 'account.aspx',
		'href' : 'Login.aspx',
		'autoScale' : false, 
		'width' : 680,
		'transitionIn' : 'fade', 
		'transitionOut' : 'fade',
		'speedIn' : 200, 
		'speedOut' : 100,
		'hideOnContentClick' : true,
		'hideOnOverlayClick' : true,
		'showCloseButton' : true,
		'overlayShow' : true, 
		'type' : 'iframe'
	}); 
}

function LogOut() {

	$.fancybox({ 
		//'href' : '/Account.aspx?mode=logout',
		'href' : '/Login.aspx?mode=logout',
		'autoScale' : false, 
		'width' : 680,
		'transitionIn' : 'fade', 
		'transitionOut' : 'fade',
		'speedIn' : 200, 
		'speedOut' : 100,
		'hideOnContentClick' : true,
		'hideOnOverlayClick' : true,
		'showCloseButton' : true,
		'overlayShow' : true, 
		'type' : 'iframe'
	}); 

}

function LogOut2() 
{
	parent.$.fancybox.close();
	parent.window.location.reload(true); 
}





/////////////////////////////      
// Share it show on click //
var addthis_config = 
{
   ui_click: true
}

