// JavaScript Document

// STANDARD //



var PreloadFlag = false;
var expDays = 90;
var exp = new Date(); 
var tmp = '';
var tmp_counter = 0;
var tmp_open = 0;

exp.setTime(exp.getTime() + (expDays*24*60*60*1000));

function changeImages()
{
	if (document.images)
	{
		for (var i=0; i<changeImages.arguments.length; i+=2)
		{
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}

function newImage(arg)
{
	if (document.images)
	{
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function SetCookie(name, value) 
{
	var argv = SetCookie.arguments;
	var argc = SetCookie.arguments.length;
	var expires = (argc > 2) ? argv[2] : null;
	var path = (argc > 3) ? argv[3] : null;
	var domain = (argc > 4) ? argv[4] : null;
	var secure = (argc > 5) ? argv[5] : false;
	document.cookie = name + "=" + escape(value) +
		((expires == null) ? "" : ("; expires=" + expires.toGMTString())) +
		((path == null) ? "" : ("; path=" + path)) +
		((domain == null) ? "" : ("; domain=" + domain)) +
		((secure == true) ? "; secure" : "");
}

function getCookieVal(offset) 
{
	var endstr = document.cookie.indexOf(";",offset);
	if (endstr == -1)
	{
		endstr = document.cookie.length;
	}
	return unescape(document.cookie.substring(offset, endstr));
}

function GetCookie(name) 
{
	var arg = name + "=";
	var alen = arg.length;
	var clen = document.cookie.length;
	var i = 0;
	while (i < clen) 
	{
		var j = i + alen;
		if (document.cookie.substring(i, j) == arg)
			return getCookieVal(j);
		i = document.cookie.indexOf(" ", i) + 1;
		if (i == 0)
			break;
	} 
	return null;
}

function ShowHide(id1, id2, id3) 
{
	var res = expMenu(id1);
	if (id2 != '') expMenu(id2);
	if (id3 != '') SetCookie(id3, res, exp);
}
	
function expMenu(id) 
{
	var itm = null;
	if (document.getElementById) 
	{
		itm = document.getElementById(id);
	}
	else if (document.all)
	{
		itm = document.all[id];
	} 
	else if (document.layers)
	{
		itm = document.layers[id];
	}
	if (!itm) 
	{
		// do nothing
	}
	else if (itm.style) 
	{
		if (itm.style.display == "none")
		{ 
			itm.style.display = ""; 
			return 1;
		}
		else
		{
			itm.style.display = "none"; 
			return 2;
		}
	}
	else 
	{
		itm.visibility = "show"; 
		return 1;
	}
}

function preview(URL) {
  var previewWindow;
  var width = screen.width;
  var height = screen.height;
  var boxwidth = '300';
  var boxheight = '100';
  var xpos = (width / 2) - (boxwidth / 2);
  var ypos = (height / 2) - (boxheight / 2);
  previewWindow = window.open(URL, 'preview', 'width='+boxwidth+',height='+boxheight+',left='+xpos+',top='+ypos+',resizable=no,scrollbars=no,toolbar=no,location=no,status=yes,menubar=no,copyhistory=no');
}

// EOF STANDARD //

// CUSTOM //

<!--Advertise PopUp -->
function preview2(URL) {
  var previewWindow;
  var width = screen.width;
  var height = screen.height;
  var boxwidth = '368';
  var boxheight = '250';
  var xpos = (width / 2) - (boxwidth / 2);
  var ypos = (height / 2) - (boxheight / 2);
  previewWindow = window.open(URL, 'preview', 'width='+boxwidth+',height='+boxheight+',left='+xpos+',top='+ypos+',resizable=no,scrollbars=yes,toolbar=no,location=no,status=no,menubar=no,copyhistory=no');
}

<!--Add Bookmark-->
function bookmark(url, who) {
	var ver = navigator.appName;
	var num = parseInt(navigator.appVersion);
	if((ver == "Microsoft Internet Explorer") && (num >= 4)) {
		window.external.AddFavorite(url, who);
	} else{
		alert("You are not using Internet Explorer.\nPlease push Ctrl+D to bookmark our site.");
	} 
}
<!--EOF Add Bookmark-->

<!--RADIO POP-UP-->
/*function openwindow()
{
	window.open("http://www.acapellas4u.co.uk/PLAYLISTS/mini-player.html","mywindow","menubar=0,resizable=0,width=350,height=600");
}*/
<!--EOF RADIO POP-UP-->

// EOF CUSTOM //
