// JavaScript Document
function rotateProducts(ln){
    fileNames = Array ("c1.jpg","c2.jpg","p1.jpg","p2.jpg","p3.jpg");
    widths = Array (140,140,127,126,100);
	englishTips = Array ("Weight (gr): 8900<br />Dimention (cm): 20 x 25 x 40","Weight (gr): 10650<br />Dimention (cm): 25 x 25 x 40","Weight (gr): 2900<br />Dimention (cm): 7.5 x 20 x 25","Weight (gr): 3500<br />Dimention (cm): 10 x 20 x 25","Weight (gr): 4100<br />Dimention (cm): 15 x 20 x 25");
	farsiTips = Array ("8/900 :(kg) وزن<br />20 x 25 x 40 :(cm) ابعاد","10/650 :(kg) وزن<br />25 x 25 x 40 :(cm) ابعاد","2/900 :(kg) وزن<br />7/5 x 20 x 25 :(cm) ابعاد","3/500 :(kg) وزن<br />10 x 20 x 25 :(cm) ابعاد","4/100 :(kg) وزن<br />15 x 20 x 25 :(cm) ابعاد");
	randomNum= Math.floor(Math.random( ) * 5 - 1 + 1) + 1;
	if(ln == "en"){
	    document.getElementById("rotatingProductImage").src = "../images/products/" + fileNames[randomNum - 1];
	    document.getElementById("rotatingProductImage").style.width = widths[randomNum - 1];
	    document.getElementById("rotatingProductDetails").innerHTML = englishTips[randomNum - 1];
	}
	else if(ln == "fa"){
	    document.getElementById("rotatingProductImage").src = "../images/products/" + fileNames[randomNum - 1];
	    document.getElementById("rotatingProductImage").style.width = widths[randomNum - 1];
	    document.getElementById("rotatingProductDetails").innerHTML = farsiTips[randomNum - 1];
	}
}

function rotateAdvantages(ln){
	englishTips = Array ("• Decrease in the cost of dressing with plaster and soil and whitening works due to the evenness of the lower surface of the constructed roofs<br />• Easy execution of all installations and technical structures in such roofs<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"more\"><a href=\"products/Default.aspx#productsAdvantages\" class=\"link\" title=\"More\">More >>></a></span>","• Resistance against earthquake<br />• Resistance against heat and humidity and also powerful insulation against loss of temperature and energy<br />• Resistance against acids, bases, and salts available in various regions of Iran<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"more\"><a href=\"products/Default.aspx#productsAdvantages\" class=\"link\" title=\"More\">More >>></a></span>","• High resistance against fire, and not producing noxious gases detrimental to environment contrary to Poly Styrene (Plastofoam) roofs<br />• Not cracking after the execution of the roof and concreting due to the integration of products<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"more\"><a href=\"products/Default.aspx#productsAdvantages\" class=\"link\" title=\"More\">More >>></a></span>","• Daily monitoring of the products in the Quality Control Unit by experienced engineers and specialists<br />• Minimum damage level during shipment and the utilization process due to high pressure resistance<br /><br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"more\"><a href=\"products/Default.aspx#productsAdvantages\" class=\"link\" title=\"More\">More >>></a></span>");
	farsiTips = Array ("• کاهش هزینه اندود گچ و خاک و عملیات سفید کاری، بدلیل یکنواخت بودن سطح زیرین سقف های اجرا شده<br />• اجرای آسان کلیه امور تأسیساتی و سازه های فنی در اینگونه سقف ها<br /><br /><br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"more\"><a href=\"products/Default.aspx#productsAdvantages\" class=\"link\" title=\"ادامه\">ادامه >>></a></span>","• وجود حداقل ضایعات در حمل و نقل و هنگام مصرف بدلیل مقاومت فشاری بالا<br />• مقاومت در برابر نفوذ حرارت و رطوبت و همچنین عایقی ارزنده در برابر اتلاف دما و انرژی<br />• مقاومت در برابر اسیدها، بازها، نمک های موجود در محیط مناطق مختلف ایران<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"more\"><a href=\"products/Default.aspx#productsAdvantages\" class=\"link\" title=\"ادامه\">ادامه >>></a></span>","• مقاومت در برابر برودت هوا و انجماد<br />• مقاومت بالا در برابر آتش سوزی و همچنین عدم تولید گازهای مضر برای محیط زیست بر خلاف سقف های پلی استایرن (پلاستو فوم)<br /><br /><br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"more\"><a href=\"products/Default.aspx#productsAdvantages\" class=\"link\" title=\"ادامه\">ادامه >>></a></span>","• مقاومت در برابر زلزله<br />• عدم ترک خوردگی پس از اجرای سقف و بتن ریزی بدلیل یکپارچه بودن محصولات تولیدی<br />• کنترل روزانه محصولات تولید شده در واحد کنترل کیفیت، توسط مهندسین و متخصصین کارآزموده<br /><br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"more\"><a href=\"products/Default.aspx#productsAdvantages\" class=\"link\" title=\"ادامه\">ادامه >>></a></span>");
	randomNum= Math.floor(Math.random( ) * 4 - 1 + 1) + 1;
	if(ln == "en"){
	    document.getElementById("rotatingAdvantages").innerHTML = englishTips[randomNum - 1];
	}
	else if(ln == "fa"){
	    document.getElementById("rotatingAdvantages").innerHTML = farsiTips[randomNum - 1];
	}
}