


















// you are not allowed to copy any code or extract code from this file, its illegal !!!!
// hot linking is theft, we have to pay for the amount of data downloaded from this server
// you are not allowed to link to any of our files, except it is stated otherwise


































function GetParameter(d)
 {
   s=top.location.href;
   i=s.indexOf('?');
   if (i != -1) {s=s.substr(i+1,s.length-1);} else {s=d;}
   return s;
 }


   s = GetParameter('');
   if (s != '' ) {window.name = s;}


function CreatePlayer(track) {

     if ( window.name == 'modem' ) {
			document.write('not available');
	  } else {

                        if( track.indexOf('mu') == 0 ) track = 'x' + track;
			document.write('<EMBED	SRC="http://music.modelgraphy.com/'+track+'" HEIGHT="28" WIDTH="160" AUTOSTART="true" BGCOLOR="#000000" name="Player">');
                        document.write('<MARQUEE DIRECTION="left" SCROLLDELAY="100" SCROLLAMOUNT="1" WIDTH="160" class="bluetext" style="font-family: Arial">');
                        s = decodeURI(document.Player.src);
                        i = s.lastIndexOf("/");
                        if ( i > -1) s = s.substring(i+1,255);
                        i = s.lastIndexOf(".");
                        if ( i > -1) s = s.substring(0,i);
                        document.write(s);
                        document.write('</MARQUEE>');
	  }	

}

function CreatePlayerJ(track) {


     if ( window.name == 'modem' ) {
			document.write('not available');
	  } else {

                        if( track.indexOf('ht') == 0 ) {} else {track = '/pub'+hlink+'/' + track;}

//			document.write('<EMBED	SRC="'+track+'" HEIGHT="28" WIDTH="160" AUTOSTART="true" BGCOLOR="#000000" name="Player">');
		track = track.replace(/mp3/g,'flv');
//		track = track.replace(/music-/g,'bck.music-');
			document.write('<a href="'+track+'" style="display:block;width:160px;height:120px" id="xPlayer"></a>');
			flowplayer('xPlayer', "/flowplayer/flowplayer-3.1.3.swf",{ 
 
plugins: {
   controls: { height: 20, fullscreen: 0, scrubber: 0, mute: 0 } ,
   content: { url: '/turntable.swf', height:110, width:176 }
}
});
                        document.write('<MARQUEE DIRECTION="left" SCROLLDELAY="100" SCROLLAMOUNT="1" WIDTH="160" class="bluetext" style="font-family: Arial">');
//                        s = decodeURI(document.Player.src);
			s = decodeURI(track);
                        i = s.lastIndexOf("/");
                        if ( i > -1) s = s.substring(i+1,255);
                        i = s.lastIndexOf(".");
                        if ( i > -1) s = s.substring(0,i);
                        document.write(s);
                        document.write('</MARQUEE>');
	  }	

}

var f;


   function ShowBannerCode(lnk,img) {

        if ( f ) {
          if ( f.closed == false )  { f.close(); }
        }

        f = window.open("about:blank","xxx","left=100,top=100,height=200,width=600");
	f.document.writeln('<p>Please copy link code below and paste it into your html code:</p>');
	f.document.writeln('&lt;A HREF="'+lnk+'"&gt;&lt;IMG BORDER="0" SRC="'+img+'"&gt;&lt;/A&gt;');	
        f.document.close();
   }

var statBarMsg = "Welcome to Dj Kurvy's offical website ....                   ";

function startStatusScroller()
{
    window.status = statBarMsg;
    statBarMsg = statBarMsg.substring(1, statBarMsg.length) + statBarMsg.substring(0, 1)
    setTimeout("startStatusScroller()", 150)
}

function chkField(p,l)
 {
   if(p.value.length < l)
     {
      alert(p.name+": not properly entered; input is mandatory!");
      p.focus();
      return false;
     }
   return true;
 }

 function chkEMail(p)
 {
     if ((p.value.length <5) || (p.value.indexOf('@') == -1) || (p.value.indexOf('.') == -1))
      {
        alert(p.name+" not properly entered; input is mandatory!");
        p.focus();
        return false;
      }}

 function chkFormular()
 {
   with (document.EmailForm)
 {
         if (chkField(Name,5)              ==false) {return false;}
//         if (chkField(Company,3)           ==false) {return false;}
         if (chkField(Subject,3)           ==false) {return false;}
         if (chkField(Message,10)          ==false) {return false;}
         if (chkEMail(Email)               ==false) {return false;}
         Subject.value=Subject.value + ' - ' + window.location.search;
         action='';
         submit();
 }
    return true;
 }


var imgdisable = false;
var imgwait; var largeimg;
var newOpacity; var Opacity;

function Toggleimgdisable() {
     imgdisable = false;
     if (imgwait) imgwait.style.visibility = "hidden";
} 

function TsetOpacity() {
  Opacity = Opacity + (newOpacity * 5);
  setOpacity(Opacity);
  if(Opacity==0) {
  	largeimg.style.visibility = "hidden";
	Toggleimgdisable();
  } else if(Opacity==100) {
        window.setTimeout("FadeOut()",3000);
  } else {
	window.setTimeout("TsetOpacity()",50);
  }
}

function setOpacity( opacity) {
  obj = largeimg;
  obj.style.KHTMLOpacity = opacity/100; // Safari<1.2, Konqueror
  obj.style.MozOpacity = opacity/100; // Older Mozilla and Firefox
  obj.style.opacity = opacity/100; // Safari 1.2, newer Firefox and Mozilla, CSS3
}

function FadeOut() {
   o = largeimg;
   if (o.filters ) {
        o.filters.blendTrans.Apply();
        o.style.visibility = "hidden";
        o.filters.blendTrans.Play();
	Toggleimgdisable();
   } else {
        Opacity =100;
        setOpacity(Opacity);
        newOpacity = -1;
        window.setTimeout("TsetOpacity()",50);
   }
}

function FadeIn() {
   o = largeimg;
   if (o.filters ) {
	o.filters.blendTrans.Apply();
  	o.style.visibility = "visible";
	o.filters.blendTrans.Play(); 
        window.setTimeout("FadeOut()",3000);
   } else {
	Opacity =0;
	setOpacity(Opacity);
     	o.style.visibility = "visible";
	newOpacity = +1;
	window.setTimeout("TsetOpacity()",50);
   }
} 

function enlarge(img) {

  if (imgdisable == true ) return;
  imgdisable = true;

  imgwait = document.getElementById('imgwait');
  if (imgwait) imgwait.style.visibility = "visible";

  largeimg = document.getElementById('largeimg');
  largeimg.style.visibility ="hidden";
  setOpacity(0);
  newOpacity = +1;

  s = img.src;
  l = s.lastIndexOf('/');
  if (l > 0) {
    x = s.substring(0,l)+"/large/"+s.substring(l+1,s.length);
  } else {
    x = "large/"+s;
  }
  largeimg.onload=FadeIn;
  largeimg.src=x;
}
	
function CreateLargeIMG(n) {
  if(n=='') n='/trans.gif';
  document.write('<IMG id="largeimg" Name="largeimg" style="visibility:hidden" src="'+n+'" class="l">');
  document.getElementById('largeimg').style.visibility="hidden";
}	

function LargeImageFile(s) {

  l = s.lastIndexOf('/');
  if (l > 0) {
    x = s.substring(0,l)+"/large/"+s.substring(l+1,s.length);
  } else {
    x = "/mslle/large/"+s;
  }
  return x;
}



//  Scan array a and return array of indexes to all elements with class name cn


   function FindClassName(a,cn) {
        r = new Array();
        j = 0;
        n = a.length;
        for (var i=0; i < n; ++i ) {
          s = a[i];
          if ( s.className == cn) {
            r[j] = i;
            j = j + 1; 
          }
        }
       return r;
   }



function GetAge(bday) {

  var n = new Date();  
  yy = n.getFullYear();
  mm = n.getMonth()+1;
  dd = n.getDate();

  y = bday.substring(0,4);
  m = bday.substring(5,7);
  d = bday.substring(8,10);

  t = yy - y -1;

  if (( mm > m ) || ((mm == m) && (dd >= d))) {t = t +1;}



  if ((t>13) && (t<50)) return t;


}
function SetBG(t) { t.style.background="yellow"; }
function ClrBG(t) { t.style.background="black"; }

function adjust_ifr_h(f) {
//    ho = f.getAttribute("height");
    if (f.contentDocument) {
      h = f.contentDocument.documentElement.offsetHeight + 32;
    } else if (f.contentWindow) {
      // IE
      h = f.contentWindow.document.body.scrollHeight + 20;
    } else  {
      return;
    }
//    if ( h > ho ) f.setAttribute("height",h);
      f.setAttribute("height",h);
}
function StatusW(t) {  
	window.setTimeout('top.mdmstat.location.reload(true);',2000); 
	top.location.href=t; 
}

startStatusScroller();
