var Path;
var Bilder = new Array();
var Zaehler = 0;
var aktiv;
var ImgDiaShow;

// JScript File

function OpenFeedback(sURL, sTitle, sText)
{
window.alert('Hallo');
window.open(sURL, 'Feedback', 'width=800,height=600');

}

function ZeigeBild(sBild)
{ 
//document.write('<html><body text="#FFFFFF" bgcolor="#000000" link="#FF0000" alink="#FF0000">');
//document.write('<P ALIGN=CENTER>') ;
//document.write('<input type=button value="Zur&uuml;ck / Back" onClick="history.back()"><\/P>');
//document.write('<P align=center>');
//document.write('<IMG src="'+sBild+'"\/>');
//document.write('<\/P></body><\/html>') ;


overlay('display', sBild);

for (i=0; i<Bilder.Length; i++)
{
	if (Bilder[i]==sBild)
	{	
		Zaehler=i; 
		return; 
	}
}
}

function load_slide(sBild)
{

Bilder.push(sBild);

}

function next_slide()
{

Zaehler++;

if (Zaehler>=Bilder.length-1) { Zaehler = 0 };

bild_anzeigen();

}

function last_slide()
{

Zaehler--;

//window.alert(Zaehler+"   "+Bilder[Zaehler]);

if (Zaehler<0) { Zaehler = Bilder.length-1 };

bild_anzeigen();

}

function bild_anzeigen()  
{

if (ImgDiaShow == null)
{
	return;
}

overlay('none', null);
overlay('display', Bilder[Zaehler]);
//if (window.document.images["Diashow"].width >= window.document.images["Diashow"].height) { window.document.images["Diashow"].width = screen.availWidth / 1.25  } ;
//if (window.document.images["Diashow"].width < window.document.images["Diashow"].height) { window.document.images["Diashow"].height = screen.availHeight / 2  } ;
}


function auto_show()
{

bild_anzeigen();

if (Zaehler==Bilder.length-1) return ;
aktiv=setTimeout("auto_show()", 1000);
Zaehler++;



}

function stop_show()
{
window.clearTimeout(aktiv);
}


function OnLoaded()
{
roundCorners();
}

function showKontaktPopUp()
{

window.alert('Hallo');
    var popUp = $('puKontakt');
    var popUpBackground = $('puBackground');
	
	window.alert('Hallo');
    var oPopUp = new BodoPopUp(popUp, popUpBackground);

    //dynamic resize:
    oPopUp._resize();
    oPopUp._show();
    
    //laden des Formulars:
    var url = "http://www.bodoconsult.de/tinc?key=nGCTLvzA";//TestFormular.htm
    // notice the use of a proxy to circumvent the Same Origin Policy.

    new Ajax.Request(url, {
      method: 'get',
      onSuccess: function(transport) {
        var notice = $('puKontaktContent');
        notice.innerHTML = transport.responseText;
      },
      onFailure: function(transport){
        var notice = $('puKontaktContent');
        notice.innerHTML = transport.responseText;
      }
    });                   
}

function closePopUp()
{
     var popUp = $('puKontakt');
     var popUpBackground = $('puBackground');
     popUp.style.display = 'none';
     popUpBackground.style.display = 'none';
}
            
function roundCorners()
{
    try
    {
        Rico.Corner.round('divNavigationTop', {corners:'all', compact:false, color:"#6495ED", bgColor:"#FFFFFF"} );
    }
	    catch (ex)
    {
    }
    
    try
    {
        Rico.Corner.round('roundNavigationLeftLinkContainer', {corners:'all', compact:false, color:"#6495ED", bgColor:"#FFFFFF"} );
    }
	    catch (ex)
    {
    }
    
    try
    {
        Rico.Corner.round('roundDivLogo', {corners:'all', compact:false, color:"#83A13C", bgColor:"#B5BAA7"} );
    }
	    catch (ex)
    {
    }
    
    try
    {
           Rico.Corner.round('roundHeader', {corners:'all', compact:false, color:"#FFFFFF", bgColor:"#B5BAA7"} );
    }
	    catch (ex)
    {
    }
     
    try
    {
        Rico.Corner.round('roundNavigationLeft', {corners:'all', compact:false, color:"#FFFFFF", bgColor:"#B5BAA7"} );
    }
        catch (ex)
    {
    }
    try
    {
        Rico.Corner.round('roundContent', {corners:'all', compact:false, color:"#FFFFFF", bgColor:"#B5BAA7"} );
    }
	    catch (ex)
    {
    }
}

	  




