var gKampf = "../images/kampfpresse1.jpg";
var gKampfCount = 1;

function kampfLoop()
{
	var src1 = "../images/kampfpresse1.jpg";
	var src2 = "../images/kampfpresse2.jpg";
	
	switch(gKampfCount)	
	{
		case 1: 
			gKampf = src1;
			gKampfCount = 2;
			break;
		case 2: 
			gKampf = src2;
			gKampfCount = 1;
			break;
	}

	swapImage("kampf",gKampf)
	var timeout = setTimeout("kampfLoop();", 5000);
}

var gJapSkin = "../images/japskin1.jpg";
var gJapCount = 1;

function japLoop()
{
	var src1 = "../images/japskin1.jpg";
	var src2 = "../images/japskin2.jpg";
	var src3 = "../images/japskin1mir.jpg";
	var src4 = "../images/japskin2mir.jpg";
	
	switch (gJapCount)	
	{
		case 1: 
			gJapSkin = src1;
			gJapCount = 2;
			break;
		case 2: 
			gJapSkin = src2;
			gJapCount = 3;
			break;
		case 3: 
			gJapSkin = src1;
			gJapCount = 4;
			break;
		case 4: 
			gJapSkin = src3;
			gJapCount = 5;
			break;
		case 5: 
			gJapSkin = src4;
			gJapCount = 6;
			break;
		case 6: 
			gJapSkin = src3;
			gJapCount = 1;
			break;
	}
	
	swapImage("japskin",gJapSkin)
	var timeout = setTimeout("japLoop();", 2000);
}

function swapImage(id,img) 
{
	if (!document.images) return; 
		
	document.images[id].src = img;
}



function prinzregentMail()
{
	document.write('<a href="&#109;&#97;&#105;&#108;&#116;&#111;:info&#64;prinzregenttheater.de">info&#64;prinzregenttheater.de<\/a>');
}

function mpureMail()
{
	document.write('<a href="&#109;&#97;&#105;&#108;&#116;&#111;:info&#64;pure-actors-and-presenters.de">info&#64;pure-actors-and-presenters.de<\/a>');
}

function bellissimaMail()
{
	document.write('<a href="&#109;&#97;&#105;&#108;&#116;&#111;:info&#64;bellissima.net">info&#64;bellissima.net<\/a>');
}

function actorscutMail()
{
	document.write('<a href="&#109;&#97;&#105;&#108;&#116;&#111;:info&#64;actorscut.com">info&#64;actorscut.com<\/a>');
}

function evaMail()
{
	document.write('<a href="&#109;&#97;&#105;&#108;&#116;&#111;:info&#64;evavanheijningen.nl">info&#64;evavanheijningen.nl<\/a>');
}

function henzepegmanMail()
{
	document.write('<a href="&#109;&#97;&#105;&#108;&#116;&#111;:henze&#64;worldmail.nl">henze&#64;worldmail.nl<\/a>');
}



function playQuickTime(qt, w, h)
{
	data='';
	data+='	<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" width="'+w+'" height="'+h+'">';
	data+='		<param name="src" value="'+qt+'" />';
	data+='		<param name="autoplay" value="true" />';
	data+='		<param name="controller" value="true" />';
	data+='		<param name="kioskmode" value="true" />';
	data+='		<param name="bgcolor" value="#000000" />';
	data+='		<param name="scale" value="tofit" />';
	
	data+='		<!--[if !IE]>-->';
	data+='		<object type="video/quicktime" data="'+qt+'" width="'+w+'" height="'+h+'">';
	data+='			<param name="autoplay" value="true" />';
	data+='			<param name="controller" value="true" />';
	data+='			<param name="kioskmode" value="true" />';
	data+='			<param name="bgcolor" value="#000000" />';
	data+='			<param name="scale" value="tofit" />';
	data+='		</object>';
	data+='		<!--<![endif]-->';
	
	data+='	</object>';
	document.write(data);
}

function mouseOverVideo(id)
{
	if (document.getElementById) { 
		var element = document.getElementById(id); 
		element.style.display = "";
	} 
}


function mouseOutVideo(id)
{
	if (document.getElementById) { 
		var element = document.getElementById(id); 
		element.style.display = "none";
	} 
}


function playFlashVideo(flv, w, h)
{
	data='';
	data+='	<object type="application/x-shockwave-flash" data="../flash/player_flv_maxi.swf" width="'+w+'" height="'+h+'">';
	data+='		<param name="movie" value="../flash/player_flv_maxi.swf" />';
	data+='		<param name="FlashVars" value="config='+flv+'" />';
/*	data+='		<param name="wmode" value="transparent" />';	*/
	data+='	</object>';
	document.write(data);
}


function playYouTube(yt, w, h)
{
	data='';
	data+='	<object type="application/x-shockwave-flash" width="'+w+'" height="'+h+'" data="'+yt+'&amp;autoplay=1">';
	data+='		<param name="movie" value="'+yt+'&amp;autoplay=1" />';
/*	data+='		<param name="wmode" value="transparent" />';	*/
	data+='	</object>';
	document.write(data);
}



// this function is needed to work around 
// a bug in IE related to element attributes
function hasClass(obj) 
{
	var result = false;
	if (obj.getAttributeNode("class") != null)
	{
		result = obj.getAttributeNode("class").value;
	}
	return result;
}   

function stripe(id)
{
    // the flag we'll use to keep track of 
    // whether the current row is odd or even
    var even = false;
  
    // if arguments are provided to specify the colours
    // of the even & odd rows, then use the them;
    // otherwise use the following defaults:
    var evenColor = arguments[1] ? arguments[1] : "#fff";
    var oddColor = arguments[2] ? arguments[2] : "#eee";
  
    // obtain a reference to the desired table
    // if no such table exists, abort
    var table = document.getElementById(id);
    if (! table) { return; }
    
    // by definition, tables can have more than one tbody
    // element, so we'll have to get the list of child
    // &lt;tbody&gt;s 
    var tbodies = table.getElementsByTagName("tbody");

    // and iterate through them...
    for (var h = 0; h < tbodies.length; h++)
    {
		// find all the &lt;tr&gt; elements... 
		var trs = tbodies[h].getElementsByTagName("tr");
      
		// ... and iterate through them
		for (var i = 0; i < trs.length; i++)
		{
			// avoid rows that have a class attribute
			// or backgroundColor style
			if (! hasClass(trs[i]) && ! trs[i].style.backgroundColor)
			{
				// get all the cells in this row...
				var tds = trs[i].getElementsByTagName("td");
        
				// and iterate through them...
				for (var j = 0; j < tds.length; j++)
				{
					var mytd = tds[j];

					// avoid cells that have a class attribute
					// or backgroundColor style
					if (! hasClass(mytd) && ! mytd.style.backgroundColor)
					{
						mytd.style.backgroundColor = even ? evenColor : oddColor;
					}
				}
			}
			// flip from odd to even, or vice-versa
			even =  ! even;
		}
	}
}
  
  
