/*
 * Ext JS Library 2.3.0
 * Copyright(c) 2006-2009, Ext JS, LLC.
 * licensing@extjs.com
 * 
 * http://extjs.com/license
 */

if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)){
Ext.useShims = true;
}else{
Ext.useShims = false;
}

Ext.onReady(function(){


var mapwin;
var button = Ext.get('show-btn');
button.on('click', function(){
if(!mapwin){
mapwin = new Ext.Window({
layout: 'fit',
title: 'Stay up to date - ArabChat.com',
closeAction: 'hide',
width:865,
height:550,
html : '<iframe id=contentFRM  src="http://www.arabchat.com/tab/index-jq-ac.php" frameBorder=0 scrolling=no  width=100% height=100%  style="visibility:hidden;" onload="this.style.visibility = \'visible\';"  allowtransparency="true" name="testiframe2" id="testiframe2"></iframe>'
});
}

mapwin.show();

});



var mapwin2;
var button = Ext.get('show-btn1');
button.on('click', function(){
if(!mapwin2){
mapwin2 = new Ext.Window({
layout: 'fit',
title: 'Become a Fan!',
closeAction: 'hide',
width:634,
height:520,
html : '<iframe id=contentFRM src="http://www.arabchat.com/fb/fanbox.php" frameBorder=0 scrolling=no  width=100% height=100%  style="visibility:hidden;" onload="this.style.visibility = \'visible\';"  allowtransparency="true" name="testiframe2" id="testiframe2"></iframe>'
});
}
mapwin2.show();
});


var mapwin2;
var button = Ext.get('show-btn2');
button.on('click', function(){
if(!mapwin2){
mapwin2 = new Ext.Window({
layout: 'fit',
title: 'Become a Fan!',
closeAction: 'hide',
width:634,
height:520,
html : '<iframe id=contentFRM src="http://www.arabchat.com/fb/fanbox.php" frameBorder=0 scrolling=no  width=100% height=100%  style="visibility:hidden;" onload="this.style.visibility = \'visible\';"  allowtransparency="true" name="testiframe2" id="testiframe2"></iframe>'
});
}
mapwin2.show();
});




var mapwin7;
var button = Ext.get('show-btn7');
button.on('click', function(){
if(!mapwin7){
mapwin7 = new Ext.Window({
layout: 'fit',
title: 'Contact',
closeAction: 'hide',
width:634,
height:520,
html : '<iframe id=contentFRM src="http://www.arabchat.com/cgi-bin/form/cform.cgi" frameBorder=0 scrolling=no  width=100% height=100%  style="visibility:hidden;" onload="this.style.visibility = \'visible\';"  allowtransparency="true" name="testiframe2" id="testiframe2"></iframe>'
});
}
mapwin7.show();
});

var mapwin8;
var button = Ext.get('show-btn8');
button.on('click', function(){
if(!mapwin8){
mapwin8 = new Ext.Window({
layout: 'fit',
title: 'Contact',
closeAction: 'hide',
width:634,
height:520,
html : '<iframe id=contentFRM src="http://www.arabchat.com/cgi-bin/form/cform.cgi" frameBorder=0 scrolling=no  width=100% height=100%  style="visibility:hidden;" onload="this.style.visibility = \'visible\';"  allowtransparency="true" name="testiframe2" id="testiframe2"></iframe>'
});
}
mapwin8.show();
});

var mapwin10;
var button = Ext.get('show-btn10');
button.on('click', function(){
if(!mapwin10){
mapwin10 = new Ext.Window({
layout: 'fit',
title: 'Contact',
closeAction: 'hide',
width:634,
height:520,
html : '<iframe id=contentFRM src="http://www.arabchat.com/cgi-bin/form/cform.cgi" frameBorder=0 scrolling=no  width=100% height=100%  style="visibility:hidden;" onload="this.style.visibility = \'visible\';"  allowtransparency="true" name="testiframe2" id="testiframe2"></iframe>'
});
}
mapwin10.show();
});

var mapwin9;
var button = Ext.get('show-btn9');
button.on('click', function(){
if(!mapwin9){
mapwin9 = new Ext.Window({
layout: 'fit',
title: 'Control Panel',
closeAction: 'hide',
width:599,
height:498,
html : '<iframe id=contentFRM src="http://www.arabchat.com/reg/bin/cp2.php" frameBorder=0 scrolling=no  width=100% height=100%  style="visibility:hidden;" onload="this.style.visibility = \'visible\';"  allowtransparency="true" name="testiframe2" id="testiframe2"></iframe>'
});
}
mapwin9.show();
});

var mapwin3;
var button = Ext.get('show-btn3');
button.on('click', function(){
if(!mapwin3){
mapwin3 = new Ext.Window({
layout: 'fit',
title: 'Feedback',
closeAction: 'hide',
width:634,
height:520,
html : '<iframe id=contentFRM src="http://www.arabchat.com/cgi-bin/form/feedback.cgi" frameBorder=0 scrolling=no  width=100% height=100%  style="visibility:hidden;" onload="this.style.visibility = \'visible\';"  allowtransparency="true" name="testiframe2" id="testiframe2"></iframe>'
});
}
mapwin3.show();
});



var mapwin4;
var button = Ext.get('show-btn4');
button.on('click', function(){
if(!mapwin4){
mapwin4 = new Ext.Window({
layout: 'fit',
title: 'Share ArabChat',
closeAction: 'hide',
width:410,
height:255,
html : '<iframe id=contentFRM src="http://www.arabchat.com/im/share.php" frameBorder=0 scrolling=no  width=100% height=100%  style="visibility:hidden;" onload="this.style.visibility = \'visible\';"  allowtransparency="true" name="testiframe2" id="testiframe2"></iframe>'
});
}
mapwin4.show();
});



var mapwin5;
var button = Ext.get('show-btn5');
button.on('click', function(){
if(!mapwin5){
mapwin5 = new Ext.Window({
layout: 'fit',
title: 'Media Player',
closeAction: 'hide',
width:562,
height:360,
html : '<iframe id=contentFRM src="http://www.arabchat.com/tab/aj5-ac.php" frameBorder=0 scrolling=no  width=100% height=100%  style="visibility:hidden;" onload="this.style.visibility = \'visible\';"  allowtransparency="true" name="testiframe2" id="testiframe2"></iframe>'
});
}
mapwin5.show();
});






});