var intval=""
var arURL = new Array()
var swfURL
var intcnt=""
var i=""
var strURL=""

function startPlaySample(strURL) {
		intcnt="0";
		if (intval!="") { stop_Int(); }
		swfURL = strURL;
		PlaySample();
		intval=window.setInterval("PlaySample()",30000);
		intcnt="1";
		}
		
function PlaySample(){
		if (intcnt=="0") {
		var mySWF = new SWFObject(swfURL,"flashPlayer",1,1);
		mySWF.write("flashStage");
		} else {
			var mySWF = new SWFObject("","flashPlayer",1,1);
			mySWF.write("flashStage");
			document.getElementById("flashStage").innerHTML = "";
			stop_Int();
		}	
	}

function stop_Int() {
		window.clearInterval(intval);
		intval=""
		}
		
function startPlaylist(swfURL) {
		strURL = new String(swfURL);
		strURL = strURL.split(",");
		playPlaylist();
		intval=window.setInterval("playPlaylist()",30000);
		}

function playPlaylist(){
		if (i=="") {i=0;}
		var mySWF = new SWFObject(strURL[i],"flashPlayer",1,1);
		mySWF.write("flashStage");
		i=i+1;
		}

function PlaySamplePlayList(SampleURL)
{
	var nowmp = false;
	var browser = navigator.userAgent.toLowerCase();

	nowmp = isWMVinstalled(browser);

	if(nowmp) {
		window.open('wmprequired.aspx', 'wmp9', 'height=300,width=373,resizable=1,location=0,status=0,scrollbars=0,menubar=0,titlebar=0,toolbar=0').focus();
		return false;
	}
	else{
		SampleURL.replace("&amp;","&");
		document.getElementById("Player").URL = SampleURL;
		return false;
	}
}
		
function PlaySampleSWF(swfURL){
		
		arURL[0] = "http://swf.samples.dmpcontent.com/600150/n/090/65/87/0906587_0101_07_1401.swf"
		arURL[1] = "http://hurl.samples.dmpcontent.com/scripts/hurl.do?cid=600150&clipid=100492302290014010"
		arURL[2] = "http://hurl.samples.dmpcontent.com/scripts/hurl.do?cid=600150&clipid=012611101100714010"
		
		if(intval==""){
			//for (var i = 0; i < arURL.length; i++)
			var mySWF = new SWFObject(arURL[0],"flashPlayer",1,1);
			mySWF.write("flashStage");
			intval=window.setInterval("stop_Int()",10000);
						
	  }else{
          stop_Int1()
      }
}
 		
