function OLDdetectBrowser()
{
var brow = ""; var vers='';
if( navigator.userAgent.indexOf('Opera') != -1 ){
	brow='op'; 
}else{	
	if( navigator.appName != "Netscape" ){ 
		if( navigator.appName == "Microsoft Internet Explorer" ){ 
			brow = "ie"; vers=detectVers(); 
		}
	}else{
		//navigator.appname este Netscape 
		if( navigator.userAgent.indexOf('Gecko') != -1 ){ 
			if( navigator.userAgent.indexOf('Firefox') != -1 ){ 
				brow='moz'; 
			}else{ 
				if( navigator.userAgent.indexOf('Chrome') != -1 ){ 
					brow='chr';
				}else{
					brow='ns';
				} 
			} 
		}else{ 
			brow='moz';	
		} 
	} 
}
brow = brow+vers; 
//brow="ie6"; 
return brow;
}

function detectBrowser()
{
	var brow = ""; var vers='';
	if( navigator.userAgent.indexOf('Opera') != -1 ){
		brow='op'; 
	}else{	
		if( navigator.appName != "Netscape" ){ 
			if( navigator.appName == "Microsoft Internet Explorer" ){ 
				brow = "ie"; vers=detectVers();  
			}
		}else{
			if( navigator.userAgent.indexOf('Gecko') != -1 ){ 
				if( navigator.userAgent.indexOf('Firefox') != -1 ){ 
					brow='moz'; 
				}else{ 
					if( navigator.userAgent.indexOf('Chrome') != -1 ){ 
						brow='chr';
					}else{
						if( navigator.userAgent.indexOf('Safari') != -1 ){ 
							brow='saf';
						}else{
							brow='ns';
						}
					} 
				} 
			}else{ 
				brow='ns';	
			} 
		} 
	}
	brow = brow+vers; 
	return brow;
}

function detectVers()
{
	var vers = '';
	var appV = navigator.appVersion;
	poz = appV.indexOf("MSIE ")
	if( poz != -1 ) {
		versiune = parseInt(navigator.appVersion.substr(poz+5,3),10);
		//alert(versiune + '--' + typeof(vers));
		//de remodificat
		if( versiune < 7 && versiune > 5 ) {
			vers = '6';
		} else {
			vers = '';
		}
	}
	return vers;
}

function detectBrowserOLD()
{
var brow = ""; var vers='';
if( navigator.userAgent.indexOf('Opera') != -1 ){ brow='op'; }else{	if( navigator.appName != "Netscape" ){ if( navigator.appName == "Microsoft Internet Explorer" ){ brow = "ie"; vers=detectVers();  }
}else{ if( navigator.userAgent.indexOf('Gecko') != -1 ){ if( navigator.userAgent.indexOf('Firefox') != -1 ){ brow='moz'; } else { brow='ns'; } }else{ brow='moz';	} } }
brow = brow+vers; 
return brow;
}

function doLinks(param)
{
	document.location.href ='/contents.php?selectedMenu='+param; 
}

function showCollectionType(colname,tip)
{
	//alert(parent.window.name)
	if( parent.window.name == 'maya' ) {
		//var mURL = '/info/2010/index.php?colectia='+colname+'&tip='+tip;
		//var mURL = '?colectia='+colname+'&tip='+tip;
		//mURL='/'+colname+tip+'.php';
		mURL='/colectii.php?colectia='+colname+'&tip='+tip;
		//alert(mURL)
		document.location.href=mURL;
	} else {
		newFullWin(colname);
	}
}
function NOTUstopS()
{
	if( brow.substr(0,2) == "ie" ) {
		var aa=document.getElementById('soundB');
		//daca sunetul era deja oprit nu-l mai comut
		if( aa.getAttribute('src').indexOf('soundoff') != -1 ) {
			comutare();
		}
	}
}

function newFullWin(name)
{
	//alert(name)
	//newUrl = ( typeof(name) == 'undefined' ) ? '' : ( ( name=='home' ) ? flagH : '?colectia=' + name);
	if(typeof(name) == 'undefined' ){
		var newUrl='';
	}else{
		switch( name){
			case '':		//intrare in colectii fara specif anului
				flagCol = true;
				newurl = '/colectii.php';
				break;
			//case 'home':	//intrare din index
			//	flagCol = false;
			//	newurl = '/maya.php';
			//	//alert(newurl)
				//break;
			case "absolutewomen":
				flagCol = true;
				newurl = '/colectii.php?colectia='+name;
				break;
			case "springflowers":
				flagCol = true;
				newurl = '/colectii.php?colectia='+name;
				break;
			case "porto":
				//alert(name);
				flagCol = true;
				//newurl = '/contents.php?selectedMenu='+name;
				newurl='/contents.php?selectedMenu=porto';
				break;
			default:		//intrare cu anul colectiei
				flagCol = true;
				if( name.length > 4 ){
					newurl = '/colectii.php?colectia='+name.substr(0,4)+'&tip='+name.substr(4);
				}else{
					newurl = '/colectii.php?colectia='+name;
				}
				break;
		}
	}
	brow=detectBrowser();
	//alert(parent.window.name)
	//if( parent.window.name == 'maya' ) {
	if( window.name == 'maya' ) {
		//s-a facut click pe colectii din fereastra full screen cu url=mayafashion.php
		//parent.frames['fraInfo'].location.href='/colectii.php' + newUrl;
		//alert(newurl);
		//parent.frames['fraInfo'].location.href=newurl;
		document.location.href=newurl;
	} else {
		//este prima intrare in fulWin
		//alert( document.referrer)
		//flagCol este tru doar cand intru pe o anumita colectie
		if( flagCol ){
			//alert('param la newFullWin='+name);
			//alert(document.referrer)
			//if( document.referrer.indexOf('mayafashion.php') == -1 ) {
			//if( document.referrer.indexOf('colectii.php') == -1 ) { //in acest caz referrer este null
				//alert(document.referrer)
				//s-a facut click pe colectii din alt url decat mayafashion.php
				//s-a facut click pe colectii din alt url decat colectii.php
			if( name != "porto" ) {
				param = (name != '') ? '?colectia=' + name : '';
				//newUrl = '/mayafashion.php' + param;
				titlu = (name=='') ? 'Colectii' : 'Colectia '+name;
				newUrl = '/colectii.php' + param;
			}else{
				titlu='Portofoliu de imagini';
				newUrl='/contents.php?selectedMenu=porto';
			}
			//alert('newurl='+newurl)
			//if( brow == "ie" || brow == "op") {
			//	window.open( newUrl,'maya','fullscreen=yes,location=no,menubar=no,scrollbars=no,titlebar=no,resizable=no,status=no',false); 
			//}else{ 
				//window.open( newUrl,'maya','width=1600,height=900,left=-5px,location=no,menubar=no,resizable=no,scrollbars=yes,titlebar=no,status=no',false); 
				myWinMaya=window.open( newUrl,'maya','fullscreen=yes,location=no,menubar=no,resizable=yes,scrollbars=yes,titlebar=no,status=no');
				//myWinMaya.title='Maya Fashion - '+titlu;
				myWinMaya.focus();
			//}
			//}else{
				//alert('hi')
				//newurl='/portofoliul.php';
				//if( brow == "ie" || brow == "op") {
				//	window.open( newUrl,'maya','fullscreen=yes,location=no,menubar=no,scrollbars=no,titlebar=no,resizable=no,status=no',false); 
				//}else{ 
				//	window.open( newUrl,'maya','width=1600,height=900,left=-5px,location=no,menubar=no,resizable=no,scrollbars=no,titlebar=no,status=no',false); 
				//}
			//}
		//}else{
			//intrare din prima pagina in fullscreen???
			//alert('hi')
			//if( brow == "ie" || brow == "op") {
			//	window.open( newurl,'maya','fullscreen=yes,location=no,menubar=no,scrollbars=no,titlebar=no,resizable=no,status=no,bReplace=true'); 
			//}else{ 
			//	window.open( newurl,'maya','width=1400,height=900,resizable=no,bReplace=false'); 
			//}
		}
	}
}

function verifyModWin(name,modelNo)
{
	//alert(newTitle)
	//alert(name)
	//if( parent.window.name == 'maya') { 
	if( window.name == 'maya') {
		//alert(parent.document.title);
		//parent.document.title=newTitle;
		//document.title=newTitle;
		if( modelNo != "" ){
			showPhoto(name,modelNo,'a');
		}
	} else { 
		newFullWin(name); 
	} 
}
//////////////////
function verifyColWin(name)
{
	//if( parent.window.name == 'maya') 
	if( window.name == 'maya') 
	{ 
		document.location.href='/colectii.php?colectia=' + name; 
	} else { 
		alert(document.referrer)
		newFullWin(name); 
	} 
}
////////////////////////////////
function inFront(id)
{
	brow = detectBrowser();
	var crtObj = document.getElementById(id)
	crtObj.style.borderColor='#FFFFFF';
}

function inBack(id)
{
	brow = detectBrowser();
	var crtObj = document.getElementById(id)
	crtObj.style.borderColor='#F6F6F6';
}

function inFrontOLD(id)
{
	brow = detectBrowser();
	var crtObj = document.getElementById(id)
	crtObj.setAttribute('hspace','6');
	crtObj.setAttribute('border', '5');
	
	if( (crtObj.src.indexOf('M1806_d') == -1) && (crtObj.src.indexOf('M1508_d') == -1) ){ 
		crtObj.setAttribute('vspace','6');
		
	}else{ 
		if( brow != "ie" ) { vertS = "33" } else { vertS = "23" }
		crtObj.setAttribute('vspace',vertS);
	}
}

function inBackOLD(id)
{
	brow = detectBrowser();
	var crtObj = document.getElementById(id)
	crtObj.setAttribute('hspace','10');
	crtObj.setAttribute('border', '1');
	
	if( (crtObj.src.indexOf('M1806_d') == -1) && (crtObj.src.indexOf('M1508_d') == -1) ){ 
		crtObj.setAttribute('vspace','10');
	}else{ 
		if( brow != "ie" ) { vertS = "37" } else { vertS = "27" }
		crtObj.setAttribute('vspace',vertS);
	}
}

function stayFixed(id)
{
	var crtObj = document.getElementById(id)
	crtObj.setAttribute('hspace','5');
	crtObj.setAttribute('border', '1');
}
///////////////////////////////////////////////////////////////////////
function selector(name)
{
	brow = detectBrowser();
	
	var urlFirst = "/collections.php?par="+name;
		if( brow == "ie" || brow == "op" ) {
		parent.document.frames['fraBar'].location.href = '/cmn/music.html';
	}
	document.location.href = urlFirst;
}
////////////////////////////////////////////////////////////////////////

function showDetails(colname,model)
{
	//if( parent.window.name == 'maya' ) {
	if( window.name == 'maya' ) {
		var mURL = '/modele.php?colectia=' + colname + '&model=' + model;
		document.location.href=mURL;
	} else {
		newFullWin(colname);
	}
}
////////////////////////////////////////////////////////////////////////////////////
function NOTUrightAction()
{
	//flagSound
	var sb = document.getElementById('soundB');
	iniloc = sb.getAttribute('src');
	//alert( sb.src);
	var topUrl = parent.frames['fraBar'].location.href;
	//alert('rightAction: URL din fraBar este (inainte de click) ' + topUrl)
	if( topUrl.indexOf( "blank.html", 0) != -1 ){
		//rez = sb.src.indexOf( "spacer.gif", 0);
		if( sb.src.indexOf( "spacer.gif", 0) != -1 ){ //suntem la prima lansare
			//este prima lansare
			//alert('prima lansare');
			//alert(iniloc)
			pos = iniloc.indexOf('spacer.gif',0);
			if( pos != -1 ) { //verificare daca s-a modificat ceva de utilizator
				newloc = iniloc.substr(0,pos) + 'soundoff' + iniloc.substr(pos+6);
				sb.setAttribute('src',newloc);
				if( parent.window.name == "maya" ) {
					parent.frames["fraBar"].location.href = "cmn/music.html";
				} else {
					parent.frames["fraBar"].location.href = "cmn/sound.html";
				}
			}
/*		}else{
			alert('Hi! Never touch!!!')
			var iniloc = sb.getAttribute('src');
			pos = iniloc.indexOf('spacer',0);
			if( pos != -1 ) {
				newloc = iniloc.substr(0,pos) + 'soundon' + iniloc.substr(pos+6);
				sb.setAttribute('src',newloc);
			}*/
		}
	} else {
		if( topUrl.indexOf( "stopped.html", 0) != -1 ) {
			//muzica e oprita
			//alert('am prins !!!')
			pos = iniloc.indexOf('spacer',0);
			if( pos != -1 ) {
				newloc = iniloc.substr(0,pos) + 'soundon' + iniloc.substr(pos+6);
				sb.setAttribute('src',newloc);
			}
		} else {
			//muzica era pornita
			var iniloc = sb.getAttribute('src');
			pos = iniloc.indexOf('spacer',0);
			if( pos != -1 ) {
				newloc = iniloc.substr(0,pos) + 'soundoff' + iniloc.substr(pos+6);
				sb.setAttribute('src',newloc);
			}
		}
	}
}
///////////////////////////////
function NOTUcomutare()
{
	var sb = document.getElementById('soundB');
	var filename = sb.getAttribute('SRC');
	var pos = filename.indexOf( 'soundoff', 0 );
	if( pos != -1 ) {
		//muzica era validata
		var part1=filename.substr(0, pos );
		var part2=filename.substr(pos+8);
		newfilename = part1 + 'soundon' + part2;
		sb.setAttribute( 'src', newfilename );
		top.frames['fraBar'].location.replace('/cmn/stopped.html');
		//alert(top.frames['fraBar'].location.href);
	} else {
		var pos = filename.indexOf( 'soundon', 0 );
		if( pos != -1 ) {
			var part3=filename.substr(0, pos );
			var part4=filename.substr(pos+7);
			newfilename = part3 + 'soundoff' + part4;
			sb.setAttribute( 'src', newfilename );
			if( parent.window.name == 'maya' ) {
				parent.frames['fraBar'].location.href='/cmn/music.html';
			} else {
				parent.frames['fraBar'].location.href='/cmn/sound.html';
			}
		} else {
			alert('eroare');
		}
	}	
}

function NOTUgetSound()
{
	var sb = document.getElementById('soundB');
	var topUrl = parent.frames['fraBar'].location.href;
	if( topUrl.indexOf( "blank.html", 0) != -1 ){
		//muzica e oprita
		var flagS = false;
	} else {
		//muzica era pornita
		var flagS = true;

	} 
	return flagS;
}
/////////////////////////////////////////
function NOTUswitchS()
{
	var sb = document.getElementById('soundB');
	var filename = sb.getAttribute('SRC');
	var pos = filename.indexOf( 'soundoff', 0 );
	
	if( pos != -1 ) {
		//muzica era validata
		var part1=filename.substr(0, pos );
		var part2=filename.substr(pos+8);
		newfilename = part1 + 'soundon' + part2;
		sb.setAttribute( 'src', newfilename );
		parent.frames['fraBar'].location.href='/cmn/blank.html';
	} else {
		//muzica era oprita
		var pos = filename.indexOf( 'soundon', 0 );
		if( pos != -1 ) {
			var part3=filename.substr(0, pos );
			var part4=filename.substr(pos+7);
			newfilename = part3 + 'soundoff' + part4;
			sb.setAttribute( 'src', newfilename );
			parent.frames['fraBar'].location.href='/cmn/music.html';
		} else {
			alert('eroare');
		}
	}	
}
///////////////////////////////////////////////////////////////////////////////////////////////
function showPhoto( colname, modelNo, left )
{
	brow = detectBrowser();
	var model = modelNo;
	var obj_img = document.getElementById("main");
	newBg = 'i/' + colname + '/M/' + model + '_' + left + '.jpg';
	//alert(newBg);
	if( colname == "2009" ) {
		var right = ( left == 'a' ) ? 'b' : 'a';
		if( modelNo == "M209" ) 
		{
			var poz1Obj = document.getElementById("poz1");
			
			obj_img.style.backgroundImage = "url(" + newBg + ")";
			
			poz1Obj.setAttribute("src","/i/"+colname+"/s/s_" + model + "_" + right + ".jpg");
			poz1Obj.setAttribute("hspace","10");
			poz1Obj.setAttribute("vspace","10");
		} else {
			//alert(newBg);
			newBg = 'i/' + colname + '/M/' + model + '.jpg';
			//alert(brow)
			//if( brow != "op" ) {
				obj_img.style.backgroundImage = "url(" + newBg + ")";
			//} else {
				//document.write('<DIV id=main STYLE=\"background-image: url(' + newBg + ');\">');
				//obj_img.setAttribute("STYLE", "\"background-image: url(" + newBg + ");\"" );
				//var aa=obj_img.getAttribute("STYLE");
				//alert(aa);
			//}
		}
		obj_img.setAttribute("title","Maya Fashion - model " + model);
		obj_img.setAttribute("alt","Maya Fashion - model " + model);
	} else {
		obj_img.style.backgroundImage = "url(" + newBg + ")";
		obj_img.setAttribute("title","Maya Fashion - model " + model);
		obj_img.setAttribute("alt","Maya Fashion - model " + model);

		var poz1Obj = document.getElementById("poz1");
		var poz2Obj = document.getElementById("poz2");
		var poz3Obj = document.getElementById("poz3");

		if( model != "M1806" && model != "M1508" ) {
			poz1Obj.setAttribute("src","/i/"+colname+"/s/s_" + model + "_b.jpg");
			poz1Obj.setAttribute("hspace","10");
			poz1Obj.setAttribute("vspace","10");
			poz2Obj.setAttribute("src","/i/"+colname+"/s/s_" + model + "_c.jpg");
			poz2Obj.setAttribute("hspace","10");
			poz2Obj.setAttribute("vspace","10");
			if( colname != 'copii' ) {
				poz3Obj.setAttribute("src","/i/"+colname+"/s/s_" + model + "_d.jpg");
				poz3Obj.setAttribute("hspace","10");
				poz3Obj.setAttribute("vspace","10");
			}
		} else {
			poz1Obj.setAttribute("src","/i/"+colname+"/s/s_" + model + "_b.jpg");
			poz1Obj.setAttribute("width","133");
			poz1Obj.setAttribute("height","187");
			poz1Obj.setAttribute("vspace","10");
			poz1Obj.setAttribute("hspace","10");

			poz2Obj.setAttribute("src","/i/"+colname+"/s/s_" + model + "_c.jpg");
			poz2Obj.setAttribute("width","133");
			poz2Obj.setAttribute("height","187");
			poz2Obj.setAttribute("vspace","10");
			poz2Obj.setAttribute("hspace","10");
			
			poz3Obj.setAttribute("src","/i/"+colname+"/s/s_" + model + "_d.jpg");
			poz3Obj.setAttribute("width","187");
			poz3Obj.setAttribute("height","133");
			if( brow != "ie" ) { vertS = "37" } else { vertS = "27" }
			poz3Obj.setAttribute("vspace",vertS);
			poz3Obj.setAttribute("hspace","10");
		}
	}
}
//////////////////////
function goNext(colname,nextM)
{
	window.document.location.replace( 'modele.php?colectia=' + colname +'&model=' + nextM );
}

function goPrev(colname,prevM)
{
	window.document.location.replace( 'modele.php?colectia=' + colname +'&model=' + prevM );
}
////////////////////////////////////////////////////////////////////////////////////////////////////////////
function rotatePhoto( colname, id, modelNo)
{
	var crtSmall = document.getElementById(id).getAttribute('src')
	var phIndex='';
	var model=modelNo;
	var obj_img = document.getElementById("main");

	varianta = crtSmall.indexOf( modelNo );
	
	if(  varianta != -1 ) {
		phIndex = crtSmall.substr(varianta+modelNo.length+1,1)
	}
	newBg = 'i/' + colname + '/M/' + model + '_' + phIndex + '.jpg';
	obj_img.style.backgroundImage = "url(" + newBg + ")";
	var new1right=""; var new2right="";
	var poz1Obj = document.getElementById("poz1");
	var poz2Obj = document.getElementById("poz2");
	var poz3Obj = document.getElementById("poz3");
	brow = detectBrowser();
	switch( colname ) {
		case "copii":
			switch( phIndex ) {
				case "a":
					new1right = "b"; new2right ="c";
					break;
				case "b":
					new1right = "c"; new2right ="a";
					break;
				case "c":
					new1right = "a"; new2right ="b";
					break;
				default:
					break;
			}
			poz1Obj.setAttribute("src","/i/"+colname+"/s/s_" + model + "_" + new1right+ ".jpg");
			poz2Obj.setAttribute("src","/i/"+colname+"/s/s_" + model + "_" + new2right+ ".jpg");
			break;
		case "2009":
			switch( phIndex ) {
				case "a":
					poz1Obj.setAttribute("src","/i/"+colname+"/s/s_" + model + "_b.jpg");
					break;
				case "b":
					poz1Obj.setAttribute("src","/i/"+colname+"/s/s_" + model + "_a.jpg");
					break;
				default:
					break;
			}
			break;
		default:
			if( model != "M1806" && model != "M1508" ) {
				switch( phIndex ) {
				case "a":
					poz1Obj.setAttribute("src","/i/"+colname+"/s/s_" + model + "_b.jpg");
					poz2Obj.setAttribute("src","/i/"+colname+"/s/s_" + model + "_c.jpg");
					poz3Obj.setAttribute("src","/i/"+colname+"/s/s_" + model + "_d.jpg");
					break;
				case "b":
					poz1Obj.setAttribute("src","/i/"+colname+"/s/s_" + model + "_c.jpg");
					poz2Obj.setAttribute("src","/i/"+colname+"/s/s_" + model + "_d.jpg");
					poz3Obj.setAttribute("src","/i/"+colname+"/s/s_" + model + "_a.jpg");
					break;
				case "c":
					document.getElementById("poz1").setAttribute("src","/i/"+colname+"/s/s_" + model + "_d.jpg");
					poz2Obj.setAttribute("src","/i/"+colname+"/s/s_" + model + "_a.jpg");
					poz3Obj.setAttribute("src","/i/"+colname+"/s/s_" + model + "_b.jpg");
					break;
				case "d":
					poz1Obj.setAttribute("src","/i/"+colname+"/s/s_" + model + "_a.jpg");
					poz2Obj.setAttribute("src","/i/"+colname+"/s/s_" + model + "_b.jpg");
					poz3Obj.setAttribute("src","/i/"+colname+"/s/s_" + model + "_c.jpg");
					break;
				default:
					break;
				}
			}else{
				switch( phIndex ) {
					case "a":
						switch(id){
					 		case 'poz1':
							poz1Obj.setAttribute("src","/i/"+colname+"/s/s_" + model + "_b.jpg");
							poz1Obj.setAttribute("width","133");
							poz1Obj.setAttribute("height","187");
							poz1Obj.setAttribute("vspace","6");

							poz2Obj.setAttribute("src","/i/"+colname+"/s/s_" + model + "_c.jpg");
							poz2Obj.setAttribute("width","133");
							poz2Obj.setAttribute("height","187");
							poz2Obj.setAttribute("vspace","10");
				
							poz3Obj.setAttribute("src","/i/"+colname+"/s/s_" + model + "_d.jpg");
							poz3Obj.setAttribute("width","187");
							poz3Obj.setAttribute("height","133");
							if( brow != "ie" ) { vertS = "37" } else { vertS = "27" }
							poz3Obj.setAttribute("vspace",vertS);
							break;
						case 'poz2':
							poz1Obj.setAttribute("src","/i/"+colname+"/s/s_" + model + "_b.jpg");
							poz1Obj.setAttribute("width","133");
							poz1Obj.setAttribute("height","187");
							poz1Obj.setAttribute("vspace","10");

							poz2Obj.setAttribute("src","/i/"+colname+"/s/s_" + model + "_c.jpg");
							poz2Obj.setAttribute("width","133");
							poz2Obj.setAttribute("height","187");
							poz2Obj.setAttribute("vspace","6");
				
							poz3Obj.setAttribute("src","/i/"+colname+"/s/s_" + model + "_d.jpg");
							poz3Obj.setAttribute("width","187");
							poz3Obj.setAttribute("height","133");
							if( brow != "ie" ) { vertS = "37" } else { vertS = "27" }
							poz3Obj.setAttribute("vspace",vertS);
							break;
						case 'poz3':
							poz1Obj.setAttribute("src","/i/"+colname+"/s/s_" + model + "_b.jpg");
							poz1Obj.setAttribute("width","133");
							poz1Obj.setAttribute("height","187");
							poz1Obj.setAttribute("vspace","10");

							poz2Obj.setAttribute("src","/i/"+colname+"/s/s_" + model + "_c.jpg");
							poz2Obj.setAttribute("width","133");
							poz2Obj.setAttribute("height","187");
							poz2Obj.setAttribute("vspace","10");
				
							poz3Obj.setAttribute("src","/i/"+colname+"/s/s_" + model + "_d.jpg");
							poz3Obj.setAttribute("width","187");
							poz3Obj.setAttribute("height","133");
							if( brow != "ie" ) { vertS = "33" } else { vertS = "23" }
							poz3Obj.setAttribute("vspace",vertS);
							break;
					}
					break;
				case "b":
					switch(id) {
						case 'poz1':
							poz1Obj.setAttribute("src","/i/"+colname+"/s/s_" + model + "_c.jpg");
							poz1Obj.setAttribute("width","133");
							poz1Obj.setAttribute("height","187");
							poz1Obj.setAttribute("vspace","6");

							poz2Obj.setAttribute("src","/i/"+colname+"/s/s_" + model + "_d.jpg");
							poz2Obj.setAttribute("width","187");
							poz2Obj.setAttribute("height","133");
							if( brow != "ie" ) { vertS = "37" } else { vertS = "27" }
							poz2Obj.setAttribute("vspace",vertS);
	
							poz3Obj.setAttribute("src","/i/"+colname+"/s/s_" + model + "_a.jpg");
							poz3Obj.setAttribute("width","133");
							poz3Obj.setAttribute("height","187");
							poz3Obj.setAttribute("vspace","10");
							break;
						case 'poz2':
							poz1Obj.setAttribute("src","/i/"+colname+"/s/s_" + model + "_c.jpg");
							poz1Obj.setAttribute("width","133");
							poz1Obj.setAttribute("height","187");
							poz1Obj.setAttribute("vspace","10");

							poz2Obj.setAttribute("src","/i/"+colname+"/s/s_" + model + "_d.jpg");
							poz2Obj.setAttribute("width","187");
							poz2Obj.setAttribute("height","133");
							if( brow != "ie" ) { vertS = "33" } else { vertS = "23" }
							poz2Obj.setAttribute("vspace",vertS);

							poz3Obj.setAttribute("src","/i/"+colname+"/s/s_" + model + "_a.jpg");
							poz3Obj.setAttribute("width","133");
							poz3Obj.setAttribute("height","187");
							poz3Obj.setAttribute("vspace","10");
							break;
						case 'poz3':
							poz1Obj.setAttribute("src","/i/"+colname+"/s/s_" + model + "_c.jpg");
							poz1Obj.setAttribute("width","133");
							poz1Obj.setAttribute("height","187");
							poz1Obj.setAttribute("vspace","10");

							poz2Obj.setAttribute("src","/i/"+colname+"/s/s_" + model + "_d.jpg");
							poz2Obj.setAttribute("width","187");
							poz2Obj.setAttribute("height","133");
							if( brow != "ie" ) { vertS = "37" } else { vertS = "27" }
							poz2Obj.setAttribute("vspace",vertS);

							poz3Obj.setAttribute("src","/i/"+colname+"/s/s_" + model + "_a.jpg");
							poz3Obj.setAttribute("width","133");
							poz3Obj.setAttribute("height","187");
							poz3Obj.setAttribute("vspace","6");
							break;
					}
					break;					
				case "c":
					switch(id){
						case 'poz1':
							poz1Obj.setAttribute("src","/i/"+colname+"/s/s_" + model + "_d.jpg");
							poz1Obj.setAttribute("width","187");
							poz1Obj.setAttribute("height","133");
							if( brow != "ie" ) { vertS = "33" } else { vertS = "23" }
							poz1Obj.setAttribute("vspace",vertS);

							poz2Obj.setAttribute("src","/i/"+colname+"/s/s_" + model + "_a.jpg");
							poz2Obj.setAttribute("width","133");
							poz2Obj.setAttribute("height","187");
							poz2Obj.setAttribute("vspace","10");

							poz3Obj.setAttribute("src","/i/"+colname+"/s/s_" + model + "_b.jpg");
							poz3Obj.setAttribute("width","133");
							poz3Obj.setAttribute("height","187");
							poz3Obj.setAttribute("vspace","10");
							break;
						case 'poz2':
							poz1Obj.setAttribute("src","/i/"+colname+"/s/s_" + model + "_d.jpg");
							poz1Obj.setAttribute("width","187");
							poz1Obj.setAttribute("height","133");
							if( brow != "ie" ) { vertS = "33" } else { vertS = "23" }
							poz1Obj.setAttribute("vspace",vertS);

							poz2Obj.setAttribute("src","/i/"+colname+"/s/s_" + model + "_a.jpg");
							poz2Obj.setAttribute("width","133");
							poz2Obj.setAttribute("height","187");
							poz2Obj.setAttribute("vspace","6");

							poz3Obj.setAttribute("src","/i/"+colname+"/s/s_" + model + "_b.jpg");
							poz3Obj.setAttribute("width","133");
							poz3Obj.setAttribute("height","187");
							poz3Obj.setAttribute("vspace","10");
							break;
						case 'poz3':
							poz1Obj.setAttribute("src","/i/"+colname+"/s/s_" + model + "_d.jpg");
							poz1Obj.setAttribute("width","187");
							poz1Obj.setAttribute("height","133");
							if( brow != "ie" ) { vertS = "33" } else { vertS = "23" }
							poz1Obj.setAttribute("vspace",vertS);

							poz2Obj.setAttribute("src","/i/"+colname+"/s/s_" + model + "_a.jpg");
							poz2Obj.setAttribute("width","133");
							poz2Obj.setAttribute("height","187");
							poz2Obj.setAttribute("vspace","10");

							poz3Obj.setAttribute("src","/i/"+colname+"/s/s_" + model + "_b.jpg");
							poz3Obj.setAttribute("width","133");
							poz3Obj.setAttribute("height","187");
							poz3Obj.setAttribute("vspace","6");
							break;
					}
					break;
				case "d":
					switch(id){
						case 'poz1':
							poz1Obj.setAttribute("src","/i/"+colname+"/s/s_" + model + "_a.jpg");
							poz1Obj.setAttribute("width","133");
							poz1Obj.setAttribute("height","187");
							poz1Obj.setAttribute("vspace","6");

							poz2Obj.setAttribute("src","/i/"+colname+"/s/s_" + model + "_b.jpg");
							poz2Obj.setAttribute("width","133");
							poz2Obj.setAttribute("height","187");
							poz2Obj.setAttribute("vspace","10");

							poz3Obj.setAttribute("src","/i/"+colname+"/s/s_" + model + "_c.jpg");
							poz3Obj.setAttribute("width","133");
							poz3Obj.setAttribute("height","187");
							poz3Obj.setAttribute("vspace","10");
							break;
						case 'poz2':
							poz1Obj.setAttribute("src","/i/"+colname+"/s/s_" + model + "_a.jpg");
							poz1Obj.setAttribute("width","133");
							poz1Obj.setAttribute("height","187");
							poz1Obj.setAttribute("vspace","10");

							poz2Obj.setAttribute("src","/i/"+colname+"/s/s_" + model + "_b.jpg");
							poz2Obj.setAttribute("width","133");
							poz2Obj.setAttribute("height","187");
							poz2Obj.setAttribute("vspace","6");

							poz3Obj.setAttribute("src","/i/"+colname+"/s/s_" + model + "_c.jpg");
							poz3Obj.setAttribute("width","133");
							poz3Obj.setAttribute("height","187");
							poz3Obj.setAttribute("vspace","10");
							break;
						case 'poz3':
							poz1Obj.setAttribute("src","/i/"+colname+"/s/s_" + model + "_a.jpg");
							poz1Obj.setAttribute("width","133");
							poz1Obj.setAttribute("height","187");
							poz1Obj.setAttribute("vspace","10");

							poz2Obj.setAttribute("src","/i/"+colname+"/s/s_" + model + "_b.jpg");
							poz2Obj.setAttribute("width","133");
							poz2Obj.setAttribute("height","187");
							poz2Obj.setAttribute("vspace","10");

							poz3Obj.setAttribute("src","/i/"+colname+"/s/s_" + model + "_c.jpg");
							poz3Obj.setAttribute("width","133");
							poz3Obj.setAttribute("height","187");
							poz3Obj.setAttribute("vspace","6");
							break;
						default:
							break;
					}
					break;
				default:
					break;
				}
			}
			break;
	}

}

///////////////////////////////////////////////////////////////////////////////////////////////






