// JavaScript Document
// Pop-Up Embedder Script by David Battino, www.batmosphere.com; Object tag implementation by Mark Levitt, http://digitalmedia.oreilly.com
var UniqueID = 314 // Make each link open in a new window.
var newWinOffset = 0 // Position of first pop-up

function PlayerOpen(soundfiledesc,soundfilepath) {

PlayWin = window.open('',UniqueID,'width=478,height=320,top=' + newWinOffset +',left=0,resizable=0,scrollbars=0,titlebar=0,toolbar=0,menubar=0,status=0,directories=0,personalbar=0');
PlayWin.focus(); 
var winContent = "<HTML><HEAD><TITLE>Hip Hop Galaxy : Audio Player</TITLE></HEAD><BODY bgcolor='#FFFFFF'>";
winContent += "<DIV align='center'><img src='http://www.hiphopgalaxy.com/images/hhgaudioplayer.jpg' width='468' height='100' border='0' alt='Hip Hop Galaxy : Audio Player'></DIV>";
winContent += "<DIV align='center'><OBJECT width='438' height='52'>";
winContent += "<param name='SRC' value='" +  soundfilepath + "'>";
winContent += "<param name='AUTOPLAY' VALUE='true'>";
winContent += "<param name='CONTROLLER' VALUE='true'>";
winContent += "<param name='BGCOLOR' VALUE='#666666'>";
winContent += "<EMBED name='sound' SRC='" + soundfilepath + "' AUTOSTART='TRUE' LOOP='FALSE' WIDTH='438' HEIGHT='52' CONTROLLER='TRUE' BGCOLOR='#666666'></EMBED>";
winContent += "</OBJECT></DIV>";
winContent += "<BR><DIV align='center'><a href='http://www.kqzyfj.com/click-1617563-1635360' target='_blank'><img src='http://www.afcyhf.com/image-1617563-1635360' width='468' height='60' alt='DrJays.com' border='0'></a></DIV>";
winContent += "<BR><DIV align='center'><a href='http://www.microsoft.com/windows/windowsmedia/download/'><img src='http://www.hiphopgalaxy.com/images/winmedia_free.gif' width='66' height='24' border='0'></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href='http://www.real.com'><img src='http://www.hiphopgalaxy.com/images/realplayer_free.gif' width='67' height='24' border='0'></a></DIV>";
winContent += "</BODY></HTML>";
PlayWin.document.write(winContent);
PlayWin.document.close(); // "Finalizes" new window
UniqueID = UniqueID + 1
// newWinOffset = newWinOffset + 20 // subsequent pop-ups will be this many pixels lower.
}

function VideoPlayerOpen(soundfiledesc,soundfilepath) {

PlayWin = window.open('',UniqueID,'width=498,height=520,top=' + newWinOffset +',left=0,resizable=0,scrollbars=0,titlebar=0,toolbar=0,menubar=0,status=0,directories=0,personalbar=0');
PlayWin.focus(); 
var winContent = "<HTML><HEAD><TITLE>Hip Hop Galaxy : Video Player</TITLE></HEAD><BODY bgcolor='#FFFFFF'>";
winContent += "<DIV align='center'><img src='http://www.hiphopgalaxy.com/images/hhgaudioplayer.jpg' width='468' height='100' border='0' alt='Hip Hop Galaxy : Video Player'></DIV>";
winContent += "<DIV align='center'><OBJECT width='430' height='270'>";
winContent += "<param name='SRC' value='" +  soundfilepath + "'>";
winContent += "<param name='AUTOPLAY' VALUE='true'>";
winContent += "<param name='CONTROLLER' VALUE='true'>";
winContent += "<param name='BGCOLOR' VALUE='#666666'>";
winContent += "<EMBED name='video' SRC='" + soundfilepath + "' AUTOSTART='TRUE' LOOP='FALSE' WIDTH='430' HEIGHT='270' CONTROLLER='TRUE' BGCOLOR='#666666'></EMBED>";
winContent += "</OBJECT></DIV>";
winContent += "<BR><DIV align='center'><a href='http://www.tkqlhce.com/click-1617563-1635359' target='_blank'><img src='http://www.tqlkg.com/image-1617563-1635359' width='468' height='60' alt='DrJays.com' border='0'></a></DIV>";
winContent += "<BR><DIV align='center'><a href='http://www.microsoft.com/windows/windowsmedia/download/'><img src='http://www.hiphopgalaxy.com/images/winmedia_free.gif' width='66' height='24' border='0'></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href='http://www.real.com'><img src='http://www.hiphopgalaxy.com/images/realplayer_free.gif' width='67' height='24' border='0'></a></DIV>";
winContent += "</BODY></HTML>";
PlayWin.document.write(winContent);
PlayWin.document.close(); // "Finalizes" new window
UniqueID = UniqueID + 1
// newWinOffset = newWinOffset + 20 // subsequent pop-ups will be this many pixels lower.
}