
/***********************************************
* Amazon style Drop-in content box- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* Visit DynamicDrive.com for hundreds of DHTML scripts
* This notice must stay intact for legal use
* Go to http://www.dynamicdrive.com/ for full source code
***********************************************/

//Specify display mode. 3 possible values are:
//1) "always"- This makes the fade-in box load each time the page is displayed
//2) "oncepersession"- This uses cookies to display the fade-in box only once per browser session
//3) integer (ie: 5)- Finally, you can specify an integer to display the box randomly via a frequency of 1/integer...
// For example, 2 would display the box about (1/2) 50% of the time the page loads.

var text = "";
var dropboxleft=220 //set left position of box (in px)
var dropboxtop=355 //set top position of box (in px)
var dropspeed=30 //set speed of drop animation (larger=faster)
var displaymode="always"

///Don't edit beyond here///////////

if (parseInt(displaymode)!=NaN)
var random_num=Math.floor(Math.random()*displaymode)
var ie=document.all
var dom=document.getElementById

function initboxv2(type){
	if (!dom&&!ie)
		return

	switch (type) {		
		case 'a' :
			document.getElementById('dropinboxv2').innerHTML = distributors;
			break;
		case 'b' :
			document.getElementById('dropinboxv2').innerHTML = retaiters;
			break;
		case 'c' :
			document.getElementById('dropinboxv2').innerHTML = design;
			break;
		case 'd' :
			document.getElementById('dropinboxv2').innerHTML = accounts;
			break;
	}

	crossboxcover=(dom)?document.getElementById("dropinboxv2cover") : document.all.dropinboxv2cover
	crossbox=(dom)?document.getElementById("dropinboxv2"): document.all.dropinboxv2
	scroll_top=(ie)? truebody().scrollTop : window.pageYOffset
	crossbox.height=crossbox.offsetHeight
	//crossboxcover.style.height=parseInt(crossbox.height)+"px"
	crossbox.style.top=crossbox.height*(-1)+"px"
	crossboxcover.style.left=dropboxleft+"px"
	crossboxcover.style.top=dropboxtop+"px"
	crossboxcover.style.visibility=(dom||ie)? "visible" : "show"
	dropstart=setInterval("dropinv2()",50)
}

function dropinv2(){
	scroll_top=(ie)? truebody().scrollTop : window.pageYOffset
	if (parseInt(crossbox.style.top)<0){
		crossboxcover.style.top=scroll_top+dropboxtop+"px"
		crossbox.style.top=parseInt(crossbox.style.top)+dropspeed+"px"
	}
	else{
		clearInterval(dropstart)
		crossbox.style.top=0
	}
}

function dismissboxv2(){
	if (window.dropstart) clearInterval(dropstart)
		crossboxcover.style.visibility="hidden"
}

function truebody(){
	return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function get_cookie(Name) {
	var search = Name + "="
	var returnvalue = ""
	if (document.cookie.length > 0) {
		offset = document.cookie.indexOf(search)
		if (offset != -1) {
			offset += search.length
			end = document.cookie.indexOf(";", offset)
			if (end == -1)
				end = document.cookie.length;
				returnvalue=unescape(document.cookie.substring(offset, end))
		}
	}
return returnvalue;
}

if (displaymode=="oncepersession" && get_cookie("droppedinv2")=="" || displaymode=="always" || parseInt(displaymode)!=NaN && random_num==0){
	if (window.addEventListener)
		window.addEventListener("load", initboxv2, false)
	else if (window.attachEvent)
		window.attachEvent("onload", initboxv2)
	else if (document.getElementById || document.all)
		window.onload=initboxv2
if (displaymode=="oncepersession")
	document.cookie="droppedinv2=yes"
}
var distributors = "<p><strong>Distribution</strong></p>"
	+ "<p>If you are interested in working for yourself, are hard working, committed and enthusiastic, then look no further as becoming a <strong>Riverside Cards Distributor</strong> could be the answer.</p>"
	+ "<p>Our distribution network spans across the UK and Europe and is made up of a variety of small and medium sized businesses. Our ethos allows each business to have the support network of a large organisation without the restrictions of a franchise, allowing your business autonomy, but with the continuous support of a <strong>dedicated Riverside Team</strong>.</p>"
	+ "<p>We ensure that anyone considering investing with us is given adequate advice and support before making the commitment.</p>"
	+ "<p><em>If you are interested in finding out more please contact</em></p>"
	+ "<p><strong></strong><br>"
	+ "Email: <a href='mailto:sales@riversidecards.com'>sales@riversidecards.com</a><br>"
	+ "Tel: 01924 840 500&nbsp;&nbsp;&nbsp;</p>";
	
var retaiters = "<p><strong>Retail recruitment</strong></p>"
	+ "<p>If you are interested in joining a progressive company and are hard working, committed and enthusiastic, then working for <strong>Riverside Cards</strong> as one of our <strong>Customer Service Representatives</strong> is the answer.</p>"
	+ "<p>You will be given a dedicated area to cover, selling our extensive range of greeting cards. We will ensure that you are adequately trained. You will also have access to a dedicated support system at Head Office.</p>"
	+ "<p><em>If you are interested in joining a dynamic company please send in your cv to our head office or contact</em></p>"
	+ "<p><strong></strong><br>"
	+ "Email: <a href='mailto:sales@riversidecards.com'>sales@riversidecards.com</a><br>"
	+ "Tel: 01924 840 500</p>";
	
var design = "<p><strong>Design</strong></p>"
	+ "<p>The majority of our designs are produced in-house, however we do also commission and purchase pieces from freelance contributors.<br>"
	+ "We are always pleased to consider new ideas and speculative submissions from artists, designers, photographers and writers.  Please contact <a href='mailto:design@riversidecards.com'>Shona Dobinson</a> our design manager who will advise on our current requirements.</p>"
	+ "<p>When submitting samples of your work please <strong>DO NOT</strong> send original artworks.  We accept colour copies, transparencies, digital prints and images on CD Rom (Low res PC or Mac formatted files).  Low res jpeg and tiff files can be e-mailed direct to the design department.</p>"
	+ "<p>Please advise if you would like your samples returned and enclose a S.A.E.<br>"
	+ "Clearly label each of your posted  samples with your name, address, telephone number and e-mail address.<br>"
	+ "All submitted artwork is reviewed, we ask for your patience in waiting for a reply.</p>"
	+ "<p>Thank you</p>"
	+ "<p><em>Send your ideas to:</em></p>"
	+ "<p><strong>Shona Dobinson</strong> – Design Manager<br>"
	+ "<p><strong></strong><br>"
	+ "Email: <a href='mailto:design@riversidecards.com'>design@riversidecards.com</a><br>"
	+ "Tel: 01924 840 500</p>";

var accounts = "<p><strong>National Accounts</strong></p>"
	+ "<p><strong>Amanda Lee-Laverick</strong> – Account Manager<br>"
	+ "<p><strong></strong><br>"
	+ "Email: <a href='mailto:amanda.lee@riversidecards.com'>amanda.lee@riversidecards.com</a><br>"
	+ "Tel: 01924 840 500&nbsp;&nbsp;&nbsp;&nbsp;Mob: 07730 624 205</p>";
	
//Click here for details regarding the submission of artwork and copy.

window.onload=function(){
if(!NiftyCheck())
    return;

//RoundedTop("div#container","#FFF","#e7e7e7");
//RoundedBottom("div#container","#FFF","#8395CB");
//RoundedTop("ul#nav li","transparent","#FFC");
//Rounded("div#box","#C0CDF2","#E4E7F2");
//Rounded("div#minipics li","#C0CDF2","#FFF");
RoundedTop("div.gradient","#FFF","#0087F0");
RoundedBottom("div.gradient","#FFF","#B7E3FC");
}