//------------------------------------------------------------------//
//         RadWindow launcher                                        //
//------------------------------------------------------------------//        
function UseWindowManager()
{
    var oManager = GetRadWindowManager();
    var oWnd = oManager.GetWindowByName("DialogWindow");
    oWnd.Show();
    var oActive = oManager.GetActiveWindow();
}   

//------------------------------------------------------------------//
//         functions for replacing image source on item             //
//------------------------------------------------------------------//

function changeImage(imgSrc)
{
    document.getElementById("inkodhypera").src=imgSrc;
}
function changeImageByID(imgSrc,imgID)
{
    document.getElementById(imgID).src=imgSrc;
}   

//------------------------------------------------------------------//
//         functions for gallery thumbnails rollover effect         //
//------------------------------------------------------------------//
function changeGalleryImageByID(imgSrc,imgID,selectedButtonID)
{
    document.getElementById(imgID).src=imgSrc;
    document.getElementById(lastItemID).src='images/media_button_off.gif';
    lastItemID=selectedButtonID;
    document.getElementById(selectedButtonID).src='images/media_button_on.gif';
}

function changeGalleryButtonStateByID(imgSrc,imgID)
{
    document.getElementById(imgID).src=imgSrc;
}
function mouseover(ItemID) 
{ 
    window.document.getElementById( ItemID ).className = "ThumbDivOn";    
} 
function mouseout(ItemID) 
{ 
    window.document.getElementById( ItemID ).className = "ThumbDivOff";    
} 


//------------------------------------------------------------------//
//         functions for changing div element class                 //
//------------------------------------------------------------------//
function changeClassName(ItemID,NewClassName) 
{ 
    window.document.getElementById(ItemID).className = NewClassName;
} 

