var deviceIphone = "iphone";
var deviceIpod = "ipod";
var deviceIpad = "ipad";

//Initialize our user agent string to lower case.
var uagent = navigator.userAgent.toLowerCase();
//**************************
// Detects if the current device is an iPhone or iPod Touch.
function IsNonFlashDevice()
{
    if (uagent.search(deviceIphone) > -1)
       return true;
    else if (uagent.search(deviceIpod) > -1)
       return true;
    else if (uagent.search(deviceIpad) > -1)
       return true;
    else
       return false;
	 

}
function isipadTypeDevice()
{
if(IsNonFlashDevice())
return "hidden"
else
return "visible"
}

function isPCTypeDevice()
{
if(IsNonFlashDevice())
return "visible"
else
return "hidden"
}

function renderTop()
{
document.getElementById("flash").style.visibility = isipadTypeDevice();
document.getElementById("nonFlash").style.visibility = isPCTypeDevice();
}
function change_parent_url(url)
        {
	    document.location=url;
        }



