// Add to Bookmarks
function bookmark(){
    var title="Cheap Cigarettes at Cigarrettes-Online.com"
    var url="http://www.cigarrettes-online.com"

    if (window.sidebar) window.sidebar.addPanel(title, url,"");

    else if( window.opera && window.print )
    {
    var mbm = document.createElement('a');
    mbm.setAttribute('rel','sidebar');
    mbm.setAttribute('href',url);
    mbm.setAttribute('title',title);
    mbm.click();
    }

    else if(document.all) window.external.AddFavorite(url,title);

}

// Jump Selector
function jM(targ,selObj,restore){
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}


// One block of many cigarettes block on page function //
function regionSelector(a,price,thID,theIDKod) {
	var content = "<img src='pic/region-select-active.gif' />";
	var contentB = "<img src='pic/region-select-inactive.gif' />";
	if (price != 0.00) {
		document.getElementById('price-of-'+thID).innerHTML = '&#36;'+price;
	}
	else {
		document.getElementById('price-of-'+thID).innerHTML = 'n/a';
	}
	document.getElementById(thID).rows[0].cells[0].innerHTML = contentB;
	document.getElementById(thID).rows[1].cells[0].innerHTML = contentB;
	document.getElementById(thID).rows[a].cells[0].innerHTML = content;	

	if (price == 0.00) {
		document.getElementById('important-'+thID).innerHTML = '<span style="color:red; font-size:11px; font-family:arial;">*<b>n/a</b> for european customers'; }
	else {
		if (a == 1) { document.getElementById('important-'+thID).innerHTML = '<span style="color:red; font-size:11px; font-family:arial;">*<b>Warning!</b> Unfortunately, we do not ship to <b>Italy</b>, <b>Austria</b>, <b>Holland</b> and <b>UK</b>.</span>'; }
		else { document.getElementById('important-'+thID).innerHTML = '<span style="color:#fff; font-size:11px; font-family:arial;">*<b>Warning!</b> Unfortunately, we do not ship to <b>Italy</b>, <b>Austria</b>, <b>Holland</b> and <b>UK</b></span>'; }
	}


	if (a == 1) {
		if (price == 0.00) {
			document.getElementById('pay-'+thID).value = '';
		} else {
			document.getElementById('pay-'+thID).value = theIDKod;
		}
		document.getElementById('destination-'+thID).value = 'eu';
		document.getElementById('pay-'+thID).value = theIDKod;
		document.getElementById('pay-q-'+thID).value = '1';
		
	} else  {
		document.getElementById('destination-'+thID).value = 'us';
		document.getElementById('pay-'+thID).value = theIDKod;
		document.getElementById('pay-q-'+thID).value = '1';
	}
}