/* General Rollover Script, Feb 2000 - Author: Kevin Moorer
*
* This script reads in the names of all the rollover images in the document as
* defined by the name attribute in the <IMG> tags (set up as 'RO'). To use this
* script, just put in the location of the source imgs (with full path) for the
* 'on' states in an array called onArr. Works best on 4.0+ browsers
*
* example:
* <script>
* <!--
* var onArr = new Array(
* 'img/image1.gif',
* 'img/image1.gif',
* 'img/image1.gif',
* 'img/image1.gif'
* );
* -->
* </script>
* 
*Then define each rollover img in this way, starting from 0:
*<a href="mylink.html" onmouseover="rollin(0)" onmouseout="rollout(0)"><img src=
* "myimg.gif" name="RO0" height=20 width=80></a>
*
*If you do not want a particular image to change states on rollover, mark it 'static' like this:
*<a href="mylink.html" onmouseover="rolln('static')" onmouseout="rollout('static')"><img src=
* "myimg.gif" name="RO0" height=20 width=80></a>
*
* And at the very bottom of the page, add this line:
* <script language="JavaScript" src="rollovers.js"></script>
* You can always put the js file wherever you want in your directory structure * as long as you remember to update the path to it in this tag 
*/
var loc = new String(location);


var onArr = new Array('/images/astro/astro_mainhdr_roll1.gif',
'/images/astro/astro_mainhdr_roll2.gif',
'/images/astro/astro_mainhdr_roll3.gif',
'/images/astro/astro_mainhdr_roll4.gif',
'/images/astro/astro_mainhdr_roll5.gif',
'/images/astro/astro_mainhdr_roll6.gif',
'/images/astro/astro_mainhdr_roll7.gif',
'/images/astro/astro_mainhdr_roll8.gif',
'/images/astro/astro_mainhdr_roll9.gif',
'/images/astro/astro_mainhdr_roll10.gif',
'/images/astro/astro_mainhdr_roll11.gif',
'/images/astro/astro_mainhdr_roll12.gif'
);

/* OK, Here's the story...  
	Different pages have different features. All those Astrology rollovers
	have to be accounted for. I'm only going to load what I need...
*/

/* NUMEROLOGY */
if (loc.indexOf('/astro/numerology/')!=-1) {
onArr.push('/images/astro/numerology/astro_numer_calcbtn_1.gif',
'/images/astro/numerology/astro_numer_calcbtn_2.gif',
'/images/astro/numerology/astro_numer_calcbtn_3.gif',
'/images/astro/numerology/astro_numer_calcbtn_4.gif',
'/images/astro/numerology/astro_numer_calcbtn_5.gif',
'/images/astro/numerology/astro_numer_calcbtn_6.gif',
'/images/astro/numerology/astro_numer_calcbtn_7.gif',
'/images/astro/numerology/astro_numer_calcbtn_8.gif',
'/images/astro/numerology/astro_numer_calcbtn_9.gif',
'/images/astro/numerology/astro_numer_calcbtn_11.gif',
'/images/astro/numerology/astro_numer_calcbtn_22.gif');
}

/* CHINESE ASTROLOGY */
if (loc.indexOf('/astro/chinese/')!=-1) {
onArr.push('/images/astro/chinese/astro_chinese_calcbtn_1.gif',
'/images/astro/chinese/astro_chinese_calcbtn_2.gif',
'/images/astro/chinese/astro_chinese_calcbtn_3.gif',
'/images/astro/chinese/astro_chinese_calcbtn_4.gif',
'/images/astro/chinese/astro_chinese_calcbtn_5.gif',
'/images/astro/chinese/astro_chinese_calcbtn_6.gif',
'/images/astro/chinese/astro_chinese_calcbtn_7.gif',
'/images/astro/chinese/astro_chinese_calcbtn_8.gif',
'/images/astro/chinese/astro_chinese_calcbtn_9.gif',
'/images/astro/chinese/astro_chinese_calcbtn_10.gif',
'/images/astro/chinese/astro_chinese_calcbtn_11.gif',
'/images/astro/chinese/astro_chinese_calcbtn_12.gif');
}

/* AURAS */
if (loc.indexOf('/astro/auras/')!=-1) {
onArr.push('/images/astro/auras/astro_aura_transbtn_1.gif',
'/images/astro/auras/astro_aura_transbtn_2.gif',
'/images/astro/auras/astro_aura_transbtn_3.gif',
'/images/astro/auras/astro_aura_transbtn_4.gif',
'/images/astro/auras/astro_aura_transbtn_5.gif',
'/images/astro/auras/astro_aura_transbtn_6.gif',
'/images/astro/auras/astro_aura_transbtn_7.gif',
'/images/astro/auras/astro_aura_transbtn_8.gif',
'/images/astro/auras/astro_aura_transbtn_9.gif',
'/images/astro/auras/astro_aura_transbtn_10.gif',
'/images/astro/auras/astro_aura_transbtn_11.gif');
}

/* DAILY ASTROLOGY */
if (loc.indexOf('/astro/daily/')!=-1) {
onArr.push('/images/common/spacer.gif',
'/images/common/spacer.gif',
'/images/common/spacer.gif',
'/images/common/spacer.gif',
'/images/common/spacer.gif',
'/images/common/spacer.gif',
'/images/common/spacer.gif',
'/images/common/spacer.gif',
'/images/common/spacer.gif',
'/images/common/spacer.gif',
'/images/common/spacer.gif');
}

///////////////////  Do not change anything below this line ///////////////////
/*var temp;
var numImgs = onArr.length;  
var offArr = new Array;
// find out the name of the rollover imgs embedded in this doc
function getImgSrc(num) {
temp = 'RO' + num;
return document.images[temp].src;
}
function getHeight(num) {
temp = 'RO' + num;
return document.images[temp].height;
}
function getWidth(num) {
temp = 'RO' + num;
return document.images[temp].width;
}
// put those rollover imgs into an array - these are their 'off' states
for (i=0;i<=numImgs-1;i++) {
offArr[i] = eval('getImgSrc('+i+')');
}
// create img objects for the 'off' and 'on' imgs and attach sources to them 
for(i=0;i<=numImgs-1;i++) {
eval('var i_' + (i+1) + 'on = new Image(getHeight(i),getWidth(i))');  
eval('var i_' + (i+1) + 'off = new Image(getHeight(i),getWidth(i))');
eval('i_' + (i+1) + 'on.src = onArr[' + i + ']');
eval('i_' + (i+1) + 'off.src = offArr[' + i + ']');
}
//turn on that image upon entering the page
//temp='RO'+arrStickyOne;
//eval('document.images[temp].src=i_'+stickyOne+'on.src');
*/
// rollin
function rollin(num) {
	//if (num!=arrStickyOne) {
			temp = 'RO' + num;
			//document.images[temp].src = eval('i_' + (num+1) + 'on.src;');
	//}
}
// rollout
function rollout(num) {
	//if (num!=arrStickyOne) {
		temp = 'RO' + num;
		//document.images[temp].src = eval('i_' + (num+1) + 'off.src;');
	//}
}

