﻿function loadPlayer(flashp,width,height)
{
    var s2 = new SWFObject(flashp,"artwork",width,height,"7");   
    s2.write("flashFile");    
}

function loadPlayer1(flashp,width,height)
{
    var s2 = new SWFObject(flashp,"artwork",width,height,"7");   
    s2.write("newsTicker");    
}

function loadZoomFlashPlayer(flashp,width,height)
{
    var s2 = new SWFObject(flashp,"artwork",width,height,"7");   
    s2.write("ZoomFlashPlayer");
}

var sImagePath,sImageName,iZoomImageWidth,iZoomImageHeight;
function loadZoomFlashPlayerForArtworkPage(flashp,width,height)
{
    var s2 = new SWFObject(flashp,"artwork",width,height,"7");      
    s2.write("ZoomFlashPlayer");
    //loadProjectInfo(width,height);   
}

//function loadProjectInfo(width, height)
//{
//    alert(height);
//    iZoomImageHeight=height;
//    iZoomImageHeight = window.parseInt(iZoomImageHeight) + 30;
//    document.getElementById("artwork").style.height=iZoomImageHeight + "px";        
//    document.getElementById("artwork").style.backgroundColor="red";
//    alert(document.getElementById("artwork").style.height);
//}

function OpenPopUpWindow(url,w,h)
{
 if(w == null)
        w=800;
    if(h == null)
        h=600;
    var myWindow=window.open(url,"mywin","width=" + w + ",height=" + h + ",menubar=0,toolbar=0,left=0,top=0,scrollbars=1");       
}

function CallButtonClick(e, obj)
{
    if(e.charCode != null ) 
    {
        if (!e) var e = window.event;
	    e.cancelBubble = true;
	    if (e.stopPropagation) e.stopPropagation();
	    e.returnValue=false;
        e.cancel = true;
    }
     var unicode = e.charCode ? e.charCode : e.keyCode;
     if(unicode==13)
     {
        document.getElementById(obj).click();
        return false;
     }
    else
        return true;

}



