


/* external file "myvsparmsg.txt" begins */
// begin: Vertical Scroller's Parameters 

//PATTERN: How many messages may RESIDE within scrolling area while PAUSING: 
//0 for SINGLE, only one RESIDES within area while PAUSING;
//1 for MORE, as many as they fit RESIDE in the area while PAUSING; 
//Should one choose  below to set msgnr=1 (MORE), a blank space
//will automatically be inserted after each and every message;
//"stileret" would set the vertical size for this blank space, see STEP I above;
var msgnr=0;
if(msgnr==1){
var retclass='class="stileret"';
}

//If msgnr=0 for PATTERN SINGLE was chosen above and you want that any
//mesage smaller than area NOT to be CELL-CENTERED, set below value 0:
var celcen=1;

//1: FIRST message shows up right at top edge (or cell-centered) and pauses;
//If First message is to show up at bottom edge and starts scrolling, set below value 0:
var udopt=1;

//WIDTH of the Scroller in pixels: set to your own;
//"px" unit will automatically be set in the process, so do not write "px";
var mwidth=380; 

//HEIGHT of the Scroller in pixels: set to your own; 
//"px" unit will automatically be set in the process, so do not write "px";
//larger Messages (exceeding height) will slide OK anyway, but
//the exceeding height won't show up on option Instant Recall if chosen!
var mheight=20; 

//BACKGROUND: either color(1) or image(2, see below) ;
//1.Background color: could be like: "#ffff00" or "yellow";
//set it "" for no background color;
var mcolor="FFFDE6";

//or 2.Background image: "imagename.ext";
//leave it "" for no image background;
var mbground="";

//BORDER for scrolling area: 1, ... ;
//set it 0(zero) for no border;
var mborder=1;

//BORDER Color: Background color: could be like: "#ffff00" or "yellow";
//set it 0(zero) for no border;
var mbordercolor="FF0000";

//SPEED in pixels: the higher the faster - set your own!
var mspeed=1; 

//PAUSE between messages in milliseconds: 1000=1s; set to your own; 
var mpause = 5000; 

//Live speed-change option: 0 (not desired) or 1 (desired);
//"stileupdn" would be the STYLE (CSS), see STEP I above;
//celcolor would set background color
var lsopt = 0;
if(lsopt==1){
var vesclass='class="stileupdn"';
var celcolor='#ff0000';
}

//Recall Option: 
//Let it be 0 if not desired and the scroll will go on;
//set it 1 if desired: after a complete cycle the scroll stops
//and you may recall randomly any Message/Image;  
var rcopt=0;
if(rcopt==1){
var cbtxt = new Array();
//MUST BE as many TEXTs as the number of Messages/Images;
//Set your own TEXTs, like Messages Title or what you have in there: 
//cbtxt = ["1-TITLE", "2-Features", "3-Recall Option", "4-Other Possibilities", "5-Check"];
cbtxt=[];
}
//end Parameters 
//===
// begin: Vertical Scroller's Messages/Images - 

//Messages: as many as you'd like: set to your own; 
//Every message MUST be set as a continuous string within '...';
//you may split it by using '+ at ends and then ' at continuations;
//Inside any message you MUST use \' in lieu of ' if need be!
//Use of "<br />" or "<br>" for row control inside any message is recommended;
//Images stand alone or used within a message - preload is recommended:
//preloadname = new Image();
//preloadname.src = "imagename.ext";
//slmg[..]='< ... ><img height="..." ... src='+preloadname.src+' /><...>';
//height parameter above is a MUST for every image - may be different;
var ofExpDate = new Date(2010,8,25);
var offExp = ofExpDate.toGMTString();
offExp = offExp.substr(0,offExp.length - 3);

var slmg=new Array();
slmg[0]=strEntry(1);
slmg[1]=strEntry(2);
slmg[2]=strEntry(3);
//if(IPadd == "132.147.160.123")
//{slmg[1]=strEntry(4);
//slmg[2]=offExp;
//}
// ...
//slmg[...]='...';
//end Messages 
/* end of external_remote file "myvsparmsg.txt" */

function strEntry(iNo)
{
switch(iNo)
	{
	case 1:
		return('<a href=\'http://www.sandpiper.co.uk/VirtualCatalogue.asp\' style=\'TEXT-DECORATION:none;color:red\'>'+
				'Click here to browse, and order from our latest catalogue</a>');
		break;
	case 2:
		return('<a href=\'http://www.sandpiper.co.uk/VirtualCatalogue.asp\' style=\'TEXT-DECORATION:none;color:red\'>'+
				'Items in the virtual catalogue can be added to your basket</a>');
		break;
	case 3:
		return('<a href=\'http://www.sandpiper.co.uk/VirtualCatalogue.asp\' style=\'TEXT-DECORATION:none;color:red\'>'+
				'Virtual Catalogue - click on the 5 digit code to add to your basket</a>');
		break;
	case 4:
		return('<a href=\'javascript:void(0)\' style=\'TEXT-DECORATION:none;color:red\' onclick=\"javascript:sDelivAlert(event);return false;\">' +
				'<b>IMPORTANT OVERSEAS DELIVERY INFORMATION</b></a>');
		break;
	case 5:
		return('<div style=\'TEXT-DECORATION:none;cursor:pointer\' onclick=\"javascript:sAnnivOffer(event);return false;\">' +
				'<font size=\'2\'>Get this special </font><font size=\'4\'><b>Free Gift</b></font><font size=\'2\'> with your online \
				order today!</font>*</br>*<font size="1px">Conditions apply</font><br/><div style="color:#008000;font-weight:600; \
				font-size:12px;text-align:center">Offer ends midnight 24th September (BST)</div>');
		break;
	case 6:
		return('<span style=\'TEXT-DECORATION:none;color:red;cursor:pointer\' onclick=\'javascript:sWebOfferN(event)\'>' +
				'&pound;2 off when you spend &pound;20 or more online today.</span>');
	default:
		return('Sandpiper Books Ltd')		
	}
}
