/***********************************************
* DHTML slideshow script-  © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice must stay intact for legal use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

var photos=new Array()
var photoslink=new Array()
var which=0

//define images. You can have as many as you want:
photos[0]="images/fp_computers2a.gif"
photos[1]="images/fp_laptops1a.gif"
photos[2]="images/fp_lcds1a.gif"
photos[3]="images/fp_monitors2a.gif"
photos[4]="images/fp_monitors2a.gif"
//photos[5]="images/fp_computers1a.gif"

//Specify whether images should be linked or not (1=linked)
var linkornot=1

//Set corresponding URLs for above images. Define ONLY if variable linkornot equals "1"
photoslink[0]="computers.htm"
photoslink[1]="laptops.htm"
photoslink[2]="lcds.htm"
photoslink[3]="monitors.htm"
photoslink[4]="monitors.htm"
//photoslink[5]="computers.htm"

//do NOT edit pass this line

var preloadedimages=new Array()
for (i=0;i<photos.length;i++){
preloadedimages[i]=new Image()
preloadedimages[i].src=photos[i]
}


function applyeffect(){
if (document.all && photoslider.filters){
//photoslider.filters.revealTrans.Transition=Math.floor(Math.random()*23)
photoslider.filters.revealTrans.stop()
photoslider.filters.revealTrans.apply()
}
}



function playeffect(){
if (document.all && photoslider.filters)
photoslider.filters.revealTrans.play()
}

function keeptrack(){
window.status="Product "+(which+1)+" of "+photos.length
}


function backward(){
if (which>0){
which--
applyeffect()
document.images.photoslider.src=photos[which]
playeffect()
keeptrack()
}

/*
if (which>0){
	pre.style.display = "";
}
else{
	pre.style.display = "none";
}

if(which<photos.length-1){
	next.style.display = "";
}
*/

}

function forward(){
if (which<photos.length-1){
which++
applyeffect()
document.images.photoslider.src=photos[which]
playeffect()
keeptrack()
}

/*
if (which>0){
	pre.style.display = "";
}

if(which<photos.length-1){
	next.style.display = "";
}
else{
	next.style.display = "none";
}
*/

}

function transport(){
window.location=photoslink[which]
}
function rotate(){
if (which>=photos.length-1)
{which=-1;}
forward();
setTimeout("rotate()",3000);
}


/*************************************
********* Flash Movie *********
*************************************/
function showFlash(strId, strMovie, strBgColor, numWidth, numHeight) {
	if ( plugin ) {
	
		document.write('<P align=left>');
		document.write('<b>Algeria</b> (Algiers), <b>Bahrain</b> (Manama), <b>Bangladesh</b> (Chittagong), <b>Chad</b>, <b>Egypt</b> (Cairo, Alexendria), <b>Ethiopia</b> (Addis ababa), ');
		document.write('<b>India</b> (Mumbai, Delhi , Chennai, Calcutta), <b>Iran</b> (Tehran, Bander Abbas), <b>Iraq</b> (Baghdad), ');
		document.write('<b>Jordan</b> (Aqaba), <b>Kazakhstan</b> (Alma Ala), <b>Kyrgyzstan</b> (Bishkek), <b>Mali</b>, <b>Morocco</b> (Rabat), <b>Mozambique</b> (Moputo, Nakala), ');
		document.write('<b>Nigeria</b> (Lagos), <b>Oman</b> (Muscat), <b>Pakistan</b> (Karachi, Lahore), <b>Saudi Arabia</b> (Dammam), ');
		document.write('<b>Srilanka</b> (Colombo), <b>Sudan</b> (Khartoum), <b>South Africa</b>, ');	
		document.write('<b>Tanzania</b> (Dares Salaam), <b>Turkmenistan</b> (Ashgabat), <b>Uzbekistan</b> (Tashkent), <b>Yemen</b> (Sana), ');
		document.write('</P>');
		
		document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ');
		document.write('codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,42,0" ');
		document.write('id="' + strId +'" width="' + numWidth + '" height="' + numHeight + '">');
		document.write('<param name="movie" value="' + strMovie + '.swf">');
		document.write('<param name="quality" value="high">');
		document.write('<param name="bgcolor" value="' + strBgColor + '">');
		document.write('<param name="menu" value="false">');
		document.write('<param name="wmode" value="transparent">');	
		document.write('<embed name="product" src="' + strMovie + '.swf" quality="high" bgcolor="' + strBgColor + '" swLiveConnect="true" ');
		document.write('width="' + numWidth + '" height="' + numHeight + '" type="application/x-shockwave-flash" ');
		document.write('pluginspage="http://www.macromedia.com/go/getflashplayer">');
		document.write('</embed>');
		document.write('</object>');
		
	
	}
	if (!plugin ) {
		document.write('<P align=left>');
		document.write('<b>Algeria</b> (Algiers), <b>Bahrain</b> (Manama), <b>Bangladesh</b> (Chittagong), <b>Chad</b>, <b>Egypt</b> (Cairo, Alexendria), <b>Ethiopia</b> (Addis ababa), ');
		document.write('<b>India</b> (Mumbai, Delhi , Chennai, Calcutta), <b>Iran</b> (Tehran, Bander Abbas), <b>Iraq</b> (Baghdad), ');
		document.write('<b>Jordan</b> (Aqaba), <b>Kazakhstan</b> (Alma Ala), <b>Kyrgyzstan</b> (Bishkek), <b>Mali</b>, <b>Morocco</b> (Rabat), <b>Mozambique</b> (Moputo, Nakala), ');
		document.write('<b>Nigeria</b> (Lagos), <b>Oman</b> (Muscat), <b>Pakistan</b> (Karachi, Lahore), <b>Saudi Arabia</b> (Dammam), ');
		document.write('<b>Srilanka</b> (Colombo), <b>Sudan</b> (Khartoum), <b>South Africa</b>, ');	
		document.write('<b>Tanzania</b> (Dares Salaam), <b>Turkmenistan</b> (Ashgabat), <b>Uzbekistan</b> (Tashkent), <b>Yemen</b> (Sana), ');
		document.write('</P>');
		
		document.write('<img border="0" src="' + strMovie + '.gif" width="' + numWidth + '" height="364">');

	}
	

}

function showLogistics(){
		document.write('<P align=left>');
		document.write('<b>Algeria</b> (Algiers), <b>Bahrain</b> (Manama), <b>Bangladesh</b> (Chittagong), <b>Chad</b>, <b>Egypt</b> (Cairo, Alexendria), <b>Ethiopia</b> (Addis ababa), ');
		document.write('<b>India</b> (Mumbai, Delhi , Chennai, Calcutta), <b>Iran</b> (Tehran, Bander Abbas), <b>Iraq</b> (Baghdad), ');
		document.write('<b>Jordan</b> (Aqaba), <b>Kazakhstan</b> (Alma Ala), <b>Kyrgyzstan</b> (Bishkek), <b>Mali</b>, <b>Morocco</b> (Rabat), <b>Mozambique</b> (Moputo, Nakala), ');
		document.write('<b>Nigeria</b> (Lagos), <b>Oman</b> (Muscat), <b>Pakistan</b> (Karachi, Lahore), <b>Saudi Arabia</b> (Dammam), ');
		document.write('<b>Srilanka</b> (Colombo), <b>Sudan</b> (Khartoum), <b>South Africa</b>, ');	
		document.write('<b>Tanzania</b> (Dares Salaam), <b>Turkmenistan</b> (Ashgabat), <b>Uzbekistan</b> (Tashkent), <b>Yemen</b> (Sana), ');
		document.write('</P>');

}	

//**************** <    Flash Detector   > ***************
var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
if ( plugin ) {
	plugin = parseInt(plugin.description.substring(plugin.description.indexOf(".")-1)) >= 3;
}
else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 && navigator.userAgent.indexOf("Windows")>=0) {
	document.write('<SCR' + 'IPT LANGUAGE=VBScript\> \n');
	document.write('on error resume next \n');
	document.write('plugin = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.4")))\n');
	document.write('if ( plugin <= 0 ) then plugin = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.5")))\n');
	document.write('if ( plugin <= 0 ) then plugin = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.6")))\n');
	document.write('<\/SCR' + 'IPT\> \n');
}

//**************** </   Flash Detector   > ***************