var  _jrg_img ='http://www.prudentminds.com/images/pm_widget_down.gif';
function _jrng_css(width){

var bg='#3589B7'; var _jrg_css ='<style type="text/css">';
_jrg_css += '#jrng {font-family:sans-serif !important; font-size:12px;color:#000;background: #ffffff; position:relative; width:'+width+'px; border:solid 1px #000; } ';
_jrg_css += '#jrng .bh {clear:both;} #jrng div{clear:both;} #jrng div .h1 {background:'+bg+';}';
_jrg_css += '#jrng div h1 {background:'+bg+'; width:'+(width-10)+'px; float:left; margin:0; padding:5px; position:absolute; line-height:1; } ';
_jrg_css += '#jrng div ul #jrng_nav{background:'+bg+'; width:30px; float:right; margin:0; padding:0; text-indent:0; position:absolute; }';
_jrg_css += '#jrng #hd { color:#fff; font-size:13px;} #jrng #hd a { padding:0; margin:0; font-family:sans-serif !important; font-weight:bold; text-decoration: none;color:#fff; } ';
_jrg_css += '#jrng #jrng_nav img {border:0;margin:0;padding:0; vertical-align:baseline;}  #jrng #jrng_nav {width:30px; text-indent:0; padding:0; margin:0; position:relative; float:right;} #jrng #jrng_nav li { background:'+bg+';padding-bottom:1px;} #jrng ul  { list-style:none !important; list-style-image:none !important; }';
_jrg_css += '#jrng #jrng_nav a {text-decoration: none;margin:0; padding:30px 6px; color:#000}';
_jrg_css += '#jrng #jrng_nav li ul {border:solid 1px #ccc; border-width: 0 0 1px 1px; position: absolute; top:18px; background: #efefef;  width: 140px; right: -999em; margin:0; padding:0; } ';
_jrg_css += '#jrng #jrng_nav li ul li { width:140px; line-height:1.5em; border-bottom: solid 1px #ccc; } ';
_jrg_css += '#jrng #jrng_nav li ul li { background: #efefef; margin-left:0 !important; padding-left:5px;}';
_jrg_css += '#jrng #jrng_nav li:hover ul, #jrng #jrng_nav li.over ul{background: #efefef; color:#000; right:5px;}';


_jrg_css += '#jrng_master { padding: 0 5px; margin-top:10px;} #jrng_master img{} #jrng_master p{margin:2px 0;} #jrng_master .lnk {clear:both; text-align:center; margin-top:0px; margin-bottom:5px;}  #jrng_master .fl {float:left;} ';

_jrg_css += '#jrng_master ol {list-style:none !important; list-style-image:none !important; margin:0; padding:0}';
_jrg_css += '#jrng_master ol li {margin:0; padding:0}';
_jrg_css += '#jrng_master .title{color: #488c40;}';

_jrg_css += '</style>';
_jrg_css += '<!--[if gte IE 7]><style type="text/css"> #jrng div h1 {width:'+(width-10)+'px; padding-bottom:7px;} #jrng #jrng_nav li {padding-bottom:7px;} #jrng_master{margin-top:20px;} ';
_jrg_css += '#jrng #jrng_nav li.sfhover ul { background: #efefef; color:#000; right:0px;}';
_jrg_css += '#jrng #jrng_nav li:hover ul, #jrng #jrng_nav li.over ul{background: #efefef; color:#000; right:0;}';
_jrg_css += '#jrng #hd { margin-top: -2px;}#jrng h1 { margin-top: 0px;}';
_jrg_css += ' </style><![endif]-->';
_jrg_css += '<!--[if IE 6]><style type="text/css">';
_jrg_css += '#jrng_master{margin-top:25px;} #jrng #jrng_nav li {padding-bottom:7px;} ';
_jrg_css += '#jrng #jrng_nav li.sfhover ul { background: #efefef; right:0px;}';
_jrg_css += '#jrng #jrng_nav li.sfhover ul li { background: #efefef;} ';

_jrg_css += ' </style><![endif]-->';
document.write(_jrg_css);

}

function getById(id) {
       return document.getElementById?document.getElementById(id):(document.all?document.all(id):null); }
jrngHover = function() {
       var sfEls = getById("jrng_nav").getElementsByTagName("li"); 
       for (var i=0; i<sfEls.length; i++) {
       sfEls[i].onmouseover=function() { this.className+=" sfhover"; }; 
       sfEls[i].onmouseout=function() {this.className=this.className.replace(new RegExp(" sfhover"), " "); }
       } 
}
if (window.attachEvent) window.attachEvent("onload", jrngHover);


function _jrng_form(){
  var f='';
  f += '<div id="jrng_master">';
   f += '<ol>';
       f += '<li>';
       f += '<a href="http://www.jurang.co.uk/shop/99-divine-fairtrade-dark-chocolate.html?affid=007" >';
       f += '<img alt="Delicious 70% Dark Chocolate" src="http://www.jurang.co.uk/shop/img/jurang/p/99-145-medium.jpg"  class="fl"/>';
       f += '<p class="title">Delicious 70% Dark Chocolate</p>';
       f += '</a>';
       f += '<p >Gorgeous Divine Fairtrade Chocolate. Bittersweet to complement that perfect cup of coffee or tea!  <br/>  <br/></p>';
       f += '<p class="lnk"><a href="http://www.jurang.co.uk/shop/99-divine-fairtrade-dark-chocolate.html?affid=007" ><strong>On Offer, Buy Now</strong></a></p>';
         f += '<br />';
         f += '</li>';
            f += '<li>';
       f += '<a href="http://www.jurang.co.uk/shop/90-fair-trade-espresso-beans-8x1kg.html?affid=007" >';
       f += '<img alt="Wholesale Espresso Beans" src="http://www.jurang.co.uk/shop/img/jurang/p/90-162-medium.jpg"  class="fl"/>';
       f += '<p class="title">Wholesale Espresso Beans</p>';
       f += '</a>';
       f += '<p >Premium Fairtrade Espresso Beans for Coffee Shops and Restaurants. 8x1KG only &pound;70  <br/>  <br/></p>';
       f += '<p class="lnk"><a href="http://www.jurang.co.uk/shop/90-fair-trade-espresso-beans-8x1kg.html?affid=007" ><strong>Buy Now - Free Delivery!</strong></a></p>';
         f += '<br />';
         f += '</li>';
            f += '<li>';
       f += '<a href="http://www.jurang.co.uk/shop/22-teadirect-everyday-tea-80-bags.html?affid=007" >';
       f += '<img alt="Teadirect Everyday Tea" src="http://www.jurang.co.uk/shop/img/jurang/p/22-57-medium.jpg"  class="fl"/>';
       f += '<p class="title"><strong><span style="color:red">Teadirect Everyday Tea</span></strong></p>';
       f += '</a>';
       f += '<p >A classic Fairtrade Tea for a guaranteed perfect cuppa every time that is packed with flavour (80 bags)  <br/><br/></p>';
       f += '<p class="lnk"><a href="http://www.jurang.co.uk/shop/22-teadirect-everyday-tea-80-bags.html?affid=007" ><strong>Buy Now</strong></a></p>';
              f += '</li>';
                                    f += '</ol>';
    f += '</div>';
 return  f;
}

