var artistPre=0;
var artistNex=0;
var artistCou=0;
var VideofromArtbio=0;
var Artistid=0;

	MainArray = new Array();
	artistidArray= new Array ();
	fnameArray= new Array ();
	lnameArray = new Array ();
	videoArray=new Array ();
	parfileArray = new Array ();

function DetectBrowser(artistid)
{

    var textfiles="txts/t3a.rtf";
	var rese=Video6.GetArtistRtf(textfiles);
	version=0
	if (navigator.appVersion.indexOf("MSIE")!=-1)
	{
	
		temp=navigator.appVersion.split("MSIE")
		version=parseFloat(temp[1])
		
	}
	if (version>=7.0)
	{

		// <![CDATA[
		var textfiles="txts/t3a.rtf";
		var rese=Video6.GetArtistRtf(textfiles);
		var fo = new SWFObject("sample7.swf?type=Artists&ind="+artistid+"&video=flvs/movie3.flv","movie_player", "380", "300", 7, "#FFFFFF");
		fo.addVariable("sourceid", "y%2C/");
		fo.write("myFlash");
		document.getElementById ("myText").innerHTML=rese.value;

		// ]]>
	}
	else
	{
	
		var flashHTML ="";
		flashHTML += "<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000'";
		flashHTML +="codebase=' http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0'";
		flashHTML += "width='380' height='300'>";
		flashHTML += "<param name='movie' value='sample7.swf?type=Artists&ind="+artistid+"&nam=30-Day Return Guarantee&video=flvs/movie1.flv&textfile=txts/t3.rtf' />";
		flashHTML += "<param name='quality' value='high' />";
		flashHTML += "<param name='allowScriptAccess' value='always' />";
		flashHTML += "<embed wmode='transparent' src='sample7.swf?type=Artists&ind="+artistid+"&video=flvs/movie3.flv&textfile=txts/t3.rtf' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='380' height='300'></embed></object>";
		document.getElementById('myFlash').innerHTML = flashHTML
		document.getElementById ("myText").innerHTML=rese.value;

	}
}

function callbackvideo(str)
{
    var temparray=str.split('&');
    var temprtf=temparray[3].split('=') 
    var rese=Video6.GetArtistRtf(temprtf[1]);
    document.getElementById ("myText").innerHTML=rese.value;
  
	version=0
	if (navigator.appVersion.indexOf("MSIE")!=-1)
	{
		temp=navigator.appVersion.split("MSIE")
		version=parseFloat(temp[1])
	}
	if (version>=7.0)
	{
		// <![CDATA[
		var fo = new SWFObject(''+str, 'movie_player', '380', '300', 7, '#FFFFFF');
		fo.addVariable("sourceid", "y%2C/");
		fo.write('myFlash');
		// ]]>
		 document.getElementById ("myFlashH").innerHTML="How To Select Size?";
	}
	else
	{
	
		var flashHTML ="";
		flashHTML += "<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000'";
		flashHTML += "codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0'";
		flashHTML += "width='380' height='300'>";
		flashHTML += "<param name='movie' value='"+str+"' />";
		flashHTML += "<param name='quality' value='high' />";
		flashHTML += "<param name='allowScriptAccess' value='always' />";
		flashHTML += "<embed wmode='transparent' src='"+str+"' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='380' height='300'></embed></object>";
		document.getElementById('myFlash').innerHTML = flashHTML
		 document.getElementById ("myFlashH").innerHTML="How To Select Size?";
	}
}

function ArtistVideo(res)
{
Artistid=res;

    var textfile="";
    var Xmlname="";
	var swf="";
	VideofromArtbio=1;
	
	    textfile="";
		//var id = Video6.GetArtistid(textfile).value;
	//	swf="sample7.swf?type=Artists&ind="+id+"&video=flvs/movie3.flv&ply=y";
		Xmlname="artist.xml";
		Video6.GetArtistVideo(textfile,Xmlname,CallbackArtist);
        document.getElementById("myFlashP").style.display="block";
        document.getElementById ("myText").style.display="block"
        artistNex=0;
       
	
}

function Videocall(res)
{
    var textfile="";
    var Xmlname="";
	var swf="";
	if(res==1)
	{
		 var qPos = document.location.href.indexOf('type=Artists&ply=y&ind');
	if(qPos>0)
		{
			var rVal =  document.location.href.substring(qPos+1);
			//alert(rVal);
			//type=Artists&ply=y&ind
			//if(rVal=='ind')
				window.location="Video.aspx?value=size&ply=y&artbio=n";
			//else
				//window.location="Video.aspx?type=Artists&ply=y";
		}
	    textfile="";
		var id = Video6.GetArtistid(textfile).value;
		swf="sample7.swf?type=Artists&ind="+id+"&video=flvs/movie3.flv&ply=y";
		Xmlname="artist.xml";
		Video6.GetArtistVideo(textfile,Xmlname,CallbackArtist);
        document.getElementById("myFlashP").style.display="block";
        document.getElementById ("myText").style.display="block"
        artistNex=0;
       
	}
	else if(res==2)
	{
	    Xmlname=""
	    textfile="txts\\t4a.rtf";
	    swf="sample7.swf?type=gen&nam=What is a Giclee?&video=flvs/ArtTipsGiclee256mov_3MB.flv&ply=y";
	    var resrtf= Video6.GetArtistRtf(textfile);
	    document.getElementById ("myText").innerHTML=resrtf.value;
	    document.forms[0].xccollections.style.display='none';
	    document.getElementById ("myFlashH").innerHTML="What is a Giclee?";
        document.getElementById("myFlashP").style.display="none";
        document.getElementById ("myText").style.display="block"
	}
	else if(res==3)
	{
	    Xmlname="";
	    textfile="txts\\t7a.rtf";
	   // var rese=Video6.GetArtistVideo()
		swf="sample7.swf?type=gen&nam=How To Select Size?&video=flvs/ArtTipsCustomSizing256_2.3MB.flv&ply=y";
		var resrtf= Video6.GetArtistRtf(textfile);
	    document.getElementById ("myText").innerHTML=resrtf.value;
	    document.forms[0].xccollections.style.display='none';
	    document.getElementById ("myFlashH").innerHTML="How To Select Size?";
	    document.forms[0].xccollections.options[document.forms[0].xccollections.selectedIndex].text= document.forms[0].xccollections[1].text;
	    document.getElementById("myFlashP").style.display="none";
	    document.getElementById ("myText").style.display="block";
	}
	else if(res==4)
	{
	    
	    textfile="";
	    var rese=Video6.GetArtistVideo()
		swf="sample7.swf?type=amo&ply=y";
		Xmlname="artmakeovers.xml";
		Video6.GetArtistVideo(textfile,Xmlname,CallbackArtMakeOver);
		     document.getElementById("myFlashP").style.display="block";
		     document.getElementById ("myText").style.display="block";
		
		artistNex=0;
	}
	else if(res==5)
	{
	    textfile="txts\\t8a.rtf";

		swf="sample7.swf?type=gen&nam=30-Day Return Guarantee&video=flvs/ArtTipsGuaranteeS256_1.5MB.flv&ply=y";
		var resrtf= Video6.GetArtistRtf(textfile);
	    document.getElementById ("myText").innerHTML=resrtf.value;
	    document.forms[0].xccollections.style.display='none';
	    document.getElementById ("myFlashH").innerHTML="30-Day Return Guarantee";
	    document.getElementById("myFlashP").style.display="none";
	    document.getElementById ("myText").style.display="block";

	}
	else if(res==6)
	{
	
	
	    textfile="";
		swf="sample7.swf?type=TV Clips&ply=y";
		Xmlname="tvclips.xml";
		Video6.GetArtistVideo(textfile,Xmlname,CallbackTvClips);
	    artistNex=0;
		document.getElementById("myFlashP").style.display="block";
		document.getElementById ("myText").style.display="none";

	}

  // CallSwf(swf)
	version=0
	if (navigator.appVersion.indexOf("MSIE")!=-1)
	{
		temp=navigator.appVersion.split("MSIE")
		version=parseFloat(temp[1])
	}
	if (version>=7.0)
	{
		// <![CDATA[
		var fo = new SWFObject(""+swf, "movie_player", "380", "300", 7, "#FFFFFF");
		fo.addVariable("sourceid", "y%2C/");
		fo.write("myFlash");
		// ]]>
	}
	else
	{
		var flashHTML ="";
		flashHTML += "<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000'";
		flashHTML += "codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0'";
		flashHTML += "width='380' height='300'>";
		flashHTML += "<param name='movie' value='"+swf+"' />";
		flashHTML += "<param name='quality' value='high' />";
		flashHTML += "<param name='allowScriptAccess' value='always' />";
		flashHTML += "<embed wmode='transparent' src='"+swf+"' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='380' height='300'></embed></object>";
		document.getElementById('myFlash').innerHTML = flashHTML;
	}
	document.title = "Artaissance - Art Videos";
}



    function Previous()
    {
        artistNex--;
        if(artistNex>0)
        {
       
            var Coll = document.forms[0].xccollections;
            
            Coll.selectedIndex=artistNex;
            document.getElementById ("AncNex").style.color="#585858"
            document.getElementById ("AncNex").href="#";
            document.getElementById ("AncNex").style.cursor="pointer";
            artistname=document.forms[0].xccollections[artistNex].text;
            var splitname=artistname;
            var artistch=splitname.split(",");
            if(artistch[0]!= null && artistch[1]!= null)
            {
                document.getElementById ("myFlashH").innerHTML=artistch[1]+" "+artistch[0]
            }
            else
            {
                document.getElementById ("myFlashH").innerHTML=artistch[0];//document.forms[0].xccollections[1].text
            }
            for(i=0;i<fnameArray.length ;i++)
            {
                if(fnameArray[i]==document.forms[0].xccollections.options[document.forms[0].xccollections.selectedIndex].text)
                {
                    var textfiles=parfileArray[i];
                    var videofiles=videoArray[i];
                    
                    CallSwf(videofiles);
                   // var rese=Video6.GetArtistRtf(textfiles);
                   // document.getElementById ("myText").innerHTML=rese.value;
                   
                }
            }
             if(textfiles!=null)
            {
                var Rtfortxt=textfiles.split(".");
                if(Rtfortxt[1]=="txt")
                {
                    var rese=Video6.GetArtisttxt(textfiles);
                    document.getElementById ("myText").innerHTML=rese.value;
                }
                else
                {
                    var rese=Video6.GetArtistRtf(textfiles);
                    document.getElementById ("myText").innerHTML=rese.value;
                }
            }
            else
            {
                document.getElementById ("myText").style.display="none";
            }
            

    }
            
        if(artistNex>1)
        {
        }
        else
        {
                document.getElementById ("AncPre").style.color="#A4A4A4"
                document.getElementById ("AncPre").href="#"; 
                document.getElementById ("AncPre").style.cursor="default";
           
        }
        document.title = "Artaissance - Art Videos";
    }


    function Next()
    {
        artistNex++;
        if(artistNex<=artistCou)
        {
            document.getElementById ("AncPre").style.color="#585858"
            document.getElementById ("AncPre").href="#"; 
            document.getElementById ("AncPre").style.cursor="pointer";
            artistname=document.forms[0].xccollections[artistNex].text;
            var splitname=artistname;
            var artistch=splitname.split(",");
            if(artistch[0]!= null && artistch[1]!= null)
            {
                document.getElementById ("myFlashH").innerHTML=artistch[1]+" "+artistch[0]
            }
            else
            {
                document.getElementById ("myFlashH").innerHTML=artistch[0]//document.forms[0].xccollections[1].text
            }
            var Coll = document.forms[0].xccollections;
            Coll.selectedIndex=artistNex;
            for(i=0;i<fnameArray.length ;i++)
            {
                if(fnameArray[i]==document.forms[0].xccollections.options[document.forms[0].xccollections.selectedIndex].text)
                {
                    var textfiles=parfileArray[i];
                    var videofiles=videoArray[i];
                }
            }
           
            CallSwf(videofiles);
           // var rese=Video6.GetArtistRtf(textfiles);
           // document.getElementById ("myText").innerHTML=rese.value;
            if(textfiles!=null)
            {
                var Rtfortxt=textfiles.split(".");
                if(Rtfortxt[1]=="txt")
                {
                    var rese=Video6.GetArtisttxt(textfiles);
                    document.getElementById ("myText").innerHTML=rese.value;
                }
                else
                {
                    var rese=Video6.GetArtistRtf(textfiles);
                    document.getElementById ("myText").innerHTML=rese.value;
                }
            }
             else
            {
                document.getElementById ("myText").style.display="none";
            }

            }
       
            if(artistCou==artistNex)
            {
                document.getElementById ("AncPre").style.color="#585858"
                document.getElementById ("AncPre").href="#"; 
                document.getElementById ("AncNex").style.color="#A4A4A4"
                document.getElementById ("AncNex").href="#";
                   document.getElementById ("AncNex").style.cursor="default";
            }
            document.title = "Artaissance - Art Videos";
    }


    function SelArtist()
    {

        var Coll = document.forms[0].xccollections;
        artistname=Coll.options[Coll.selectedIndex].text;
        var splitname=artistname;
        var artistch=splitname.split(",");
        if(artistch[0]!= null && artistch[1]!= null)
        {
            document.getElementById ("myFlashH").innerHTML=artistch[1]+" "+artistch[0]
            artistNex=Coll.options[Coll.selectedIndex].value
            
        }
        else if(artistch[0]!=null)
        {
            document.getElementById ("myFlashH").innerHTML=artistch[0]
        }

           artistCou=fnameArray.length;
           for(i=0;i<fnameArray.length ;i++)
           {
          
                if(fnameArray[i]==Coll.options[Coll.selectedIndex].text)
                {
                    var textfiles=parfileArray[i];
                    var videofiles=videoArray[i];
                    artistNex=i;
                }
            }
            artistNex++
            CallSwf(videofiles);
            if(textfiles!=null)
            {
                var Rtfortxt=textfiles.split(".");
                if(Rtfortxt[1]=="txt")
                {
                
                
                    var rese=Video6.GetArtisttxt(textfiles);
                    document.getElementById ("myText").innerHTML=rese.value;
                    
                }
                else
                {
              
                    var rese=Video6.GetArtistRtf(textfiles);
                    document.getElementById ("myText").innerHTML=rese.value;
                }
            }
            else
            {
            document.getElementById ("myText").style.display="none";
            }

    if(artistNex<artistCou)
    {
         if(artistNex==1)
            {
                   
                    document.getElementById ("AncPre").style.color="#A4A4A4"
                    document.getElementById ("AncPre").href="#";
                    document.getElementById ("AncPre").style.cursor="default";
                    
                    document.getElementById ("AncNex").style.color="#585858"
               document.getElementById ("AncNex").href="#"; 
               document.getElementById ("AncNex").style.cursor="pointer";
                    
            }
            else
            {
                document.getElementById ("AncPre").style.color="#585858"
                document.getElementById ("AncPre").href="#"; 
                document.getElementById ("AncPre").style.cursor="pointer";
                document.getElementById ("AncNex").style.color="#585858"
                document.getElementById ("AncNex").href="#"; 
                document.getElementById ("AncNex").style.cursor="pointer";
            }
      
  
    }
    else
    {
      if(artistNex==1)
            {
            //alert("ice1")
            }
      else
      {
        document.getElementById ("AncNex").style.color="#A4A4A4"
        document.getElementById ("AncNex").href="#";
        document.getElementById ("AncNex").style.cursor="default";
        document.getElementById ("AncPre").style.color="#585858"
        document.getElementById ("AncPre").href="#"; 
        document.getElementById ("AncPre").style.cursor="pointer";
       }
    }
    
  
    }

function CallSwf(swfvideo)
{
    var id="";
    swf="sample7.swf?type=Artists&ind="+id+"&video="+swfvideo+"&ply=y";
    version=0
	if (navigator.appVersion.indexOf("MSIE")!=-1)
	{
		temp=navigator.appVersion.split("MSIE")
		version=parseFloat(temp[1])
	}
	if (version>=7.0)
	{
		// <![CDATA[
		var fo = new SWFObject(""+swf, "movie_player", "380", "300", 7, "#FFFFFF");
		fo.addVariable("sourceid", "y%2C/");
		fo.write("myFlash");
		// ]]>
	}
	else
	{
		var flashHTML ="";
		flashHTML += "<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000'";
		flashHTML += "codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0'";
		flashHTML += "width='380' height='300'>";
		flashHTML += "<param name='movie' value='"+swf+"' />";
		flashHTML += "<param name='quality' value='high' />";
		flashHTML += "<param name='allowScriptAccess' value='always' />";
		flashHTML += "<embed wmode='transparent' src='"+swf+"' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='380' height='300'></embed></object>";
		document.getElementById('myFlash').innerHTML = flashHTML;
	}
}



function CallbackArtist(rese)
{
if(VideofromArtbio==0)
    {
    MainArray = new Array();
	artistidArray= new Array ();
	fnameArray= new Array ();
	lnameArray = new Array ();
	videoArray=new Array ();
	parfileArray = new Array ();

    MainArray=rese.value;
    var result=MainArray.split("&rtf");
    var curSel=result[0].split("&fart");
    for (i=0;i<curSel.length-1;i++)
    {
        var Artist=curSel[i].split("&=");
        artistidArray[i]=Artist[0];
        fnameArray[i]=Artist[1];
        lnameArray[i]=Artist[2];
        videoArray[i]=Artist[3];
        parfileArray[i]=Artist[4];

    }
    if(fnameArray.length >0)
    {
    document.getElementById ("AncPre").innerHTML="<< Previous Artist";
    document.getElementById ("AncPre").style.color="#A4A4A4"
    document.getElementById ("AncPre").style.cursor="default";
    
    document.getElementById ("AncNex").innerHTML="Next Artist >>";
    document.getElementById ("AncNex").href="#";
    document.getElementById ("AncNex").style.color="#585858"
    document.getElementById ("AncNex").style.cursor="pointer";
    
    document.forms[0].xccollections.style.display='block';
    document.forms[0].xccollections[0]=new Option("Select Artist", "", true);
		for(i =0 ; i<fnameArray.length; i++)
	    {
			document.forms[0].xccollections[i+1]=new Option(fnameArray[i],i);
        }
        	artistCou=fnameArray.length ;
        	
	}
    artistname = new Array();
   // document.getElementById ("myText").innerHTML=result[1];
    var rese=Video6.GetArtisttxt(parfileArray[0]);
       document.getElementById ("myText").innerHTML=rese.value;
       CallSwf(videoArray[0]);
       artistname=document.forms[0].xccollections[1].text;
       var splitname=artistname;
       var artistch=splitname.split(",");
       if(artistch[0]!= null && artistch[1]!= null)
       {
        document.getElementById ("myFlashH").innerHTML=artistch[1]+" "+artistch[0]
        document.forms[0].xccollections.options[document.forms[0].xccollections.selectedIndex].value= document.forms[0].xccollections[1].value;
        }
        else if(artistch[0]!=null)
        {
            document.getElementById ("myFlashH").innerHTML=artistch[0]
        }
         artistNex++;
          var Coll = document.forms[0].xccollections;
	      Coll.selectedIndex=artistNex;
	      }
	  else
	  {
	  
        MainArray = new Array();
	    artistidArray= new Array ();
	    fnameArray= new Array ();
	    lnameArray = new Array ();
	    videoArray=new Array ();
	    parfileArray = new Array ();

        MainArray=rese.value;
        var result=MainArray.split("&rtf");
        var curSel=result[0].split("&fart");
        for (i=0;i<curSel.length-1;i++)
        {
            var Artist=curSel[i].split("&=");
            artistidArray[i]=Artist[0];
            fnameArray[i]=Artist[1];
            lnameArray[i]=Artist[2];
            videoArray[i]=Artist[3];
            parfileArray[i]=Artist[4];

        }
        if(fnameArray.length >0)
        {
        document.getElementById ("AncPre").innerHTML="<< Previous Artist";
       document.getElementById ("AncPre").style.color="#A4A4A4"
        document.getElementById ("AncPre").style.cursor="default";
        
        document.getElementById ("AncNex").innerHTML="Next Artist >>";
        document.getElementById ("AncNex").href="#";
        document.getElementById ("AncNex").style.color="#585858"
       document.getElementById ("AncNex").style.cursor="pointer";
        
        document.forms[0].xccollections.style.display='block';
        document.forms[0].xccollections[0]=new Option("Select Artist", "", true);
        
        
        
          for(j =0 ; j<artistidArray.length; j++)
	        {
	        
			   // document.forms[0].xccollections[i+1]=new Option(artistidArray[i],i);
			   if(artistidArray[j]==Artistid)
			   {
			        var artistbioid=j;
			   }
            }
        
		    for(i =0 ; i<fnameArray.length; i++)
	        {
			    document.forms[0].xccollections[i+1]=new Option(fnameArray[i],i);
            }
        	    artistCou=fnameArray.length ;
            	
	    }
        artistname = new Array();
       // document.getElementById ("myText").innerHTML=result[1];
        var rese=Video6.GetArtisttxt(parfileArray[artistbioid]);
           document.getElementById ("myText").innerHTML=rese.value;
           CallSwf(videoArray[artistbioid]);
           artistname=document.forms[0].xccollections[artistbioid+1].text;
         
           var splitname=artistname;
           var artistch=splitname.split(",");
           if(artistch[0]!= null && artistch[1]!= null)
           {
            document.getElementById ("myFlashH").innerHTML=artistch[1]+" "+artistch[0]
            document.forms[0].xccollections.options[document.forms[0].xccollections.selectedIndex].value= document.forms[0].xccollections[artistbioid].value;
            }
            else if(artistch[0]!=null)
            {
                document.getElementById ("myFlashH").innerHTML=artistch[0]
            }
             artistNex=artistbioid+1;
              var Coll = document.forms[0].xccollections;
	          Coll.selectedIndex=artistNex;
	          
	           if(artistNex<artistCou)
    {
         if(artistNex==1)
            {
               
                    document.getElementById ("AncPre").style.color="#A4A4A4"
                    document.getElementById ("AncPre").href="#";
                    document.getElementById ("AncPre").style.cursor="default";
                    
                    document.getElementById ("AncNex").style.color="#585858"
               document.getElementById ("AncNex").href="#"; 
               document.getElementById ("AncNex").style.cursor="pointer";
                    
            }
            else
            {
            
                document.getElementById ("AncPre").style.color="#585858"
                document.getElementById ("AncPre").href="#"; 
                document.getElementById ("AncPre").style.cursor="pointer";
                document.getElementById ("AncNex").style.color="#585858"
                document.getElementById ("AncNex").href="#"; 
                document.getElementById ("AncNex").style.cursor="pointer";
            }
      
  
    }
    else
    {
      if(artistNex==1)
            {
            //alert("ice1")
            
            }
      else
      {
      
        document.getElementById ("AncNex").style.color="#A4A4A4"
        document.getElementById ("AncNex").href="#";
        document.getElementById ("AncNex").style.cursor="default";
        document.getElementById ("AncPre").style.color="#585858"
        document.getElementById ("AncPre").href="#"; 
        document.getElementById ("AncPre").style.cursor="pointer";
       }
    }
    
  
    }	      
	        
 }



function CallbackArtMakeOver(rese)
{

    MainArray = new Array();
	artistidArray= new Array ();
	fnameArray= new Array ();
	lnameArray = new Array ();
	videoArray=new Array ();
	parfileArray = new Array ();
	MainArray=rese.value;
	
    var resultAMO=MainArray.split("&fart");

         for(i=0 ;i<resultAMO.length;i++)
        {

            if(resultAMO[i].trim()!=null&&resultAMO[i].trim()!="")
            {
                var setval= resultAMO[i].split("&=");
                fnameArray[i]=setval[0];
                lnameArray[i]=setval[1];
                videoArray[i]=setval[2];
                parfileArray[i]=setval[3]
            }
        }

            

    if(fnameArray.length >0)
    {

        document.getElementById ("AncPre").innerHTML="<< Previous Makeover";
        document.getElementById ("AncPre").style.color="#A4A4A4"
        document.getElementById ("AncPre").href="#";
        document.getElementById ("AncPre").style.cursor="default";
        document.getElementById ("AncNex").innerHTML="Next Makeover >>";
        document.getElementById ("AncNex").style.color="#585858"
        document.getElementById ("AncNex").href="#";
        document.getElementById ("AncNex").style.cursor="pointer";
 	    document.forms[0].xccollections.style.display='block';
	     while (document.forms[0].xccollections.options.length )document.forms[0].xccollections.options[0] = null;
	    document.forms[0].xccollections[0]=new Option("Select Art Makeovers", "", true);
		for(i =0 ; i<fnameArray.length; i++)
	    {
			document.forms[0].xccollections[i+1]=new Option(fnameArray[i],i);
        }
            artistCou=fnameArray.length ;
            document.getElementById ("myFlashH").innerHTML=document.forms[0].xccollections[1].text
            var textfiles=parfileArray[0];
            if(textfiles!=null)
            {
                var Rtfortxt=textfiles.split(".");
                if(Rtfortxt[1]=="txt")
                {
                
                
                    var rese=Video6.GetArtisttxt(textfiles);
                    document.getElementById ("myText").innerHTML=rese.value;
                  
                }
                else
                {
              
                    var rese=Video6.GetArtistRtf(textfiles);
                    document.getElementById ("myText").innerHTML=rese.value;
                }
            }
            else
            {
            document.getElementById ("myText").style.display="none";
            }
             CallSwf(videoArray[0]);
	}
            artistNex++;
            var Coll = document.forms[0].xccollections;
	        Coll.selectedIndex=artistNex;
   

 }



    function CallbackTvClips(rese)
    {

        MainArray = new Array();
        artistidArray= new Array ();
        fnameArray= new Array ();
        lnameArray = new Array ();
        videoArray=new Array ();
        parfileArray = new Array ();
        MainArray=rese.value;
        artistidArray= new Array ();
        var results=MainArray.split("&rtf");

        for(i=0 ;i<results.length;i++)
        {
            if(results[i].trim()!=null&&results[i].trim()!="")
            {
                var setval= results[i].split(",");
                fnameArray[i]=setval[0];
                lnameArray[i]=setval[1];
                videoArray[i]=setval[2];
            }
        }
        if(fnameArray.length >0)
        {

        document.getElementById ("AncPre").innerHTML="<< Previous Tv Clip";
        document.getElementById ("AncPre").style.color="#A4A4A4"
        document.getElementById ("AncPre").href="#";
        document.getElementById ("AncPre").style.cursor="default";
    
            document.getElementById ("AncNex").innerHTML="Next Tv Clip >>";
            document.getElementById ("AncNex").style.color="#585858"
            document.getElementById ("AncNex").href="#";
            document.getElementById ("AncNex").style.cursor="pointer";
            document.forms[0].xccollections.style.display='block';
            while (document.forms[0].xccollections.options.length )document.forms[0].xccollections.options[0] = null;

            document.forms[0].xccollections[0]=new Option("Select Tv Clip", "", true);
            for(i =0 ; i<fnameArray.length; i++)
            {
                document.forms[0].xccollections[i+1]=new Option(fnameArray[i],i);
            }
            artistCou=fnameArray.length;
             CallSwf(videoArray[0]);
        }
        
        document.getElementById ("myText").style.display="none";
        document.getElementById ("myFlashH").innerHTML=document.forms[0].xccollections[1].text;
        artistNex++;
        var Coll = document.forms[0].xccollections;
        Coll.selectedIndex=artistNex;
        

    }


