//(C) Stephen Daly
// www.stephendaly.org
// Date: 11/3/2008

// Checks if the browsers is IE or another.
// document.all will return true or false depending if its IE
// If its not IE then it adds the mouse event


function awardHover()
	{
		document.getElementById("ah").src = "images/Copy of awards_butt-o.jpg";
	}
function awardOut()
	{
		document.getElementById("ah").src = "images/Copy of awards_butt.jpg";
	}
	
function lyricsHover()
	{
		document.getElementById("lh").src = "images/lyrics_butt-o.jpg";
	}
function lyricsOut()
	{
		document.getElementById("lh").src = "images/lyrics_butt.jpg";
	}
	
	function audioHover()
	{
		document.getElementById("adh").src = "images/audio_butt-o.jpg";
	}
function audioOut()
	{
		document.getElementById("adh").src = "images/audio_butt.jpg";
	}
	
	function vedioHover()
	{
		document.getElementById("vh").src = "images/video_butt-o.jpg";
	}
function vedioOut()
	{
		document.getElementById("vh").src = "images/video_butt.jpg";
	}
	
	
	
	
	





function moreHover()
	{
		document.getElementById("hover1").src = "images/more-hover.jpg";
	}
function moreOut()
	{
		document.getElementById("hover1").src = "images/more.jpg";
	}
function closeHover()
	{
		document.getElementById("hover2").src = "images/close-hover.jpg";
	}
function closeOut()
	{
		document.getElementById("hover2").src = "images/close.jpg";
	}







if (!document.all)
document.captureEvents(Event.MOUSEMOVE)

// On the move of the mouse, it will call the function getPosition
document.onmousemove = getPosition;

// These varibles will be used to store the position of the mouse
var X = 0
var Y = 0

// This is the function that will set the position in the above varibles 
function getPosition(args) 
{
  // Gets IE browser position
  if (document.all) 
  {
    X = event.clientX + document.body.scrollLeft
    Y = event.clientY + document.body.scrollTop
  }
  
  // Gets position for other browsers
  else 
  {  
    X = args.pageX
    Y = args.pageY
  }  
}
function backgroundFilter_new()
{//alert("back");
    var div;
    
    if(document.getElementById)
    // Standard way to get element
    div = document.getElementById('backgroundFilter_new'); 
    else if(document.all) 
    // Get the element in old IE's 
    div = document.all['backgroundFilter_new']; 
    
    // if the style.display value is blank we try to check it out here 
    if(div.style.display==''&&div.offsetWidth!=undefined&&div.offsetHeight!=undefined)
    {
        div.style.display = (div.offsetWidth!=0&&div.offsetHeight!=0)?'block':'none'; 
    }
    
    // If the background is hidden ('none') then it will display it ('block').
    // If the background is displayed ('block') then it will hide it ('none').
    div.style.display = (div.style.display==''||div.style.display=='block')?'none':'block';
}


function backgroundFilter1()
{
    var div;
    
    if(document.getElementById)
    // Standard way to get element
    div = document.getElementById('backgroundFilter1'); 
    else if(document.all) 
    // Get the element in old IE's 
    div = document.all['backgroundFilter1']; 
    
    // if the style.display value is blank we try to check it out here 
    if(div.style.display==''&&div.offsetWidth!=undefined&&div.offsetHeight!=undefined)
    {
        div.style.display = (div.offsetWidth!=0&&div.offsetHeight!=0)?'block':'none'; 
    }
    
    // If the background is hidden ('none') then it will display it ('block').
    // If the background is displayed ('block') then it will hide it ('none').
    div.style.display = (div.style.display==''||div.style.display=='block')?'none':'block';
}


function popUp_new()
{
    var div;
    
    if(document.getElementById)
    // Standard way to get element
    div = document.getElementById('popupWindow1'); 
    else if(document.all) 
    // Get the element in old IE's 
    div = document.all['popupWindow1']; 
    
    // if the style.display value is blank we try to check it out here 
    if(div.style.display==''&&div.offsetWidth!=undefined&&div.offsetHeight!=undefined)
    {
        div.style.display = (div.offsetWidth!=0&&elem.offsetHeight!=0)?'block':'none'; 
    }
    
    // If the PopUp is hidden ('none') then it will display it ('block').
    // If the PopUp is displayed ('block') then it will hide it ('none').
    div.style.display = (div.style.display==''||div.style.display=='block')?'none':'block';
    
    // Off-sets the X position by 15px
    X = X + 15;
    
    // Sets the position of the DIV
    div.style.left = X+'px';
    div.style.top = Y+'px';
}



function popUpeg()
{//alert("called");
    var div;
    
    if(document.getElementById)
    // Standard way to get element
    div = document.getElementById('popupWindow1'); 
    else if(document.all) 
    // Get the element in old IE's 
    div = document.all['popupWindow1']; 
    
    // if the style.display value is blank we try to check it out here 
    if(div.style.display==''&&div.offsetWidth!=undefined&&div.offsetHeight!=undefined)
    {
        div.style.display = (div.offsetWidth!=0&&elem.offsetHeight!=0)?'block':'none'; 
    }
    
    // If the PopUp is hidden ('none') then it will display it ('block').
    // If the PopUp is displayed ('block') then it will hide it ('none').
    div.style.display = (div.style.display==''||div.style.display=='block')?'none':'block';
    
    // Off-sets the X position by 15px
    X = X + 0;
   
    // Sets the position of the DIV

}




function popUp3()
{  // alert("xc");
    var div;
    
    if(document.getElementById)
    // Standard way to get element
    div = document.getElementById('popupWindow3'); 
    else if(document.all) 
    // Get the element in old IE's 
    div = document.all['popupWindow3']; 
    
    // if the style.display value is blank we try to check it out here 
    if(div.style.display==''&&div.offsetWidth!=undefined&&div.offsetHeight!=undefined)
    {
        div.style.display = (div.offsetWidth!=0&&elem.offsetHeight!=0)?'block':'none'; 
    }
    
    // If the PopUp is hidden ('none') then it will display it ('block').
    // If the PopUp is displayed ('block') then it will hide it ('none').
    div.style.display = (div.style.display==''||div.style.display=='block')?'none':'block';
    
    // Off-sets the X position by 15px
    X = X + 15;
    
    // Sets the position of the DIV
    div.style.left = '0';//+'px';
    div.style.top = '0';//+'px';
}


function popUpVideo()
{  // alert("xc");
    var div;
    
    if(document.getElementById)
    // Standard way to get element
    div = document.getElementById('popupWindowVideo'); 
    else if(document.all) 
    // Get the element in old IE's 
    div = document.all['popupWindowVideo']; 
    
    // if the style.display value is blank we try to check it out here 
    if(div.style.display==''&&div.offsetWidth!=undefined&&div.offsetHeight!=undefined)
    {
        div.style.display = (div.offsetWidth!=0&&elem.offsetHeight!=0)?'block':'none'; 
    }
    
    // If the PopUp is hidden ('none') then it will display it ('block').
    // If the PopUp is displayed ('block') then it will hide it ('none').
    div.style.display = (div.style.display==''||div.style.display=='block')?'none':'block';
    
    // Off-sets the X position by 15px
    X = X + 15;
    
    // Sets the position of the DIV
	
    /*div.style.left = '110px';//+'px';
    div.style.top = '290px';//+'px';*/
}
