function InitializeNotificationArea(target){$(target).find('div.notify-close a').click(function(){$(this).closest('.notification').addClass('notify-hidden');return false;});}
function HideNotificationArea(target){if($(target).hasClass('notification')){$(target).addClass('notify-hidden');}}
function ShowNotificationArea(target,settings){var hide=true;if($(target).hasClass('notification')){if(settings!=null){if(settings.notifyMode=='error'){hide=false;$(target).removeClass('notify-error notify-success notify-info notify-info2').addClass('notify-error');}
else if(settings.notifyMode=='success'){$(target).removeClass('notify-error notify-success notify-info notify-info2').addClass('notify-success');}
else if(settings.notifyMode=='info'){$(target).removeClass('notify-error notify-success notify-info notify-info2').addClass('notify-info');}
else if(settings.notifyMode=='info2'){$(target).removeClass('notify-error notify-success notify-info notify-info2').addClass('notify-info2');}
if(settings.text!=null){hide=false;$(target).find('p.notify-message').text(settings.text);}
else{$(target).find('p.notify-message').text('');}
if(settings.html!=null){hide=false;$(target).find('div.notify-message').html(settings.html);}
else{$(target).find('div.notify-message').html('');}
if(settings.messageList!=null&&settings.messageList.length>0){var html='';hide=false;for(var i=0;i';}
$(target).find('div.notify-message').html(html);}
if(settings.messageDictionary!=null){var html='';for(key in settings.messageDictionary){if(settings.messageDictionary.hasOwnProperty(key)){if(settings.messageDictionary[key]!=null&&(settings.messageDictionary[key].tab==null||(settings.messageDictionary[key].tab==LastVisitedTab||settings.messageDictionary[key].tab==GlobalTabKey))){hide=false;html+=settings.messageDictionary[key].value;html+='
';}}}
$(target).find('div.notify-message').html(html);}}
else{}
$(target).removeClass('notify-hidden');}
if(hide)HideNotificationArea(target);}
function IsNotificationAreaVisible(target){if($(target).hasClass('notification')){return!($(target).hasClass('notify-hidden'));}else
return false;}