﻿var ct;
var fd;

function cnt(category,selected_food){

	ct = category;
	fd = selected_food;
	
/* MÁLTÍÐIR */
	
	if(category==1&&selected_food==1){
	food_header='ELVIS';
	food_description='með osti, beikoni, skinku, papriku, kjúklingabringu, iceberg og BBQ sósu<br />franskar og gos fylgja.';
	food_price='1845';
	food_image='maltidir/elvis.png';
	notmissin();
	}

	if(category==1&&selected_food==2){
	food_header='BEARNAISE';
	food_description='með osti, sveppum, lauk, iceberg og bearnaisesósu<br />franskar og gos fylgja.';
	food_price='1485';
	food_image='maltidir/bearnaise.png';
	notmissin();
	}

	if(category==1&&selected_food==3){
	food_header='SELMA STYLE';
	food_description='með osti, beikoni, iceberg, majonesi og tómatsósu<br />franskar og gos fylgja.';
	food_price='1535';
	food_image='maltidir/selma.png';
	notmissin();
	}

	if(category==1&&selected_food==4){
	food_header='KJÚKLINGA<br />BORGARI';
	food_description='með papriku, gúrku, iceberg og grænmetissósu<br />franskar og gos fylgja.';
	food_price='1685';
	food_image='maltidir/kjuklingaborgari.png';
	notmissin();
	}

	if(category==1&&selected_food==5){
	food_header='BEIKON<br />BORGARI';
	food_description='með osti, gúrku, lauk, papriku, iceberg og sósu<br />franskar og gos fylgja.';
	food_price='1645';
	food_image='maltidir/beikon.png';
	notmissin();
	}

	if(category==1&&selected_food==6){
	food_header='BBQ BORGARI';
	food_description='með osti, gúrku, lauk, papriku, iceberg og BBQ sósu<br />franskar og gos fylgja.';
	food_price='1395';
	food_image='maltidir/bbq.png';
	notmissin();
	}

	if(category==1&&selected_food==7){
	food_header='STYLE<br />SPECIAL';
	food_description='með osti, rauðlauk, gúrku, lúxussalati, tómatsósu og sætu sinnepi<br />franskar og gos fylgja.';
	food_price='1595';
	food_image='maltidir/style-special.png';
	notmissin();
	}

	if(category==1&&selected_food==8){
	food_header='HEAVY<br />SPECIAL';
	food_description='200 gr. með beikoni, osti, gúrku, lauk, papriku, iceberg og BBQ sósu<br />franskar og gos fylgja.';
	food_price='1785';
	food_image='maltidir/heavy-special.png';
	notmissin();
	}

	if(category==1&&selected_food==9){
	food_header='OSTBORGARI';
	food_description='með gúrku, lauk, papriku, iceberg og sósu<br />franskar og gos fylgja.';
	food_price='1395';
	food_image='maltidir/ostborgari.png';
	notmissin();
	}

	if(category==1&&selected_food==10){
	food_header='TVÖFALDUR OSTBORGARI';
	food_description='með gúrku, lauk, papriku, iceberg og sósu<br />franskar og gos fylgja.';
	food_price='1745';
	food_image='maltidir/ostborgari-2.png';
	notmissin();
	}

	if(category==1&&selected_food==11){
	food_header='BIG BOPPER';
	food_description='300 gr. með osti, beikoni, sveppum, rauðlauk, iceberg og majonesi<br />franskar og gos fylgja.';
	food_price='2045';
	food_image='maltidir/big-bopper.png';
	notmissin();
	}

	if(category==1&&selected_food==12){
	food_header='BUDDY HOLLY';
	food_description='með osti, lauk, súrum gúrkum, beikoni, iceberg, majonesi og sinnepi<br />franskar og gos fylgja.';
	food_price='1645';
	food_image='maltidir/buddy-holly.png';
	notmissin();
	}

	if(category==1&&selected_food==13){
	food_header='STEIKAR SAMLOKA';
	food_description='með nautakjöti, rauðlauk, salatmixi, gúrku og sósu<br />franskar og gos fylgja.';
	food_price='1645';
	food_image='maltidir/steikar-samloka.png';
	notmissin();
	}

	if(category==1&&selected_food==14){
	food_header='RISTUÐ SAMLOKA';
	food_description='með skinku, osti og sósu<br />franskar og gos fylgja.';
	food_price='1345';
	food_image='maltidir/ristud-samloka.png';
	notmissin();
	}

	if(category==1&&selected_food==15){
	food_header='CALIFORNIA STYLE SAMLOKA';
	food_description='með kjúklingi, beikoni, gúrku, iceberg og lemon majónesi<br />franskar og gos fylgja.';
	food_price='1545';
	food_image='maltidir/california-samloka.png';
	notmissin();
	}

	if(category==1&&selected_food==16){
	food_header='STYLE CLUB SAMLOKA';
	food_description='með skinku, osti, kryddi, beikoni, iceberg, gúrku, papriku, rauðlauk og sósu<br />franskar og gos fylgja.';
	food_price='1545';
	food_image='maltidir/style-club-samloka.png';
	notmissin();
	}

	if(category==1&&selected_food==17){
	food_header='PÍTA með<br />BUFFI';
	food_description='með gúrku, papriku, lauk, iceberg og pítusósu<br />franskar og gos fylgja.';
	food_price='1685';
	food_image='maltidir/pita.png';
	notmissin();
	}

	if(category==1&&selected_food==18){
	food_header='STEIKTUR FISKUR';
	food_description='Fiskurinn er borinn fram með sítrónu, kokteilsósu, frönskum og fersku salati';
	food_price='1695';
	food_image='maltidir/steiktur-fiskur.png';
	notmissin();
	}

	if(category==1&&selected_food==19){
	food_header='NAUTASTEIK';
	food_description='200 gr. steikin er borin fram með piparsósu, kryddsmjöri, frönskum/bakaðri og fersku salati';
	food_price='2395';
	food_image='maltidir/nautasteik.png';
	notmissin();
	}

	if(category==1&&selected_food==20){
	food_header='BBQ<br />KJÚKLINGA<br />BRINGA';
	food_description='með beikoni og bræddum osti. Borin fram með BBQ sósu, frönskum og fersku salati';
	food_price='2195';
	food_image='maltidir/bbq-kjuklingabringa.png';
	notmissin();
	}

/* HAMBORGARAR */

	if(category==2&&selected_food==1){
	food_header='HAMBORGARI';
	food_description='með gúrku, lauk, papriku, iceberg og sósu';
	food_price='700';
	food_image='hamborgarar/hamborgari.png';
	notmissin();
	}

	if(category==2&&selected_food==2){
	food_header='TVÖFALDUR HAMBORGARI';
	food_description='með gúrku, lauk, papriku, iceberg og sósu';
	food_price='995';
	food_image='hamborgarar/hamborgari-2.png';
	notmissin();
	}

	if(category==2&&selected_food==3){
	food_header='OSTBORGARI';
	food_description='með gúrku, lauk, papriku, iceberg og sósu';
	food_price='705';
	food_image='hamborgarar/ostborgari.png';
	notmissin();
	}

	if(category==2&&selected_food==4){
	food_header='TVÖFALDUR OSTBORGARI';
	food_description='með gúrku, lauk, papriku, iceberg og sósu';
	food_price='1055';
	food_image='hamborgarar/ostborgari-2.png';
	notmissin();
	}

	if(category==2&&selected_food==5){
	food_header='BBQ BORGARI';
	food_description='með osti, gúrku, lauk, papriku, iceberg og BBQ sósu';
	food_price='705';
	food_image='hamborgarar/bbq.png';
	notmissin();
	}

	if(category==2&&selected_food==6){
	food_header='BEIKON BORGARI';
	food_description='með osti, gúrku, lauk, papriku, iceberg og sósu';
	food_price='955';
	food_image='hamborgarar/beikon.png';
	notmissin();
	}

	if(category==2&&selected_food==7){
	food_header='TVÖFALDUR BEIKON';
	food_description='með beikoni, osti, gúrku, lauk, papriku, iceberg og sósu';
	food_price='1165';
	food_image='blank.png';
	missin();
	}

	if(category==2&&selected_food==8){
	food_header='BBQ BEIKON BORGARI';
	food_description='með osti, gúrku, lauk, papriku, iceberg og sósu';
	food_price='955';
	food_image='blank.png';
	missin();
	}

	if(category==2&&selected_food==9){
	food_header='SALSA';
	food_description='með osti, lauk, súrum gúrkum, iceberg, sætu sinnepi og salsasósu';
	food_price='845';
	food_image='hamborgarar/salsa.png';
	notmissin();
	}

	if(category==2&&selected_food==10){
	food_header='BARNA<br />BORGARI';
	food_description='með tómatsósu';
	food_price='695';
	food_image='blank.png';
	missin();
	}

	if(category==2&&selected_food==11){
	food_header='HEAVY<br />SPECIAL';
	food_description='200 gr. með beikoni, osti, gúrku, lauk, papriku, iceberg og sósu';
	food_price='1095';
	food_image='hamborgarar/heavy-special.png';
	notmissin();
	}

	if(category==2&&selected_food==12){
	food_header='BBQ HEAVY SPECIAL';
	food_description='200 gr. með beikoni, osti, gúrku, lauk, papriku, iceberg og BBQ sósu';
	food_price='1095';
	food_image='blank.png';
	missin();
	}

	if(category==2&&selected_food==13){
	food_header='KJÚKLINGA<br />BORGARI';
	food_description='með papriku, gúrku, iceberg og grænmetissósu';
	food_price='995';
	food_image='hamborgarar/kjuklingaborgari.png';
	notmissin();
	}

	if(category==2&&selected_food==14){
	food_header='STYLE<br />SPECIAL';
	food_description='með osti, rauðlauk, gúrku, lúxussalati, tómatsósu og sætu sinnepi';
	food_price='905';
	food_image='hamborgarar/style-special.png';
	notmissin();
	}

	if(category==2&&selected_food==15){
	food_header='BUDDY HOLLY';
	food_description='með osti, lauk, súrum gúrkum, beikoni, iceberg, majonesi og sinnepi';
	food_price='955';
	food_image='hamborgarar/buddy-holly.png';
	notmissin();
	}

	if(category==2&&selected_food==16){
	food_header='BIG BOPPER';
	food_description='300 gr. með osti, beikoni, sveppum, rauðlauk, iceberg og majonesi';
	food_price='1355';
	food_image='hamborgarar/big-bopper.png';
	notmissin();
	}

	if(category==2&&selected_food==17){
	food_header='BEARNAISE';
	food_description='með osti, sveppum, lauk, iceberg og bearnaisesósu';
	food_price='795';
	food_image='hamborgarar/bearnaise.png';
	notmissin();
	}

	if(category==2&&selected_food==18){
	food_header='ELVIS';
	food_description='með osti, beikoni, skinku, papriku, kjúklingabringu, iceberg og BBQ sósu';
	food_price='1155';
	food_image='hamborgarar/elvis.png';
	notmissin();
	}

	if(category==2&&selected_food==19){
	food_header='SELMA STYLE';
	food_description='með osti, beikoni, iceberg, majonesi og tómatsósu';
	food_price='845';
	food_image='hamborgarar/selma.png';
	notmissin();
	}

/* NAUTASTEIKUR */

	if(category==3&&selected_food==1){
	food_header='NAUTASTEIK';
	food_description='200 gr. steikin er borin fram með piparsósu, kryddsmjöri, frönskum/bakaðri og fersku salati';
	food_price='2395';
	food_image='nautasteikur/nautasteik.png';
	notmissin();
	}
	
/* KJÚKLINGABRINGA */

	if(category==4&&selected_food==1){
	food_header='BBQ<br />KJÚKLINGA<br />BRINGA';
	food_description='með beikoni og bræddum osti. Borin fram með BBQ sósu, frönskum og fersku salati';
	food_price='2195';
	food_image='kjuklingabringa/bbq-kjuklingabringa.png';
	notmissin();
	}

/* FISKUR */

	if(category==5&&selected_food==1){
	food_header='STEIKTUR FISKUR';
	food_description='Fiskurinn er borinn fram með sítrónu, kokteilsósu, frönskum og fersku salati';
	food_price='1695';
	food_image='fiskur/steiktur-fiskur.png';
	notmissin();
	}

/* PÍTUR */

	if(category==6&&selected_food==1){
	food_header='PÍTA með<br />BUFFI';
	food_description='með gúrku, papriku, lauk, iceberg og pítusósu';
	food_price='995';
	food_image='pitur/buffi.png';
	notmissin();
	}

	if(category==6&&selected_food==2){
	food_header='PÍTA með<br />FISKI';
	food_description='með gúrku, papriku, lauk, iceberg og pítusósu';
	food_price='995';
	food_image='pitur/fiski.png';
	notmissin();
	}

	if(category==6&&selected_food==3){
	food_header='PÍTA með<br />SKINKU';
	food_description='með gúrku, papriku, lauk, iceberg og pítusósu';
	food_price='995';
	food_image='pitur/skinku.png';
	notmissin();
	}

	if(category==6&&selected_food==4){
	food_header='PÍTA með<br />GRÆNMETI';
	food_description='með pönnusteiktum lauk, sveppum, gúrku, papriku, iceberg og pítusósu/grænmetissósu';
	food_price='995';
	food_image='pitur/graenmeti.png';
	notmissin();
	}

	if(category==6&&selected_food==5){
	food_header='PÍTA með<br />KJÚKLINGA<br />BRINGU';
	food_description='með gúrku, papriku, iceberg og pítusósu';
	food_price='1085';
	food_image='pitur/kjuklingabringu.png';
	notmissin();
	}
	
/* SAMLOKUR */

	if(category==7&&selected_food==1){
	food_header='RISTUÐ SAMLOKA';
	food_description='með skinku, osti og sósu';
	food_price='655';
	food_image='samlokur/ristud.png';
	notmissin();
	}
	
	if(category==7&&selected_food==2){
	food_header='CALIFORNIA STYLE';
	food_description='með kjúklingi, beikoni, gúrku, iceberg og lemon majónesi';
	food_price='855';
	food_image='samlokur/california.png';
	notmissin();
	}

	if(category==7&&selected_food==3){
	food_header='SAMLOKA<br />með SKINKU & GRÆNMETI';
	food_description='með osti, gúrku, papriku, lauk, iceberg og sósu';
	food_price='745';
	food_image='samlokur/skinka.png';
	notmissin();
	}
	
	if(category==7&&selected_food==4){
	food_header='BEIKON SAMLOKA';
	food_description='með eggi, lauk og sósu';
	food_price='795';
	food_image='samlokur/beikon.png';
	notmissin();
	}
	
	if(category==7&&selected_food==5){
	food_header='GRÆNMETIS SAMLOKA';
	food_description='með pönnusteiktum lauk, sveppum, gúrku, papriku, iceberg og grænmetissósu';
	food_price='695';
	food_image='samlokur/graenmetis.png';
	notmissin();
	}
	
	if(category==7&&selected_food==6){
	food_header='STYLE CLUB SAMLOKA';
	food_description='með skinku, osti, kryddi, beikoni, iceberg, gúrku, papriku, rauðlauk og sósu';
	food_price='855';
	food_image='samlokur/style-club.png';
	notmissin();
	}
	
	if(category==7&&selected_food==7){
	food_header='STEIKAR SAMLOKA';
	food_description='með nautakjöti, rauðlauk, salatmixi, gúrku og sósu';
	food_price='955';
	food_image='samlokur/steikar.png';
	notmissin();
	}

/* HEALTHY STYLE */

	if(category==8&&selected_food==1){
	food_header='KJÚKLINGA<br />SALAT';
	food_description='<span style=font-size:16px;>kjúklingalundir, fetaostur, kryddaðir brauðteningar, paprika, ferskt salat og rauðlaukur. Borið fram með hunangssinnepssósu.</span>';
	food_price='1595';
	food_image='healthystyle/kjuklingasalat.png';
	notmissin();
	}

	if(category==8&&selected_food==2){
	food_header='STEIKAR<br />SALAT';
	food_description='<span style=font-size:16px;>Sneiðar af ungnautakjöti, paprika, ferskt salat, rauðlaukur og brauðteningar. Borið fram með kóríander og lime dressingu.</span>';
	food_price='1595';
	food_image='healthystyle/steikarsalat.png';
	notmissin();
	}
	
	if(category==8&&selected_food==3){
	food_header='SALAT & JACKET<br />POTATO';
	food_description='salatmix, gúrka, paprika, brauðteningar, rauðlaukur og bökuð kartafla með kotasælu';
	food_price='1095';
	food_image='healthystyle/salat-og-jacket-potato.png';
	notmissin();
	}

	if(category==8&&selected_food==4){
	food_header='HAMBORGARI';
	food_description='án sósu, með bakaðri kartöflu og fersku salati';
	food_price='1195';
	food_image='healthystyle/hamborgari.png';
	notmissin();
	}

	if(category==8&&selected_food==5){
	food_header='KJÚKLINGA<br />BRINGA';
	food_description='með sósu, bakaðri kartöflu og fersku salati';
	food_price='1695';
	food_image='healthystyle/kjuklingabringa.png';
	notmissin();
	}

/* KRAKKAMATSEÐILL */

	if(category==9&&selected_food==1){
	food_header='SAMLOKA';
	food_description='með frönskum & drykk.<br /><span style=font-size:14px;>Hægt er að fá bakaða kartöflu í staðinn fyrir franskar. Barnamáltíðum fylgir drykkur að eigin vali.</span>';
	food_price='895';
	food_image='krakkamatsedill/samloka.png';
	notmissin();
	}

	if(category==9&&selected_food==2){
	food_header='BARNA<br />BORGARI';
	food_description='með frönskum & drykk.<br /><span style=font-size:14px;>Hægt er að fá bakaða kartöflu í staðinn fyrir franskar. Barnamáltíðum fylgir drykkur að eigin vali.</span>';
	food_price='895';
	food_image='krakkamatsedill/barnaborgari.png';
	notmissin();
	}

	if(category==9&&selected_food==3){
	food_header='FISKUR';
	food_description='með frönskum & drykk.<br /><span style=font-size:14px;>Hægt er að fá bakaða kartöflu í staðinn fyrir franskar. Barnamáltíðum fylgir drykkur að eigin vali.</span>';
	food_price='895';
	food_image='krakkamatsedill/fiskur.png';
	notmissin();
	}

	if(category==9&&selected_food==4){
	food_header='BARNAPÍTA<br />með BUFFI';
	food_description='með frönskum & drykk.<br /><span style=font-size:14px;>Hægt er að fá bakaða kartöflu í staðinn fyrir franskar. Barnamáltíðum fylgir drykkur að eigin vali.</span>';
	food_price='895';
	food_image='krakkamatsedill/barnapita.png';
	notmissin();
	}

	if(category==9&&selected_food==5){
	food_header='KJÚKLINGA<br />NAGGAR';
	food_description='með frönskum & drykk.<br /><span style=font-size:14px;>Hægt er að fá bakaða kartöflu í staðinn fyrir franskar. Barnamáltíðum fylgir drykkur að eigin vali.</span>';
	food_price='895';
	food_image='krakkamatsedill/kjuklinganaggar.png';
	notmissin();
	}

	if(category==9&&selected_food==6){
	food_header='NAUTAHAKKS<br />BOLLUR';
	food_description='með frönskum & drykk.<br /><span style=font-size:14px;>Hægt er að fá bakaða kartöflu í staðinn fyrir franskar. Barnamáltíðum fylgir drykkur að eigin vali.</span>';
	food_price='895';
	food_image='krakkamatsedill/nautahakksbollur.png';
	notmissin();
	}

	if(category==9&&selected_food==7){
	food_header='KJÚKLINGA<br />BRINGA';
	food_description='með frönskum & drykk.<br /><span style=font-size:14px;>Hægt er að fá bakaða kartöflu í staðinn fyrir franskar. Barnamáltíðum fylgir drykkur að eigin vali.</span>';
	food_price='895';
	food_image='krakkamatsedill/kjuklingabringa.png';
	notmissin();
	}

	if(category==9&&selected_food==8){
	food_header='BARNA<br />LEIKFÖNG';
	food_description=':)';
	food_price='350';
	food_image='blank.png';
	missin();
	}

/* FORRÉTTUR */

	if(category==10&&selected_food==1){
	food_header='BUFFALO<br />STYLE<br />KJÚKLINGA<br />LUNDIR';
	food_description='með gúrku og sósu';
	food_price='895';
	food_image='forrettur/kjuklingalundir.png';
	notmissin();
	}

/* DRYKKIR */

	if(category==11&&selected_food==1){
	food_header='GOSGLAS';
	food_description='50 cl, frí áfylling';
	food_price='275';
	food_image='drykkir/cokeglas.png';
	notmissin();
	}

	if(category==11&&selected_food==2){
	food_header='TRÓPÍ<br />KÓKÓMJÓLK';
	food_description='';
	food_price='165';
	food_image='drykkir/tropikokomjolk.png';
	notmissin();
	}

	if(category==11&&selected_food==3){
	food_header='KAFFI';
	food_description='';
	food_price='245';
	food_image='drykkir/kaffi.png';
	notmissin();
	}

	if(category==11&&selected_food==4){
	food_header='CARLSBERG<br />BJÓR';
	food_description='33 cl, 4,5% / 50 cl, 4,5%';
	food_price='795/895';
	food_image='drykkir/carlsbergflaska.png';
	notmissin();
	}

	if(category==11&&selected_food==5){
	food_header='THULE<br />BJÓR';
	food_description='50 cl, 4,5%';
	food_price='895';
	food_image='drykkir/thuleflaska.png';
	notmissin();
	}

	if(category==11&&selected_food==6){
	food_header='VÍKING<br />PILSNER';
	food_description='33 cl, 2,25% ';
	food_price='295';
	food_image='drykkir/vikingglas.png';
	notmissin();
	}

	if(category==11&&selected_food==7){
	food_header='VÍKING<br />BJÓR';
	food_description='50 cl, 5,6% ';
	food_price='795';
	food_image='drykkir/vikingglas.png';
	notmissin();
	}

	if(category==11&&selected_food==8){
	food_header='RAUÐVÍN';
	food_description='18 cl ';
	food_price='895';
	food_image='blank.png';
	missin();
	}

	if(category==11&&selected_food==9){
	food_header='HVÍTVÍN';
	food_description='18 cl ';
	food_price='895';
	food_image='blank.png';
	missin();
	}

/* GJAFABRÉF */
	
	if(category==12&&selected_food==1){
	food_header='1500 GJAFABRÉF';
	food_description='Nánari upplýsingar á skrifstofu American Style í síma: 568-6836.';
	food_price='1500';
	food_image='gjafabref/gjafa-1500.png';
	notmissin();
	}

	if(category==12&&selected_food==2){
	food_header='3000 GJAFABRÉF';
	food_description='Nánari upplýsingar á skrifstofu American Style í síma: 568-6836.';
	food_price='3000';
	food_image='gjafabref/gjafa-3000.png';
	notmissin();
	}

	if(category==12&&selected_food==3){
	food_header='OSTBORGARA<br />MÁLTÍÐ<br />GJAFABRÉF';
	food_description='Nánari upplýsingar á skrifstofu American Style í síma: 568-6836.';
	food_price='1395';
	food_image='gjafabref/gjafa-ost.png';
	notmissin();
	}

	if(category==12&&selected_food==4){
	food_header='BARNA<br />MÁLTÍÐ<br />GJAFABRÉF';
	food_description='Nánari upplýsingar á skrifstofu American Style í síma: 568-6836.';
	food_price='895';
	food_image='gjafabref/gjafa-barna.png';
	notmissin();
	}

	if(category==12&&selected_food==5){
	food_header='HEALTHY<br />STYLE<br />GJAFABRÉF';
	food_description='Nánari upplýsingar á skrifstofu American Style í síma: 568-6836.';
	food_price='1695';
	food_image='gjafabref/gjafa-healthy.png';
	notmissin();
	}

	document.getElementById('food-txt-header').innerHTML = food_header;
	document.getElementById('food-txt-description').innerHTML = food_description;
	document.getElementById('food-txt-price-numbers').innerHTML = food_price;
	//var replacing_image=document.getElementById('food');
	//replacing_image.setAttribute("style","background: url('img/"+food_image+"') no-repeat bottom;");
	document.getElementById('food-img').src = "img/"+food_image;
	//document.getElementById('whereiam').innerHTML = ct+','+fd;
	if(navigator.userAgent.search(/msie/i)!= -1){
		//hdmalt();
		if(ct==12){document.getElementById('logo').style.display='none';}else{document.getElementById('logo').style.display='block';}
	}
}

function shwnxt(){
	if(!ct){cnt(1,1);}else
	if(ct==1&&fd==20){cnt(2,1);}else
	if(ct==2&&fd==19){cnt(3,1);}else
	if(ct==3&&fd==1){cnt(4,1);}else
	if(ct==4&&fd==1){cnt(5,1);}else
	if(ct==5&&fd==1){cnt(6,1);}else
	if(ct==6&&fd==5){cnt(7,1);}else
	if(ct==7&&fd==7){cnt(8,1);}else
	if(ct==8&&fd==2){cnt(9,1);}else
	if(ct==9&&fd==8){cnt(10,1);}else
	if(ct==10&&fd==1){cnt(11,1);}else
	if(ct==11&&fd==9){cnt(12,1);}else
	if(ct==12&&fd==5){cnt(1,1);}else{cnt(ct,fd+1);}
}

function shwprv(){
	if(!ct){cnt(12,5);}else
	if(ct==1&&fd==1){cnt(12,5);}else
	if(ct==2&&fd==1){cnt(1,20);}else
	if(ct==3&&fd==1){cnt(2,19);}else
	if(ct==4&&fd==1){cnt(3,1);}else
	if(ct==5&&fd==1){cnt(4,1);}else	
	if(ct==6&&fd==1){cnt(5,1);}else
	if(ct==7&&fd==1){cnt(6,5);}else
	if(ct==8&&fd==1){cnt(7,7);}else
	if(ct==9&&fd==1){cnt(8,2);}else
	if(ct==10&&fd==1){cnt(9,8);}else
	if(ct==11&&fd==1){cnt(10,1);}else
	if(ct==12&&fd==1){cnt(11,9);}else{cnt(ct,fd-1);}
}

function rndmfood(){
	var pickanumber=Math.floor(Math.random()*20)+1;
	if(pickanumber>=20){pickanumber=1;}
	//pickanumber=3;
	cnt(1,pickanumber);
}

function missin(){
	document.getElementById('missing-image').style.display='block';
}

function notmissin(){
	document.getElementById('missing-image').style.display='none';
}

function shw(selected_submenu){
	hdfoot();
	document.getElementById('sub-menu-'+selected_submenu).style.display='block';
	document.getElementById('m'+selected_submenu).setAttribute("style","font-family: 'ITCAmericanTypewriterBdCondA'; font-size: 30px; color: #ff0000; padding: 0px 24px 12px 0px; background: url('img/blacky-arrow.png') no-repeat right; cursor: default;");
}

function hd(selected_submenu){
	document.getElementById('sub-menu-'+selected_submenu).style.display='none';
	document.getElementById('m'+selected_submenu).setAttribute("style","font-family: 'ITCAmericanTypewriterCondA'; font-size: 18px; color: #ffffff; padding: 0px 24px 4px 0px;");
}

function shwfoot(selected_footer){
	hdfoot();
	document.getElementById('footer-'+selected_footer).style.display='block';
	if(selected_footer=="2"||selected_footer=="6"||selected_footer=="7"){document.getElementById('footer-link-'+selected_footer).setAttribute("style","font-family: 'ITCAmericanTypewriterBdCondA'; font-size: 17px; color: #ff0000; cursor: hand;");}else
	if(selected_footer=="8"){document.getElementById('footer-link-8').setAttribute("style","font-family: 'ITCAmericanTypewriterBdCondA'; font-size: 14px; color: #ff0000; cursor: default; left: 314px;");document.getElementById('footer-opening-hours').innerHTML = "Alla aðra daga er opið 11:00 - 23:00";}else
	{document.getElementById('footer-link-'+selected_footer).setAttribute("style","font-family: 'ITCAmericanTypewriterBdCondA'; font-size: 17px; color: #ff0000; cursor: default;");}
	if(selected_footer=="1"||selected_footer=="2"){document.getElementById('footer-link-8').setAttribute("style","left: 354px;");}
	if(selected_footer=="3"){document.getElementById('footer-link-8').setAttribute("style","display: none;");}
	if(selected_footer=="4"||selected_footer=="5"||selected_footer=="7"){document.getElementById('footer-link-8').setAttribute("style","left: 332px;");}
	if(selected_footer=="6"){document.getElementById('footer-link-8').setAttribute("style","left: 340px;");}
}

function hdfoot(){
	document.getElementById('footer-1').style.display='none';
	document.getElementById('footer-2').style.display='none';
	document.getElementById('footer-3').style.display='none';
	document.getElementById('footer-4').style.display='none';
	document.getElementById('footer-5').style.display='none';
	document.getElementById('footer-6').style.display='none';
	document.getElementById('footer-7').style.display='none';
	//document.getElementById('footer-8').style.display='none';
	document.getElementById('footer-link-1').setAttribute("style","font-family: 'ITCAmericanTypewriterCondA'; font-size: 13px; color: #ffffff;");
	document.getElementById('footer-link-2').setAttribute("style","font-family: 'ITCAmericanTypewriterCondA'; font-size: 13px; color: #ffffff;");
	document.getElementById('footer-link-3').setAttribute("style","font-family: 'ITCAmericanTypewriterCondA'; font-size: 13px; color: #ffffff;");
	document.getElementById('footer-link-4').setAttribute("style","font-family: 'ITCAmericanTypewriterCondA'; font-size: 13px; color: #ffffff;");
	document.getElementById('footer-link-5').setAttribute("style","font-family: 'ITCAmericanTypewriterCondA'; font-size: 13px; color: #ffffff;");
	document.getElementById('footer-link-6').setAttribute("style","font-family: 'ITCAmericanTypewriterCondA'; font-size: 13px; color: #ffffff;");
	document.getElementById('footer-link-7').setAttribute("style","font-family: 'ITCAmericanTypewriterCondA'; font-size: 13px; color: #ffffff;");
	//document.getElementById('footer-link-8').setAttribute("style","font-family: 'ITCAmericanTypewriterCondA'; font-size: 12px; color: #ffffff; display: block; left: 345px;");
	//document.getElementById('footer-opening-hours').innerHTML = "Opið alla daga 11:00 - 23:00";
}

if(navigator.userAgent.search(/msie/i)!= -1){

	function shwmalt(){
		document.getElementById('maltid-manadarins').style.display='block';
		document.getElementById('maltid-manadarins-small').style.display='none';
	}

	function hdmalt(){
		document.getElementById('maltid-manadarins').style.display='none';
		document.getElementById('maltid-manadarins-small').style.display='block';
	}
}

function litabok(){
	window.open('pdf/litabok.pdf','_blank');
}

function share() {
	newwindow=window.open('http://www.facebook.com/sharer/sharer.php?u=http%3A%2F%2Famericanstyle.is%2F','fb-popup-window','width=500,height=350,top=200,left=400,scrollbars=yes');
	if (window.focus) {newwindow.focus()}
}
