var iiii=5;
function set_homepage() {
    alert("Set Homepage");
}

function add_favorites() {
    alert("Add to Favorites");
}

function show(chapter){
    replace.style.display = 'none';
    first.style.display = 'none';
    second.style.display = 'none';
    third.style.display = 'none';
    chapter.style.display = 'block';
}

function get_win(URL) {
   popwin = window.open(URL ,'New_Win','toolbar=no,scrollbars=yes,width=255,height=600,location=no,directories=no,status=no,menubar=no,resizable=yes')
   popwin.focus();
   return false;
}

function jump() {
   document.location.href="http://www.exmoto.com/EXMOTO/index.php?part=about";
}


function about_main() {
   document.location.href="http://www.exmoto.com/EXMOTO/index.php?part=about";
}


function news_main() {
 if (iiii == 1)
   document.location.href="http://www.exmoto.com/EXMOTO/index.php?part=about"; else
   document.location.href="http://www.exmoto.com/EXMOTO/index.php?part=news";
}


function rules_main() {
   document.location.href="http://www.exmoto.com/EXMOTO/index.php?part=rules";
//   alert("В разработке.");
}

function rules_doc_() {
   document.location.href="http://www.exmoto.com/handbook.doc";
//   document.location.href="http://www.exmoto.com/rules.html";
}

function rules_zip_() {
   document.location.href="http://www.exmoto.com/handbook.zip";
}

function tracking_main() {
 if (iiii == 1) 
   document.location.href="http://www.exmoto.com/EXMOTO/index.php?part=about"; else
    document.location.href="http://www.exmoto.com/EXMOTO/index.php?part=track";
//   popwin = window.open("http://www.exmoto.com/tracking/start.html" ,'New_Win','toolbar=no,scrollbars=yes,width=780,height=390,location=no,directories=no,status=no,menubar=no,resizable=yes');
//   popwin.focus();
}


function tarif_ukr() {
   document.location.href="http://www.exmoto.com/EXMOTO/index.php?part=tarif#ukr";
//   get_win('ukraine.html');
}

function tarif_dop() {
   document.location.href="http://www.exmoto.com/EXMOTO/index.php?part=tarif&action=VdRate";
}

function tarif_gruz() {
   document.location.href="http://www.exmoto.com/EXMOTO/index.php?part=tarif&action=freight";
}


function tarif_sng() {
   document.location.href="http://www.exmoto.com/EXMOTO/index.php?part=tarif#csi";
//   get_win('sng.html');
}

function tarif_city() {
   document.location.href="http://www.exmoto.com/EXMOTO/index.php?part=tarif&action=city";
//   document.location.href="http://www.exmoto.com/EXMOTO/index.php?part=tarif#city";
}

function tarif_calc() {
 if (iiii == 1) 
   document.location.href="http://www.exmoto.com/EXMOTO/index.php?part=about"; else
   document.location.href="http://www.exmoto.com/EXMOTO/index.php?part=calc";
}

function tarif_xls() {
   document.location.href="http://www.exmoto.com/exmoto_price.xls";
//   document.location.href="http://www.exmoto.com/tarif.html";
}

function tarif_zip() {
   document.location.href="http://www.exmoto.com/exmoto_price.zip";
}

function contact_ukr() {
/*   document.location.href="http://www.exmoto.com/contact_map.html";*/
 if (iiii == 1) 
   document.location.href="http://www.exmoto.com/EXMOTO/index.php?part=about"; else
   document.location.href="http://www.exmoto.com/EXMOTO/index.php?part=ukr";
}

function contact_cis() {
 if (iiii == 1) 
   document.location.href="http://www.exmoto.com/EXMOTO/index.php?part=about"; else
   document.location.href="http://www.exmoto.com/EXMOTO/index.php?part=cis";
}

function contact_online() {
 if (iiii == 1) 
   document.location.href="http://www.exmoto.com/EXMOTO/index.php?part=about"; else
   document.location.href="http://www.exmoto.com/EXMOTO/index.php?part=order";
}

function contact_book() {
 if (iiii == 1) 
   document.location.href="http://www.exmoto.com/EXMOTO/index.php?part=about"; else
   document.location.href="http://www.exmoto.com/EXMOTO/index.php?part=guest";
}


function contact_nacl() {
 if (iiii == 1) 
   document.location.href="http://www.exmoto.com/EXMOTO/index.php?part=about"; else
   document.location.href="http://www.exmoto.com/EXMOTO/index.php?part=order_wb";
}

function services_ukr() {
 if (iiii == 1) 
   document.location.href="http://www.exmoto.com/EXMOTO/index.php?part=about"; else
   document.location.href="http://www.exmoto.com/EXMOTO/index.php?part=services&action=ukr";
}

function services_sng() {
 if (iiii == 1) 
   document.location.href="http://www.exmoto.com/EXMOTO/index.php?part=about"; else
   document.location.href="http://www.exmoto.com/EXMOTO/index.php?part=services&action=cis";
}

function services_city() {
 if (iiii == 1) 
   document.location.href="http://www.exmoto.com/EXMOTO/index.php?part=about"; else
   document.location.href="http://www.exmoto.com/EXMOTO/index.php?part=services&action=city";
}
function services_broker(){
 if (iiii == 1)
   document.location.href="http://www.exmoto.com/EXMOTO/index.php?part=about"; else
   document.location.href="http://www.exmoto.com/EXMOTO/index.php?part=services&action=broker";
}

function services_garant() {
 if (iiii == 1) 
   document.location.href="http://www.exmoto.com/EXMOTO/index.php?part=about"; else
   document.location.href="http://www.exmoto.com/EXMOTO/index.php?part=services&action=garant";
}

function services_adv() {
   document.location.href="http://www.exmoto.com/EXMOTO/index.php?part=services&action=adv";
}

function attrulez(){
   document.location.href="http://www.exmoto.com/atthandbook.doc";
}

