<!-- Begin VIEWER AND POP-UP OPTIONS CODE




// Copyright CBS DISEŅO y DESARROLLO WEB
// http://www.creandotusitio.com
// Terminantemente prohibido por LEY la venta, 
// copia o el uso de este script en sitios NO AUTORIZADOS









// ONLY USE lowercase FOR ALL OPTIONS




// GALLERY VIEWER OPTIONS

var viewer 		= "same"	// OPTIONS: | new | popup | same | New browser or a popup
var width 		= "800"		// WIDTH OF THE POPUP
var height 		= "625"		// HEIGHT OF THE POPUP
var scrollbars		= "yes"		// SHOW SCROLLBARS IN POPUP - yes OR no
var menu		= "no"		// SHOW MENU IN POPUP - yes OR no
var tool		= "no"		// SHOW TOOLBAR IN POPUP - yes OR no



// FAQ POPUP OPTIONS

var FAQ_width 		= 500		// FAQ POPUP HEIGHT
var FAQ_height 		= 500		// FAQ POPUP HEIGHT
var faqscrollbarS 	= "1"		// TURN ON FAQ SCROLLBARS "1" FOR ON "0" FOR OFF
var FAQviewer	 	= "no"		// yes/ FAQ FULL SCREEN OR no/POPUP MODE



// PLAYER POPUP

var viewer_sound 	= "popup"	// OPTIONS: | new | popup | same |
var width_sound 	= "700"		// WIDTH OF THE SAMPLES PAGE POPUP
var height_sound 	= "410"		// 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

// Unauthorized use or sale of this script is strictly prohibited by law

// YOU DO NOT NEED TO EDIT BELOW THIS LINE






// START IMAGE VIEW CODE

function ViewImage(data) {
   if (viewer == "popup") {
    windowHandle = window.open('image-viewer.htm' + '?' + data,'windowName',',scrollbars='+scrollbars+',resizable=yes,toolbar='+tool+',menubar='+menu+',width='+width+',height='+height+'');

}
else if (viewer == "new") {
    windowHandle = window.open('image-viewer.htm' + '?' + data,'windowName');
}
else if (viewer == "same") {
    window.location = ('image-viewer.htm' + '?' + data);
}
}

// END IMAGE VIEW CODE










// START FAQ POPUP

function popUpFAQ(URL) {
day = new Date();
id = day.getTime();
   if (FAQviewer == "no") {
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=' + faqscrollbarS + ',location=0,statusbar=0,menubar=0,resizable=1,width='+FAQ_width+',height='+FAQ_height+'');");
}
else 
if (FAQviewer == "yes") {
eval("page" + id + " = window.open(URL);");
}
}









IEMhover = function() {
	var IEMh = document.getElementById("menunav").getElementsByTagName("LI");
	for (var i=0; i<IEMh.length; i++) {
		IEMh[i].onmouseover=function() {
			this.className+=" IEMhover";
		}
		IEMh[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" IEMhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", IEMhover);








// START SOUND POPUP CODE



function popUpSound(data) {
   if (viewer_sound == "popup") {
    windowHandle = window.open('multimedia/player-home.htm' + '?' + data,'windowName',',scrollbars='+scrollbarS_sound+',resizable=yes,toolbar='+tool_sound+',menubar='+menu_sound+',width='+width_sound+',height='+height_sound+'');

}
else if (viewer_sound == "new") {
    windowHandle = window.open('multimedia/player-home.htm' + '?' + data,'windowName');
}
else if (viewer_sound == "same") {
    window.location = ('multimedia/player-home.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










// 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 -->