<!-- Begin Efecto en Imagenes
	// Set slideShowSpeed (milliseconds)
	var slideShowSpeed = 5000;
	// Duration of crossfade (seconds)
	var crossFadeDuration = 3;
	// Specify the image files
	var Pic1 = new Array();
	var Pic2 = new Array();
	// to add more images, just continue
	// the pattern, adding to the array below

	Pic1[0] = 'http://www.justforartists.com/images/1.gif';
	Pic1[1] = 'http://www.justforartists.com/images/2.gif';
	Pic1[2] = 'http://www.justforartists.com/images/3.gif';
	//Navigator
	Pic2[0] = 'http://www.justforartists.com/images/1-1.gif';
	Pic2[1] = 'http://www.justforartists.com/images/2-2.gif';
	Pic2[2] = 'http://www.justforartists.com/images/3-3.gif';
	
	var direcciones = new Array("http://www.justforartists.com/about_us.php", "http://www.justforartists.com/about_us.php", "http://www.justforartists.com/about_us.php")
	                        // numero 2					                          		// numero 1                                             //numero 3

	// do not edit anything below this line
	var t;
	var j = 0;
	var temp;
	
	var p1 = Pic1.length;
	var preLoad1 = new Array();
	
	var p2 = Pic2.length;
	var preLoad2 = new Array();

	for (i = 0; i < p1; i++) 
	{
		preLoad1[i] = new Image();
		preLoad1[i].src = Pic1[i];
	}

	for (i = 0; i < p2; i++) 
	{
		preLoad2[i] = new Image();
		preLoad2[i].src = Pic2[i];
	}
	
	function nextSlide()
	{
		clearTimeout(t);
		if (document.all) 
		{
			document.images.image01.style.filter="blendTrans(duration=2)";
			document.images.image01.style.filter="blendTrans(duration=crossFadeDuration)";
			document.images.image01.filters.blendTrans.Apply();

			document.images.image02.style.filter="blendTrans(duration=2)";
			document.images.image02.style.filter="blendTrans(duration=crossFadeDuration)";
			document.images.image02.filters.blendTrans.Apply();
		}

		document.images.image01.src = preLoad1[j].src;
		document.images.image02.src = preLoad2[j].src;
		if (document.all) 
		{
			document.images.image01.filters.blendTrans.Play();
			document.images.image02.filters.blendTrans.Play();
		}
		j = j + 1;
		if (j > (p1 - 1)) j = 0;
		if (j > (p2 - 1)) j = 0;
		temp = j;
		t = setTimeout('runSlideShow()', slideShowSpeed);
	}

	function prevSlide()
	{
		clearTimeout(t);
		if (document.all) 
		{
			document.images.image01.style.filter="blendTrans(duration=2)";
			document.images.image01.style.filter="blendTrans(duration=crossFadeDuration)";
			document.images.image01.filters.blendTrans.Apply();

			document.images.image02.style.filter="blendTrans(duration=2)";
			document.images.image02.style.filter="blendTrans(duration=crossFadeDuration)";
			document.images.image02.filters.blendTrans.Apply();
		}

		document.images.image01.src = preLoad1[j].src;
		document.images.image02.src = preLoad2[j].src;
		temp = j + 1;
		if (document.all) 
		{
			document.images.image01.filters.blendTrans.Play();
			document.images.image02.filters.blendTrans.Play();
		}
		j = j - 1;		
		if (j < 0) j = p1 - 1;
		if (j < 0) j = p2 - 1;
		t = setTimeout('runSlideShow()', slideShowSpeed);
	}	
	
	function image1()
	{
		clearTimeout(t);
		if (document.all) 
		{
			document.images.image01.style.filter="blendTrans(duration=2)";
			document.images.image01.style.filter="blendTrans(duration=crossFadeDuration)";
			document.images.image01.filters.blendTrans.Apply();

			document.images.image02.style.filter="blendTrans(duration=2)";
			document.images.image02.style.filter="blendTrans(duration=crossFadeDuration)";
			document.images.image02.filters.blendTrans.Apply();
		}

		document.images.image01.src = preLoad1[1].src;
		document.images.image02.src = preLoad2[1].src;
		if (document.all) 
		{
			document.images.image01.filters.blendTrans.Play();
			document.images.image02.filters.blendTrans.Play();
		}
		temp = 2;
		t = setTimeout('runSlideShow()', slideShowSpeed);
	}
	
	function image2()
	{
		clearTimeout(t);
		if (document.all) 
		{
			document.images.image01.style.filter="blendTrans(duration=2)";
			document.images.image01.style.filter="blendTrans(duration=crossFadeDuration)";
			document.images.image01.filters.blendTrans.Apply();

			document.images.image02.style.filter="blendTrans(duration=2)";
			document.images.image02.style.filter="blendTrans(duration=crossFadeDuration)";
			document.images.image02.filters.blendTrans.Apply();
		}

		document.images.image01.src = preLoad1[2].src;
		document.images.image02.src = preLoad2[2].src;
		if (document.all) 
		{
			document.images.image01.filters.blendTrans.Play();
			document.images.image02.filters.blendTrans.Play();
		}
		temp = 0;
		t = setTimeout('runSlideShow()', slideShowSpeed);
	}
	
	
	function image3()
	{
		clearTimeout(t);
		if (document.all) 
		{
			document.images.image01.style.filter="blendTrans(duration=2)";
			document.images.image01.style.filter="blendTrans(duration=crossFadeDuration)";
			document.images.image01.filters.blendTrans.Apply();

			document.images.image02.style.filter="blendTrans(duration=2)";
			document.images.image02.style.filter="blendTrans(duration=crossFadeDuration)";
			document.images.image02.filters.blendTrans.Apply();
		}

		document.images.image01.src = preLoad1[0].src;
		document.images.image02.src = preLoad2[0].src;
		if (document.all) 
		{
			document.images.image01.filters.blendTrans.Play();
			document.images.image02.filters.blendTrans.Play();
		}
		temp = 1;
		t = setTimeout('runSlideShow()', slideShowSpeed);
	}

	function runSlideShow() 
	{
		if (document.all) 
		{
			document.images.image01.style.filter="blendTrans(duration=2)";
			document.images.image01.style.filter="blendTrans(duration=crossFadeDuration)";
			document.images.image01.filters.blendTrans.Apply();

			document.images.image02.style.filter="blendTrans(duration=2)";
			document.images.image02.style.filter="blendTrans(duration=crossFadeDuration)";
			document.images.image02.filters.blendTrans.Apply();
		}

		document.images.image01.src = preLoad1[j].src;
		document.images.image02.src = preLoad2[j].src;
		if (document.all) 
		{
			document.images.image01.filters.blendTrans.Play();
			document.images.image02.filters.blendTrans.Play();
		}
		j = j + 1;
		if (j > (p1 - 1)) j = 0;
		if (j > (p2 - 1)) j = 0;
		temp = j;
		t = setTimeout('runSlideShow()', slideShowSpeed);
	}
	
	function linkpage()
	{
		if(temp == 0)  window.location=direcciones[2]
		if(temp == 1)  window.location=direcciones[1]
		if(temp == 2)  window.location=direcciones[0]
	}
//  End Efecto en Imagenes -->


// email a friend
function newWindow(mypage,myname,w,h,features) {
  if(screen.width){
  var winl = (screen.width-w)/2;
  var wint = (screen.height-h)/2;
  }else{winl = 0;wint =0;}
  if (winl < 0) winl = 0;
  if (wint < 0) wint = 0;
  var settings = 'height=' + h + ',';
  settings += 'width=' + w + ',';
  settings += 'top=' + wint + ',';
  settings += 'left=' + winl + ',';
  settings += features;
  win = window.open(mypage,myname,settings);
  win.window.focus();
} 

function MM_validateForm() { //v4.0
  var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;
  for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=MM_findObj(args[i]);
    if (val) { nm=val.name; if ((val=val.value)!="") {
      if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
        if (p<1 || p==(val.length-1)) errors+='- '+nm+' must contain an e-mail address.\n';
      } else if (test!='R') { num = parseFloat(val);
        if (isNaN(val)) errors+='- '+nm+' must contain a number.\n';
        if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
          min=test.substring(8,p); max=test.substring(p+1);
          if (num<min || max<num) errors+='- '+nm+' must contain a number between '+min+' and '+max+'.\n';
    } } } else if (test.charAt(0) == 'R') errors += '- '+nm+' is required.\n'; }
  } if (errors) alert('The following error(s) occurred:\n'+errors);
  document.MM_returnValue = (errors == '');
}







// Image Rollover & Preload
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

//Pop Window
function popitup(url)
{
	newwindow=window.open(url,'name','height=550,width=700,scrollbars');
	if (window.focus) {newwindow.focus()}
	//return false;
}

function insertNews() { 
	var news_dest   = document.getElementById('newsdiv'); 
	var news_source = window.frames[0].document.body.innerHTML; 
	news_dest.innerHTML = news_source; 
} 

isIE = isIE4 = isIE5 = isIE6 = isIE7 = isNS = isNS4 = isNS6 = isNS7 = isNS8 = isFlash5 = isFlashMX = false;

// Browser Detection
if(navigator.appName.indexOf('Netscape') == 0) isNS = true;
if(navigator.appName.indexOf('Microsoft') == 0) isIE = true;
isUNIX = (window.navigator.appVersion.indexOf("X11") != -1) ||
         (window.navigator.appVersion.indexOf("Linux") != -1) ||
         (window.navigator.appVersion.indexOf("SunOS") != -1) ||
         (window.navigator.appVersion.indexOf("IRIX") != -1) ||
         (window.navigator.appVersion.indexOf("HP-UX") != -1);
isMac = (window.navigator.appVersion.indexOf("Mac") != -1);
isWindows = navigator.userAgent.indexOf("Windows 95") != -1 ||
            navigator.userAgent.indexOf("Windows 98") != -1 ||
            navigator.userAgent.indexOf("Windows NT") != -1;
isMacIE = (isMac && isIE);

// Netscape Version
if(isNS) {
  v = parseInt(navigator.appVersion);
  if(v == 4) {
    isNS4 = true;
  } else if(v == 5) {
    p = navigator.userAgent.lastIndexOf('/');
    v = parseInt(navigator.userAgent.substr(p+1));
    eval("isNS" + v + " = true");
  }
}

// Internet Explorer Version
if(isIE) {
  v = parseInt(navigator.appVersion.substr(navigator.appVersion.indexOf("MSIE")+5));
  eval("isIE" + v + " = true");
}


//Bookmark Page

function bookmarkIt() { 
  var bookmarktitle = document.title;
  var bookmarkurl = document.location;
  var netscape
  var macintosh
  netscape="Attention Netscape Users. To Bookmark this page please click the page you would like to bookmark and press CTRL+D. If you would like to add this page to your Netscape Sidebar, please click OK on the next window which appears.";
  macintosh="Attention Macintosh User. To Bookmark this page please click the page you would like to bookmark and press CTRL+D.";

  if (window.sidebar&&window.sidebar.addPanel) { 
    alert(netscape);
    window.sidebar.addPanel(bookmarktitle, bookmarkurl,""); 
  } else if (isMac) {
    alert(macintosh);
  } else if (document.all) {
    window.external.AddFavorite(bookmarkurl, bookmarktitle);
  } else if (window.opera && window.print) {
    return true;
  }
}

//Print Page

function printIt() { 
  var macprint;
  macprint = "Attention Macintosh User. Unfortunately this functionality is not available on the Macintosh OS. Please click the page you would like to print a select print from your browser menu.";

  if (isMac) { 
    alert(macprint);
  } else {
  self.print()
  }
}


//Large image

function launch(url, windname,x,y) {
self.name = "opener";
remote = open(url, windname, "width="+x+",height="+y);
}


//Validate Form

function validate(form)
{
	var err = false;
	
	if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(form.email.value))
		 err = false;
	else err = true;
		
	//if (form.cname.value.length < 1) err = true;
	if (form.name.value.length  < 1) err = true;

	
	if (err) 
	{
		alert ("One or more of the items you entered is invalid.");
		return false;
	}
	
	return true;
}

function validate2(form)
{
	var err = false;
	
	if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(form.email.value))
		 err = false;
	else err = true;
		
	//if (form.cname.value.length < 1) err = true;
	if (form.firstname.value.length < 1) err = true;
	if (form.lastname.value.length  < 1) err = true;
	
	if (err) 
	{
		alert ("One or more of the items you entered is invalid.");
		return false;
	}
	
	return true;
}

/*- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
	ADxMenu.js - v4 (4.10)
	www.aplus.co.yu/adxmenu/
	- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
	(c) Copyright 2003, Aleksandar Vacic, www.aplus.co.yu
		This work is licensed under the Creative Commons Attribution License.
		To view a copy of this license, visit http://creativecommons.org/licenses/by/2.0/ or
		send a letter to Creative Commons, 559 Nathan Abbott Way, Stanford, California 94305, USA
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -*/
function ADxMenu_IESetup() {
	var aTmp2, i, j, oLI, aUL, aA;
	var aTmp = xGetElementsByClassName("adxm", document, "ul");
	for (i=0;i<aTmp.length;i++) {
		aTmp2 = aTmp[i].getElementsByTagName("li");
		for (j=0;j<aTmp2.length;j++) {
			oLI = aTmp2[j];
			aUL = oLI.getElementsByTagName("ul");
			//	if item has submenu, then make the item hoverable
			if (aUL && aUL.length) {
				oLI.UL = aUL[0];	//	direct submenu
				aA = oLI.getElementsByTagName("a");
				if (aA && aA.length)
					oLI.A = aA[0];	//	direct child link
				//	li:hover
				oLI.onmouseenter = function() {
					this.className += " adxmhover";
					this.UL.className += " adxmhoverUL";
					if (this.A) this.A.className += " adxmhoverA";
					if (WCH) WCH.Apply( this.UL, this, true );
				};
				//	li:blur
				oLI.onmouseleave = function() {
					this.className = this.className.replace(/adxmhover/,"");
					this.UL.className = this.UL.className.replace(/adxmhoverUL/,"");
					if (this.A) this.A.className = this.A.className.replace(/adxmhoverA/,"");
					if (WCH) WCH.Discard( this.UL, this );
				};
			}
		}	//for-li.submenu
	}	//for-ul.adxm
}

//	adds support for WCH. if you need WCH, then load WCH.js BEFORE this file
if (typeof(WCH) == "undefined") WCH = null;

/*	xGetElementsByClassName()
	Returns an array of elements which are
	descendants of parentEle and have tagName and clsName.
	If parentEle is null or not present, document will be used.
	if tagName is null or not present, "*" will be used.
	credits: Mike Foster, cross-browser.com.
*/
function xGetElementsByClassName(clsName, parentEle, tagName) {
	var elements = null;
	var found = new Array();
	var re = new RegExp('\\b'+clsName+'\\b');
	if (!parentEle) parentEle = document;
	if (!tagName) tagName = '*';
	if (parentEle.getElementsByTagName) {elements = parentEle.getElementsByTagName(tagName);}
	else if (document.all) {elements = document.all.tags(tagName);}
	if (elements) {
		for (var i = 0; i < elements.length; ++i) {
			if (elements[i].className.search(re) != -1) {
				found[found.length] = elements[i];
			}
		}
	}
	return found;
}

/*	allows instant "window.onload" (DOM.onload) function execution. shortened version, just IE code
	credits: Dean Edwards/Matthias Miller/John Resig/Rob Chenny
	http://www.cherny.com/webdev/27/domloaded-updated-again
*/
var DomLoaded = {
	onload: [],
	loaded: function() {
		if (arguments.callee.done) return;
		arguments.callee.done = true;
		for (i = 0;i < DomLoaded.onload.length;i++) DomLoaded.onload[i]();
	},
	load: function(fireThis) {
		this.onload.push(fireThis);
		/*@cc_on @*/
		/*@if (@_win32)
		var proto = "src='javascript:void(0)'";
		if (location.protocol == "https:") proto = "src=//0";
		document.write("<scr"+"ipt id=__ie_onload defer " + proto + "><\/scr"+"ipt>");
		var script = document.getElementById("__ie_onload");
		script.onreadystatechange = function() {
		    if (this.readyState == "complete") {
		        DomLoaded.loaded();
		    }
		};
		/*@end @*/
	}
};

//	load the setup function
DomLoaded.load(ADxMenu_IESetup);






/*
 *
 * Copyright (c) 2006/2007 Sam Collett (http://www.texotela.co.uk)
 * Licensed under the MIT License:
 * http://www.opensource.org/licenses/mit-license.php
 * 
 * Version 2.0
 * Demo: http://www.texotela.co.uk/code/jquery/newsticker/
 *
 * $LastChangedDate$
 * $Rev$
 *
 */
 
(function($) {
/*
 * A basic news ticker.
 *
 * @name     newsticker (or newsTicker)
 * @param    delay      Delay (in milliseconds) between iterations. Default 4 seconds (4000ms)
 * @author   Sam Collett (http://www.texotela.co.uk)
 * @example  $("#news").newsticker(); // or $("#news").newsTicker(5000);
 *
 */
$.fn.newsTicker = $.fn.newsticker = function(delay)
{
	delay = delay || 8000;
	initTicker = function(el)
	{
		stopTicker(el);
		el.items = $("li", el);
		// hide all items (except first one)
		el.items.not(":eq(0)").hide().end();
		// current item
		el.currentitem = 0;
		startTicker(el);
	};
	startTicker = function(el)
	{
		el.tickfn = setInterval(function() { doTick(el) }, delay)
	};
	stopTicker = function(el)
	{
		clearInterval(el.tickfn);
	};
	pauseTicker = function(el)
	{
		el.pause = true;
	};
	resumeTicker = function(el)
	{
		el.pause = false;
	};
	doTick = function(el)
	{
		// don't run if paused
		if(el.pause) return;
		// pause until animation has finished
		el.pause = true;
		// hide current item
		$(el.items[el.currentitem]).fadeOut("slow",
			function()
			{
				$(this).hide();
				// move to next item and show
				el.currentitem = ++el.currentitem % (el.items.size());
				$(el.items[el.currentitem]).fadeIn("slow",
					function()
					{
						el.pause = false;
					}
				);
			}
		);
	};
	this.each(
		function()
		{
			if(this.nodeName.toLowerCase()!= "ul") return;
			initTicker(this);
		}
	)
	.addClass("newsticker")
	.hover(
		function()
		{
			// pause if hovered over
			pauseTicker(this);
		},
		function()
		{
			// resume when not hovered over
			resumeTicker(this);
		}
	);
	return this;
};

})(jQuery);
