<!-- Begin POP-UP SIZES AND OPTIONS CODE
// CHANGE ANY OF THESE VARIABLES FOR THE SOUND POPUPS
//  use only lowercase on options
// PLAYER POPUP
var viewer_sound 	= "iframe"	// OPTIONS: | same | popup | iframe |
var width_sound 	= "400"		// WIDTH OF THE SAMPLES PAGE POPUP
var height_sound 	= "100"		// HEIGHT OF THE SAMPLES PAGE POPUP
var scrollbarS_sound	= "no"		// SHOW SCROLLBARS IN SAMPLES POPUP - yes OR no
var menu_sound		= "no"		// SHOW MENU IN SAMPLES POPUP - yes OR no
var tool_sound		= "no"		// SHOW TOOLBAR IN SAMPLES POPUP - yes OR no

// VIDEO OPTIONS
var video_width		= "700"		// VIDEO POPUP WIDTH
var video_height	= "425"		// VIDEO POPUP HEIGHT
var scrollbar_video	= "no"		// VIDEO POPUP SCROLLBARS
var menu_video		= "no"		// SHOW MENU IN VIDEO POPUP
var wX_location		= "350"		// VIDEO HORIZONTAL POPUP LOCATION
var wY_location		= "0"		// VIDEO VERTICAL POPUP LOCATION
var video_viewer 	= "no"		// VIDEO - yes/FULL SCREEN OR no/POPUP MODE

// COPYRIGHT 2009 © Allwebco Design Corporation
// Unauthorized use or sale of this script is strictly prohibited by law
// YOU DO NOT NEED TO EDIT BELOW THIS LINE
// START SOUND POPUP CODE
function popUpSound(data) {
	if (viewer_sound == "popup") {
		windowHandle = window.open('samples/player-play.htm' + '?' + data,'windowName',',scrollbars='+scrollbarS_sound+',resizable=yes,toolbar='+tool_sound+',menubar='+menu_sound+',width='+width_sound+',height='+height_sound+'');
	}
	else if (viewer_sound == "iframe") {
    	windowHandle = window.open('samples/player-play.htm' + '?' + data,'mp3player');
	}
	else if (viewer_sound == "same") {
    	window.location = ('samples/player-play.htm' + '?' + data);
	}
}
function popUpQuicktime (data) {
    window.location = ('player-quicktime.htm' + '?' + data);
}
function popUpWinMedia (data) {
    window.location = ('player-winmedia.htm' + '?' + data);
}
function popUpRealAudio (data) {
    window.location = ('player-realaudio.htm' + '?' + data);
}
// END SOUND POPUP CODE

// VIDEO POPUP CODE
function VideoOpen(URL) {
	day = new Date();
	id = 'messagepopup';
	if (video_viewer == "no") {
		eval("page" + id + " = window.open(URL, '" + id + "', 'scrollbars='+scrollbar_video+',toolbar=no,resizable=yes,directories=no,menubar='+menu_video+',location=no,status=no,left='+wX_location+',top='+wY_location+',width=' + video_width + ',height=' + video_height + '');");
	}
	else 
	if (video_viewer == "yes") {
		eval("page" + id + " = window.open(URL);");
	}
}

// TARGET POPUP LINK SCRIPT FOR LINKS IN THE player-home.htm
function openerpage(mainwindow, closeme, closeonly) {
	if (! (window.focus && window.opener))return true;
	window.opener.focus();
	if (! closeonly)window.opener.location.href=mainwindow.href;
	if (closeme)window.close();
	return false;
}

// START IMAGE GALLERY PAGE CHANGER CODE
function Changer(direction) {
	if (null == direction) {
		if ((lastTime + delay) > new Date().getTime()) {
			direction = 0;
		}
		else {
			direction = currentDirection;
		}
	}
	else {
		currentDirection = direction;
	}
	if (direction != 0) {
		if (direction > 0) {
			currentSlide++;
			if (currentSlide > (slides.length - 1)) {
				currentSlide = 0;
			}
		}
		else {
			currentSlide = currentSlide-1;
			if (currentSlide < 0) {
				currentSlide = (slides.length - 1);
			}
		}
		lastTime = new Date().getTime();
		update(slides[currentSlide]);
		setTimeout("Changer();",delay);
	}
}
var currentIndex = 0;
function update(url, index) {
	currentIndex = index;
	document['MainImage'].src=url;
	{}
	return;
}
// End -->
