var os = navigator.userAgent.toLowerCase();
var is_mac = ((os.indexOf("ppc") !=-1) || (os.indexOf("powerpc") !=-1));

function yellow_sub() { 

	if (is_mac && (navigator.appName == "Netscape")){ 

		redirect_mac_NN();  //redirects to netscape for mac
			return;
	}
	if (!is_mac && (navigator.appName == "Netscape")){

		redirect_windows_NN(); //redirects to netscape for for windows
			return;
	}

	if (!is_mac && (navigator.appName != "Netscape")){
		
			redirect_windows_IE();  //redirects to explorer for windows
				return;
}

	if (is_mac && (navigator.appName != "Netscape")){
		
			redirect_mac_IE();  //redirects to explorer for windows
				return;
	}
}

<!--end of redirection session-->
var os = navigator.userAgent.toLowerCase();
var is_mac = ((os.indexOf("ppc") !=-1) || (os.indexOf("powerpc") !=-1));

function yellow_sub2() { 

	if (is_mac && (navigator.appName == "Netscape")){ 

		redirect_mac_NN2();  //redirects to netscape for mac
			return;
	}
	if (!is_mac && (navigator.appName == "Netscape")){

		redirect_windows_NN2(); //redirects to netscape for for windows
			return;
	}

	if (!is_mac && (navigator.appName != "Netscape")){
		
			redirect_windows_IE2();  //redirects to explorer for windows
				return;
}

	if (is_mac && (navigator.appName != "Netscape")){
		
			redirect_mac_IE2();  //redirects to explorer for windows
				return;
	}
}

<!--end of redirection session-->

function redirect_mac_NN(){

	if (navigator.appName == "Netscape"){//for mac netscape broswers
	
	var people_at_yellowsub = screen.availWidth -20;
	var people_at_hyperlink = screen.availHeight -40;
		    newWindow = window.open('http://www.orgtekstil.com.tr/eng/pop-up.htm','YellowWin','width=' + people_at_yellowsub + ',height=' + people_at_hyperlink + ',top=0,left=0,');
				
				newWindow.focus();
					return;
	}
}


//------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
function redirect_windows_NN(){

	if (navigator.appName == "Netscape"){//for window netscape broswers
	
	var people_at_yellowsub = screen.availWidth -10;
	var people_at_hyperlink = screen.availHeight -10;
		    newWindow = window.open('http://www.orgtekstil.com.tr/eng/pop-up.htm','YellowWin','width=' + people_at_yellowsub + ',height=' + people_at_hyperlink + ',top=0,left=0,');
				
				newWindow.focus();
					return;
	}
}


//------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
function redirect_windows_IE(){ //for window explorer broswers
	
	var people_at_yellowsub = screen.availWidth +5;
	var people_at_hyperlink = screen.availHeight +5;
		    newWindow = window.open('http://www.orgtekstil.com.tr/eng/pop-up.htm','YellowWin','width=' + people_at_yellowsub + ',height=' + people_at_hyperlink + ',top=0,left=0,');
				
				newWindow.focus();
					return;
		
	}

//------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

function redirect_mac_IE(){ //for mac explorer broswers
	
	 var people_at_yellowsub = screen.availWidth +5;
	var people_at_hyperlink = screen.availHeight +5;
		    newWindow = window.open('http://www.orgtekstil.com.tr/eng/pop-up.htm','YellowWin','width=' + people_at_yellowsub + ',height=' + people_at_hyperlink + ',top=0,left=0,');
				
				newWindow.focus();
					return;
}

//------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
		
function cover_screen(){
		var w = screen.availWidth;
		var h = screen.availHeight;
			self.resizeTo(w,h);	
				return;
}


function redirect_mac_NN2(){

	if (navigator.appName == "Netscape"){//for mac netscape broswers
	
	var people_at_yellowsub = screen.availWidth -20;
	var people_at_hyperlink = screen.availHeight -40;
		    newWindow = window.open('http://www.orgtekstil.com.tr/eng/pop-up.htm','YellowWin','width=' + people_at_yellowsub + ',height=' + people_at_hyperlink + ',top=0,left=0,');
				
				newWindow.focus();
					return;
	}
}


//------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
function redirect_windows_NN2(){

	if (navigator.appName == "Netscape"){//for window netscape broswers
	
	var people_at_yellowsub = screen.availWidth -10;
	var people_at_hyperlink = screen.availHeight -10;
		    newWindow = window.open('http://www.orgtekstil.com.tr/eng/pop-up.htm','YellowWin','width=' + people_at_yellowsub + ',height=' + people_at_hyperlink + ',top=0,left=0,');
				
				newWindow.focus();
					return;
	}
}


//------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
function redirect_windows_IE2(){ //for window explorer broswers
	
	var people_at_yellowsub2 = screen.availWidth +5;
	var people_at_hyperlink = screen.availHeight +5;
		    newWindow = window.open('http://www.orgtekstil.com.tr/tur/pop-up.htm','YellowWin','width=' + people_at_yellowsub2 + ',height=' + people_at_hyperlink + ',top=0,left=0,');
				
				newWindow.focus();
					return;
		
	}

//------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

function redirect_mac_IE2(){ //for mac explorer broswers
	
	 var people_at_yellowsub = screen.availWidth +5;
	var people_at_hyperlink = screen.availHeight +5;
		    newWindow = window.open('http://www.orgtekstil.com.tr/eng/pop-up.htm','YellowWin','width=' + people_at_yellowsub + ',height=' + people_at_hyperlink + ',top=0,left=0,');
				
				newWindow.focus();
					return;
}

//------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
		
function cover_screen(){
		var w = screen.availWidth;
		var h = screen.availHeight;
			self.resizeTo(w,h);	
				return;
}







