    function playMedia(videoName, audioName) {   
		var fshNew = new SWFObject("FLVPlayerCustom.swf", "FLVPlayer", "371", "259", "8", "#ffffff");
        fshNew.addParam("quality", "high");
        fshNew.addParam("scale", "Default");
        fshNew.addParam("wmode", "transparent");
        fshNew.addParam("redirectUrl", "http://www.macromedia.com/go/getflashplayer");
        //fshNew.addParam("xiRedirectUrl", "");
        fshNew.addVariable("autostart", "true");
        fshNew.addVariable("allowfullscreen", "false");
        fshNew.addVariable("overstretch", "true");
		 
		if(videoName != null) {
            fshNew.addVariable("file", videoName);
        } else {
		    fshNew.addVariable("file", audioName);
		    fshNew.addVariable("image", document.getElementById("artistImage").src);
		}
		
		fshNew.write("_display");
				
		var display = document.getElementById("_display");
		display.style.zIndex = 5000;
		//display.style.left = "230px";
		//display.style.top = "283px";
		display.style.top = "310px";
		//display.style.background = (videoName != null) ? "#ffffff" : "Transparent";
		display.style.background = "#ffffff";
        
        reposition();
        
        //assign event handlers to body element
        if(document.attachEvent){	
	        window.attachEvent("onload", reposition);
	        window.attachEvent("onresize", reposition);
        } else if(document.addEventListener) {
	        window.addEventListener("load", reposition, false);
	        window.addEventListener("resize", reposition, false);
        }
    }
    
    function killMedia() { 
        var display = document.getElementById("_display");
		display.style.left = "-1000px";
		display.style.top = "-1000px";
		display.innerHTML = "";
		
		//unassign event handlers to body element
        if(document.detachEvent){	
	        window.detachEvent("onload", reposition);
	        window.detachEvent("onresize", reposition);
        } else if(document.addEventListener) {
	        window.removeEventListener("load", reposition, false);
	        window.removeEventListener("resize", reposition, false);
        }
    }
    
//    function reposition() {
//	    var intLayoutW = 837;						//width of main layout not counting variable widths
//	    var intPageW = document.body.clientWidth;	//current width of the body
//	    var intElemLeft = 230;							//left position of div relative to main layout
//    	
//	    if(intPageW <= intLayoutW)	//body width smaller then layout width
//		    document.getElementById("_display").style.left = intElemLeft + "px";
//	    else						//body width bigger then layout width
//		    document.getElementById("_display").style.left = intElemLeft + ((intPageW / 2) - (intLayoutW / 2)) + "px";
//    }

    function reposition() {
	    var intLayoutW = 866;						//width of main layout not counting variable widths
	    var intPageW = document.body.clientWidth;	//current width of the body
	    var intElemLeft = 250;							//left position of div relative to main layout
    	var isIE = false;
    	var isFF = false;
    	var isCH = false;
    	var isSF = false;
    	
    	if(/MSIE/i.test(navigator.userAgent)) {
		    isIE = true;
	    }else if(/firefox/i.test(navigator.userAgent)) {
	        isFF = true;
	    }else if(/chrome/i.test(navigator.userAgent)) {
	        isCH = true;
	    }else if(/safari/i.test(navigator.userAgent)) {
	        isSF = true;
	    }
	
	    if(isIE) {
	        //intElemLeft += 10;
	    }
	    
	    if(isFF) {
	        intElemLeft += 15;
	    }
	    else if (isCH) {
	        intElemLeft -= 5;
	    }
	    else if (isSF) {
	        intElemLeft -= 5;
	    }
	    
	    //alert("IE: " + isIE + " | FF: " + isFF + " | isChrome: " + isCH);
	    
	    if(intPageW <= intLayoutW) {//body width smaller then layout width
		    document.getElementById("_display").style.left = intElemLeft + "px";
	    }else {						//body width bigger then layout width
	        if(isFF) {
	            intElemLeft -= 20;
	        }
	        
		    document.getElementById("_display").style.left = intElemLeft + ((intPageW / 2) - (intLayoutW / 2)) + "px";
		}
    }

