
var G={
base:'http://<Computed Value>',
gecko:navigator.product=='Gecko',
ie6:(!!document.all && !(typeof window.XMLHttpRequest=='object')),
init:function()
{
    for(var n in G)
    if(G[n].init)
    G[n].init()
},
set:function(a,b)
{
    for(var o in b)
    {
        if(a==null)
        {
        }
        else
        {
            a[o]=b[o];
        }
        return a
    }
    
},
create:function(a,b,c,d){var o=(d||document).createElement(a);G.set(o,b);G.set(o.style,c);return o},
append:function(a,b,c,d){var o=b.tagName?b:G.create(b,c,d);a.appendChild(o);return o}
}
function $(a){return document.getElementById(a)}
function $$(a,b){return (b||document).getElementsByTagName(a)}
window.onload=G.init

G.pop={
init:function(){
	var m=this,o=$$('a'),i
	for(i=0;i<o.length;i++){if(o[i].className=='popup')G.set(o[i],{onmouseover:m.over,onmouseout:m.out})}
	m.win=$('pop-win')
	G.set(m.win,{onmouseover:m.over2,onmouseout:m.out2})
},
over:function(){
	var m=G.pop,p=m.pos(this)
	G.set(m.win.style,{left:p.x+'px',top:p.y+10+'px',visibility:'visible'})
},
out:function(){var m=G.pop;m.timer=setTimeout(m.close,200)},
over2:function(){clearTimeout(G.pop.timer)},
out2:function(e){var m=G.pop;if(m.outside(e,m.win))m.close()},
close:function(){G.pop.win.style.visibility='hidden'},
pos:function(a){
	var x=a.offsetLeft,y=a.offsetTop
	while(a.offsetParent){a=a.offsetParent;x+=a.offsetLeft,y+=a.offsetTop}
	return{x:x,y:y}
},
outside:function(e,a){
	var ee=e||window.event,o=(ee.toElement)?ee.toElement:ee.relatedTarget
	while(o!=a && o.nodeName!='BODY')o=o.parentNode
	return o!=a 
}
}





function showBox()
{
 var width = document.documentElement.clientWidth + document.documentElement.scrollLeft;
 
   var layer = document.createElement('div');
   layer.style.zIndex = 2;
   layer.id = 'layer';
   layer.style.position = 'absolute';
   layer.style.top = '0px';
   layer.style.left = '0px';
   layer.style.height = document.documentElement.scrollHeight + 'px';
   layer.style.width = width + 'px';
   layer.style.backgroundColor = 'black';
   layer.style.opacity = '.5';
   layer.style.filter += ("progid:DXImageTransform.Microsoft.Alpha(opacity=50)");
   document.body.appendChild(layer);
 
   var div = document.createElement('div');
   div.style.zIndex = 3;
   div.id = 'box';
   div.style.position = (navigator.userAgent.indexOf('MSIE 5') > 0) ? 'absolute' : 'fixed';
   div.style.top = '200px';
   div.style.left = (width / 2) - (400 / 2) + 'px'; 
   div.style.height = '120px';
   div.style.width = '400px';
   div.style.backgroundColor = '#FFFFD7';
   div.style.border = '2px solid silver';
   div.style.padding = '10px';
  document.body.appendChild(div);

  
  var a = document.createElement('a');
  a.innerHTML = '<font face=Arial size=2><p align=right>Continue</p></font>';
  a.href = 'selectCountry.aspx';
  a.onclick = function()
  {
    document.body.removeChild(document.getElementById('layer'));
    document.body.removeChild(document.getElementById('box'));
  };
  
  var p = document.createElement('p');
  p.innerHTML = '<font face=Verdana size=2 color=#800000><b>We advise you to choose more samples, as the cost upto 5 samples are adjustable in later bulk order.It will also give you the flexibility to choose the best wedding card out of other samples,and you can make the decision instantly.</b></font>';

  div.appendChild(p);
  
  div.appendChild(a);
}
