
/* [milmenu/VT/styles/menu_styles.js] */
fixMozillaZIndex=true; //Fixes Z-Index problem  with Mozilla browsers but causes odd scrolling problem, toggle to see if it helps
_menuCloseDelay=500;
_menuOpenDelay=150;
_subOffsetTop=1;
_subOffsetLeft=1;
//buildAfterLoad=true;

iefilter = !((!ie)||ie4||ie5);

with(vtMenuStyleLeftDefault=new mm_style()){
	align="left";
	fontfamily="Arial,Helvetica,Verdana,Sans-Serif";
	fontsize="11px";
	fontstyle="normal";
	fontweight="bold";
	headerbgcolor="#887B78";
	headercolor="#FFFFFF";
//	high3dcolor="#796B67";
//	image="/ts/images/layout/ET/menu/menu_pfeil_rechts_left.gif";
//	imagepadding=0;
//	imageposition="middle left";
	itemheight=22;
	itemwidth=182;
	leftimage="/ts/images/layout/ET/menu/menu_pfeil_rechts_left.gif";
//	low3dcolor="#796B67";
//	menubgimage="/ts/images/layout/ET/menu/logo_menu_bg.gif";
	offbgcolor="#FAFAF8";
	offcolor="#796B67";
	onbgcolor="#FFFFFF";
//	onborder="1px outset #FFFFFF";
	oncolor="#796B67";
	onleftimage="/ts/images/layout/ET/menu/menu_pfeil_rechts_on_left.gif";
//	padding=0;
	pagecolor="#BA122B";
//	pageimage="/ts/images/layout/ET/menu/menu_pfeil_rechts_on_left.gif";
//	rawcss="padding-left:0px";
	separatorcolor="#E0E0E0";
	separatorsize=1;
	separatorwidth="178";
	tipdelay=800;
	tipfollow=1;
	valign="middle"
}

with(vtMenuStyleLayerDefault=new mm_style()){
	bordercolor="#796B67";
	borderstyle="solid";
	borderwidth=1;
	fontfamily="Arial,Helvetica,Verdana,Sans-Serif";
	fontsize="11px";
	fontstyle="normal";
	headerbgcolor="transparent";
	headercolor="#BA122B";
//	high3dcolor="#796B67";
	image="/ts/images/layout/ET/icons/menu/icon_blank.gif";
	imagepadding=3;
//	imageposition="left";
	itemheight=22;
	itemwidth=177;
//	low3dcolor="#796B67";
	menubgimage="/ts/images/layout/ET/menu/bg_submenu_ergo.gif";
//	offbgcolor="#FAFAF8";
	offbgcolor="transparent";
	offcolor="#796B67";
	offsubimage="/ts/images/layout/ET/menu/menu_pfeil_rechts.gif";
	onbgcolor="#FFFFFF";
//	onborder="1px outset #FFFFFF";
	oncolor="#796B67";
	onsubimage="/ts/images/layout/ET/menu/menu_pfeil_rechts_on.gif";
	if (iefilter) outfilter="randomdissolve(duration=0.2)";
	if (iefilter) overfilter="Fade(duration=0.2);Alpha(opacity=95);Shadow(color='#796B67', Direction=135, Strength=3)";
	padding=7;
	pagecolor="#BA122B";
	pagesubimage="/ts/images/layout/ET/menu/menu_pfeil_rechts_on.gif";
	separatoralign="right";
	separatorcolor="#E0E0E0";
	separatorsize=1;
	separatorwidth="85%";
	subimage="/ts/images/layout/ET/menu/menu_pfeil_rechts.gif";
	subimagepadding=3;
	subimageposition="right";
	tipdelay=800;
	tipfollow=1;
	valign="middle"
}

with(vtMenuStyleLayerFotosDefault = new copyOf(vtMenuStyleLayerDefault)){
	imagepadding=5;
	itemwidth=null;
	menubgimage=null;
	offbgcolor="#F6F6F6";
	tipdelay=800;
	tipfollow=1;
}

/* Tooltips */
with(vtWindowTipStyle=new mm_style()){
	bordercolor="#949694";
	borderstyle="solid";
	borderwidth=1;
	fontfamily="Arial,Helvetica,Verdana,Sans-Serif";
	fontsize="10px";
	fontstyle="normal";
	headerbgcolor="#E0E0E0";
	headercolor="#2B2A2F";
	offbgcolor="#FFFFDE";
	offcolor="#2B2A2F";
//	if (iefilter) outfilter="randomdissolve(duration=0.2)";
	if (iefilter) overfilter="Fade(duration=0.15);Alpha(opacity=95);Shadow(color='#777777', Direction=135, Strength=3)";
	padding=4;
}
with(new menuname("vtWindowTip")){
	ignorecollision=true;
	left="offset=14";
	menuwidth=260;
	orientation="vertical";
	style=vtWindowTipStyle;
	top="offset=8";
	if(_W.M_maxTipWidth) maxwidth=M_maxTipWidth;
	aI("type=ToolTip;text=;align=left;valign=top;padding=3px 3px 3px 3px;itemwidth=252;");
	aI("type=header;text=`&nbsp;`;bgimage=/ts/images/layout/ET/menu/tooltip_footer.gif;");
}

with(vtBubbleTipStyle=new mm_style()){
	fontfamily="Arial,Helvetica,Verdana,Sans-Serif";
	fontsize="10px";
	fontstyle="normal";
	offcolor="#000000";
	if (iefilter) overfilter="Fade(duration=0.2)";
}
with(new menuname("vtBubbleTip")){
	left="offset=5";
	ignorecollision=true;
	menuheight=166;
	menuwidth=225;
	orientation="horizontal";
	style=vtBubbleTipStyle;
	top="offset=-176";
	if(_W.M_maxTipWidth) maxwidth=M_maxTipWidth;
	aI("text=;type=ToolTip;align=center;valign=middle;padding=0px 10px 30px 15px;itemwidth=220;bgimage=/ts/images/layout/ET/menu/oval_bubble.gif");
}

with(vtSpeechBubbleTipStyle=new mm_style()){
	offcolor="#000000";
	fontsize="10px";
	fontstyle="normal";
	fontfamily="Arial,Helvetica,Verdana,Sans-Serif";
	if (iefilter) overfilter="Fade(duration=0.2)";
}
with(new menuname("vtSpeechBubbleTip")){
	ignorecollision=true;
	left="offset=-92";
	menuheight=164;
	menuwidth=347;
	orientation="horizontal";
	style=vtSpeechBubbleTipStyle;
	top="offset=-176";
	if(_W.M_maxTipWidth) maxwidth=M_maxTipWidth;
	aI("text=;type=ToolTip;align=center;valign=middle;padding=0px 10px 30px 15px;itemwidth=347;bgimage=/ts/images/layout/ET/menu/oval_speech.gif");
}

/* [milmenu/VT/styles/menu_styles_NEWS.js] */
with(vtMenuStyleLeft = new copyOf(vtMenuStyleLeftDefault)){
}

with(vtMenuStyleLayer = new copyOf(vtMenuStyleLayerDefault)){
}

with(vtMenuStyleLayerFotos = new copyOf(vtMenuStyleLayerFotosDefault)){
}

/* [milmenu/api/tooltips_ET.js] */
/*
   Milonic DHTML Menu - Tool Tips Module  tooltips.js version 2.92 - February 4 2009
   This module is only compatible with the Milonic DHTML Menu version 5.796 or higher

   Copyright 2008 (c) Milonic Solutions Limited. All Rights Reserved.
   This is a commercial software product, please visit http://www.milonic.com/ for more information.
*/

M_ToolTipDelay=200    // Milliseconds after menu has been displayed before showing tooltip
M_maxTipWidth="100%"     // Sets the maximum width, set to "100%" for 100% or integer value for fixed pixel width, remove to disable


// The above 2 parameters are the only user definable parameters for this module.
// In order to use this module you will also need the Milonic DHTML Menu code files 
// The syntax for tooltips in a menuitem is : tooltip=I Am A Tooltip;

// The syntax for HTML object is: showtip("This is your text <b><i>With HTML </i></b> too!")
// Don't forget to use the hidetip() function onmouseout to stop the tip from showing after your have moved away from the HTML object

_tos=_los=_TtSo=_tipFoll=_TTD=0

with(M_toolTipStyle=new mm_style()){
    offbgcolor = "#FAFAF8";
      offcolor = "#796B67";
   bordercolor = "#BA122B";
   borderstyle = "solid";
       padding = 1
   borderwidth = 1
      fontsize = "10px";
     fontstyle = "normal";
    fontfamily = "Arial,Verdana,Helvetica,Sans-Serif";
    overfilter = "Fade(duration=0.2);Shadow(color='#777777', Direction=135, Strength=5)"
}
with(new menuname("M_toolTips"))
{
	top="offset=18"
	left="offset=10"
	style=M_toolTipStyle;
	margin=4
	if(_W.M_maxTipWidth)maxwidth=M_maxTipWidth
	aI("text=;type=ToolTip;");
}
drawMenus()


Tgm=null
function _gTOb(m){
	t_M=$h(m)
	_Tgm=$c("menu"+t_M)
}
_gTOb("M_toolTips")
_TipIF=$mD
function buildTips(t)
{
	TTaN=-88
	if(!_m[t_M][23]&&!_startM){
		_m[t_M][23]=1
		g$(t_M)	
	}
	_m[t_M].tooltip=1
	_el=_m[t_M][0][0]
	if($tL(_Tgm.style.visibility)==$6)return
	_mi[_el][1]=t
	_Tgm.innerHTML=o$(t_M)
	_mcnt--
	_i=_itemRef
	popup(_m[t_M][1],1);
	_TipIF=$mD
	_itemRef=_i
	j_=$D(_gm)
	if((j_[0]+j_[2])>_bH)$_E(_gm,Y_-j_[2])
	_Tgm.style.zIndex=_zi+100	
	_TtSo=0
	setTimeout("TTaN=-1",100);
}


function hidetip(){	
	
	if(TTaN==-88)return
	if(_Mtip){
		_TtSo=0
		_Gtt=""
		_Mtip=$P(_Mtip);
		$Y(t_M,0)
		_tipFoll=0
		_TTD=M_ToolTipDelay
		_gTOb("M_toolTips")
	}
}
	TTaN=-1
hidetip();

function showtip(){

	_Mtip=$P(_Mtip);
	if(!_Tgm){
		_gTOb("M_toolTips")
		if(!_Tgm)return
	}
	$Y(t_M,0)
	_Tgm.style.visibility="hidden"
	_Tgm.style.zIndex=10000
	var a=arguments,t;
	if(a[0]||_W._Gtt){
		if(_W._Gtt)t=_Gtt; else t=a[0];
		_Gtt=t
		if(a[1])_tipFoll=1 // Toggle for whether tooltips follows mouse movement
		if(a[2])_TTD=a[2] // Tooltip delay in milliseconds
		if(a[3])_gTOb(a[3]); // tipmenu
	}
	else{
		if(_itemRef==-1)return
		t=_mi[_itemRef][95]
		if(_mi[_itemRef][98])_TTD=_mi[_itemRef][98]
		if(_mi[_itemRef][100])_gTOb(_mi[_itemRef][100]);
		
	}
	if(t==""||t==_n)return	
	if(!inDragMode)_Mtip=setTimeout("buildTips(\""+t+"\")",_TTD)
	_TtSo=1
}

function _TtM(){
	if(_TtSo)showtip()
	if(_tipFoll==1||(_trueItemRef>-1&&_mi[_trueItemRef][99])){
		_TY=Y_+_tos
		_TX=X_+_los
		
		if(ns6&&_W.fixMozillaZIndex){
			_TX-=_sL;
			_TY-=_sT
		}
		
		$_E(_Tgm,_TY,_TX)
		_a9=$c("iF"+_TipIF)
		if(_a9)$_E(_a9,_TY,_TX)
	}
}

/* [milmenu/VT/styles/rechtsklick_menu_styles.js] */
fixMozillaZIndex=true; //Fixes Z-Index problem  with Mozilla browsers but causes odd scrolling problem, toggle to see if it helps
_menuCloseDelay=500;
_menuOpenDelay=150;
_subOffsetTop=1;
_subOffsetLeft=1;

iefilter = !((!ie)||ie4||ie5);

with(vtRkMenuStyleDefault=new mm_style()){
	bordercolor="#796B67";
	borderstyle="solid";
	borderwidth=1;
	fontfamily="Arial,Helvetica,Verdana,Sans-Serif";
	fontsize="11px";
	fontstyle="normal";
	headerbgcolor="transparent";
	headercolor="#BA122B";
//	high3dcolor="#796B67";
	image="/ts/images/layout/ET/icons/menu/icon_blank.gif";
	imagepadding=3;
//	imageposition="left";
	itemwidth=173;
//	low3dcolor="#796B67";
	menubgimage="/ts/images/layout/ET/menu/bg_submenu_ergo.gif";
//	offbgcolor="#FAFAF8";
	offbgcolor="transparent";
	offcolor="#796B67";
	offsubimage="/ts/images/layout/ET/menu/menu_pfeil_rechts.gif";
	onbgcolor="#FFFFFF";
//	onborder="1px outset #FFFFFF";
	oncolor="#796B67";
	onsubimage="/ts/images/layout/ET/menu/menu_pfeil_rechts_on.gif";
	if (iefilter) outfilter="randomdissolve(duration=0.2)";
	if (iefilter) overfilter="Fade(duration=0.2);Alpha(opacity=95);Shadow(color='#777777', Direction=135, Strength=3)";
	padding=3;
	pagecolor="#BA122B";
	pagesubimage="/ts/images/layout/ET/menu/menu_pfeil_rechts_on.gif";
	separatoralign="right";
	separatorcolor="#E0E0E0";
	separatorsize=1;
	separatorwidth="85%";
	subimage="/ts/images/layout/ET/menu/menu_pfeil_rechts.gif";
	subimagepadding=3;
	subimageposition="right";
	tipdelay=800;
	tipfollow=1;
	valign="middle"
}

/* [milmenu/VT/styles/rechtsklick_menu_styles_NEWS.js] */
with(vtRkMenuStyle = new copyOf(vtRkMenuStyleDefault)){
}

/* [milmenu/api/menuclock.js] */
/*
   Milonic DHTML Menu Menu Clock Module  menuclock.js version 1.0 December 5th 2004
   This module is only compatible with the Milonic DHTML Menu version 5.16 or higher

   Copyright 2004 (c) Milonic Solutions Limited. All Rights Reserved.
   This is a commercial software product, please visit http://www.milonic.com/ for more information.
*/

// this module must be placed before the data file in order to configure itself first.
// There are elements inside the datafile that rely on this module being in place before it can execute.


// You just need to change the month and day names to suit your language, please keep the order the same otherwise your dates will be wrong.

milonic_lang_id = 'de';

monthNamesDE=new Array("Januar", "Februar", "März", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember" );
dayNamesDE=new Array("Sonntag", "Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag");
monthNamesEN=new Array("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December" );
dayNamesEN=new Array("Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat");

function getMilonicDate()
{
	return getLanguageMilonicDate('de');
}

function getLanguageMilonicDate(lang_id)
{
	milonic_lang_id = lang_id;
	
	var today = new Date();
	var _day=today.getDate();
	var _dayNum=today.getDay();
	var _month=today.getMonth();
	var _year=today.getFullYear();
	_time=prefixZero(today.getHours())+":"+prefixZero(today.getMinutes())+":"+prefixZero(today.getSeconds());

	if (lang_id == 'en') {
		return dayNamesEN[_dayNum]+", "+_day+getNumberSuffix(_day,lang_id)+" " + monthNamesEN[_month] + " " + _year + "<br><b>" + _time+"</b>";
	}
	else {
		return dayNamesDE[_dayNum]+", "+_day+getNumberSuffix(_day,lang_id)+" " + monthNamesDE[_month] + " " + _year + "<br><b>" + _time+" Uhr</b>";
	}
}


function getItemByType(_type)
{
	for(_a=0;_a<_mi.length;_a++)
	{
		if(_mi[_a][34]&&(_mi[_a][34]==_type))
		{
			return _a;
		}	
	}	
	return -1;
}


function getNumberSuffix(_num,lang_id)
{
	if(_num>=10 && _num<13)return "th";
	_num = _num.toString();
	_endNum=_num.substr(_num.length-1,1);
	if (lang_id == 'en') {
		_numSuf="th";
		if(_endNum=="1")_numSuf="st";
		if(_endNum=="2")_numSuf="nd";
		if(_endNum=="3")_numSuf="rd";
	}
	else {
		_numSuf=".";
	}
	return _numSuf;
}

function prefixZero(_num)
{
	_num=_num.toString();
	if(_num.length==1)_num= "0"+_num;
	return _num;
}

function updateMenuClock()
{
	clockItem=getItemByType("clock");
	if(clockItem>-1)
	{
		_gm=gmobj("lnk"+clockItem);
		if(_gm)
		{
			_gm.innerHTML=getLanguageMilonicDate(milonic_lang_id);
			_fixMenu(0);
		}
	}
}
setInterval("updateMenuClock()",1000);
/* [milmenu/VT/rechtsklick_menu_data.js] */
with(milonic=new menuname("contextMenu")){
	margin=2;
	orientation="vertical";
	style=vtRkMenuStyle;
	top="offset=2";
	aI("type=dragable;text=Kontextmenü verschieben;url=#;pointer=move;fontsize=9px;onbgcolor=;oncolor=#BA122B;separatorsize=1;");
	aI("text=Homepage;url=http://www.partnerfuerfans.de/;image=/ts/images/layout/ET/icons/menu/home.png;");
	aI("text=Sitemap;url=/tippspiel/global/sitemap/index.html;separatorsize=1;");
	aI("text=Druckversion;url=`"+g_menu_HTML_LINK_DRUCKVERSION+"`;target=vtdruck;targetfeatures=`width=800,height=600,status,menubar,scrollbars,resizable`;image=/ts/images/layout/ET/icons/seite/printer.png;");
	aI("text=nur Contentbereich;url=`"+g_menu_HTML_LINK_NUR_CONTENT+"`;target=vtdruck;targetfeatures=`width=800,height=600,status,menubar,scrollbars,resizable`;image=/ts/images/layout/ET/icons/seite/document_text.png;");
	aI("text=Aktualisieren;url=`javascript:history.go(0)`;separatorsize=1;");
	aI("type=clock;text="+getLanguageMilonicDate('de')+";fontsize=9px;separatorsize=1;");
	aI("text=Kontextmenü ausschalten;url=`javascript:var contextDisabled=true;popdown()`;fontsize=9px;");
}

drawMenus();

/* [milmenu/api/contextmenu.js] */
/*
   Milonic DHTML Menu Context/Right Click Menu Module contextmenu.js version 1.2 - September 1st 2004
   This module is only compatible with the Milonic DHTML Menu version 5.16 or higher

   Copyright 2004 (c) Milonic Solutions Limited. All Rights Reserved.
   This is a commercial software product, please visit http://www.milonic.com/ for more information.
*/

contextDisabled=false;     // Set this parameter to disable or enable right click, context menu at runtime.
contextMenu="contextMenu"; // Default name for the contextMenu
contextObject="";          // This is the object the right click occured on, could be an image, link whatever was under the mouse at the point of right click.

function rclick(e){
	if(contextDisabled)
	{
		_d.oncontextmenu=null
		return true;
	}
	if(_d.all)
	{
		ev=event.button;
		contextObject=event.srcElement
	}
	else 
	{
		ev=e.which
		contextObject=e.target
	}
	if(ev==2||ev==3){
		_gm=getMenuByName(contextMenu)
		if(_gm!=null)popup(contextMenu,1)
		return false
	}
	else{
		//if(ev==1)closeAllMenus();
	}
	return true;
}

if(ns4){
	_d.captureEvents(Event.MOUSEDOWN);
	_d.onmousedown=rclick;
}
else{
	_d.onmouseup=rclick
	_d.oncontextmenu=new Function("return false")
}
/* [milmenu/api/dragdrop.js] */
/*
   Milonic DHTML Menu - Drag & Drop Module dragdrop.js version 1.5 - August 31 2007
   This module is only compatible with the Milonic DHTML Menu version 5.780 or higher

   Copyright 2007 (c) Milonic Solutions Limited. All Rights Reserved.
   This is a commercial software product, please visit http://www.milonic.com/ for more information.
*/

// This module does not contain any user definable parameters.
// In order to enable menus as dragable, the menu must be alwaysvisible
// and the menu item initiating drag/drop must have the property type=dragable; declared

resetFollowScrollers=true; // If you want the menu to remain in the position dragged to for $X menus, set resetFollowScrollers to false

DragLayer=-1;
DragX=0;
DragY=0

function drag_drop(m,item)
{
	DragLayer=m;
	_gm=$c("menu"+DragLayer);
	if(ns4)_gm.captureEvents(Event.MOUSEDOWN | Event.MOUSEUP);
	$c("el"+_itemRef).onmousedown=_DDgo;
	$c("el"+_itemRef).onmouseup=_DDstop;
}

function _DDgo()
{
	var t=$h("M_toolTips")	
	if(t)
	{
		$Y(t,0);
		clearTimeout(_Mtip)
		_Mtip=null
	}
	_gm=$c("menu"+DragLayer);
	_m[DragLayer].ifr=DragLayer
	gp=$D(_gm);
	DragY=Y_-gp[0];
	DragX=X_-gp[1];
	inDragMode=1;
}

function _DDstop()
{
	_gm=$c("menu"+DragLayer);
	_gm.style.zIndex=_zi;
	if(!resetFollowScrollers&&_m[DragLayer][19])_m[DragLayer][19]=Y_-_sT-(gp[2]/2)
	inDragMode=0;
}

function _IdM()
{
	if(inDragMode)
	{
		var g=$c($O+DragLayer);
		$_E(g,Y_-DragY,X_-DragX);
		if(ie55){
			g=$c("iFM"+_m[DragLayer].ifr);
			if(g)$_E(g,Y_-DragY,X_-DragX)
		}
		return 0;
	}	
}

/* [milmenu/api/preloadmenuimages.js] */
/*
   Milonic DHTML Menu Image Pre-loading Module preloadmenuimages.js version 1.3 June 27 2006
   This module is only compatible with the Milonic DHTML Menu version 5.16 or higher

   Copyright 2004 (c) Milonic Solutions Limited. All Rights Reserved.
   This is a commercial software product, please visit http://www.milonic.com/ for more information.
   
   USE: This module does not need any parameters but needs to be placed after the menus have been built
   
   Version 1.2 added ability to load images and give control back to the menu at the same time, the system is now more thread like
   
   SYNTAX: <script language="JavaScript1.2" type="text/javascript" src="preloadmenuimages.js"></script> 
*/

_mIms=new Array();
_mIms2=new Array();

function _mPLF(i)
{
	for(var x=0;x<_mIms.length;x++){
		if(i==_mIms[x])return
		x++
	}
	_mIms[_mIms.length]=i
}

function mmPLIs(i,n){
	
	if(n){	
		_mIms2[i]=new Image()
		if(_mIms[i])_mIms2[i].src=_mIms[i]
	}
	
	if(!_mIms2[i].complete){
		_StO("mmPLIs("+(i)+",0)",5)
		return
	}
	
	if(i<_mIms.length)_StO("mmPLIs("+(i+1)+",1)",20)
}

function mmenuPreLoadImages(){
	for(var x=0;x<_mi.length;x++){
		var I=_mi[x]
		if(I[24])_mPLF(I[24])
		if(I[29])_mPLF(I[29])
		if(I[32])_mPLF(I[32])
		if(I[46])_mPLF(I[46])
		if(I[47])_mPLF(I[47])
		if(I[48])_mPLF(I[48])
		if(I[56])_mPLF(I[56])
		if(I[69])_mPLF(I[69])
		if(I[71])_mPLF(I[71])
		if(I[73])_mPLF(I[73])
		if(I[79])_mPLF(I[79])
		if(I[82])_mPLF(I[82])
		if(I[83])_mPLF(I[83])
		if(I[85])_mPLF(I[85])
		if(I[88])_mPLF(I[88])
		if(I[90])_mPLF(I[90])
		if(I[91])_mPLF(I[91])
		if(I[92])_mPLF(I[92])
		
	}
	mmPLIs(0,1)
}

mmenuPreLoadImages()