
var NN_4=(document.layers)?1:0;var IE=(document.all)?1:0;var NN_6=(!document.all&&document.getElementById)?1:0;var VISIBLE=NN_4?"show":"visible";var HIDDEN=NN_4?"hide":"hidden";var DISPLAY_ON="block";var DISPLAY_OFF="none";var LAYER__IS_NETSCAPE=(navigator.appName.indexOf("Explorer")==-1);var LAYER__NETSCAPE_TIME_PATCH_COEFFICIENT=NN_4?0:0;var inited_mouse_actions=false;var LAYERS_HASH={};var old_mouse_pos=new Object();old_mouse_pos.left=0;old_mouse_pos.top=0;var allow_default_dragging=false;var default_mousedown=null;var default_mousemove=null;var default_mouseup=null;function Layer(layer_name)
{NN_4=(document.layers)?1:0;IE=(document.all)?1:0;NN_6=(!document.all&&document.getElementById)?1:0;if(typeof(LAYERS_HASH)=='undefined')
LAYERS_HASH=new Array();this.LayerName=layer_name;this.Layer=Layer__GetLayerObj(layer_name);this.LayerStyle=Layer__GetLayerObjStyle(layer_name);this.Draggable=false;if(typeof(this.Layer)=='undefined'||typeof(this.LayerStyle)=='undefined'){this.Success=false;return null;}
this.SetPosition=Layer__SetLayerPosition;this.GetPosition=Layer__GetLayerPosition;this.SetVisible=Layer__SetLayerVisible;this.IsVisible=Layer__IsLayerVisible;this.SetDisplay=Layer__SetLayerDisplay;this.Move=Layer__Move;this.GetDimentions=IE||NN_6?Layer__GetLayerDimentions:Layer__GetLayerDimentions_NN;this.SetDimentions=IE||NN_6?Layer__SetLayerDimentions:Layer__SetLayerDimentions_NN;this.HTML=IE||NN_6?Layer__HTML:Layer__HTML_NN;this.DocumentMargins=IE||NN_6?Layer__GetDocumentMargins:Layer__GetDocumentMargins_NN;this.Document=IE?document:(NN_6?document:this.Layer.document);this.InitDrag=Layer__InitDrag;this.ReleaseDrag=Layer__ReleaseDrag;this.Maximize=Layer__Maximize;this.Center=Layer__Center;this.DocumentMargins();LAYERS_HASH[this.LayerName]=this;this.Success=true;return this;}
function Layer__DefaultDragging(func_handler_mousedown,func_handler_mousemove,func_handler_mouseup)
{default_mousedown=func_handler_mousedown;default_mousemove=func_handler_mousemove;default_mouseup=func_handler_mouseup;allow_default_dragging=true;}
function Layer__AllowDefaultDragging()
{allow_default_dragging=true;}
function Layer__ForbidDefaultDragging()
{allow_default_dragging=false;}
function Layer__GetLayerObj(layer_name,nested_ref){var layer;if(NN_6||IE){layer=document.getElementById(layer_name);}else if(NN_4){var layer_parent;if(typeof(nested_ref)!='undefined'){layer_parent=document.layers[nested_ref].document;}else{layer_parent=document;}
layer=layer_parent.layers[layer_name];}
return layer;}
function Layer__GetLayerObjStyle(layer_name,nested_ref){var layer=Layer__GetLayerObj(layer_name,nested_ref);if(!layer)return;if(NN_6){layer=layer.style;}else if(IE){layer=layer.style;}else if(NN_4){}
return layer;}
function Layer__SetLayerPosition(left,top)
{this.LayerStyle.left=left+((left+"").indexOf("px")==-1?"px":"");this.LayerStyle.top=top+((top+"").indexOf("px")==-1?"px":"");}
function Layer__GetLayerPosition()
{var pos=new Object();pos.left=parseInt(this.LayerStyle.left);pos.top=parseInt(this.LayerStyle.top);return pos;}
function Layer__SetLayerDimentions(width,height)
{this.LayerStyle.width=width+((width+"").indexOf("px")==-1?"px":"");this.LayerStyle.height=height+((height+"").indexOf("px")==-1?"px":"");}
function Layer__SetLayerDimentions_NN(width,height)
{this.LayerStyle.clip.width=width+((width+"").indexOf("px")==-1?"px":"");this.LayerStyle.clip.height=height+((height+"").indexOf("px")==-1?"px":"");}
function Layer__GetLayerDimentions()
{var dimentions=this.GetPosition();dimentions.width=parseInt(this.LayerStyle.width);dimentions.height=parseInt(this.LayerStyle.height);return dimentions;}
function Layer__GetLayerDimentions_NN()
{var dimentions=this.GetPosition();dimentions.width=parseInt(this.LayerStyle.clip.width);dimentions.height=parseInt(this.LayerStyle.clip.height);return dimentions;}
function Layer__Move(start_left,start_top,end_left,end_top,timeout,speed_coefficient,name)
{var layer=typeof(name)=='undefined'?this:new Layer(name);if(start_left==end_left&&start_top==end_top){layer.SetPosition(start_left,start_top);return;}
if(typeof(speed_coefficient)=='undefined'){speed_coefficient=1;}
var sign_left=__Layer__Sign(start_left,end_left);var sign_top=__Layer__Sign(start_top,end_top);var dleft=__Layer__Distance(start_left,end_left);var dtop=__Layer__Distance(start_top,end_top);var offset_left=1;var offset_top=1;if(dleft>dtop){if(dtop==0){offset_top=0;offset_left=1;}else{offset_top=1;offset_left=Math.floor(dleft/dtop);}}else{if(dleft==0){offset_top=1;offset_left=0;}else{offset_top=Math.floor(dtop/dleft);offset_left=1;}}
if(start_left!=end_left){start_left+=speed_coefficient*sign_left*offset_left+LAYER__NETSCAPE_TIME_PATCH_COEFFICIENT;}
if(start_top!=end_top){start_top+=speed_coefficient*sign_top*offset_top;}
layer.SetPosition(start_left,start_top);var new_sign_left=__Layer__Sign(start_left,end_left);var new_sign_top=__Layer__Sign(start_top,end_top);if(sign_left*new_sign_left<=0&&sign_top*new_sign_top<=0){return;}
var _name=typeof(name)=='undefined'?this.LayerName:name;if(timeout>0){window.setTimeout('Layer__Move('+start_left+', '+start_top+', '+end_left+', '+end_top+', '+timeout+', '+speed_coefficient+', "'+_name+'")',timeout);}else{Layer__Move(start_left,start_top,end_left,end_top,0,speed_coefficient,_name);}}
function __Layer__Distance(start,end)
{if(start>0&&end>0){return Math.abs(end-start);}
return Math.abs(start)+Math.abs(end);}
function __Layer__Sign(start,end)
{if(start<end)
return 1;if(start==end)
return 0;return-1;}
function Layer__SetLayerVisible(visible)
{this.LayerStyle.visibility=visible?VISIBLE:HIDDEN;}
function Layer__IsLayerVisible()
{return this.LayerStyle.visibility==VISIBLE;}
function Layer__SetLayerDisplay(visible)
{this.LayerStyle.display=visible?DISPLAY_ON:DISPLAY_OFF;}
function Layer__HTML(code)
{this.Layer.innerHTML=code;}
function Layer__HTML_NN(code)
{this.Document.open();this.Document.write(code);this.Document.close();}
function Layer__GetDocumentMargins()
{var d=document.body;if(document.documentElement&&document.compatMode!='BackCompat')d=document.documentElement;this.ScrollLeft=parseInt(d.scrollLeft);this.ScrollTop=parseInt(d.scrollTop);if(navigator.userAgent.toLowerCase().indexOf("safari")!=-1){this.ScrollLeft=parseInt(document.body.scrollLeft);this.ScrollTop=parseInt(document.body.scrollTop);}
this.WindowWidth=parseInt(d.clientWidth);this.WindowHeight=parseInt(d.clientHeight);this.DocumentWidth=parseInt(d.clientWidth)+parseInt(this.ScrollLeft);this.DocumentHeight=parseInt(d.clientHeight)+parseInt(this.ScrollTop);this.FullDocumentWidth=parseInt(d.scrollWidth);this.FullDocumentHeight=parseInt(d.scrollHeight);}
function Layer__GetDocumentMargins_NN()
{this.DocumentWidth=window.innerWidth+window.pageXOffset;this.DocumentHeight=window.innerHeight+window.pageYOffset;this.FullDocumentWidth=this.DocumentWidth;this.FullDocumentHeight=this.DocumentHeight;this.ScrollLeft=window.pageXOffset;this.ScrollTop=window.pageYOffset;this.WindowWidth=window.innerWidth;this.WindowHeight=window.innerHeight;}
function Layer__Maximize()
{this.DocumentMargins();this.SetDimentions(this.WindowWidth,this.WindowHeight);}
function Layer__Center(horizontally,vertically)
{var pos=this.GetPosition();var dimentions=this.GetDimentions();this.DocumentMargins();if(horizontally)
pos.left=this.WindowWidth/2-dimentions.width/2;if(vertically)
pos.top=this.WindowHeight/2-dimentions.height/2;this.SetPosition(pos.left,pos.top);}
function Layer__InitDrag()
{if(!inited_mouse_actions){if(IE){document.onmousedown=Layer__System__MOUSEDOWN;document.onclick=Layer__System__MOUSEUP;document.onmousemove=Layer__System__MOUSEMOVE;}else{document.onmousedown=Layer__System__MOUSEDOWN;document.captureEvents(Event.MOUSEDOWN);document.onmouseup=Layer__System__MOUSEUP;document.captureEvents(Event.MOUSEUP);document.onmousemove=Layer__System__MOUSEMOVE;document.captureEvents(Event.MOUSEMOVE);}
inited_mouse_actions=true;}
LAYERS_HASH[this.LayerName].Draggable=true;}
function Layer__ReleaseDrag()
{LAYERS_HASH[this.LayerName].Dragging=false;}
function Layer__System__MOUSEDOWN(event_obj)
{var dragged_some=false;for(var key in LAYERS_HASH){if(LAYERS_HASH[key].Draggable&&Layer__System__ClickedOverLayer(LAYERS_HASH[key],event_obj)){if(IE)
LAYERS_HASH[key].Dragging=true;else
LAYERS_HASH[key].Dragging=!LAYERS_HASH[key].Dragging;dragged_some=true;}}
if(!dragged_some&&allow_default_dragging){var current_pos=Layer__System__CurrentMousePosition(event_obj);default_mousedown(current_pos);}}
function Layer__System__MOUSEMOVE(event_obj)
{var old_pos=old_mouse_pos;var current_pos=Layer__System__CurrentMousePosition(event_obj);var dragged_some=false;for(var key in LAYERS_HASH){if(LAYERS_HASH[key].Draggable&&LAYERS_HASH[key].Dragging){LAYERS_HASH[key].LayerStyle.left=parseInt(LAYERS_HASH[key].LayerStyle.left)+(current_pos.left-old_pos.left);LAYERS_HASH[key].LayerStyle.top=parseInt(LAYERS_HASH[key].LayerStyle.top)+(current_pos.top-old_pos.top);dragged_some=true;}}
if(!dragged_some&&allow_default_dragging){default_mousemove(old_pos,current_pos);}}
function Layer__System__MOUSEUP(event_obj)
{var dragged_some=false;for(var key in LAYERS_HASH){if(LAYERS_HASH[key].Draggable&&LAYERS_HASH[key].Dragging){if(IE)
LAYERS_HASH[key].Dragging=false;dragged_some=true;}}
if(!dragged_some&&allow_default_dragging){var current_pos=Layer__System__CurrentMousePosition(event_obj);default_mouseup(current_pos);}}
function Layer__System__ClickedOverLayer(layer,event_obj)
{var pos=Layer__System__CurrentMousePosition(event_obj);var layer_pos=layer.GetDimentions();layer_pos.right=layer_pos.left+layer_pos.width;layer_pos.bottom=layer_pos.top+layer_pos.height;return(pos.left>=layer_pos.left&&pos.left<=layer_pos.right&&pos.top>=layer_pos.top&&pos.top<=layer_pos.bottom);}
function Layer__System__CurrentMousePosition(event_obj)
{var pos=new Object();if(IE){pos.left=event.clientX+document.body.scrollLeft;pos.top=event.clientY+document.body.scrollTop;}else{pos.left=event_obj.pageX+window.pageXOffset;pos.top=event_obj.pageY+window.pageYOffset;;}
old_mouse_pos=pos;return pos;}


var TOOLTIP_LAYER_NAME='TooltipLayer';var HIDE_TOOLTIP_LAYER_TIMEOUT=1000*60;var TOOLTIP_LAYER_OFFSET=10;var TOOLTIP_LAYER_WIDTH=257;var TOOLTIP_LAYER_HEIGHT=50;var TOOLTIP_LAYER_CORNER_WIDTH=7;var TOOLTIP_LAYER_CORNER_HEIGHT=7;var tooltip_timer_handle=null;var _TOOLTIP_IS_ALREADY_SHOWN=false;var _LAST_SHOWN_TOOLTIP_KEY="";var _TOOLTIP_GLOBAL_LOCK=false;var _CURRENT_TOOLTIP_OBJ=null;var _CURRENT_TOOLTIP_WIDTH='';var _CURRENT_TOOLTIP_HEIGHT='';var _CURRENT_TOOLTIP_TOP_OFFSET='';var _CURRENT_TOOLTIP_LEFT_OFFSET='';function ShowTooltip(obj,key,_width,_height,_top_offset,_left_offset,fixed_left_position,fixed_top_postion)
{if(typeof(obj)=='undefined'||typeof(TOOLTIPS)=='undefined'||typeof(TOOLTIPS[key])=='undefined')
return;if(typeof(_top_offset)=='undefined'||_top_offset==''){_top_offset=0;}
if(typeof(_left_offset)=='undefined'||_left_offset==''){_left_offset=0;}
if(_TOOLTIP_GLOBAL_LOCK){_CURRENT_TOOLTIP_OBJ=obj;_CURRENT_TOOLTIP_WIDTH=_width;_CURRENT_TOOLTIP_HEIGH=_height;_CURRENT_TOOLTIP_TOP_OFFSET=_top_offset;_CURRENT_TOOLTIP_LEFT_OFFSET=_left_offset;var str="ShowTooltip( _CURRENT_TOOLTIP_OBJ, '"+key+"', _CURRENT_TOOLTIP_WIDTH, _CURRENT_TOOLTIP_HEIGHT, _CURRENT_TOOLTIP_TOP_OFFSET, _CURRENT_TOOLTIP_LEFT_OFFSET );";window.setTimeout(str,10);return;}
var top_offset=_top_offset;var left_offset=_left_offset;var layer=new Layer(TOOLTIP_LAYER_NAME);var width=typeof(_width)=='undefined'||!_width?TOOLTIP_LAYER_WIDTH:_width;var height=typeof(_height)=='undefined'||!_height?TOOLTIP_LAYER_HEIGHT:_height;layer.SetVisible(false);if(tooltip_timer_handle){window.clearTimeout(tooltip_timer_handle);tooltip_timer_handle=null;}
if(!layer)return;var tooltip=TOOLTIPS[key];if(typeof(NO_ESCAPE[key])=='undefined'||!NO_ESCAPE[key]){tooltip=tooltip.replace(/&/g,"&amp;");tooltip=tooltip.replace(/\"/g,"&#34;");tooltip=tooltip.replace(/</g,"&lt;");tooltip=tooltip.replace(/>/g,"&gt;");}
tooltip=tooltip.replace(/\r/g,"");tooltip=tooltip.replace(/\n/g,"<br>");var tooltip_html='<table cellspacing=0 cellpadding=0 border=0 width=100%>'+'<tr><td width=2><img src="'+SPACE+'" width=3 height=1></td>'+'<td class=tooltip width=99%>'+tooltip+'</td>'+'<td width=2><img src="'+SPACE+'" width=2 height=1></td>'+'<td valign=top><a onclick="javascript:HideTooltip( )">'+'<img src="'+TOOLTIP_CLOSE+'" border=0 width=13 height=13></a></td></tr>'+'<tr><td width=2 colspan=4><img src="'+SPACE+'" width=1 height=2></td></tr>'+'</table>';var code='<table cellspacing=0 cellpadding=0 border=0 width='+width+'>'+'<tr>'+'<td width='+TOOLTIP_LAYER_CORNER_WIDTH+' height='+TOOLTIP_LAYER_CORNER_HEIGHT+'>'+'<img src="'+TOOLTIP_TOP_LEFT+'" width='+TOOLTIP_LAYER_CORNER_WIDTH+' height='+TOOLTIP_LAYER_CORNER_HEIGHT+'>'+'</td>'+'<td class=tooltip width='+(width-2*TOOLTIP_LAYER_CORNER_WIDTH)+' ><img src="'+SPACE+'" width='+width+' height=7></td>'+'<td width='+TOOLTIP_LAYER_CORNER_WIDTH+' height='+TOOLTIP_LAYER_CORNER_HEIGHT+'>'+'<img src="'+TOOLTIP_TOP_RIGHT+'" width='+TOOLTIP_LAYER_CORNER_WIDTH+' height='+TOOLTIP_LAYER_CORNER_HEIGHT+'>'+'</td>'+'</tr>'+'<tr>'+'<td width='+TOOLTIP_LAYER_CORNER_WIDTH+' class=tooltip><img src="'+SPACE+'" width='+TOOLTIP_LAYER_CORNER_WIDTH+' height=7></td>'+'<td class=tooltip>'+tooltip_html+'</td>'+'<td width='+TOOLTIP_LAYER_CORNER_WIDTH+' class=tooltip><img src="'+SPACE+'" width='+TOOLTIP_LAYER_CORNER_WIDTH+' height=7></td>'+'</tr>'+'<tr>'+'<td width='+TOOLTIP_LAYER_CORNER_WIDTH+' height='+TOOLTIP_LAYER_CORNER_HEIGHT+'>'+'<img src="'+TOOLTIP_BOTTOM_LEFT+'" width='+TOOLTIP_LAYER_CORNER_WIDTH+' height='+TOOLTIP_LAYER_CORNER_HEIGHT+'>'+'</td>'+'<td class=tooltip width='+(width-2*TOOLTIP_LAYER_CORNER_WIDTH)+' ><img src="'+SPACE+'" width='+width+' height=7></td>'+'<td width='+TOOLTIP_LAYER_CORNER_WIDTH+' height='+TOOLTIP_LAYER_CORNER_HEIGHT+'>'+'<img src="'+TOOLTIP_BOTTOM_RIGHT+'" width='+TOOLTIP_LAYER_CORNER_WIDTH+' height='+TOOLTIP_LAYER_CORNER_HEIGHT+'>'+'</td>'+'</tr>'+'</table>';layer.SetDimentions(width,height);layer.HTML(code);var left=0;var top=0;if(obj!=null){if(!document.getElementById){left=window.pageXOffset;top=window.pageYOffset;}else{var obj_position=GetObjectAbsolutePosition(obj);if(!document.all){left=obj_position.left+obj.offsetWidth+TOOLTIP_LAYER_OFFSET;top=obj_position.top-obj.offsetHeight;}else{left=obj_position.left+obj.clientWidth+TOOLTIP_LAYER_OFFSET;top=obj_position.top-obj.clientHeight;}}}
if(fixed_left_position){left=fixed_left_position;}
if(fixed_top_postion){top=fixed_top_postion;}
if(left+width>layer.DocumentWidth){left=layer.DocumentWidth-width;}
if(left<0){left=0;}
layer.SetPosition(left+left_offset,top+top_offset);layer.SetDisplay(true);layer.SetVisible(true);_TOOLTIP_IS_ALREADY_SHOWN=true;_LAST_SHOWN_TOOLTIP_KEY=key;tooltip_timer_handle=window.setTimeout('HideTooltip();',HIDE_TOOLTIP_LAYER_TIMEOUT);}
function HideTooltip()
{_TOOLTIP_GLOBAL_LOCK=true;window.setTimeout('var l=new Layer( TOOLTIP_LAYER_NAME );l.SetVisible( false );l.SetDisplay( false );_TOOLTIP_GLOBAL_LOCK=false;',100);if(tooltip_timer_handle)
window.clearTimeout(tooltip_timer_handle);tooltip_timer_handle=false;_TOOLTIP_IS_ALREADY_SHOWN=false;}
function GetObjectAbsolutePosition(obj)
{var pos=new Object();pos.left=0;pos.top=0;if(!obj||typeof(obj)=='undefined'||typeof(obj.offsetLeft)=='undefined')
return pos;if(obj.nodeName!="DIV"&&obj.nodeName!="TR"&&obj.nodeName!="CENTER"&&obj.nodeName!="P"){pos.left=obj.offsetLeft;pos.top=obj.offsetTop;}
var parent_pos=GetObjectAbsolutePosition(obj.parentNode);if(obj.parentNode&&typeof(obj.parentNode)!='undefined'&&typeof(obj.parentNode.children)!='undefined'){for(var i=0;i<obj.parentNode.children.length;i++){if(obj.parentNode.children.sourceIndex>=obj.sourceIndex)
break;if(obj.parentNode.children[i].nodeName=="IMG"&&i==0&&obj.parentNode.nodeName!="TD")
pos.top+=obj.parentNode.children[i].offsetTop;}}
pos.left+=parent_pos.left;pos.top+=parent_pos.top;return pos;}
function SetHinderingObjectsVisibility(how)
{if(document.all){for(var i=0;i<document.forms.length;i++){for(var j=0;j<document.forms[i].elements.length;j++){if(document.forms[i].elements[j].nodeName.toUpperCase()=='SELECT'||document.forms[i].elements[j].nodeName.toUpperCase()=='IFRAME'){document.forms[i].elements[j].style.display=how?"block":"none";}}}}}
function AddTooltip(key,value)
{TOOLTIPS[key]=value;}


var TOOLTIPS=new Array();var NO_ESCAPE=new Array();TOOLTIPS['NavMenuItem__Text']='If you choose from Link [Create new page] this text will be a Page Name';TOOLTIPS['NavMenuItem__Alt']='If you choose from Link [Create new page] this MouseOver text will be a Page Title';TOOLTIPS['File__Src']='The time to upload may vary depending on the speed of your internet connection. Uploding files over 100Mb is not recommened.';TOOLTIPS['GalleryImageZip__Src']='You can upload a single image (JPG, GIF, PNG) or a ZIP file with many images in it. The time to upload may vary depending on the speed of your internet connection. Uploding files over 100Mb is not recommened.';TOOLTIPS['GalleryKeepImage__Chk']='If checked, site visitors will be able to see the images in their original resolution. However, keeping the original image requires significantly more storage space.';TOOLTIPS['MailingList__Name']='Your mailing list will appear with this name in the Mailing Lists Management';TOOLTIPS['MailingList__Prefix']='The text will be displayed in front of the mailing list subscription field';TOOLTIPS['MailingList__ButtonLabel']='The text will be displayed on the subscription button';TOOLTIPS['MailingList__RequiresConfirmation']='If this option is enabled users will be asked by email to confirm subscription';TOOLTIPS['MailingListAA__AppendUnsubscrURL']='A link for unsubscribing will be added automatically to your email';TOOLTIPS['SiteProperties__Keywords']="Site keywords";TOOLTIPS['SiteProperties__Description']="Site description";TOOLTIPS['SiteProperties__SiteTitle']="Your site title";TOOLTIPS['SiteProperties__PageTitleDelimiter']="Page Delimiter (separates Site and Page Titles in the browser titlebar (e.g. Site - Page)";TOOLTIPS['SiteProperties__NewsPerPage']="If you have a news group added to your site, specify how many news items you need displayed at once. If the number of all your news items is bigger than the number of news per page, all other news items will appear when you click 'Prev' and 'Next' navigation available above and below your news group.";

