/***********************************************
* Omni Slide Menu script - © John Davenport Scheuer
* very freely adapted from Dynamic-FX Slide-In Menu (v 6.5) script- by maXimus
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full original source code
* as first mentioned in http://www.dynamicdrive.com/forums
* username:jscheuer1
***********************************************/

if(php_session_name == "english"){
menu_item_1 = "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Air Conditioners";
menu_item_2 = "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gas Cookers";
menu_item_3 = "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Washing Machines";
menu_item_4 = "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Dish Washers";
menu_item_5 = "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Water Heaters";
menu_item_6 = "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Fans";
menu_item_7 = "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Irons";
menu_item_8 = "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Blenders";
}
else if(php_session_name == "italian"){
menu_item_1 = "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Air Conditioners";
menu_item_2 = "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gas Cookers";
menu_item_3 = "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Washing Machines";
menu_item_4 = "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Dish Washers";
menu_item_5 = "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Water Heaters";
menu_item_6 = "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Fans";
menu_item_7 = "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Irons";
menu_item_8 = "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Blenders";
}
else if(php_session_name == "french"){
menu_item_1 = "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Air Conditioners";
menu_item_2 = "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gas Cookers";
menu_item_3 = "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Washing Machines";
menu_item_4 = "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Dish Washers";
menu_item_5 = "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Water Heaters";
menu_item_6 = "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Fans";
menu_item_7 = "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Irons";
menu_item_8 = "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Blenders";
}
else{
menu_item_1 = "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Air Conditioners";
menu_item_2 = "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gas Cookers";
menu_item_3 = "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Washing Machines";
menu_item_4 = "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Dish Washers";
menu_item_5 = "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Water Heaters";
menu_item_6 = "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Fans";
menu_item_7 = "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Irons";
menu_item_8 = "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Blenders";
}


//One global variable to set, use true if you want the menus to reinit when the user changes text size (recommended):
resizereinit=true;
 
// alert(php_session_name);
 
if(php_session_name != "arabic"){
menu[1] = {
	bartext:"<img src='images/products_"+php_session_name+".png' width='34' height='83' />",
id:'menu1', //use unique quoted id (quoted) REQUIRED!!
fontsize:'100%', // express as percentage with the % sign
linkheight:30 ,  // linked horizontal cells height
hdingwidth:210 ,  // heading - non linked horizontal cells width
// Finished configuration. Use default values for all other settings for this particular menu (menu[1]) ///
menuItems:[ // REQUIRED!!
//[name, link, target, colspan, endrow?] - leave 'link' and 'target' blank to make a header
 //create header
[menu_item_1, "sub_products.php?id=1", ""],
[menu_item_2, "sub_products.php?id=2",""],
[menu_item_3, "sub_products.php?id=3", ""],
[menu_item_4, "products.php?id=4", ""],
[menu_item_5, "sub_products.php?id=5", ""],
[menu_item_6, "sub_products.php?id=6", ""],
[menu_item_7, "products.php?id=7", ""],
[menu_item_8, "products.php?id=8", ""]  //no comma after last entry

]}; // REQUIRED!! do not edit or remove

}
if(php_session_name =="arabic"){
menu[3] = {
id:'menu3',
fontsize:'100%', // express as percentage with the % sign
linkheight:30 ,  // linked horizontal cells height
hdingwidth:210 ,//use unique quoted id (quoted) REQUIRED!!
bartext:"<img src='images/products-arabic.png' width='34' height='83' />",
menupos:'right',
kviewtype:'fixed', 
menuItems:[ // REQUIRED!!
//[name, link, target, colspan, endrow?] - leave 'link' and 'target' blank to make a header
 //create header
["&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;تكييفات", "sub_products.php?id=1", ""],
["&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;بوتجازات", "sub_products.php?id=2",""],
["&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;غسالات ملابس", "sub_products.php?id=3", ""],
["&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;غسالات الأطباق", "products.php?id=4", ""],
["&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;سخانات مياة", "sub_products.php?id=5", ""],
["&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;المراوح", "sub_products.php?id=6", ""],
["&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;مكاوى", "products.php?id=7", ""],
["&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;خلاطات", "products.php?id=8", ""]  //no comma after last entry

]}; // REQUIRED!! do not edit or remove
}
////////////////////Stop Editing/////////////////

make_menus();