// tabledeleterow.js version 1.2 2006-02-21
// mredkj.com

// CONFIG notes. Below are some comments that point to where this script can be customized.
// Note: Make sure to include a <tbody></tbody> in your table's HTML

var INPUT_NAME_PREFIX = 'inputName'; // this is being set via script
var RADIO_NAME = 'totallyrad'; // this is being set via script
var TABLE_NAME = 'varukorg_table'; // this should be named in the HTML
var ROW_BASE = 2 ; // first number (for display)   var 5
var TOTAL_SUM = 0; 
var CHECK_BOX='checkbox';

var kassa=0;



function sum(){
//var summa=0;
//alert("sum....")
var summa=document.getElementById('summa');
summa.innerText=TOTAL_SUM+" kr";

//((var total_sum1=document.getElementById('total_sum');
//alert(total_sum)
//total_sum.value="45";
//document.all['total_sum'].value ="1"
//document.form1.total_sum.value ="Got you..."
//document.all.form1.total_sum.value ="Got you..."
document.all.form1.total_sum.value = TOTAL_SUM;   //works ....
//document.form1.total_sum.value ="Got you..."
//document.myForm.hidden.value 




//alert("summan= "+summa.sum);

/*var tbl = document.getElementById('varukorg_table');
var length=tbl.tBodies[0].rows.length
alert("length...."+length)
		for (var i=0; k<=tbl.tBodies[0].rows.length; i++) {
		     
		     alert("produkt="+document.getElementById("checkbox"+i).produkt+"    i="+i);
			 
		}
		*/
}

function validate1(e,obj,Limit){

var unicode=e.charCode? e.charCode : e.keyCode;
obj.focus();
//var actualkey=String.fromCharCode(unicode)
//if (actualkey=="a")

obj.value = obj.value.replace(/[^0-9]/g,"");
if (unicode!=8){ //if the key isn't the backspace key (which we should allow)
	if (unicode<48||unicode>57) //if not a number, 48 to 57 represents the keycode of the numeric keys
		return false; //disable key press
	if(obj.value / 1 > Limit || obj.value / 1 <= 0){
	// the || means or.
	// we check if the number is 0 or less, the less part is not esential
	// but it's safer to keep it incase you edit it at a later date.

	//obj.value=1;// asign a value of 1
	alert("You must enter a number between 1 and 20.");
	obj.value='';
	}
}
/*alert(obj.value);

var b=products[product_index+4][1];
var a=obj.value;
var c=b*a;
*/

}

function validate(e,obj,Limit,product_index){

var unicode=e.charCode? e.charCode : e.keyCode;
obj.focus();
//var actualkey=String.fromCharCode(unicode)
//if (actualkey=="a")

obj.value = obj.value.replace(/[^0-9]/g,"");
if (unicode!=8){ //if the key isn't the backspace key (which we should allow)
	if (unicode<48||unicode>57) //if not a number, 48 to 57 represents the keycode of the numeric keys
		return false; //disable key press
	if(obj.value / 1 > Limit || obj.value / 1 <= 0){
	// the || means or.
	// we check if the number is 0 or less, the less part is not esential
	// but it's safer to keep it incase you edit it at a later date.

	//obj.value=1;// asign a value of 1
	alert("You must enter a number between 1 and 20.");
	obj.value='';
	}
}
/*alert(obj.value);

var b=products[product_index+4][1];
var a=obj.value;
var c=b*a;
*/


TOTAL_SUM=TOTAL_SUM+produkter[product_index][1]*obj.value; // [1] refererar till pris, obj.value=det som är skrivet i textfield
sum();

}

// CONFIG:
// myRowObject is an object for storing information about the table rows
function myRowObject(one, two, three, four)
{
	this.one = one; // text object
	this.two = two; // input text object
	this.three = three; // input checkbox object
	this.four = four; // input radio object
}

var dwin = null;
function open_debug_window(show){
   if(show==true){
	  dwin = window.open("","debugconsole","scrollbars=yes,resizable=yes,height=100,width=300");
      dwin.document.open("text/html", "replace");
   }
} 

function debug(msg) {
    /*if ((dwin == null) || (dwin.closed)) {
      dwin = window.open("","debugconsole","scrollbars=yes,resizable=yes,height=100,width=300");
      dwin.document.open("text/html", "replace");
    }*/
    dwin.document.writeln('<br/>'+msg);
    dwin.scrollTo(0,10000);
    dwin.focus();
    // dwin.document.close();  // uncomment this if you want to see only last message , not all the previous messages
}
/*
 * addRowToTable
 * Inserts at row 'num', or appends to the end if no arguments are passed in. Don't pass in empty strings.
 */
function addRowToTable(num,product_index,text_field_name)
{
	//document.getElementById("antal_2").value
	
	//debug("textfield_name=  "+text_field_name)
	//debug("value= "+document.getElementById(text_field_name).value)
	//alert(text_field_name)
	//alert(document.getElementById(text_field_name).value);   //ger antalet i textboxen som har id=text_field_name
	
	//if (hasLoaded) {
		//alert("entering addRowToTable....")
		var tbl = document.getElementById(TABLE_NAME);
		var nextRow = tbl.tBodies[0].rows.length;
		var iteration = nextRow + ROW_BASE;
		if (num == null) { 
			num = nextRow-11;  // -1 center products in table
		} else {
			iteration = num + ROW_BASE;
		}
		//num+=1;
		// add the row
		var row = tbl.tBodies[0].insertRow(num);
		
		// CONFIG: requires classes named classy0 and classy1
		//row.className = 'classy' + (iteration % 2);
	
		// CONFIG: This whole section can be configured
		
		// cell 0 - tex Tandblekning  Pris:345 kr 
		
		var cell0 = row.insertCell(0);
		var label=document.createElement('label')
		label.setAttribute('className','style21');
		//label.setAttribute('type', 'text');
		//label.setAttribute('name',products[product_index+4][0]);
		//label.name="sugar....";
		//label.innerText="Artikel: "+produkter_name[product_index]+"Antal ";
		
		label.innerText=produkter_name[product_index];
		
		//label.id="You are so punked .....";
		
		//label.name="sugar...."
		
		//alert(label.innerText)
		cell0.appendChild(label);
		
		/*var imgSrc1=document.createElement('img')
		imgSrc1.src=produkter_pics[product_index];*/
		
			
		//cell0.innerHTML ="<td className='style18' >Sugar... </td>"
		
		/*imgSrc1.src=products[product_index][0];   Fungerade.....
		cell0.appendChild(imgSrc1);*/
		//imgSrc.width=111;
		//imgSrc.height=107;

        
		
		var cell1 = row.insertCell(1);  //Insert dummy cell
		
		// cell 1 - input text  Antal: skriv in antal .....
		var cell2 = row.insertCell(2);
		//<font face="arial, helvetica" size=2>Roses</font>
		/*Style style = cell1.getStyle();
        Font font = style.getFont();
		font.setName("Times New Roman");
        cell.setStyle(style);*/ 
		
		//<font face="Arial">
		
		var label1=document.createElement('label')
		label1.setAttribute('className','style21');
		//label1.innerText=antal;
		label1.innerText=document.getElementById(text_field_name).value
		label1.id="label on row"+num;
		cell2.appendChild(label1);
		/*var txtInp = document.createElement('input');
		txtInp.setAttribute('type', 'text');
		**txtInp.setAttribute('name',products[product_index+4][0]); // INPUT_NAME_PREFIX + iteration);
		txtInp.setAttribute('name',produkter_name[product_index]);
		**alert(products[product_index+4][0]);
		txtInp.id="antal"+num;
		
		**alert("TOTAL_SUM = "+TOTAL_SUM);
		txtInp.setAttribute('size', '2');
		txtInp.onkeyup=function () {validate(event,this,20,product_index)};
		**txtInp.setAttribute('font', 'Times New Roman');
		txtInp.setAttribute('className','style18'); //Obs danne class funkar inte måste vara className
		
		cell2.appendChild(txtInp);*/
		
		
		
		
		
		//Setting the font name to "Times New Roman"
 
 

		//<strong><span class="style2">1235</span></strong>
		//oCell.innerHTML = "<img src="bild003.png">";
		//cell1.innerHTML ="<strong><span class='style18'>12</span></strong>";
		//cell1.innerHTML="<input name='textfield' type='text' class='style18' height='16' onkeyup='function(){validate(event,this,20)}'/>";
		//cell1.innerHTML="<input name='textfield' type='text' class='style18' height='16' onkeyup='validate(event,this,20)'/>";
		
		/*
		
		var tt=products[product_index][0];
		
		cell1.innerHTML="<input name=textfield type='text' class='style18' height='16' onkeyup='validate(event,this,20)'/>";
		
		*/
		
		
		//
		//txtInp.onkeyup=function () {validate(event,this,20)};
		//textfield.onkeyup=function () {validate(event,this,20)};
		//txtInp.setAttribute('value', iteration); // iteration included for debug purposes
		//cell1.appendChild(txtInp);
		
		/* or ....
		var cell1 = row.insertCell(1);
  		var txtInp = document.createElement('input');
  		txtInp.type = 'text';
  		txtInp.name = 'txtRow' + iteration;
  		txtInp.id = 'txtRow' + iteration;
  		txtInp.size = 10;
		cell1.appendChild(txtInp);
		*/
		
		var cell3 = row.insertCell(3);  // Insert dummy cell...
		
		// cell 4 - insert dummy cell ...
		
		var cell4 = row.insertCell(4);
		
		/*var imgSrc2=document.createElement('img')
		imgSrc2.src=dynimages[38][0];  // Ta bort 
        cell4.appendChild(imgSrc2);*/
		
		//var str="checkbox"+num;
		// cell 3 - input checkbox when click remove this row
		//var cell3 = row.insertCell(4);
		
		// Ta bort checkbox 
		
		var cbEl = document.createElement('input');
		cbEl.setAttribute('type','checkbox');  //var 'checkbox'
		cbEl.pris=products[product_index][1];   // Pris = ...
        cbEl.id="checkbox"+num;
        cbEl.produkt=products[product_index][0];   // Produkt= ....
		
		cbEl.onclick = function () {deleteCurrentRow(this,num,product_index)};
		cell4.appendChild(cbEl);
		
		TOTAL_SUM=TOTAL_SUM+produkter[product_index][1]*document.getElementById(text_field_name).value;
		sum();
		
		var hidden_input = document.createElement('input');
  		hidden_input.type = "hidden";
  		hidden_input.name = "Artikel:     "+produkter_name[product_index];
  		//hidden_input.id = "id"+num;
  		hidden_input.value="  "+document.getElementById(text_field_name).value;
		
		cell4.appendChild(hidden_input);
		
		//<input name="Subject" type="hidden" id="Subject" value="Produkt Order" />
		
		// Pass in the elements you want to reference later
		// Store the myRow object in each row
	//	row.myRow = new myRowObject(imgSrc1, textfield , imgSrc2, cbEl);
	//}
	//alert("leaving addRowToTable....")
}
function deleteRows(rowObjArray)
{
	//if (hasLoaded) {
		for (var i=0; i<rowObjArray.length; i++) {
			var rIndex = rowObjArray[i].sectionRowIndex;
			rowObjArray[i].parentNode.deleteRow(rIndex);
			
		}
	//}
}
// If there isn't an element with an onclick event in your row, then this function can't be used.
function deleteCurrentRow(obj,num,product_index)
{ 
    //alert("Entering deletCurrentRow()...  obj= "+obj);
	
	//objec=obj.parentNode.parentNode;
	
	//if (hasLoaded) {
		
	/* var antal = document.getElementById("antal"+num);	
	TOTAL_SUM=TOTAL_SUM-products[product_index+4][1]*antal.value; fungerar också..... */
	
	/*TOTAL_SUM=TOTAL_SUM-produkter[product_index][1]*document.getElementById("antal"+num).value;
	sum();*/   
	
	TOTAL_SUM=TOTAL_SUM-produkter[product_index][1]*document.getElementById("label on row"+num).innerText;
	//alert(document.getElementById("label on row"+num).innerText)
	sum();
	
	//var summa=document.getElementById('summa');
    //summa.innerText=""
	
	//alert("TOTAL_SUM = "+TOTAL_SUM);
	//alert("Entering deletCurrentRow()...  obj= "+obj);
	//alert("produkt="+document.getElementById("checkbox"+num).produkt+"    num="+num); // fungerar...
	
		var delRow = obj.parentNode.parentNode;
		var tbl = delRow.parentNode.parentNode;
		var rIndex = delRow.sectionRowIndex;
		var rowArray = new Array(delRow);
		deleteRows(rowArray);
		reorderRows(tbl, rIndex);
	//alert("Exit deletCurrentRow()...")
	//}
}

function reorderRows(tbl, startingIndex)
{
	//if (hasLoaded) {
		if (tbl.tBodies[0].rows[startingIndex]) {
			var count = startingIndex + ROW_BASE;
			
			for (var i=startingIndex; i<tbl.tBodies[0].rows.length; i++) {
			   // alert("startingIndex=  "+startingIndex+" tbl.tBodies[0].rows.length = "+tbl.tBodies[0].rows.length+" i= "+i);
				// CONFIG: next line is affected by myRowObject settings
			//	tbl.tBodies[0].rows[i].myRow.one.data = count; // text
				
				// CONFIG: next line is affected by myRowObject settings
				//tbl.tBodies[0].rows[i].myRow.two.name = INPUT_NAME_PREFIX + count; // input text
				
				// CONFIG: next line is affected by myRowObject settings
				//var tempVal = tbl.tBodies[0].rows[i].myRow.two.value.split(' '); // for debug purposes
				//tbl.tBodies[0].rows[i].myRow.two.value = count + ' was' + tempVal[0]; // for debug purposes
				
				// CONFIG: next line is affected by myRowObject settings
				//tbl.tBodies[0].rows[i].myRow.four.value = count; // input radio
				
				tbl.tBodies[0].rows[i].myRow.four.value =tbl.tBodies[0].rows[i].myRow.four.produkt;
				// CONFIG: requires class named classy0 and classy1
				//tbl.tBodies[0].rows[i].className = 'classy' + (count % 2);
				
				count++;
				
			}
			/*alert("sdfsa 1");
			for (i=startingIndex; i<tbl.tBodies[0].rows.length; i++) {
				alert("sdfsa 2");
				alert("i=  "+i+"    tbl.tBodies[0].rows.length=   "+tbl.tBodies[0].rows.length);
				alert("produkt=  "+tbl.tBodies[0].rows[i].myRow.four.produkt);

			}*/
		}
	//}
}
//var hasLoaded = false;

//window.onload=fillInRows;

/*function fillInRows()
{
	hasLoaded = true;
	addRowToTable();
	addRowToTable();
}
*/

/*
 * insertRowToTable
 * Insert and reorder
 */
/*function insertRowToTable()
{
	if (hasLoaded) {
		var tbl = document.getElementById(TABLE_NAME);
		var rowToInsertAt = tbl.tBodies[0].rows.length;
		for (var i=0; i<tbl.tBodies[0].rows.length; i++) {
			if (tbl.tBodies[0].rows[i].myRow && tbl.tBodies[0].rows[i].myRow.four.getAttribute('type') == 'radio' && tbl.tBodies[0].rows[i].myRow.four.checked) {
				rowToInsertAt = i;
				break;
			}
		}
		addRowToTable(rowToInsertAt);
		reorderRows(tbl, rowToInsertAt);
	}
}
*/
// CONFIG: this entire function is affected by myRowObject settings
// If there isn't a checkbox in your row, then this function can't be used.
/*function deleteChecked()
{
	if (hasLoaded) {
		var checkedObjArray = new Array();
		var cCount = 0;
	
		var tbl = document.getElementById(TABLE_NAME);
		for (var i=0; i<tbl.tBodies[0].rows.length; i++) {
			if (tbl.tBodies[0].rows[i].myRow && tbl.tBodies[0].rows[i].myRow.three.getAttribute('type') == 'checkbox' && tbl.tBodies[0].rows[i].myRow.three.checked) {
				checkedObjArray[cCount] = tbl.tBodies[0].rows[i];
				cCount++;
			}
		}
		if (checkedObjArray.length > 0) {
			var rIndex = checkedObjArray[0].sectionRowIndex;
			deleteRows(checkedObjArray);
			reorderRows(tbl, rIndex);
		}
	}
}
*/
/*


function openInNewWindow(frm)
{
	// open a blank window
	var aWindow = window.open('', 'TableAddRow2NewWindow',
	'scrollbars=yes,menubar=yes,resizable=yes,toolbar=no,width=400,height=400');
	
	// set the target to the blank window
	frm.target = 'TableAddRow2NewWindow';
	
	// submit
	frm.submit();
}
*/
function roll_over(image, img_src)
{
   image.src = img_src;
}


/*
Gradual-Highlight Image Script II- 
By J. Mark Birenbaum (birenbau@ugrad.cs.ualberta.ca)
Permission granted to Dynamicdrive.com to feature script in archive
For full source to script, visit http://dynamicdrive.com
*/

nereidFadeObjects = new Object();
nereidFadeTimers = new Object();

/* object - image to be faded (actual object, not name);
 * destop - destination transparency level (ie 80, for mostly solid)
 * rate   - time in milliseconds between trasparency changes (best under 100)
 * delta  - amount of change each time (ie 5, for 5% change in transparency)
 */

function nereidFade(object, destOp, rate, delta){
if (!document.all)
return
    if (object != "[object]"){  //do this so I can take a string too
        setTimeout("nereidFade("+object+","+destOp+","+rate+","+delta+")",0);
        return;
    }
        
    clearTimeout(nereidFadeTimers[object.sourceIndex]);
    
    diff = destOp-object.filters.alpha.opacity;
    direction = 1;
    if (object.filters.alpha.opacity > destOp){
        direction = -1;
    }
    delta=Math.min(direction*diff,delta);
    object.filters.alpha.opacity+=direction*delta;

    if (object.filters.alpha.opacity != destOp){
        nereidFadeObjects[object.sourceIndex]=object;
        nereidFadeTimers[object.sourceIndex]=setTimeout("nereidFade(nereidFadeObjects["+object.sourceIndex+"],"+destOp+","+rate+","+delta+")",rate);
    }
}
function Fade(objID,CurrentAlpha,TargetAlpha,steps){
        
		var obj = document.getElementById(objID);
		// convert all characters to lowercase to simplify testing
        var agt=navigator.userAgent.toLowerCase();

		var is_gecko = (agt.indexOf('gecko') != -1);

		if(is_gecko){
         
		CurrentAlpha = parseInt(CurrentAlpha);
		if (isNaN(CurrentAlpha)){
			CurrentAlpha = parseInt(obj.style.opacity*100);
			if (isNaN(CurrentAlpha))CurrentAlpha=100;
		}
		
		
		
		var DeltaAlpha=parseInt((CurrentAlpha-TargetAlpha)/steps);
		var NewAlpha = CurrentAlpha - DeltaAlpha;
		
		if (NewAlpha == 100 && (navigator.userAgent.indexOf('Gecko') != -1 && navigator.userAgent.indexOf('Safari') == -1)) NewAlpha = 99.999;
		
		obj.style.opacity = (NewAlpha / 100);
		obj.style.MozOpacity = obj.style.opacity;
		obj.style.KhtmlOpacity = obj.style.opacity;
		obj.style.filter = 'alpha(opacity='+NewAlpha+')';
		
		if (steps>1){
			setTimeout('Fade("'+objID+'",'+NewAlpha+','+TargetAlpha+','+(steps-1)+')', 50);
		}
		}
		else
		   nereidFade(obj,TargetAlpha,50,steps);
}
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function MM_callJS(jsStr) { //v2.0
  return eval(jsStr)
}

function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}
function initImage() {
  imageId = 'salong';
  image = document.getElementById(imageId);
  setOpacity(image, 0);
  image.style.visibility = 'visible';
  fadeIn(imageId,0);
}
/*
The setOpacity function is passed an object and an opacity value. It then sets the opacity of the supplied object using four proprietary ways. It also prevents a flicker in Firefox caused when opacity is set to 100%, by setting the value to 99.999% instead.
*/
function setOpacity(obj, opacity) {
  opacity = (opacity == 100)?99.999:opacity;
  
  // IE/Win
  obj.style.filter = "alpha(opacity:"+opacity+")";
  
  // Safari<1.2, Konqueror
  obj.style.KHTMLOpacity = opacity/100;
  
  // Older Mozilla and Firefox
  obj.style.MozOpacity = opacity/100;
  
  // Safari 1.2, newer Firefox and Mozilla, CSS3
  obj.style.opacity = opacity/100;
}

/*The fadeIn function uses a Timeout to call itself every 100ms with an object Id and an opacity. The opacity is specified as a percentage and increased 10% at a time. The loop stops once the opacity reaches 100%:*/

function fadeIn(objId,opacity) {
 
  if (document.getElementById) {
    obj = document.getElementById(objId);
    if (opacity <= 100) {
      setOpacity(obj, opacity);
      opacity += 10;
      window.setTimeout("fadeIn('"+objId+"',"+opacity+")", 100);
    }
  }
}
<!--
/***********************************************
* Image Thumbnail Viewer II script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* Visit http://www.dynamicDrive.com for hundreds of DHTML scripts
* This notice must stay intact for legal use
***********************************************/

//Specify image paths and optional link (set link to "" for no link):
var dynimages=new Array()

                                           //***************Salong*****************//
										   
dynimages[0]=["image013 325_215.png",""]   
dynimages[1]=["image001_325_215.png", ""]
dynimages[2]=["image003 325_215.png", ""]
dynimages[3]=["image005 325_215.png", ""]
dynimages[4]=["image007 325_215.png", ""]
dynimages[5]=["image009 325_215.png", ""]
dynimages[6]=["image011 325_215.png", ""]

								
//****************Spraytanning************************// 
								
dynimages[7]=["spraytanning_fore_efter_black_smaller.png", ""]  //  meny: information
dynimages[8]=["behandlingar_spraytanning.png", ""]              //  meny: behandlingar och priser
dynimages[9]=["beforeandafter.png", ""]                         //  meny: före/efter bilder
dynimages[10]=["vanliga_ fragor_spraytanning1.png", ""]          //  meny: vanliga frågor
dynimages[11]=["kommer snart.png", ""]                                          //  meny: produkter 

						 //***********Permanent IPL Hårborttagning*************//
						 
dynimages[12]=["infoIPL best.png", ""]     				// meny: Hårborttagning med IPL
dynimages[13]=["harborttagning priser.png", ""]                      // meny: Behandlingar och priser
dynimages[14]=["fore efter hairremoval.png", ""]                      // meny: Före/Efter Bilder
dynimages[15]=["konsultation skinrejuvination.png", ""]                      // meny: Konsultation
dynimages[16]=["hairremoval vanliga fragor.png", ""]     // meny: Vanliga Frågor
dynimages[17]=["kommer snart.png", ""]                      // meny: Vetenskapliga Studier
dynimages[18]=["kommer snart.png", ""]                      // meny: Betalningsalternativ
dynimages[19]=["erbjudande hairremoval.png", ""]                      // meny: Erbjudande

							//***********************Skinrejuvination med IPL**********************
							
dynimages[20]=["bestskinrejuvination.png", ""]              //meny: Skinrejuvination med IPL
dynimages[21]=["skinrejuvination priser.png", ""]                      //meny: Behandlingar och priser
dynimages[22]=["fore efter skinrejuvination.png", ""]                      //meny: Före/Efter Bilder
dynimages[23]=["konsultation skinrejuvination.png", ""]                      //meny: Konsultation
dynimages[24]=["skinrejuvination vanliga fragor.png", ""]   //meny: Vanliga Frågor 
dynimages[25]=["kommer snart.png", ""]						//meny: Vetenskapliga Studier
dynimages[26]=["kommer snart.png", ""]                      //meny: Betalningsalternativ 
dynimages[27]=["erbjudande skinrejuvination.png", ""]                      //meny: Erbjudande

					
//***************Ögonfransförlängning/Nagelförlängning****************

dynimages[28]=["fransforlangning info.png", ""]             //meny: Information
dynimages[29]=["fransforlangning beh o priser.png", ""]     //meny: Behandlingar och priser 
dynimages[30]=["fransforlangningskurs.png", ""]             //meny: Utbildning
dynimages[31]=["produkter_best1.png", ""]              //meny: Produkter
dynimages[32]=["vanliga fragor ogonfransforlangning.png", ""] //meny: Vanliga Frågor 
dynimages[33]=["kommer snart.png", ""]                      				//meny: Inspiration
dynimages[34]=["nagelforlangning info.jpg", ""]    	        //meny: Nagelförlängning Information 
dynimages[35]=["behandlingar o priser nagelforlangning.png", ""]  //meny: Behandlingar och Priser
dynimages[36]=["vanliga fragor nagelforlangning.png", ""]   //meny: Vanliga Frågor

                               //*******************Produkter*************************
						    
dynimages[37]=["erbjudande1.png", ""]
dynimages[38]=["tabell\tabort1.png", ""]
dynimages[39]=["tandblekning", "440"]
dynimages[40]=["sockerskrubb", "563"]
dynimages[41]=["sprayburk 1", "120"]
dynimages[43]=["sprayburk 2", "120"]
dynimages[44]=["sprayburk 3", "120"]
dynimages[45]=["sprayburk 4", "120"]
dynimages[46]=["Produkter 13 maj 07/tandblekning.jpg", ""]
dynimages[47]=["Produkter 13 maj 07/esunless.jpg", ""]
dynimages[48]=["Produkter 13 maj 07/allison.jpg", ""]
dynimages[49]=["Produkter 13 maj 07/get-fruity.jpg", ""]

//*************************************   Teisystem   *****************************************

dynimages[50]=["orebro/teisystem info.png", ""]   //meny: Vanliga Frågor

//**************************************Klippning Brynformning **************************************

dynimages[51]=["orebro/klippning brynformning info.png", ""]

//*************************************Borttagning av tatuering **************************************

dynimages[52]=["tatuering/info.png", ""]
dynimages[53]=["tatuering/priser.png", ""]
dynimages[54]=["tatuering/foreefter.png", ""]
dynimages[55]=["tatuering/erbjudande.png", ""]

//*************************************Blekning av tänder **************************************

dynimages[56]=["tandblekning/info.jpg", ""]
dynimages[57]=["tandblekning/priser.png", ""]
dynimages[58]=["tandblekning/foreefter.png", ""]
dynimages[59]=["tandblekning/erbjudande.png", ""]

//*************************************Franchise **************************************

dynimages[60]=["franchise/dokument view/franchise.png", ""]
dynimages[61]=["franchise/dokument view/behandlingar.png", ""]
dynimages[62]=["franchise/dokument view/utbildning.png", ""]
dynimages[63]=["franchise/dokument view/salongspaket.png", ""]
dynimages[64]=["franchise/dokument view/marknadsforing.png", ""]
dynimages[65]=["franchise/dokument view/support.png", ""]
dynimages[66]=["franchise/dokument view/franchisetagare.png", ""]
dynimages[67]=["franchise/dokument view/vinstberakning.png", ""]
dynimages[68]=["franchise/dokument view/almi.png", ""]

//************************************ Fusion  *******************************************

dynimages[69]=["fusion/info-1.png", ""]
dynimages[70]=["fusion/beh.png", ""]
dynimages[71]=["fusion/priser.png", ""]
dynimages[72]=["fusion/fragor-o-svar.png", ""]

//************************************ JUVEDERM ******************************************

dynimages[73]=["juvederm/info best.jpg", ""]
dynimages[74]=["juvederm/behandlingen.jpg", ""]
dynimages[75]=["juvederm/priser.jpg", ""]
dynimages[76]=["juvederm/fragor och svar.jpg", ""]

dynimages[77]=["coax/info.jpg", ""]
dynimages[78]=["coax/beh.jpg", ""]
dynimages[79]=["juvederm/priser.jpg", ""]
dynimages[80]=["coax/fragor o svar.jpg", ""]
dynimages[81]=["coax/fore efter.jpg", ""]



var products=new Array()

products[0]=["tabell/tandblekning.png","500"]     // produkt: sprayburk 1  Pris : 2 kr
products[1]=["tabell/sprayburk.png","300"]
products[2]=["tabell/peeling vantar.png","50"]
products[3]=["tabell/bodybutter.png","100"]
products[4]=["Tandblekning   Pris:  500 kr    Antal",500]
products[5]=["Sprayburk      Pris:  300 kr    Antal",300]
products[6]=["Peelingvantar  Pris:  50  kr    Antal",50]


var produkter=new Array()

produkter[0]=["Premium Kit    Pris:  2800 kr    Antal",2800]
produkter[1]=["Novalash Kit   Pris:  4300 kr    Antal",4300]
produkter[2]=["Fransar        Pris:  260  kr    Antal",260]
produkter[3]=["Novalashes     Pris:  340  kr    Antal",340]
produkter[4]=["Extreme Lashes Pris:  425  kr    Antal",425]
produkter[5]=["Hilton  Lashes Pris:  510  kr    Antal",510]
produkter[6]=["Extreme Lim    Pris:  1150 kr    Antal",1150]
produkter[7]=["Novalash Lim   Pris:  1050 kr    Antal",1050]
produkter[8]=["Stand. Remover Pris:  160  kr    Antal",160]
produkter[9]=["Pro Remover    Pris:  290  kr    Antal",290]
produkter[10]=["Mascara 0-19   Pris:  290  kr    Antal",290]
produkter[11]=["Mascara 20-49  Pris:  190  kr    Antal",190]
produkter[12]=["Mascara 50-100 Pris:  150  kr    Antal",150 ]
produkter[13]=["Long Life Ext  Pris:  340  kr    Antal",340]
produkter[14]=["Long Coat 1    Pris:  290  kr    Antal",290]
produkter[15]=["Long Coat 20   Pris:  210  kr    Antal",210]

var produkter_pics=new Array()   //Bilder för tex Tandblekning

produkter_pics[0]=["tabell/produkter frans/premium kit.png"]
produkter_pics[1]=["tabell/produkter frans/novalash kit.png"]
produkter_pics[2]=["tabell/produkter frans/fransar.png"]
produkter_pics[3]=["tabell/produkter frans/nova lashes.png"]
produkter_pics[4]=["tabell/produkter frans/extreme lashes.png"]
produkter_pics[5]=["tabell/produkter frans/hilton lashes.png"]
produkter_pics[6]=["tabell/produkter frans/extreme lim.png"]
produkter_pics[7]=["tabell/produkter frans/novalash lim.png"]
produkter_pics[8]=["tabell/produkter frans/standard remover.png"]
produkter_pics[9]=["tabell/produkter frans/pro remover.png"]
produkter_pics[10]=["tabell/produkter frans/mascara.png"]
produkter_pics[11]=["tabell/produkter frans/mascara.png"]
produkter_pics[12]=["tabell/produkter frans/mascara.png"]
produkter_pics[13]=["tabell/produkter frans/long life ext.png"]
produkter_pics[14]=["tabell/produkter frans/long coat.png"]
produkter_pics[15]=["tabell/produkter frans/long coat.png"]

var produkter_name=new Array()   

produkter_name[0]=["Premium Kit      "]
produkter_name[1]=["Novalash Kit     "]
produkter_name[2]=["Fransar          "]   //"Artikel: "+produkter_name[2]+"Antal " 
produkter_name[3]=["Nova Lashes      "]
produkter_name[4]=["Extreme Lashes   "]
produkter_name[5]=["Hilton Lashes    "]
produkter_name[6]=["Extreme Lim      "]
produkter_name[7]=["Novalash Lim     "]   
produkter_name[8]=["Stand Remover    "]
produkter_name[9]=["Pro Remover      "]
produkter_name[10]=["Mascara          "]
produkter_name[11]=["Mascara          "]
produkter_name[12]=["Mascara          "]   
produkter_name[13]=["Long Life        "]
produkter_name[14]=["Long Coat        "]
produkter_name[15]=["Long Coat        "]


//Preload images ("yes" or "no"):
var preloadimg="yes"

//Set optional link target to be added to all images with a link:
var optlinktarget=""

//Set image border width
var imgborderwidth=5

//Optionally, change 1.0 and 0.7 below to affect Wipe gradient size and duration in seconds in IE5.5+:
var filterstring="progid:DXImageTransform.Microsoft.GradientWipe(GradientSize=1.0 Duration=0.7)"

///////No need to edit beyond here/////

if (preloadimg=="yes"){
for (x=0; x<dynimages.length; x++){
var myimage=new Image()
myimage.src=dynimages[x][0]
}
}
/*if (preloadimg=="yes"){
for (x=0; x<products.length; x++){
var myproducts=new Image()
myproducts.src=products[x][0]
}
}
*/
/*if (preloadimg=="yes"){
for (x=0; x<produkter_pics.length; x++){
var myprodukter=new Image()
myprodukter.src=produkter_pics[x]
}
}
*/

function returnimgcode(theimg){
var imghtml=""
if (theimg[1]!="")
imghtml='<a href="'+theimg[1]+'" target="'+optlinktarget+'">'
imghtml+='<img src="'+theimg[0]+'" border="'+imgborderwidth+'">'
if (theimg[1]!="")
imghtml+='</a>'
return imghtml
}

function modifyimage_no_border(loadarea, imgindex){
imgborderwidth=0
if (document.getElementById){
var imgobj=document.getElementById(loadarea)
if (imgobj.filters && window.createPopup){
imgobj.style.filter=filterstring
imgobj.filters[0].Apply()
}
imgobj.innerHTML=returnimgcode(dynimages[imgindex])
if (imgobj.filters && window.createPopup)
imgobj.filters[0].Play()
return false
}
}
function modifyimage(loadarea, imgindex){
imgborderwidth=5
if (document.getElementById){
var imgobj=document.getElementById(loadarea)
if (imgobj.filters && window.createPopup){
imgobj.style.filter=filterstring
imgobj.filters[0].Apply()
}
imgobj.innerHTML=returnimgcode(dynimages[imgindex])
if (imgobj.filters && window.createPopup)
imgobj.filters[0].Play()
return false
}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}

function MM_callJS(jsStr) { //v2.0
  return eval(jsStr)
}