function popArticle(URL) {

window.open(URL, "", "toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=605,height=900,left = 288,top = -61");

}



function popUp(URL) {
	
		var w = 1024, h = 768;

		if (document.all || document.layers) {
			w = screen.availWidth;
			h = screen.availHeight;
		}

		var popW = 400, popH = 370;

		var leftPos = (w-popW)/2, topPos = (h-popH)/2;

	
		day = new Date();
		id = day.getTime();
		eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=400,height=380, left=' + leftPos + ',top=' + topPos +  '');");
		}
		

function addbookmark()
{
bookmarkurl= location.href
bookmarktitle="Tranceformingnlp: Leading NLP Practitioner, Master Practitioner, Hypnosis, Public Speaking and Provocative Therapy Trainings"
if (document.all)
window.external.AddFavorite(bookmarkurl,bookmarktitle)
}

function redirct(URL)
{
window.location=URL;
}

function randomImage()
{ 
  theimages = new Array("images/welcome1.jpg", "images/welcome2.jpg", "images/welcome3.jpg", "images/welcome4.jpg", "images/welcome5.jpg", "images/welcome6.jpg" , "images/welcome7.jpg"); 
  whichimage = Math.floor(Math.random()*theimages.length); 
//  output = '<td height="366" background="' +theimages[whichimage]+ '">';
  document.getElementById("ranImageTd").style.background = 'url(' + theimages[whichimage] + ')';
} 

function randomProd()
{ 
  theimages = new Array("images/prod1.jpg", "images/prod3.jpg", "images/prod4.jpg", "images/prod5.jpg", "images/prod6.jpg", "images/prod7.jpg", "images/prod8.jpg", "images/prod9.jpg"); 
  whichimage = Math.floor(Math.random()*theimages.length); 
//  output = '<td height="366" background="' +theimages[whichimage]+ '">';
  document.getElementById("randmProd").style.background = 'url(' + theimages[whichimage] + ')';
  
} 

function randomTrain()
{ 
  theimages = new Array("images/training1.jpg", "images/training2.jpg", "images/training3.jpg", "images/training4.jpg", "images/training5.jpg", "images/training6.jpg", "images/training7.jpg"); 
  whichimage = Math.floor(Math.random()*theimages.length); 
//  output = '<td height="366" background="' +theimages[whichimage]+ '">';
  document.getElementById("randmTrain").style.background = 'url(' + theimages[whichimage] + ')';
  
} 

var msg = "NLP Articles and Resources"
var delay = 50
var startPos = 100

// Don't touch these variables:
var timerID = null
var timerRunning = false
var pos = 0
var scrolls = 0

// Crank it up!
StartScrolling()

function StartScrolling()
{
    // Make sure the clock is stopped
    StopTheClock()

    // Pad the message with spaces to get the "start" position
    for (var i = 0; i < startPos; i++) msg = " " + msg

    // Off we go...
    DoTheScroll()
}

function StopTheClock()
{
    if(timerRunning)
        clearTimeout(timerID)
    timerRunning = false
}

function DoTheScroll()
{
    if (pos <= startPos)
        self.status = msg.substring(pos, msg.length)
    else
    {
        StopTheClock()
        return
    }
    ++pos
    timerRunning = true
    timerID = self.setTimeout("DoTheScroll()", delay)
}